cResultRecorderType Class Reference

API: cResultRecorderType Class Reference
API
Inheritance diagram for cResultRecorderType:
[legend]

Public Member Functions

 cResultRecorderType (const char *name, const char *className, const char *description=nullptr)
cResultRecorder * create () const
const char * getDescription () const
Public Member Functions inherited from cNoncopyableOwnedObject
 cNoncopyableOwnedObject (const char *name=nullptr, bool namepooling=true)
virtual cNoncopyableOwnedObject * dup () const override
Public Member Functions inherited from cOwnedObject
 cOwnedObject ()
 cOwnedObject (const char *name, bool namepooling=true)
 cOwnedObject (const cOwnedObject &obj)
virtual ~cOwnedObject ()
cOwnedObject & operator= (const cOwnedObject &o)
virtual cObject * getOwner () const override
virtual bool isOwnedObject () const override
Public Member Functions inherited from cNamedObject
 cNamedObject ()
 cNamedObject (const char *name, bool namepooling=true)
 cNamedObject (const cNamedObject &obj)
virtual ~cNamedObject ()
cNamedObject & operator= (const cNamedObject &o)
virtual void setName (const char *s)
virtual const char * getName () const override
virtual void setNamePooling (bool b)
virtual bool getNamePooling ()
Public Member Functions inherited from cObject
 cObject ()
 cObject (const cObject &other)=default
virtual ~cObject ()
virtual const char * getClassName () const
bool isName (const char *s) const
virtual const char * getFullName () const
virtual std::string getFullPath () const
virtual std::string getClassAndFullName () const
virtual std::string getClassAndFullPath () const
const cObject * getThisPtr () const
virtual std::string str () const
virtual std::ostream & printOn (std::ostream &os) const
virtual bool isSoftOwner () const
virtual void forEachChild (cVisitor *v)
cObject * findObject (const char *name, bool deep=true)
virtual cClassDescriptor * getDescriptor () const
void copyNotSupported () const

Static Public Member Functions

static cResultRecorderType * find (const char *name)
static cResultRecorderType * get (const char *name)
Static Public Member Functions inherited from cOwnedObject
static long getTotalObjectCount ()
static long getLiveObjectCount ()
static void resetObjectCounters ()
static cSoftOwner * getOwningContext ()

Additional Inherited Members

Protected Member Functions inherited from cObject
virtual void take (cOwnedObject *obj)
virtual void drop (cOwnedObject *obj)
void dropAndDelete (cOwnedObject *obj)

Description

Registers a cResultRecorder.

Constructor & Destructor Documentation

◆ cResultRecorderType()

cResultRecorderType ( const char * name,
const char * className,
const char * description = nullptr )

Constructor.

Referenced by find(), and get().

Member Function Documentation

◆ create()

cResultRecorder * create ( ) const

Creates an instance of this result recorder type.

◆ getDescription()

const char * getDescription ( ) const
inline

Returns the documentation of this result recorder.

◆ find()

cResultRecorderType * find ( const char * name)
static

Finds the factory object for the given name. The class must have been registered previously with the Register_ResultRecorder() macro.

References cResultRecorderType().

◆ get()

cResultRecorderType * get ( const char * name)
static

Like find(), but throws an error if the object was not found.

References cResultRecorderType().