| 
    OMNeT++ Simulation Library
    5.4.1
    
   | 
 
#include <cstringparimpl.h>
A cParImpl subclass that stores a module/channel parameter of the type string.
  
 Public Member Functions | |
Constructors, destructor, assignment.  | |
| cStringParImpl () | |
| cStringParImpl (const cStringParImpl &other) | |
| virtual | ~cStringParImpl () | 
| void | operator= (const cStringParImpl &otherpar) | 
Redefined cObject member functions  | |
| virtual cStringParImpl * | dup () 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 cXMLElement * | xmlValue (cComponent *context) const override | 
| virtual cExpression * | getExpression () 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 | 
  Public Member Functions inherited from cParImpl | |
| cParImpl () | |
| cParImpl (const cParImpl &other) | |
| virtual | ~cParImpl () | 
| cParImpl & | operator= (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) | 
| virtual void | forEachChild (cVisitor *v, cComponent *context) | 
  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) | |
| virtual | ~cObject () | 
| virtual const char * | getClassName () const | 
| bool | isName (const char *s) const | 
| virtual const char * | getFullName () const | 
| virtual std::string | getFullPath () const | 
| const cObject * | getThisPtr () const | 
| virtual _OPPDEPRECATED std::string | info () const | 
| virtual _OPPDEPRECATED std::string | detailedInfo () const | 
| virtual cObject * | getOwner () const | 
| virtual bool | isOwnedObject () const | 
| virtual void | forEachChild (cVisitor *v) | 
| cObject * | findObject (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 cParImpl * | createWithType (Type type) | 
  Protected Member Functions inherited from cObject | |
| virtual void | take (cOwnedObject *obj) | 
| virtual void | drop (cOwnedObject *obj) | 
| void | dropAndDelete (cOwnedObject *obj) | 
      
  | 
  explicit | 
Constructor.
      
  | 
  inline | 
Copy constructor.
      
  | 
  virtual | 
Destructor.
| void operator= | ( | const cStringParImpl & | otherpar | ) | 
Assignment operator.
      
  | 
  inlineoverridevirtual | 
Creates and returns an exact copy of this object.
Reimplemented from cParImpl.
      
  | 
  overridevirtual | 
Serializes the object into a buffer.
Reimplemented from cParImpl.
      
  | 
  overridevirtual | 
Deserializes the object from a buffer.
Reimplemented from cParImpl.
      
  | 
  overridevirtual | 
Raises an error: cannot convert bool to string.
Implements cParImpl.
      
  | 
  overridevirtual | 
Raises an error: cannot convert integer to string.
Implements cParImpl.
      
  | 
  overridevirtual | 
Raises an error: cannot convert double to string.
Implements cParImpl.
      
  | 
  overridevirtual | 
Sets the value to the given string. nullptr is accepted as "".
Implements cParImpl.
      
  | 
  overridevirtual | 
Raises an error: cannot convert XML to long.
Implements cParImpl.
      
  | 
  overridevirtual | 
Sets the value to the given expression. This object will assume the responsibility to delete the expression object.
Implements cParImpl.
      
  | 
  overridevirtual | 
Raises an error: cannot convert string to bool.
Implements cParImpl.
      
  | 
  overridevirtual | 
Raises an error: cannot convert string to integer.
Implements cParImpl.
      
  | 
  overridevirtual | 
Raises an error: cannot convert string to double.
Implements cParImpl.
      
  | 
  overridevirtual | 
Returns the value of the parameter.
Implements cParImpl.
      
  | 
  overridevirtual | 
Returns the value of the parameter.
Implements cParImpl.
      
  | 
  overridevirtual | 
Raises an error: cannot convert string to XML.
Implements cParImpl.
      
  | 
  overridevirtual | 
Returns pointer to the expression stored by the object, or nullptr.
Implements cParImpl.
      
  | 
  overridevirtual | 
Returns STRING.
Implements cParImpl.
      
  | 
  overridevirtual | 
Returns false.
Implements cParImpl.
      
  | 
  overridevirtual | 
Replaces for non-const values, replaces the stored expression with its evaluation.
Implements cParImpl.
      
  | 
  overridevirtual | 
Returns the value in text form.
Reimplemented from cObject.
      
  | 
  overridevirtual | 
Converts from text.
Implements cParImpl.
      
  | 
  overridevirtual | 
Object comparison.
Reimplemented from cParImpl.