![]() |
Vault
4.1
|
VBentoChar is a VBentoAttribute that holds a VCodePoint value. More...
#include <vbento.h>
Public Member Functions | |
VBentoChar () | |
Constructs with uninitialized name and a space char. | |
VBentoChar (VBinaryIOStream &stream) | |
Constructs by reading from stream. | |
VBentoChar (const VString &name, const VCodePoint &c) | |
Constructs from supplied name and value. | |
virtual | ~VBentoChar () |
Destructor. | |
virtual VBentoAttribute * | clone () const |
VBentoChar & | operator= (const VBentoChar &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 VCodePoint & | getValue () const |
Returns the attribute's value. | |
void | setValue (const VCodePoint &c) |
Sets the attribute's value. | |
Static Public Member Functions | |
static const VString & | LEGACY_DATA_TYPE_ID () |
The data type name / class ID string. | |
static const VString & | DATA_TYPE_ID () |
The data type name / class ID string. | |
static VBentoChar * | newFromLegacyCharStream (VBinaryIOStream &stream) |
Constructs by reading 1 byte and using it as a Unicode code point value. | |
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. |
VBentoChar is a VBentoAttribute that holds a VCodePoint value.
In Vault versions up to 4.0:
VBentoChar::VBentoChar | ( | VBinaryIOStream & | stream | ) | [inline] |
const VCodePoint& VBentoChar::getValue | ( | ) | const [inline] |
void VBentoChar::setValue | ( | const VCodePoint & | c | ) | [inline] |
virtual Vs64 VBentoChar::getDataLength | ( | ) | const [inline, protected, virtual] |
Returns the length of this object's raw data only.
Implements VBentoAttribute.
Definition at line 1241 of file vbento.h.
References VCodePoint::getUTF8Length().
virtual void VBentoChar::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 1242 of file vbento.h.
References VCodePoint::writeToBinaryStream().