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 | Protected Member Functions
DtNumberDatatypeRep Class Referenceabstract

A type of datatype that can turn itself into a number (double) representation. More...

+ Inheritance diagram for DtNumberDatatypeRep:
+ Collaboration diagram for DtNumberDatatypeRep:

Public Member Functions

 DtNumberDatatypeRep (bool useImplicitPadding)
 
 DtNumberDatatypeRep (const DtNumberDatatypeRep &orig)
 
virtual double numberRep (const void *ptr, int *size=0) const =0
 
virtual int sizeNeeded (const void *ptr) const =0
 
- Public Member Functions inherited from DtDatatypeRep
 DtDatatypeRep (bool useImplicitPadding)
 
 DtDatatypeRep (const DtDatatypeRep &orig)
 Copy Constructor. More...
 
DtDatatypeRepoperator= (const DtDatatypeRep &rhs)
 Assignment Operator. More...
 
virtual const char * datatype () const =0
 
virtual DtString stringRep (const void *ptr, int *size=0) const =0
 Given a byte string, returns a character string in a format that is easily read by a person. More...
 
virtual std::vector< char > valueFromStringRep (const DtString &stringRep) const =0
 The reverse of string rep, given a character string, this returns an unformatted byte stream. More...
 
virtual int byteAlignment () const =0
 The alignment size in bytes for this representation. More...
 

Protected Member Functions

int adjustedSizeNeeded (const void *ptr, int repSize) const
 

Additional Inherited Members

- Protected Attributes inherited from DtDatatypeRep
bool myUseImplicitPadding
 

Detailed Description

A type of datatype that can turn itself into a number (double) representation.

Constructor & Destructor Documentation

DtNumberDatatypeRep::DtNumberDatatypeRep ( bool  useImplicitPadding)
inline
DtNumberDatatypeRep::DtNumberDatatypeRep ( const DtNumberDatatypeRep orig)
inline

Member Function Documentation

int DtNumberDatatypeRep::adjustedSizeNeeded ( const void *  ptr,
int  repSize 
) const
inlineprotected
Returns
the number of bytes needed for the data representation of the given size size is adjusted for alignment if needed

References alignPtr(), and DtDatatypeRep::myUseImplicitPadding.

virtual double DtNumberDatatypeRep::numberRep ( const void *  ptr,
int size = 0 
) const
pure virtual
virtual int DtNumberDatatypeRep::sizeNeeded ( const void *  ptr) const
pure virtual

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

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)