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

VBentoFloat is a VBentoAttribute that holds a VFloat value. More...

#include <vbento.h>

Inheritance diagram for VBentoFloat:
VBentoAttribute

List of all members.

Public Member Functions

 VBentoFloat ()
 Constructs with uninitialized name and a 0 value.
 VBentoFloat (VBinaryIOStream &stream)
 Constructs by reading from stream.
 VBentoFloat (const VString &name, VFloat f)
 Constructs from supplied name and value.
virtual ~VBentoFloat ()
 Destructor.
virtual VBentoAttributeclone () const
VBentoFloatoperator= (const VBentoFloat &rhs)
virtual void getValueAsXMLText (VString &s) 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.
VFloat getValue () const
 Returns the attribute's value.
void setValue (VFloat f)
 Sets the attribute's value.

Static Public Member Functions

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.

Detailed Description

VBentoFloat is a VBentoAttribute that holds a VFloat value.

Definition at line 1252 of file vbento.h.


Constructor & Destructor Documentation

VBentoFloat::VBentoFloat ( VBinaryIOStream stream) [inline]

Constructs by reading from stream.

Parameters:
streamthe stream to read

Definition at line 1258 of file vbento.h.


Member Function Documentation

VFloat VBentoFloat::getValue ( ) const [inline]

Returns the attribute's value.

Returns:
a reference to the value object

Definition at line 1269 of file vbento.h.

void VBentoFloat::setValue ( VFloat  f) [inline]

Sets the attribute's value.

Parameters:
fthe attribute value

Definition at line 1270 of file vbento.h.

virtual Vs64 VBentoFloat::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 1274 of file vbento.h.

virtual void VBentoFloat::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 1275 of file vbento.h.

References VBinaryIOStream::writeFloat().


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

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