Vault  4.1
Public Member Functions | Protected Member Functions
VBentoArray Class Reference

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>

Inheritance diagram for VBentoArray:
VBentoAttribute VBentoBoolArray VBentoDoubleArray VBentoDurationArray VBentoInstantArray VBentoS16Array VBentoS32Array VBentoS64Array VBentoS8Array VBentoStringArray

List of all members.

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.
VBentoArrayoperator= (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

Detailed Description

VBentoArray is a VBentoAttribute that holds an array of homogeneous simple values; there is a subclass for each supported data type.

Definition at line 1931 of file vbento.h.


Constructor & Destructor Documentation

VBentoArray::VBentoArray ( VBinaryIOStream stream,
const VString dataType 
) [inline]

Constructs by reading from stream.

Parameters:
streamthe stream to read
dataTypethe data type of the concrete subclass

Definition at line 1935 of file vbento.h.


Member Function Documentation

virtual void VBentoArray::writeToXMLTextStream ( VTextIOStream stream,
bool  lineWrap,
int  indentDepth 
) const [pure virtual]

Writes the attribute to a text stream as XML.

Parameters:
streamthe stream to write to
lineWraptrue if each bento node should start on its own indented line
indentDepthif 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.


The documentation for this class was generated from the following files:

Copyright ©1997-2014 Trygve Isaacson. All rights reserved. This documentation was generated with Doxygen.