Doesn't need to provide a operator cast because we subclass std::string itself!
|
Public Member Functions |
|
| Primitive () |
| | constructor
|
|
| Primitive (const std::string &v) |
| | casting constructor
|
|
| Primitive (const std::string &v, size_type off, size_type count=npos) |
| | casting constructor
|
|
| Primitive (const char *v, size_type count) |
| | casting constructor
|
|
| Primitive (const char *v) |
| | casting constructor
|
|
| Primitive (size_type count, char v) |
| | casting constructor
|
|
Primitive & | operator= (const std::string &v) |
| | assignment
|
|
Primitive & | operator= (const char *v) |
| | assignment
|
|
Primitive & | operator= (char v) |
| | assignment
|
|
const std::string & | operator * () const |
| | dereference will return data storage as a string (for uniformity with the other Primitives, although unnecessary with this instantiation)
|
|
const std::string * | operator-> () const |
| | returns a pointer to this (for uniformity with the other Primitives, although unnecessary with this instantiation)
|
|
void | loadXML (xmlNode *node) |
| | interprets node as a string
|
|
void | saveXML (xmlNode *node) const |
| | saves the content of the string into node
|
|
void | set (const std::string &str) |
| | assign a new value
|
|
std::string | get () const |
| | return current value as a string
|
|
virtual Primitive< std::string > * | clone () const __attribute__((warn_unused_result)) |
| | implements the clone function for Primitive<std::string>
|
Classes |
| struct | conversion_policy |