OMNeT++ Simulation Library  6.0.3
cWatchBase Class Referenceabstract

#include <cwatch.h>

Description

Helper class to make primitive types and non-cOwnedObject objects inspectable in Qtenv. To be used only via the WATCH, WATCH_PTR, WATCH_OBJ, WATCH_VECTOR etc macros.

Inheritance diagram for cWatchBase:
cNoncopyableOwnedObject cOwnedObject noncopyable cNamedObject cObject cGenericAssignableWatch< T > cGenericReadonlyWatch< T > cWatch_bool cWatch_char cWatch_cObject cWatch_cObjectPtr cWatch_stdstring cWatch_uchar

Public Member Functions

Constructors, destructor, assignment
 cWatchBase (const char *name)
 
New methods
virtual bool supportsAssignment () const =0
 
virtual void assign (const char *s)
 
- Public Member Functions inherited from cNoncopyableOwnedObject
 cNoncopyableOwnedObject (const char *name=nullptr, bool namepooling=true)
 
virtual cNoncopyableOwnedObjectdup () const override
 
- Public Member Functions inherited from cOwnedObject
 cOwnedObject ()
 
 cOwnedObject (const char *name, bool namepooling=true)
 
 cOwnedObject (const cOwnedObject &obj)
 
virtual ~cOwnedObject ()
 
cOwnedObjectoperator= (const cOwnedObject &o)
 
virtual cObjectgetOwner () 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 ()
 
cNamedObjectoperator= (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 cObjectgetThisPtr () const
 
virtual std::string str () const
 
virtual std::ostream & printOn (std::ostream &os) const
 
virtual bool isSoftOwner () const
 
virtual void forEachChild (cVisitor *v)
 
cObjectfindObject (const char *name, bool deep=true)
 
virtual cClassDescriptorgetDescriptor () const
 
void copyNotSupported () const
 

Additional Inherited Members

- Static Public Member Functions inherited from cOwnedObject
static long getTotalObjectCount ()
 
static long getLiveObjectCount ()
 
static void resetObjectCounters ()
 
static cSoftOwnergetOwningContext ()
 
- Protected Member Functions inherited from cObject
virtual void take (cOwnedObject *obj)
 
virtual void drop (cOwnedObject *obj)
 
void dropAndDelete (cOwnedObject *obj)
 

Constructor & Destructor Documentation

◆ cWatchBase()

cWatchBase ( const char *  name)
inline

Initialize the shell to hold the given variable.

Member Function Documentation

◆ supportsAssignment()

virtual bool supportsAssignment ( ) const
pure virtual

◆ assign()

virtual void assign ( const char *  s)
inlinevirtual

Changes the watched variable's value. May only be called if supportsAssignment() returns true.

Reimplemented in cWatch_stdstring, cWatch_uchar, cWatch_char, cWatch_bool, and cGenericAssignableWatch< T >.


The documentation for this class was generated from the following file: