14 #ifdef DtUSE_UTILITIES_NAMESPACE
15 namespace DtUSE_UTILITIES_NAMESPACE
28 virtual double numberRep(
const void* ptr,
int* size = 0)
const = 0;
31 virtual int sizeNeeded(
const void* ptr)
const = 0;
37 int adjustedSizeNeeded(
const void* ptr,
int repSize)
const;
53 int neededSize = repSize;
56 const char* alignedPtr =
reinterpret_cast<const char*
>(
alignPtr(ptr, repSize));
57 neededSize += (alignedPtr - (
const char*)ptr);
64 #ifdef DtUSE_UTILITIES_NAMESPACE
A type of datatype that can turn itself into a number (double) representation.
Definition: numberDatatypeRep.h:21
DtNumberDatatypeRep(bool useImplicitPadding)
Definition: numberDatatypeRep.h:41
#define DT_DLL_OMTREADER
Definition: omtReader.h:27
A Datatype Representation is a class that can take a group of bytes and display them in a certain typ...
Definition: datatypeRep.h:24
const void * alignPtr(const void *ptr, DtMachineSize alignment)
Adjust the given pointer to the given byte alignment (in bytes)
Definition: vlUtil.h:382
provides basic Operating Independent Methods useful to a federate
int adjustedSizeNeeded(const void *ptr, int repSize) const
Definition: numberDatatypeRep.h:51
bool myUseImplicitPadding
Definition: datatypeRep.h:58