VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
byteDatatypeRep.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 #ifdef DtUSE_UTILITIES_NAMESPACE
13 namespace DtUSE_UTILITIES_NAMESPACE
14 {
15 #endif
20 {
21 public:
22 
25 
27  virtual ~DtByteDatatypeRep();
28 
31 
33  DtByteDatatypeRep& operator=(const DtByteDatatypeRep& rhs);
34 
36  virtual const char* datatype() const;
37 
39  virtual int byteVal(const void*) const;
40 
42  virtual DtString stringRep(const void* ptr, int* size = 0) const;
43 
45  virtual double numberRep(const void* ptr, int* size = 0) const;
46 
48  virtual int sizeNeeded(const void* ptr) const;
49 
51  virtual std::vector<char> valueFromStringRep(const DtString& stringRep) const;
52 
54  virtual int byteAlignment() const { return 1; };
55 };
56 
57 
58 
59 #ifdef DtUSE_UTILITIES_NAMESPACE
60 } // end of namespace DtUSE_UTILITIES_NAMESPACE
61 #endif
A type of datatype that can turn itself into a number (double) representation.
Definition: numberDatatypeRep.h:21
virtual int byteAlignment() const
The alignment size in bytes for this representation.
Definition: byteDatatypeRep.h:54
#define DT_DLL_OMTREADER
Definition: omtReader.h:27
OMT Datatype of type Byte - in network format which means Big Endian representation.
Definition: byteDatatypeRep.h:19
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)