BByteStreamable Class Reference

#include <BByteStreamable.h>

Inheritance diagram for BByteStreamable:

Inheritance graph
[legend]

List of all members.


Detailed Description

Interface for objects that can be converted to a BByteArray.

Public Member Functions

virtual size_t ComputeSize (void) const =0
 Computes the size of the BByteArray required to store this object.
virtual void FromByteArray (const BByteArray &bytes, size_t &startPos)=0
 Initializes an instance of this object from a BByteArray.
virtual BByteArray ToByteArray (void) const =0
 Stores this object in a BByteArray.

Protected Member Functions

 BByteStreamable ()
 Default constructor.

Constructor & Destructor Documentation

BByteStreamable (  )  [inline, protected]

Default constructor.


Member Function Documentation

virtual size_t ComputeSize ( void   )  const [pure virtual]

Computes the size of the BByteArray required to store this object.

Returns:
The size of the BByteArray.

Implemented in BAggregateArea, BAggregateGeo, BAggregateLinear, BAggregatePoint, BArc, BAreaGeo, BAttribute, BAttributes, BBlockRefFeature, BColor, BDonut, BEllipse, BExternalRefFeature, BFeature, BFillStyle, BFont, BGeometry, BKeyValuePairs, BLine, BLinearGeo, BLineStyle, BMetadataContainer, BMultilineTextFeature, BPath, BPoint, BPointGeo, BPoints, BPolygon, BPolyline, BRect, BRendition, BRotation, BRoundRectangle, BSegLink, BSegment, BString, BSymbolFeature, BTextFeature, BTextLine, BTextLines, and BVariant.

virtual void FromByteArray ( const BByteArray bytes,
size_t &  startPos 
) [pure virtual]

Initializes an instance of this object from a BByteArray.

Parameters:
bytes The BByteArray containing the byte representation for this object.
startPos The position in the BByteArray where the byte representation begins. This value will be updated to point to the byte past the end of this object in the byte array.

Implemented in BAggregateArea, BAggregateGeo, BAggregateLinear, BAggregatePoint, BArc, BAreaGeo, BAttribute, BAttributes, BBlockRefFeature, BColor, BDonut, BEllipse, BExternalRefFeature, BFeature, BFillStyle, BFont, BGeometry, BKeyValuePairs, BLine, BLinearGeo, BLineStyle, BMetadataContainer, BMultilineTextFeature, BPath, BPoint, BPointGeo, BPoints, BPolygon, BPolyline, BRect, BRendition, BRotation, BRoundRectangle, BSegLink, BSegment, BString, BSymbolFeature, BTextFeature, BTextLine, BTextLines, and BVariant.

virtual BByteArray ToByteArray ( void   )  const [pure virtual]

Stores this object in a BByteArray.

Returns:
A BByteArray that stores the contents of this object.

Implemented in BAggregateArea, BAggregateGeo, BAggregateLinear, BAggregatePoint, BArc, BAreaGeo, BAttribute, BAttributes, BBlockRefFeature, BColor, BDonut, BEllipse, BExternalRefFeature, BFeature, BFillStyle, BFont, BGeometry, BKeyValuePairs, BLine, BLinearGeo, BLineStyle, BMetadataContainer, BMultilineTextFeature, BPath, BPoint, BPointGeo, BPoints, BPolygon, BPolyline, BRect, BRendition, BRotation, BRoundRectangle, BSegLink, BSegment, BString, BSymbolFeature, BTextFeature, BTextLine, BTextLines, and BVariant.


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

GeoTranslate 5.0 From Blue Marble Geographics