mrfioc2
2.3.0
|
Base object inspection. More...
#include <object.h>
Classes | |
struct | _compName |
Public Types | |
typedef m_obj_children_t::const_iterator | child_iterator |
typedef std::map< std::string, std::string > | create_args_t |
typedef Object *(* | create_factory_t) (const std::string &name, const std::string &klass, const create_args_t &args) |
Public Member Functions | |
const std::string & | name () const |
const Object * | parent () const |
virtual void | lock () const =0 |
virtual void | unlock () const =0 |
child_iterator | beginChild () const |
child_iterator | endChild () const |
virtual propertyBase * | getPropertyBase (const char *, const std::type_info &)=0 |
template<typename P > | |
mrf::auto_ptr< property< P > > | getProperty (const char *pname) |
virtual void | visitProperties (bool(*)(propertyBase *, void *), void *)=0 |
Static Public Member Functions | |
static Object * | getObject (const std::string &name) |
static Object * | getCreateObject (const std::string &name, const std::string &klass, const create_args_t &args=create_args_t()) |
static void | addFactory (const std::string &klass, create_factory_t fn) |
static void | visitObjects (bool(*)(Object *, void *), void *) |
Protected Member Functions | |
Object (const std::string &n, const Object *par=0) | |
virtual | ~Object ()=0 |
Base object inspection.
Interface for introspection operations. Allows access to properties.
typedef m_obj_children_t::const_iterator mrf::Object::child_iterator |
typedef std::map<std::string, std::string> mrf::Object::create_args_t |
typedef Object*(* mrf::Object::create_factory_t) (const std::string &name, const std::string &klass, const create_args_t &args) |
|
protected |
Definition at line 61 of file object.cpp.
|
protectedpure virtual |
Definition at line 84 of file object.cpp.
|
static |
Definition at line 138 of file object.cpp.
|
inline |
|
inline |
|
static |
Fetch or or create named Object Throws an exception if creation fails
Definition at line 118 of file object.cpp.
|
static |
Fetch named Object returns NULL if not found
Definition at line 107 of file object.cpp.
|
inline |
Definition at line 405 of file object.h.
|
pure virtual |
Implemented in mrf::ObjectInst< MRMPreScaler, PreScaler >, mrf::ObjectInst< SoftSequence >, mrf::ObjectInst< dataBufTx >, mrf::ObjectInst< evgOutput >, mrf::ObjectInst< evgInput >, mrf::ObjectInst< dataBufRx >, mrf::ObjectInst< Input >, mrf::ObjectInst< evgAcTrig >, mrf::ObjectInst< SeqManager >, mrf::ObjectInst< MRMPulser, Pulser >, mrf::ObjectInst< SFP >, mrf::ObjectInst< DelayModuleEvr >, mrf::ObjectInst< evgDbus >, mrf::ObjectInst< PreScaler >, mrf::ObjectInst< evgTrigEvt >, mrf::ObjectInst< EVRMRMTSBuffer >, mrf::ObjectInst< evgMxc >, mrf::ObjectInst< evgMrm >, mrf::ObjectInst< MRMOutput, Output >, mrf::ObjectInst< EVRMRM, EVR >, mrf::ObjectInst< EVR >, mrf::ObjectInst< Pulser >, mrf::ObjectInst< CML >, mrf::ObjectInst< FCT >, and mrf::ObjectInst< Output >.
Definition at line 99 of file object.cpp.
|
pure virtual |
Implemented in SoftSequence, EVRMRM, evgMrm, SeqManager, MRMOutput, MRMInput, MRMPulser, mrmDataBufTx, SFP, FCT, MRMCML, MRMPreScaler, evgInput, mrmBufRx, EVRMRMTSBuffer, evgOutput, evgMxc, evgAcTrig, evgDbus, and evgTrigEvt.
|
inline |
|
inline |
|
pure virtual |
Implemented in SoftSequence, EVRMRM, evgMrm, SeqManager, MRMOutput, MRMInput, MRMPulser, mrmDataBufTx, SFP, FCT, MRMCML, MRMPreScaler, evgInput, mrmBufRx, EVRMRMTSBuffer, evgOutput, evgMxc, evgAcTrig, evgDbus, and evgTrigEvt.
|
static |
Definition at line 150 of file object.cpp.
|
pure virtual |
Implemented in mrf::ObjectInst< MRMPreScaler, PreScaler >, mrf::ObjectInst< SoftSequence >, mrf::ObjectInst< dataBufTx >, mrf::ObjectInst< evgOutput >, mrf::ObjectInst< evgInput >, mrf::ObjectInst< dataBufRx >, mrf::ObjectInst< Input >, mrf::ObjectInst< evgAcTrig >, mrf::ObjectInst< SeqManager >, mrf::ObjectInst< MRMPulser, Pulser >, mrf::ObjectInst< SFP >, mrf::ObjectInst< DelayModuleEvr >, mrf::ObjectInst< evgDbus >, mrf::ObjectInst< PreScaler >, mrf::ObjectInst< evgTrigEvt >, mrf::ObjectInst< EVRMRMTSBuffer >, mrf::ObjectInst< evgMxc >, mrf::ObjectInst< evgMrm >, mrf::ObjectInst< MRMOutput, Output >, mrf::ObjectInst< EVRMRM, EVR >, mrf::ObjectInst< EVR >, mrf::ObjectInst< Pulser >, mrf::ObjectInst< CML >, mrf::ObjectInst< FCT >, and mrf::ObjectInst< Output >.
Definition at line 104 of file object.cpp.