VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
doubleDatatypeRep.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
3 ** All rights reserved.
4 *******************************************************************************/
7 #pragma once
8 
9 
10 
11 #include "numberDatatypeRep.h"
12 
13 #include <vlutil/vlString.h>
14 #ifdef DtUSE_UTILITIES_NAMESPACE
15 namespace DtUSE_UTILITIES_NAMESPACE
16 {
17 #endif
18 class DtNetFloat64;
19 
24 {
25 public:
27 
29  DtDoubleDatatypeRep(bool useImplicitPadding);
30 
32  virtual ~DtDoubleDatatypeRep();
33 
36 
38  DtDoubleDatatypeRep& operator=(const DtDoubleDatatypeRep& rhs);
39 
41  virtual const char* datatype() const;
42 
44  virtual double doubleVal(const void*) const;
45 
47  virtual DtString stringRep(const void* ptr, int* size = 0) const;
48 
50  virtual double numberRep(const void* ptr, int* size = 0) const;
51 
53  virtual int sizeNeeded(const void* ptr) const;
54 
56  virtual std::vector<char> valueFromStringRep(const DtString& stringRep) const;
57 
59  virtual int byteAlignment() const { return 8; };
60 
61 protected:
62 
64  const DtNetFloat64* netValPtr(const void* ptr, int* size=0) const;
65 
66 };
67 
68 
69 
70 #ifdef DtUSE_UTILITIES_NAMESPACE
71 } // end of namespace DtUSE_UTILITIES_NAMESPACE
72 #endif
A type of datatype that can turn itself into a number (double) representation.
Definition: numberDatatypeRep.h:21
Contains the DtString class declaration.
OMT Datatype of type Double - in network format which means Big Endian representation.
Definition: doubleDatatypeRep.h:23
#define DT_DLL_OMTREADER
Definition: omtReader.h:27
virtual int byteAlignment() const
The alignment size in bytes for this representation.
Definition: doubleDatatypeRep.h:59
Network-order 64-bit IEEE-754 floating-point quantity.
Definition: vlNetTypes.h:174
static int defaultFloatPrecision
Definition: doubleDatatypeRep.h:26
Instances of DtString are used to represent strings.
Definition: vlString.h:36

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)