Salome HOME
PR: first version from Antony GEAY, with directory restructuration
[modules/yacs.git] / src / engine / Switch.hxx
1 #ifndef __SWITCH_HXX__
2 #define __SWITCH_HXX__
3
4 #include "ComposedNode.hxx"
5
6 #include <vector>
7
8 namespace YACS
9 {
10   namespace ENGINE
11   {
12     class Switch : public ComposedNode
13     {
14     protected:
15       std::vector<Node *> _vectorOfNode;//Nodes ownered
16     public:
17       Switch(const std::string& name);
18       ~Switch();
19       void edSetNumberOfCases(int numberOfCases);
20       void edSetNode(int caseId, Node *node) throw(Exception);
21     protected:
22       void checkNoCyclePassingThrough(Node *node) throw(Exception);
23     };
24   }
25 }
26
27 #endif