VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
datatypeRep.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 #include <omtReader/omtReader.h>
11 #include <vlutil/vlString.h>
12 #include <sstream>
13 #ifdef DtUSE_UTILITIES_NAMESPACE
14 namespace DtUSE_UTILITIES_NAMESPACE
15 {
16 #endif
17 #define MAKE_STRING( msg ) ( ((std::ostringstream&) \
18  (std::ostringstream() << msg)).str() )
19 
25 {
26 public:
27 
28  // Constructor
29  DtDatatypeRep(bool useImplicitPadding);
30 
32  DtDatatypeRep(const DtDatatypeRep& orig);
33 
35  DtDatatypeRep& operator=(const DtDatatypeRep& rhs);
36 
38  virtual const char* datatype() const = 0;
39 
45  virtual DtString stringRep(const void* ptr, int* size = 0) const = 0;
46 
52  virtual std::vector<char> valueFromStringRep(const DtString& stringRep) const = 0;
53 
55  virtual int byteAlignment() const = 0;
56 
57 protected:
59 };
60 
61 inline DtDatatypeRep::DtDatatypeRep(bool useImplicitPadding)
62  : myUseImplicitPadding(useImplicitPadding)
63 {
64 };
65 
67  : myUseImplicitPadding(orig.myUseImplicitPadding)
68 {
69 };
70 
72 {
73  if (&rhs != this)
74  {
76  }
77  return *this;
78 }
79 
80 
81 #ifdef DtUSE_UTILITIES_NAMESPACE
82 } // end of namespace DtUSE_UTILITIES_NAMESPACE
83 #endif
DtDatatypeRep(bool useImplicitPadding)
Definition: datatypeRep.h:61
class DT_DLL_OMTREADER DtDatatypeRep
Definition: attributeFedNode.h:26
Contains the DtString class declaration.
Contains defines for export control for OMT Reader.
#define DT_DLL_OMTREADER
Definition: omtReader.h:27
A Datatype Representation is a class that can take a group of bytes and display them in a certain typ...
Definition: datatypeRep.h:24
DtDatatypeRep & operator=(const DtDatatypeRep &rhs)
Assignment Operator.
Definition: datatypeRep.h:71
Instances of DtString are used to represent strings.
Definition: vlString.h:36
bool myUseImplicitPadding
Definition: datatypeRep.h:58

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)