Salome HOME
copy tag mergefrom_BR_V0_1_CC_Salome_04oct07
[modules/yacs.git] / src / engine / Container.cxx
1 #include "Container.hxx"
2 #include "ComponentInstance.hxx"
3
4 using namespace std;
5 using namespace YACS::ENGINE;
6
7 Container::Container():_isAttachedOnCloning(false)
8 {
9 }
10
11 Container::~Container()
12 {
13 }
14
15 /*!
16  * By calling this method the current container 'this' is not destined to be deeply copied on clone call.
17  */
18 void Container::attachOnCloning() const
19 {
20   _isAttachedOnCloning=true;
21 }
22
23 /*!
24  * By calling this method the current container 'this' will be deeply copied on clone call.
25  */
26 void Container::dettachOnCloning() const
27 {
28   _isAttachedOnCloning=false;
29 }
30
31 bool Container::isAttachedOnCloning() const
32 {
33   return _isAttachedOnCloning;
34 }
35
36 /*!
37  * This method informs about the capability of the container to deal with CT an unpredictably number of components.
38  * By default : True
39  */
40 bool Container::isSupportingRTODefNbOfComp() const
41 {
42   return true;
43 }
44
45 void Container::setProperty(const std::string& name, const std::string& value)
46 {
47   _propertyMap[name]=value;
48 }
49
50 std::string Container::getProperty(const std::string& name)
51 {
52   return _propertyMap[name];
53 }
54