16 #ifndef __OMNETPP_CDISPLAYSTRING_H    17 #define __OMNETPP_CDISPLAYSTRING_H    61     enum { MAXARGS = 16 };  
    68        Tag() {name=
nullptr; numArgs=0;}
    76     mutable char *assembledString; 
    77     mutable bool assembledStringValid; 
    86     void doParse(
const char *s);
    88     bool doSetTagArg(
int tagindex, 
int index, 
const char *value);
    89     bool doSetTagArg(
const char *tagname, 
int index, 
const char *value);
    90     int doInsertTag(
const char *tagname, 
int atindex=0);
    91     bool doRemoveTag(
int tagindex);
    94     void assemble() 
const;
    96     bool pointsIntoBuffer(
char *s)
 const {
return s>=buffer && s<=bufferEnd;}
    97     static void strcatescaped(
char *d, 
const char *s);
   106     void setHostObject(
cComponent *o) {ownerComponent=o;}
   151     operator const char *() 
const  {
return str();}
   160     const char *str() 
const;
   165     void set(
const char *displaystr)  {parse(displaystr);}
   178     void parse(
const char *displaystr);
   190     void updateWith(
const char *s);
   199     bool containsTag(
const char *tagname) 
const;
   208     int getNumArgs(
const char *tagname) 
const;
   215     const char *getTagArg(
const char *tagname, 
int index) 
const;
   226     bool setTagArg(
const char *tagname, 
int index, 
const char *value);
   232     bool setTagArg(
const char *tagname, 
int index, 
long value);
   239     bool removeTag(
const char *tagname);
   249     int getNumTags() 
const;
   255     const char *getTagName(
int tagindex) 
const;
   261     int getTagIndex(
const char *tagname) 
const;
   270     int getNumArgs(
int tagindex) 
const;
   277     const char *getTagArg(
int tagindex, 
int index) 
const;
   288     bool setTagArg(
int tagindex, 
int index, 
const char *value);
   297     int insertTag(
const char *tagname, 
int atindex=0);
   304     bool removeTag(
int tagindex);
 Common base for module and channel classes. 
Definition: ccomponent.h:48
 
Definition: cabstracthistogram.h:21
 
Represents a display string. 
Definition: cdisplaystring.h:58
 
cDisplayString & operator=(const char *s)
Definition: cdisplaystring.h:146