MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
MAKLogger::DtLgrVariableLengthData Class Reference

Variable length data object compile-time compatible with the RTI 1516 implementation. More...

+ Collaboration diagram for MAKLogger::DtLgrVariableLengthData:

Public Member Functions

 DtLgrVariableLengthData ()
 
 DtLgrVariableLengthData (void const *inData, unsigned long inSize)
 Initialize the object with a copy of inData for inSize. More...
 
 DtLgrVariableLengthData (DtLgrVariableLengthData const &rhs)
 
 ~DtLgrVariableLengthData ()
 
bool operator< (const DtLgrVariableLengthData &rhs) const
 Comparison operator. More...
 
bool operator== (const DtLgrVariableLengthData &rhs) const
 Comparison operator. More...
 
DtLgrVariableLengthDataoperator= (DtLgrVariableLengthData const &rhs)
 Caller is free to delete rhs after the call. More...
 
void const * data () const
 This pointer should not be expected to be valid past the lifetime of this object, or past the next time this object is given new data. More...
 
void * data ()
 
unsigned int size () const
 
void setData (void const *inData, unsigned long inSize)
 Caller is free to delete inData after the call. More...
 
void setDataPointer (void *inData, unsigned long inSize)
 Manually sets the data pointer and size, existing data pointer is not deallocated. More...
 
void takeDataPointer (void *inData, unsigned long inSize)
 Caller gives up ownership of inData to this object. More...
 
void releaseDataPointer ()
 VariableLengthData releases ownership of memory and sets internal pointer to null. More...
 

Private Attributes

void * myData
 
unsigned long mySize
 

Detailed Description

Variable length data object compile-time compatible with the RTI 1516 implementation.

Constructor & Destructor Documentation

MAKLogger::DtLgrVariableLengthData::DtLgrVariableLengthData ( )
inline
MAKLogger::DtLgrVariableLengthData::DtLgrVariableLengthData ( void const *  inData,
unsigned long  inSize 
)
inline

Initialize the object with a copy of inData for inSize.

MAKLogger::DtLgrVariableLengthData::DtLgrVariableLengthData ( DtLgrVariableLengthData const &  rhs)
inline

References data(), and size().

MAKLogger::DtLgrVariableLengthData::~DtLgrVariableLengthData ( )
inline

Member Function Documentation

void const* MAKLogger::DtLgrVariableLengthData::data ( ) const
inline

This pointer should not be expected to be valid past the lifetime of this object, or past the next time this object is given new data.

Referenced by DtLgrVariableLengthData(), operator<(), operator=(), and operator==().

void* MAKLogger::DtLgrVariableLengthData::data ( )
inline
bool MAKLogger::DtLgrVariableLengthData::operator< ( const DtLgrVariableLengthData rhs) const
inline

Comparison operator.

References data(), and size().

DtLgrVariableLengthData& MAKLogger::DtLgrVariableLengthData::operator= ( DtLgrVariableLengthData const &  rhs)
inline

Caller is free to delete rhs after the call.

References data(), and size().

bool MAKLogger::DtLgrVariableLengthData::operator== ( const DtLgrVariableLengthData rhs) const
inline

Comparison operator.

References data(), and size().

void MAKLogger::DtLgrVariableLengthData::releaseDataPointer ( )
inline

VariableLengthData releases ownership of memory and sets internal pointer to null.

The caller is responsible for getting the data pointer first and managing the memory.

void MAKLogger::DtLgrVariableLengthData::setData ( void const *  inData,
unsigned long  inSize 
)
inline

Caller is free to delete inData after the call.

void MAKLogger::DtLgrVariableLengthData::setDataPointer ( void *  inData,
unsigned long  inSize 
)
inline

Manually sets the data pointer and size, existing data pointer is not deallocated.

If in data is void object essentially gives up repsonsibility to memory.

unsigned int MAKLogger::DtLgrVariableLengthData::size ( ) const
inline
void MAKLogger::DtLgrVariableLengthData::takeDataPointer ( void *  inData,
unsigned long  inSize 
)
inline

Caller gives up ownership of inData to this object.

This object assumes the responsibility of deleting inData when it is no longer needed.

Member Data Documentation

void* MAKLogger::DtLgrVariableLengthData::myData
private
unsigned long MAKLogger::DtLgrVariableLengthData::mySize
private

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

Document ID: Generated on Thu Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)