Salome HOME
copy tag mergefrom_BR_V0_1_CC_Salome_04oct07
[modules/yacs.git] / src / engine / Test / ComponentInstanceTest.hxx
1 #ifndef __COMPONENTINTANCETEST_HXX__
2 #define __COMPONENTINTANCETEST_HXX__
3
4 #include "ComponentInstance.hxx"
5
6 namespace YACS
7 {
8   namespace ENGINE
9   {
10     class ComponentInstanceTest1 : public ComponentInstance
11     {
12     public:
13       ComponentInstanceTest1(const ComponentInstanceTest1& other);
14       ComponentInstanceTest1(const std::string& name);
15       void load();
16       void unload();
17       bool isLoaded();
18       std::string getKind() const;
19       ServiceNode* createNode(const std::string& name);
20       ComponentInstance *clone() const;
21     protected:
22       bool _loaded;
23     };
24
25     class ComponentInstanceTest2 : public ComponentInstance
26     {
27     public:
28       ComponentInstanceTest2(const ComponentInstanceTest2& other);
29       ComponentInstanceTest2(const std::string& name);
30       void load();
31       void unload();
32       bool isLoaded();
33       std::string getKind() const;
34       ServiceNode* createNode(const std::string& name);
35       ComponentInstance *clone() const;
36     protected:
37       bool _loaded;
38     };
39   }
40 }
41
42 #endif