]> SALOME platform Git repositories - modules/yacs.git/blob - src/engine/ComponentDefinition.cxx
Salome HOME
merge from branch DEV tag mergeto_trunk_04apr08
[modules/yacs.git] / src / engine / ComponentDefinition.cxx
1 #include "ComponentDefinition.hxx"
2 #include "ServiceNode.hxx"
3
4 #include <iostream>
5
6 //#define _DEVDEBUG_
7 #include "YacsTrace.hxx"
8
9 using namespace YACS::ENGINE;
10 using namespace std;
11
12 ComponentDefinition::ComponentDefinition(const std::string& name):_name(name)
13 {
14 }
15
16 ComponentDefinition::~ComponentDefinition()
17 {
18   DEBTRACE("ComponentDefinition::~ComponentDefinition");
19   //get rid of service nodes in  map
20   std::map<std::string, ServiceNode*>::const_iterator lt;
21   for(lt=_serviceMap.begin();lt!=_serviceMap.end();lt++)
22     delete (*lt).second;
23 }
24