![]() |
Vault
4.1
|
VBentoString is a VBentoAttribute that holds a VString value. More...
#include <vbento.h>
Public Member Functions | |
VBentoString () | |
Constructs with uninitialized name and empty string. | |
VBentoString (VBinaryIOStream &stream) | |
Constructs by reading from stream. | |
VBentoString (const VString &name, const VString &s, const VString &encoding) | |
Constructs from supplied name and value. | |
virtual | ~VBentoString () |
Destructor. | |
virtual VBentoAttribute * | clone () const |
VBentoString & | operator= (const VBentoString &rhs) |
virtual void | getValueAsXMLText (VString &s) const |
Returns a string suitable for an XML attribute value, including escaping via _escapeXMLValue() if needed. | |
virtual void | getValueAsString (VString &s) const |
Returns a printable form of the attribute value. | |
virtual void | getValueAsBentoTextString (VString &s) const |
Returns a Bento Text form of the attribute value. | |
const VString & | getValue () const |
Returns the attribute's value. | |
void | setValue (const VString &s) |
Sets the attribute's value. | |
const VString & | getEncoding () const |
Returns the value's encoding name; empty implies UTF-8. | |
void | setEncoding (const VString &encoding) |
Sets the the value's encoding name; empty implies UTF-8. | |
Static Public Member Functions | |
static const VString & | DATA_TYPE_ID () |
The data type name / class ID string. | |
Protected Member Functions | |
virtual Vs64 | getDataLength () const |
Returns the length of this object's raw data only. | |
virtual void | writeDataToBinaryStream (VBinaryIOStream &stream) const |
Writes the object's raw data only to a binary stream. |
VBentoString is a VBentoAttribute that holds a VString value.
VBentoString::VBentoString | ( | VBinaryIOStream & | stream | ) | [inline] |
const VString& VBentoString::getValue | ( | ) | const [inline] |
void VBentoString::setValue | ( | const VString & | s | ) | [inline] |
const VString& VBentoString::getEncoding | ( | ) | const [inline] |
void VBentoString::setEncoding | ( | const VString & | encoding | ) | [inline] |
virtual Vs64 VBentoString::getDataLength | ( | ) | const [inline, protected, virtual] |
Returns the length of this object's raw data only.
Implements VBentoAttribute.
virtual void VBentoString::writeDataToBinaryStream | ( | VBinaryIOStream & | stream | ) | const [inline, protected, virtual] |
Writes the object's raw data only to a binary stream.
stream | the stream to write to |
Implements VBentoAttribute.
Definition at line 1189 of file vbento.h.
References VBinaryIOStream::writeString().