14 #ifndef SST_CORE_MODEL_PYMODEL_COMP_H
15 #define SST_CORE_MODEL_PYMODEL_COMP_H
17 #include <sst/core/sst_types.h>
30 virtual ConfigComponent* getComp() = 0;
33 virtual const char* getName()
const = 0;
34 ComponentId_t getID();
35 ConfigComponent* getSubComp(
const std::string &name,
int slot_num);
44 const char* getName()
const override;
45 ConfigComponent* getComp()
override;
57 const char* getName()
const override;
58 ConfigComponent* getComp()
override;
70 extern PyTypeObject PyModel_ComponentType;
71 extern PyTypeObject PyModel_SubComponentType;
73 static inline ConfigComponent* getComp(PyObject *pobj) {
76 PyErr_SetString(PyExc_RuntimeError,
"Failed to find ConfigComponent");
Definition: pymodel_comp.h:65
Definition: pymodel_comp.h:38
Definition: pymodel_comp.h:50
Definition: pymodel_comp.h:25