BByteStreamable.h File Reference


Detailed Description

Provides an interface for objects that can be converted to a BByteArray.

#include "GeoCore.h"
#include "DataType.h"
#include "BByteArray.h"

Namespaces

namespace  GeoCore

Classes

class  BByteStreamable
 Interface for objects that can be converted to a BByteArray. More...

Typedefs

typedef
boost::shared_ptr
< BByteStreamable > 
BByteStreamablePtr
 Defines a shared pointer that can be used to reference a BByteStreamable.

Functions

template<class T>
ScalarFromByteArray (const BByteArray &bytes, size_t &startPos)
 Template function to convert a BByteArray to a scalar data type.
template<class T>
size_t VectorComputeSize (const std::vector< T > &vec)
 Template function to compute the number of bytes required to store a vector of scalar data types.
template<class T>
std::vector< T > VectorFromByteArray (const BByteArray &bytes, size_t &startPos)
 Template function to convert a BByteArray to a collection of scalar data items.
template<class T>
BByteArray VectorToByteArray (const std::vector< T > &vec)
 Template function to convert a vector of scalar data types to a BByteArray.


GeoTranslate 5.0 From Blue Marble Geographics