VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes

OMT Datatype of type Integer - in network format which means Big Endian representation. More...

+ Inheritance diagram for DtIntDatatypeRep:
+ Collaboration diagram for DtIntDatatypeRep:

Public Member Functions

 DtIntDatatypeRep (bool useImplicitPadding, bool unsign=false)
 Default Constructor. More...
 
virtual ~DtIntDatatypeRep ()
 Destructor. More...
 
 DtIntDatatypeRep (const DtIntDatatypeRep &orig)
 Copy Constructor. More...
 
DtIntDatatypeRepoperator= (const DtIntDatatypeRep &rhs)
 Assignment Operator. More...
 
virtual const char * datatype () const
 
virtual int intVal (const void *)
 
virtual unsigned unsignedIntVal (const void *) const
 
virtual DtString stringRep (const void *ptr, int *size=0) const
 
virtual double numberRep (const void *ptr, int *size=0) const
 
virtual void setUnsigned (bool)
 
virtual std::vector< char > valueFromStringRep (const DtString &stringRep) const
 
virtual int byteAlignment () const
 The alignment size in bytes for this representation. More...
 
- Public Member Functions inherited from DtDatatypeRep
 DtDatatypeRep (bool useImplicitPadding)
 
 DtDatatypeRep (const DtDatatypeRep &orig)
 Copy Constructor. More...
 
DtDatatypeRepoperator= (const DtDatatypeRep &rhs)
 Assignment Operator. More...
 

Static Public Member Functions

static int intValFromBuffer (const void *)
 

Protected Member Functions

const DtNetU32netValPtr (const void *ptr, int *size=0) const
 Align pointer if necessary and if provided pass back size of data and any added padding. More...
 

Protected Attributes

bool myIsUnsigned
 
- Protected Attributes inherited from DtDatatypeRep
bool myUseImplicitPadding
 

Detailed Description

OMT Datatype of type Integer - in network format which means Big Endian representation.

Constructor & Destructor Documentation

DtIntDatatypeRep::DtIntDatatypeRep ( bool  useImplicitPadding,
bool  unsign = false 
)

Default Constructor.

virtual DtIntDatatypeRep::~DtIntDatatypeRep ( )
virtual

Destructor.

DtIntDatatypeRep::DtIntDatatypeRep ( const DtIntDatatypeRep orig)

Copy Constructor.

Member Function Documentation

virtual int DtIntDatatypeRep::byteAlignment ( ) const
inlinevirtual

The alignment size in bytes for this representation.

Implements DtDatatypeRep.

virtual const char* DtIntDatatypeRep::datatype ( ) const
virtual
Returns
"int"

Implements DtDatatypeRep.

Reimplemented in DtIntLEDatatypeRep.

virtual int DtIntDatatypeRep::intVal ( const void *  )
virtual
Returns
the int val of this item NOTE: This function has been made static because it is used individually in the datatype manager when managing 1516 bitArrays
static int DtIntDatatypeRep::intValFromBuffer ( const void *  )
static
Returns
the int val of found at the given pointer NOTE: This function has been made static because it is used individually in the datatype manager when managing 1516 bitArrays
const DtNetU32* DtIntDatatypeRep::netValPtr ( const void *  ptr,
int size = 0 
) const
protected

Align pointer if necessary and if provided pass back size of data and any added padding.

virtual double DtIntDatatypeRep::numberRep ( const void *  ptr,
int size = 0 
) const
virtual
Returns
the number version of the byte stream

Reimplemented in DtIntLEDatatypeRep.

DtIntDatatypeRep& DtIntDatatypeRep::operator= ( const DtIntDatatypeRep rhs)

Assignment Operator.

virtual void DtIntDatatypeRep::setUnsigned ( bool  )
virtual

Reimplemented in DtIntLEDatatypeRep.

virtual DtString DtIntDatatypeRep::stringRep ( const void *  ptr,
int size = 0 
) const
virtual
Returns
an exact copy of the byte stream

Implements DtDatatypeRep.

Reimplemented in DtIntLEDatatypeRep.

virtual unsigned DtIntDatatypeRep::unsignedIntVal ( const void *  ) const
virtual
Returns
the unsigned int val of this item

Reimplemented in DtIntLEDatatypeRep.

virtual std::vector<char> DtIntDatatypeRep::valueFromStringRep ( const DtString stringRep) const
virtual
Returns
the reverse of string rep

Implements DtDatatypeRep.

Reimplemented in DtIntLEDatatypeRep.

Member Data Documentation

bool DtIntDatatypeRep::myIsUnsigned
protected

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

Document ID: Generated on Mon Apr 25 03:39:01 EDT 2022 from SVN revision 242502
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)