![]() |
Vault
4.1
|
VBentoDurationArray is a VBentoArray that holds an array of VDuration values. More...
#include <vbento.h>
Public Member Functions | |
VBentoDurationArray () | |
Constructs with uninitialized name and an initially empty array. | |
VBentoDurationArray (VBinaryIOStream &stream) | |
Constructs by reading from stream. | |
VBentoDurationArray (const VString &name) | |
Constructs from supplied name, with an initially empty array. | |
VBentoDurationArray (const VString &name, const VDurationVector &elements) | |
Constructs from supplied name and array to be copied. | |
virtual | ~VBentoDurationArray () |
Destructor. | |
virtual VBentoAttribute * | clone () const |
VBentoDurationArray & | operator= (const VBentoDurationArray &rhs) |
const VDurationVector & | getValue () const |
Returns the attribute's value. | |
void | setValue (const VDurationVector &elements) |
Sets the attribute's value. | |
void | appendValue (const VDuration &element) |
Appends to the attribute's value. | |
void | appendValues (const VDurationVector &elements) |
Appends to the attribute's value. | |
virtual void | writeToXMLTextStream (VTextIOStream &stream, bool lineWrap, int depth) const |
Override to form this complex attribute as a child tag with its own attributes. | |
Static Public Member Functions | |
static VBentoDurationArray * | newFromBentoTextString (const VString &name, const VString &bentoText) |
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. | |
virtual int | _getNumElements () const |
virtual void | _appendElementBentoText (int elementIndex, VString &s) const |
VBentoDurationArray is a VBentoArray that holds an array of VDuration values.
VBentoDurationArray::VBentoDurationArray | ( | VBinaryIOStream & | stream | ) | [inline] |
Constructs by reading from stream.
stream | the stream to read |
Definition at line 2242 of file vbento.h.
References VBinaryIOStream::readDuration(), and VBinaryIOStream::readS32().
const VDurationVector& VBentoDurationArray::getValue | ( | ) | const [inline] |
void VBentoDurationArray::setValue | ( | const VDurationVector & | elements | ) | [inline] |
void VBentoDurationArray::appendValue | ( | const VDuration & | element | ) | [inline] |
void VBentoDurationArray::appendValues | ( | const VDurationVector & | elements | ) | [inline] |
virtual Vs64 VBentoDurationArray::getDataLength | ( | ) | const [inline, protected, virtual] |
Returns the length of this object's raw data only.
Implements VBentoAttribute.
virtual void VBentoDurationArray::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 2260 of file vbento.h.
References VBinaryIOStream::writeDuration(), and VBinaryIOStream::writeS32().