class StringNode
Inherited from: ValueNode.
Required header: <Eclog/StringNode.h>
The StringNode abstract class represents a string node in a document tree (See Document).
Name | Description |
---|---|
value | Gets the value. |
setNotation | Sets the string notation to be used when rendering the string. |
notation | Gets the string notation to be used when rendering the string. |
setDelimiter | Sets the string delimiter to be used when rendering the string. |
delimiter | Gets the string delimiter to be used when rendering the string. |
toStdString | Returns the value as a C++ string. |
assign | Assigns a new value to this node. |
virtual cstring value() const;
Gets the value.
cstring The value.
virtual void setNotation(StringNotation notation);
Sets the string notation to be used when rendering the string.
StringNotation notation The string notation.
virtual StringNotation notation() const;
Gets the string notation to be used when rendering the string.
StringNotation The string notation.
virtual void setDelimiter(cstring delimiter);
virtual void setDelimiter(cstring delimiter, ErrorCode& ec);
Sets the string delimiter to be used when rendering the string.
cstring delimiter The string delimiter.
ErrorCode&
ec Set to indicate what error occurred, if any.
An InvalidArgument
error occurs if delimiter is invalid.
virtual cstring delimiter() const;
Gets the string delimiter to be used when rendering the string.
cstring The string delimiter.
std::string toStdString() const;
Returns the value as a C++ string.
std::string
The value as a C++ string.
virtual void assign(const StringDesc& desc);
virtual void assign(const StringNode& other);
Assigns a new value to this node.
const
StringDesc&
A string description.
const
StringNode&
other Another string node.
If an error occurs, the value of this node remains untouched.