diff --git a/pybindsrc/module.cpp b/pybindsrc/module.cpp index 2b5b50c..70d5a48 100644 --- a/pybindsrc/module.cpp +++ b/pybindsrc/module.cpp @@ -24,8 +24,8 @@ PYBIND11_MODULE(_daq_conffwk_py, m) m.doc() = "Python interface to the conffwk package"; // optional module docstring - register_conffwk(m); register_conffwkobject(m); + register_conffwk(m); } } // namespace dunedaq::conffwk::python diff --git a/python/conffwk/dal.py b/python/conffwk/dal.py index 758ab39..085d7b3 100644 --- a/python/conffwk/dal.py +++ b/python/conffwk/dal.py @@ -573,6 +573,23 @@ def pyoksTypes(cls): """Returns a join of this class and base class names""" return cls.__okstypes__ +# The following four classes enable type checking for FSM objects, which are a part of +# the OKS schema, but are not generated by the DAL generator. +class FSMData(DalBase): + """This class is used to represent any FSM data object in the system. """ + pass + +class FSMTransition(DalBase): + """This class is used to represent any FSM transition object in the system. """ + pass + +class FSMxTransition(DalBase): + """This class is used to represent any FSM pre/post transition object in the system. """ + pass + +class FSMAction(DalBase): + """This class is used to represent any FSM action object in the system. """ + pass def get_classes(m): """Returns a map with classes in a module, the key is the class name.""" @@ -727,3 +744,4 @@ def module(name, schema, other_dals=[], backend='oksconflibs', db=None): for k in generate(db, other_dals): retval.__dict__[k.pyclassName()] = k return retval + diff --git a/python/conffwk/py.typed b/python/conffwk/py.typed new file mode 100644 index 0000000..e69de29