![]() |
Vault
4.1
|
VBentoArray is a VBentoAttribute that holds an array of homogeneous simple values; there is a subclass for each supported data type. More...
#include <vbento.h>
Public Member Functions | |
| VBentoArray () | |
| Constructs with uninitialized name and value. | |
| VBentoArray (VBinaryIOStream &stream, const VString &dataType) | |
| Constructs by reading from stream. | |
| VBentoArray (const VString &name, const VString &dataType) | |
| Constructs from supplied name and value. | |
| virtual | ~VBentoArray () |
| Destructor. | |
| VBentoArray & | operator= (const VBentoArray &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 depth) const =0 |
| 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. | |
Protected Member Functions | |
| virtual int | _getNumElements () const =0 |
| virtual void | _appendElementBentoText (int elementIndex, VString &s) const =0 |
VBentoArray is a VBentoAttribute that holds an array of homogeneous simple values; there is a subclass for each supported data type.
| VBentoArray::VBentoArray | ( | VBinaryIOStream & | stream, |
| const VString & | dataType | ||
| ) | [inline] |
| virtual void VBentoArray::writeToXMLTextStream | ( | VTextIOStream & | stream, |
| bool | lineWrap, | ||
| int | indentDepth | ||
| ) | const [pure 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.
Implemented in VBentoInstantArray, VBentoDurationArray, VBentoDoubleArray, VBentoBoolArray, VBentoStringArray, VBentoS64Array, VBentoS32Array, VBentoS16Array, and VBentoS8Array.