1 // Copyright (C) 2006-2015 CEA/DEN, EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
33 void fromnode(const std::string& fromnode) { _fromnode = fromnode; }
34 void tonode(const std::string& tonode) { _tonode = tonode; }
35 std::string fromnode()const { return _fromnode ; }
36 std::string tonode()const { return _tonode ; }
37 std::map<std::string,std::string> _props;
42 void setProperty(const std::string& name, const std::string& value)
47 std::string _fromnode;
51 struct mylink:mycontrol{
52 void fromport(const std::string& fromport) { _fromport = fromport; }
53 void toport(const std::string& toport) { _toport = toport; }
54 std::string fromport()const { return _fromport ; }
55 std::string toport()const { return _toport ; }
56 bool withControl() const { return _withControl ;}
60 std::string _fromport;
70 struct mystream:mylink{
82 std::map<std::string,std::string> _props;
87 void setProperty(const std::string& name, const std::string& value)
93 struct myoutport:myinport{};
100 typedef std::vector<myprop> myprops;
111 typedef std::vector<machine> machines;
117 std::map<std::string,std::string> _props;
122 std::string _container;
125 struct mycomponentinstance
129 std::string _component;
130 std::string _container;
131 std::map<std::string,std::string> _props;