14 #include <boost/python.hpp> 15 #include <boost/python/suite/indexing/vector_indexing_suite.hpp> 21 void help(){this->get_override(
"help")();};
23 void reset(){this->get_override(
"reset")();};
24 void update(){this->get_override(
"update")();};
29 class_<Attrib>(
"Attrib")
51 class_<Object, bases <Attrib> >(
"Object")
64 .def(
"verbose", verbosex1)
65 .def(
"verbose", verbosex2)
66 .def(
"debug", debugx1)
67 .def(
"debug", debugx2)
70 .def(
"warning", warningx1)
71 .def(
"warning", warningx2)
72 .def(
"error", errorx1)
73 .def(
"error", errorx2)
74 .def(
"fatal", fatalx1)
75 .def(
"fatal", fatalx2)
78 class_<Application, bases <Object> >(
"Application")
85 return_value_policy<reference_existing_object>())
89 return_value_policy<reference_existing_object>())
91 return_value_policy<reference_existing_object>())
93 return_value_policy<reference_existing_object>())
95 return_value_policy<reference_existing_object>())
109 class_< std::vector<Hierarchy*> >(
"HierarchyPtrVec")
110 .def(vector_indexing_suite< std::vector<Hierarchy*> >())
113 class_<Hierarchy, bases<Object> >(
"Hierarchy")
116 .def(
"parent", parentx0,return_value_policy<reference_existing_object>())
117 .def(
"parent", parentx1,return_value_policy<reference_existing_object>())
118 .def(
"origin", &
Hierarchy::origin,return_value_policy<reference_existing_object>())
121 .def(
"child", &
Hierarchy::child,return_value_policy<reference_existing_object>())
125 .def(
"delChild", delChildx0)
126 .def(
"delChild", delChildx1)
132 class_<ElementWrap, boost::noncopyable, bases<Hierarchy> >(
"Element")
143 class_<Computer, bases<Element> >(
"Computer")
void info(std::string mymsg)
Hierarchy * childTyped(std::string)
void verbose(std::string mymsg)
StatusCode create(std::string, std::string)
Hierarchy * child(std::string)
StatusCode setConnection(Hierarchy *)
StatusCode prepare(std::string procName, Element *element=0, int nEvt=1)
void setParent(Hierarchy *parent)
void setName(std::string name)
std::vector< Hierarchy * > children()
void delChild(Hierarchy *)
void fatal(std::string mymsg)
unsigned long numberOfChildren()
StatusCode run(std::string procName, Element *element=0, int nEvt=1)
void remove(int attribut)
void setType(std::string type)
void error(std::string mymsg)
void setId(unsigned char id)
void debug(std::string mymsg)
virtual StatusCode init()=0
void msg(std::string mymsg)
void setTitle(std::string title)
StatusCode cd(std::string path)
void recursiveInitCommunications()
virtual void addChild(Hierarchy *element)
void msgSvc(int level, std::string msg, std::string name)
std::string pathTyped(std::string=std::string(""))
void setCurrent(Hierarchy *current)
void warning(std::string mymsg)
void recursiveInitElement()
void setCtrl(std::string control)
std::string path(std::string=std::string(""))