VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtHlaBufferSerialize Namespace Reference

This namespace contains a set of utility functions for encoding and decoding various data types to/from a byte array in the format expected by an HLA federate. More...

Functions

DT_DLL_vrfutil charencode (const DtRwBoolean &val, char *buffer)
 Serializes the provided value val into buffer.
DT_DLL_vrfutil charencode (const DtRwReal &val, char *buffer)
DT_DLL_vrfutil charencode (const DtRwReal32 &val, char *buffer)
DT_DLL_vrfutil charencode (const DtRwReal64 &val, char *buffer)
DT_DLL_vrfutil charencode (const DtRwInt &val, char *buffer)
DT_DLL_vrfutil charencode (const DtRwInt8 &val, char *buffer)
DT_DLL_vrfutil charencode (const DtRwInt16 &val, char *buffer)
DT_DLL_vrfutil charencode (const DtRwInt32 &val, char *buffer)
DT_DLL_vrfutil charencode (const DtRwString &val, char *buffer)
DT_DLL_vrfutil charencode (const DtRwVector &val, char *buffer)
DT_DLL_vrfutil charencode (const int &val, char *buffer)
DT_DLL_vrfutil charencode (const bool &val, char *buffer)
DT_DLL_vrfutil charencode (const char &val, char *buffer)
DT_DLL_vrfutil charencode (const DtVector32 &val, char *buffer)
DT_DLL_vrfutil charencode (const DtVector64 &val, char *buffer)
DT_DLL_vrfutil charencode (const DtString &val, char *buffer)
DT_DLL_vrfutil charencode (const DtObjectType &val, char *buffer)
DT_DLL_vrfutil charencode (const DtEntityIdentifier &val, char *buffer)
DT_DLL_vrfutil charencode (const DtRangeItem &val, char *buffer)
DT_DLL_vrfutil charencode (const DtRangeItems &val, char *buffer)
DT_DLL_vrfutil charencode (const DtVrfExtendedRecordData &val, char *buffer)
DT_DLL_vrfutil const chardecode (DtRwBoolean &val, const char *buffer)
 Decodes a value from buffer and places the result in val of the type specified by val.
DT_DLL_vrfutil const chardecode (DtRwReal &val, const char *buffer)
DT_DLL_vrfutil const chardecode (DtRwReal32 &val, const char *buffer)
DT_DLL_vrfutil const chardecode (DtRwReal64 &val, const char *buffer)
DT_DLL_vrfutil const chardecode (DtRwInt &val, const char *buffer)
DT_DLL_vrfutil const chardecode (DtRwInt8 &val, const char *buffer)
DT_DLL_vrfutil const chardecode (DtRwInt16 &val, const char *buffer)
DT_DLL_vrfutil const chardecode (DtRwInt32 &val, const char *buffer)
DT_DLL_vrfutil const chardecode (DtRwString &val, const char *buffer)
DT_DLL_vrfutil const chardecode (DtRwVector &val, const char *buffer)
DT_DLL_vrfutil const chardecode (int &val, const char *buffer)
DT_DLL_vrfutil const chardecode (bool &val, const char *buffer)
DT_DLL_vrfutil const chardecode (char &val, const char *buffer)
DT_DLL_vrfutil const chardecode (DtVector32 &val, const char *buffer)
DT_DLL_vrfutil const charencode (DtVector64 &val, const char *buffer)
DT_DLL_vrfutil const chardecode (DtString &val, const char *buffer)
DT_DLL_vrfutil const chardecode (DtObjectType &val, const char *buffer)
DT_DLL_vrfutil const chardecode (DtEntityIdentifier &val, const char *buffer)
DT_DLL_vrfutil const chardecode (DtRangeItem &val, const char *buffer)
DT_DLL_vrfutil const chardecode (DtRangeItems &val, const char *buffer)
DT_DLL_vrfutil const chardecode (DtVrfExtendedRecordData &val, const char *buffer)
DT_DLL_vrfutil int getSize (const DtRwBoolean &v)
 The number of bytes required to encode the value.
DT_DLL_vrfutil int getSize (const DtRwReal &v)
DT_DLL_vrfutil int getSize (const DtRwReal32 &v)
DT_DLL_vrfutil int getSize (const DtRwReal64 &v)
DT_DLL_vrfutil int getSize (const DtRwInt &v)
DT_DLL_vrfutil int getSize (const DtRwInt8 &v)
DT_DLL_vrfutil int getSize (const DtRwInt16 &v)
DT_DLL_vrfutil int getSize (const DtRwInt32 &v)
DT_DLL_vrfutil int getSize (const DtRwString &v)
DT_DLL_vrfutil int getSize (const DtRwVector &v)
DT_DLL_vrfutil int getSize (const int &v)
DT_DLL_vrfutil int getSize (const bool &v)
DT_DLL_vrfutil int getSize (const char &v)
DT_DLL_vrfutil int getSize (const DtVector32 &v)
DT_DLL_vrfutil int getSize (const DtVector64 &v)
DT_DLL_vrfutil int getSize (const DtString &v)
DT_DLL_vrfutil int getSize (const DtObjectType &v)
DT_DLL_vrfutil int getSize (const DtEntityIdentifier &v)
DT_DLL_vrfutil int getSize (const DtRangeItem &v)
DT_DLL_vrfutil int getSize (const DtRangeItems &v)
DT_DLL_vrfutil int getSize (const DtVrfExtendedRecordData &v)

Detailed Description

This namespace contains a set of utility functions for encoding and decoding various data types to/from a byte array in the format expected by an HLA federate.

In many cases the encoding will be the same as DtBufferSerialize, but in some cases not. Each data type has a encode(), decode(), and getSize() method defined. Use of the templated versions require that any types passed into the template have these same methods defined.

Function Documentation

DT_DLL_vrfutil char* DtHlaBufferSerialize::encode ( const DtRwBoolean val,
char buffer 
)

Serializes the provided value val into buffer.

buffer must have at least the number of bytes returned by getSize() for the same parameter. No length checking is done on buffer.

Returns
The pointer for buffer following the serialization. This value may be passed into the next call to encode().
DT_DLL_vrfutil char* DtHlaBufferSerialize::encode ( const DtRwReal val,
char buffer 
)
DT_DLL_vrfutil char* DtHlaBufferSerialize::encode ( const DtRwReal32 val,
char buffer 
)
DT_DLL_vrfutil char* DtHlaBufferSerialize::encode ( const DtRwReal64 val,
char buffer 
)
DT_DLL_vrfutil char* DtHlaBufferSerialize::encode ( const DtRwInt val,
char buffer 
)
DT_DLL_vrfutil char* DtHlaBufferSerialize::encode ( const DtRwInt8 val,
char buffer 
)
DT_DLL_vrfutil char* DtHlaBufferSerialize::encode ( const DtRwInt16 val,
char buffer 
)
DT_DLL_vrfutil char* DtHlaBufferSerialize::encode ( const DtRwInt32 val,
char buffer 
)
DT_DLL_vrfutil char* DtHlaBufferSerialize::encode ( const DtRwString val,
char buffer 
)
DT_DLL_vrfutil char* DtHlaBufferSerialize::encode ( const DtRwVector val,
char buffer 
)
DT_DLL_vrfutil char* DtHlaBufferSerialize::encode ( const int val,
char buffer 
)
DT_DLL_vrfutil char* DtHlaBufferSerialize::encode ( const bool val,
char buffer 
)
DT_DLL_vrfutil char* DtHlaBufferSerialize::encode ( const char val,
char buffer 
)
DT_DLL_vrfutil char* DtHlaBufferSerialize::encode ( const DtVector32 &  val,
char buffer 
)
DT_DLL_vrfutil char* DtHlaBufferSerialize::encode ( const DtVector64 &  val,
char buffer 
)
DT_DLL_vrfutil char* DtHlaBufferSerialize::encode ( const DtString val,
char buffer 
)
DT_DLL_vrfutil char* DtHlaBufferSerialize::encode ( const DtObjectType val,
char buffer 
)
DT_DLL_vrfutil char* DtHlaBufferSerialize::encode ( const DtEntityIdentifier &  val,
char buffer 
)
DT_DLL_vrfutil char* DtHlaBufferSerialize::encode ( const DtRangeItem val,
char buffer 
)
DT_DLL_vrfutil char* DtHlaBufferSerialize::encode ( const DtRangeItems val,
char buffer 
)
DT_DLL_vrfutil char* DtHlaBufferSerialize::encode ( const DtVrfExtendedRecordData val,
char buffer 
)
DT_DLL_vrfutil const char* DtHlaBufferSerialize::decode ( DtRwBoolean val,
const char buffer 
)

Decodes a value from buffer and places the result in val of the type specified by val.

Buffer must contain a value created by the corresponding call to encode().

Returns
The pointer to buffer after the decode. This is appropriate to pass into the next call of decode().
DT_DLL_vrfutil const char* DtHlaBufferSerialize::decode ( DtRwReal val,
const char buffer 
)
DT_DLL_vrfutil const char* DtHlaBufferSerialize::decode ( DtRwReal32 val,
const char buffer 
)
DT_DLL_vrfutil const char* DtHlaBufferSerialize::decode ( DtRwReal64 val,
const char buffer 
)
DT_DLL_vrfutil const char* DtHlaBufferSerialize::decode ( DtRwInt val,
const char buffer 
)
DT_DLL_vrfutil const char* DtHlaBufferSerialize::decode ( DtRwInt8 val,
const char buffer 
)
DT_DLL_vrfutil const char* DtHlaBufferSerialize::decode ( DtRwInt16 val,
const char buffer 
)
DT_DLL_vrfutil const char* DtHlaBufferSerialize::decode ( DtRwInt32 val,
const char buffer 
)
DT_DLL_vrfutil const char* DtHlaBufferSerialize::decode ( DtRwString val,
const char buffer 
)
DT_DLL_vrfutil const char* DtHlaBufferSerialize::decode ( DtRwVector val,
const char buffer 
)
DT_DLL_vrfutil const char* DtHlaBufferSerialize::decode ( int val,
const char buffer 
)
DT_DLL_vrfutil const char* DtHlaBufferSerialize::decode ( bool val,
const char buffer 
)
DT_DLL_vrfutil const char* DtHlaBufferSerialize::decode ( char val,
const char buffer 
)
DT_DLL_vrfutil const char* DtHlaBufferSerialize::decode ( DtVector32 &  val,
const char buffer 
)
DT_DLL_vrfutil const char* DtHlaBufferSerialize::encode ( DtVector64 &  val,
const char buffer 
)
DT_DLL_vrfutil const char* DtHlaBufferSerialize::decode ( DtString val,
const char buffer 
)
DT_DLL_vrfutil const char* DtHlaBufferSerialize::decode ( DtObjectType val,
const char buffer 
)
DT_DLL_vrfutil const char* DtHlaBufferSerialize::decode ( DtEntityIdentifier &  val,
const char buffer 
)
DT_DLL_vrfutil const char* DtHlaBufferSerialize::decode ( DtRangeItem val,
const char buffer 
)
DT_DLL_vrfutil const char* DtHlaBufferSerialize::decode ( DtRangeItems val,
const char buffer 
)
DT_DLL_vrfutil const char* DtHlaBufferSerialize::decode ( DtVrfExtendedRecordData val,
const char buffer 
)
DT_DLL_vrfutil int DtHlaBufferSerialize::getSize ( const DtRwBoolean v)

The number of bytes required to encode the value.

DT_DLL_vrfutil int DtHlaBufferSerialize::getSize ( const DtRwReal v)
DT_DLL_vrfutil int DtHlaBufferSerialize::getSize ( const DtRwReal32 v)
DT_DLL_vrfutil int DtHlaBufferSerialize::getSize ( const DtRwReal64 v)
DT_DLL_vrfutil int DtHlaBufferSerialize::getSize ( const DtRwInt v)
DT_DLL_vrfutil int DtHlaBufferSerialize::getSize ( const DtRwInt8 v)
DT_DLL_vrfutil int DtHlaBufferSerialize::getSize ( const DtRwInt16 v)
DT_DLL_vrfutil int DtHlaBufferSerialize::getSize ( const DtRwInt32 v)
DT_DLL_vrfutil int DtHlaBufferSerialize::getSize ( const DtRwString v)
DT_DLL_vrfutil int DtHlaBufferSerialize::getSize ( const DtRwVector v)
DT_DLL_vrfutil int DtHlaBufferSerialize::getSize ( const int v)
DT_DLL_vrfutil int DtHlaBufferSerialize::getSize ( const bool v)
DT_DLL_vrfutil int DtHlaBufferSerialize::getSize ( const char v)
DT_DLL_vrfutil int DtHlaBufferSerialize::getSize ( const DtVector32 &  v)
DT_DLL_vrfutil int DtHlaBufferSerialize::getSize ( const DtVector64 &  v)
DT_DLL_vrfutil int DtHlaBufferSerialize::getSize ( const DtString v)
DT_DLL_vrfutil int DtHlaBufferSerialize::getSize ( const DtObjectType v)
DT_DLL_vrfutil int DtHlaBufferSerialize::getSize ( const DtEntityIdentifier &  v)
DT_DLL_vrfutil int DtHlaBufferSerialize::getSize ( const DtRangeItem v)
DT_DLL_vrfutil int DtHlaBufferSerialize::getSize ( const DtRangeItems v)
DT_DLL_vrfutil int DtHlaBufferSerialize::getSize ( const DtVrfExtendedRecordData v)

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)