Salome HOME
copy tag mergefrom_BR_V0_1_CC_Salome_04oct07
[modules/yacs.git] / src / engine / Visitor.cxx
diff --git a/src/engine/Visitor.cxx b/src/engine/Visitor.cxx
new file mode 100644 (file)
index 0000000..ca7b019
--- /dev/null
@@ -0,0 +1,31 @@
+
+#include "Visitor.hxx"
+#include "Node.hxx"
+#include "Proc.hxx"
+
+using namespace YACS::ENGINE;
+using namespace std;
+
+Visitor::Visitor(ComposedNode *root): _root(root)
+{
+}
+
+std::map<std::string, std::string> Visitor::getNodeProperties(Node *node)
+{
+  return node->_propertyMap;
+}
+
+std::map<std::string, TypeCode*> Visitor::getTypeCodeMap(Proc *proc)
+{
+  return proc->typeMap;
+}
+
+std::map<std::string, Container*> Visitor::getContainerMap(Proc *proc)
+{
+  return proc->containerMap;
+}
+
+std::list<TypeCodeObjref *> Visitor::getListOfBases(TypeCodeObjref *objref)
+{
+  return objref->_listOfBases;
+}