Vault
4.1
|
VBentoIPoint is a VBentoAttribute that holds a VIPoint value. More...
#include <vbento.h>
Public Member Functions | |
VBentoIPoint () | |
Constructs with uninitialized name and the current time as value. | |
VBentoIPoint (VBinaryIOStream &stream) | |
Constructs by reading from stream. | |
VBentoIPoint (const VString &name, const VIPoint &s) | |
Constructs from supplied name and value. | |
virtual | ~VBentoIPoint () |
Destructor. | |
virtual VBentoAttribute * | clone () const |
VBentoIPoint & | operator= (const VBentoIPoint &rhs) |
virtual bool | xmlAppearsAsArray () const |
True if XML output requires this attribute to use a separate child tag for its array elements; implies override of writeToXMLTextStream. | |
virtual void | writeToXMLTextStream (VTextIOStream &stream, bool lineWrap, int indentDepth) const |
Writes the attribute to a text stream as XML. | |
virtual void | getValueAsXMLText (VString &) 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 VIPoint & | getValue () const |
Returns the attribute's value. | |
void | setValue (const VIPoint &i) |
Sets the attribute's value. | |
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. |
VBentoIPoint is a VBentoAttribute that holds a VIPoint value.
VBentoIPoint::VBentoIPoint | ( | VBinaryIOStream & | stream | ) | [inline] |
void VBentoIPoint::writeToXMLTextStream | ( | VTextIOStream & | stream, |
bool | lineWrap, | ||
int | indentDepth | ||
) | const [virtual] |
Writes the attribute to a text stream as XML.
stream | the stream to write to |
lineWrap | true if each bento node should start on its own indented line |
indentDepth | if lineWrap is true, the indent level depth of this node |
Reimplemented from VBentoAttribute.
Definition at line 891 of file vbento.cpp.
References VBentoAttribute::getName().
const VIPoint& VBentoIPoint::getValue | ( | ) | const [inline] |
void VBentoIPoint::setValue | ( | const VIPoint & | i | ) | [inline] |
virtual Vs64 VBentoIPoint::getDataLength | ( | ) | const [inline, protected, virtual] |
Returns the length of this object's raw data only.
Implements VBentoAttribute.
virtual void VBentoIPoint::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.