VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
longDatatypeRep.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 DtNetU64;
19 
24 {
25 public:
26 
28  DtLongDatatypeRep(bool useImplicitPadding, bool unsign = false);
29 
31  virtual ~DtLongDatatypeRep();
32 
35 
37  DtLongDatatypeRep& operator=(const DtLongDatatypeRep& rhs);
38 
40  virtual const char* datatype() const;
41 
43  virtual long long longVal(const void*) const;
44 
46  virtual unsigned long long unsignedLongVal(const void*) const;
47 
49  virtual DtString stringRep(const void* ptr, int* size = 0) const;
50 
52  virtual double numberRep(const void* ptr, int* size = 0) const;
53 
55  virtual int sizeNeeded(const void* ptr) const;
56 
58  virtual void setUnsigned(bool);
59 
61  virtual std::vector<char> valueFromStringRep(const DtString& stringRep) const;
62 
64  virtual int byteAlignment() const { return 8; };
65 
66 protected:
67 
69  const DtNetU64* netValPtr(const void* ptr, int* size=0) const;
70 
71 protected:
73 };
74 
75 #ifdef DtUSE_UTILITIES_NAMESPACE
76 } // end of namespace DtUSE_UTILITIES_NAMESPACE
77 #endif
A type of datatype that can turn itself into a number (double) representation.
Definition: numberDatatypeRep.h:21
OMT Datatype of type Long - in network format which means Big Endian representation.
Definition: longDatatypeRep.h:23
A Network byte aligned 64 unsigned integer data structure.
Definition: vlNetTypes.h:209
Contains the DtString class declaration.
virtual int byteAlignment() const
The alignment size in bytes for this representation.
Definition: longDatatypeRep.h:64
#define DT_DLL_OMTREADER
Definition: omtReader.h:27
Instances of DtString are used to represent strings.
Definition: vlString.h:36
bool myIsUnsigned
Definition: longDatatypeRep.h:72

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)