OMNeT++ Simulation Library  5.6.1
cXMLParImpl Class Reference

#include <cxmlparimpl.h>

Description

A cParImpl subclass that stores a module/channel parameter of type XML.

Inheritance diagram for cXMLParImpl:
cParImpl cNamedObject cObject

Public Member Functions

Constructors, destructor, assignment.
 cXMLParImpl ()
 
 cXMLParImpl (const cXMLParImpl &other)
 
virtual ~cXMLParImpl ()
 
void operator= (const cXMLParImpl &otherpar)
 
Redefined cObject member functions
virtual cXMLParImpldup () const override
 
virtual void parsimPack (cCommBuffer *buffer) const override
 
virtual void parsimUnpack (cCommBuffer *buffer) override
 
Redefined cParImpl setter functions.
virtual void setBoolValue (bool b) override
 
virtual void setIntValue (intpar_t l) override
 
virtual void setDoubleValue (double d) override
 
virtual void setStringValue (const char *s) override
 
virtual void setXMLValue (cXMLElement *node) override
 
virtual void setExpression (cExpression *e) override
 
Redefined cParImpl getter functions.
virtual bool boolValue (cComponent *context) const override
 
virtual intpar_t intValue (cComponent *context) const override
 
virtual double doubleValue (cComponent *context) const override
 
virtual const char * stringValue (cComponent *context) const override
 
virtual std::string stdstringValue (cComponent *context) const override
 
virtual cXMLElementxmlValue (cComponent *context) const override
 
virtual cExpressiongetExpression () const override
 
Type, prompt text, input flag, change flag.
virtual Type getType () const override
 
virtual bool isNumeric () const override
 
Redefined cParImpl misc functions.
virtual void convertToConst (cComponent *context) override
 
virtual std::string str () const override
 
virtual void parse (const char *text) override
 
virtual int compare (const cParImpl *other) const override
 
virtual void forEachChild (cVisitor *v, cComponent *context) override
 
- Public Member Functions inherited from cParImpl
 cParImpl ()
 
 cParImpl (const cParImpl &other)
 
virtual ~cParImpl ()
 
cParImploperator= (const cParImpl &otherpar)
 
virtual bool isVolatile () const
 
virtual bool isExpression () const
 
virtual bool isShared () const
 
virtual bool containsValue () const
 
virtual bool isSet () const
 
virtual void setIsVolatile (bool f)
 
virtual void setIsShared (bool f)
 
virtual void setIsSet (bool f)
 
virtual const char * getUnit () const
 
virtual void setUnit (const char *s)
 
virtual void setStringValue (const std::string &s)
 
virtual bool containsConstSubexpressions () const
 
virtual void evaluateConstSubexpressions (cComponent *context)
 
- 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)
 
virtual ~cObject ()
 
virtual const char * getClassName () const
 
bool isName (const char *s) const
 
virtual const char * getFullName () const
 
virtual std::string getFullPath () const
 
const cObjectgetThisPtr () const
 
virtual _OPPDEPRECATED std::string info () const
 
virtual _OPPDEPRECATED std::string detailedInfo () const
 
virtual cObjectgetOwner () const
 
virtual bool isOwnedObject () const
 
virtual void forEachChild (cVisitor *v)
 
cObjectfindObject (const char *name, bool deep=true)
 
void copyNotSupported () const
 

Additional Inherited Members

- Static Public Member Functions inherited from cParImpl
static long getTotalParImplObjectCount ()
 
static long getLiveParImplObjectCount ()
 
static void resetParImplObjectCounters ()
 
static cParImplcreateWithType (Type type)
 
- Protected Member Functions inherited from cObject
virtual void take (cOwnedObject *obj)
 
virtual void drop (cOwnedObject *obj)
 
void dropAndDelete (cOwnedObject *obj)
 

Constructor & Destructor Documentation

◆ cXMLParImpl() [1/2]

cXMLParImpl ( )
explicit

Constructor.

◆ cXMLParImpl() [2/2]

cXMLParImpl ( const cXMLParImpl other)
inline

Copy constructor.

◆ ~cXMLParImpl()

virtual ~cXMLParImpl ( )
virtual

Destructor.

Member Function Documentation

◆ operator=()

void operator= ( const cXMLParImpl otherpar)

Assignment operator.

◆ dup()

virtual cXMLParImpl* dup ( ) const
inlineoverridevirtual

Creates and returns an exact copy of this object.

Reimplemented from cParImpl.

◆ parsimPack()

virtual void parsimPack ( cCommBuffer buffer) const
overridevirtual

Serializes the object into a buffer.

Reimplemented from cParImpl.

◆ parsimUnpack()

virtual void parsimUnpack ( cCommBuffer buffer)
overridevirtual

Deserializes the object from a buffer.

Reimplemented from cParImpl.

◆ setBoolValue()

virtual void setBoolValue ( bool  b)
overridevirtual

Raises an error: cannot convert bool to XML.

Implements cParImpl.

◆ setIntValue()

virtual void setIntValue ( intpar_t  l)
overridevirtual

Raises an error: cannot convert integer to XML.

Implements cParImpl.

◆ setDoubleValue()

virtual void setDoubleValue ( double  d)
overridevirtual

Raises an error: cannot convert double to XML.

Implements cParImpl.

◆ setStringValue()

virtual void setStringValue ( const char *  s)
overridevirtual

Raises an error: cannot convert string to XML.

Implements cParImpl.

◆ setXMLValue()

virtual void setXMLValue ( cXMLElement node)
overridevirtual

Sets the value to the given cXMLElement tree.

Implements cParImpl.

◆ setExpression()

virtual void setExpression ( cExpression e)
overridevirtual

Sets the value to the given expression. This object will assume the responsibility to delete the expression object.

Implements cParImpl.

◆ boolValue()

virtual bool boolValue ( cComponent context) const
overridevirtual

Raises an error: cannot convert XML to bool.

Implements cParImpl.

◆ intValue()

virtual intpar_t intValue ( cComponent context) const
overridevirtual

Raises an error: cannot convert XML to integer.

Implements cParImpl.

◆ doubleValue()

virtual double doubleValue ( cComponent context) const
overridevirtual

Raises an error: cannot convert XML to double.

Implements cParImpl.

◆ stringValue()

virtual const char* stringValue ( cComponent context) const
overridevirtual

Raises an error: cannot convert XML to string.

Implements cParImpl.

◆ stdstringValue()

virtual std::string stdstringValue ( cComponent context) const
overridevirtual

Raises an error: cannot convert XML to string.

Implements cParImpl.

◆ xmlValue()

virtual cXMLElement* xmlValue ( cComponent context) const
overridevirtual

Returns the value of the parameter.

Implements cParImpl.

◆ getExpression()

virtual cExpression* getExpression ( ) const
overridevirtual

Returns pointer to the expression stored by the object, or nullptr.

Implements cParImpl.

◆ getType()

virtual Type getType ( ) const
overridevirtual

Returns XML.

Implements cParImpl.

◆ isNumeric()

virtual bool isNumeric ( ) const
overridevirtual

Returns false.

Implements cParImpl.

◆ convertToConst()

virtual void convertToConst ( cComponent context)
overridevirtual

Replaces for non-const values, replaces the stored expression with its evaluation.

Implements cParImpl.

◆ str()

virtual std::string str ( ) const
overridevirtual

Returns the value in text form.

Reimplemented from cObject.

◆ parse()

virtual void parse ( const char *  text)
overridevirtual

Converts from text.

Implements cParImpl.

◆ compare()

virtual int compare ( const cParImpl other) const
overridevirtual

Object comparison.

Reimplemented from cParImpl.

◆ forEachChild()

virtual void forEachChild ( cVisitor v,
cComponent context 
)
overridevirtual

Visits the XML element

Reimplemented from cParImpl.


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