Vault  4.1
Public Member Functions | Static Public Member Functions | Protected Member Functions
VBentoS8Array Class Reference

VBentoS8Array is a VBentoArray that holds an array of Vs8 values. More...

#include <vbento.h>

Inheritance diagram for VBentoS8Array:
VBentoArray VBentoAttribute

List of all members.

Public Member Functions

 VBentoS8Array ()
 Constructs with uninitialized name and an initially empty array.
 VBentoS8Array (VBinaryIOStream &stream)
 Constructs by reading from stream.
 VBentoS8Array (const VString &name)
 Constructs from supplied name, with an initially empty array.
 VBentoS8Array (const VString &name, const Vs8Array &elements)
 Constructs from supplied name and array to be copied.
virtual ~VBentoS8Array ()
 Destructor.
virtual VBentoAttributeclone () const
VBentoS8Arrayoperator= (const VBentoS8Array &rhs)
const Vs8Array & getValue () const
 Returns the attribute's value.
void setValue (const Vs8Array &elements)
 Sets the attribute's value.
void appendValue (Vs8 element)
 Appends to the attribute's value.
void appendValues (const Vs8Array &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 VBentoS8ArraynewFromBentoTextString (const VString &name, const VString &bentoText)
static const VStringDATA_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

Detailed Description

VBentoS8Array is a VBentoArray that holds an array of Vs8 values.

Definition at line 1961 of file vbento.h.


Constructor & Destructor Documentation

VBentoS8Array::VBentoS8Array ( VBinaryIOStream stream) [inline]

Constructs by reading from stream.

Parameters:
streamthe stream to read

Definition at line 1969 of file vbento.h.

References VBinaryIOStream::readS32(), and VBinaryIOStream::readS8().


Member Function Documentation

const Vs8Array& VBentoS8Array::getValue ( ) const [inline]

Returns the attribute's value.

Returns:
the value

Definition at line 1977 of file vbento.h.

void VBentoS8Array::setValue ( const Vs8Array &  elements) [inline]

Sets the attribute's value.

Parameters:
elementsthe vector of elements

Definition at line 1978 of file vbento.h.

void VBentoS8Array::appendValue ( Vs8  element) [inline]

Appends to the attribute's value.

Parameters:
elementthe element to append

Definition at line 1979 of file vbento.h.

void VBentoS8Array::appendValues ( const Vs8Array &  elements) [inline]

Appends to the attribute's value.

Parameters:
elementsthe vector of elements

Definition at line 1980 of file vbento.h.

virtual Vs64 VBentoS8Array::getDataLength ( ) const [inline, protected, virtual]

Returns the length of this object's raw data only.

Returns:
the length of the object's raw data

Implements VBentoAttribute.

Definition at line 1986 of file vbento.h.

virtual void VBentoS8Array::writeDataToBinaryStream ( VBinaryIOStream stream) const [inline, protected, virtual]

Writes the object's raw data only to a binary stream.

Parameters:
streamthe stream to write to

Implements VBentoAttribute.

Definition at line 1987 of file vbento.h.

References VBinaryIOStream::writeS32(), and VBinaryIOStream::writeS8().


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.