VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
enum8DatatypeRep.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 "enumDatatypeRep.h"
12 #include <vlutil/vlString.h>
13 #ifdef DtUSE_UTILITIES_NAMESPACE
14 namespace DtUSE_UTILITIES_NAMESPACE
15 {
16 #endif
17 // Data representation type for 8 bit enumerations
19 {
20 public:
21 
24 
26  virtual ~DtEnum8DatatypeRep();
27 
30 
32  DtEnum8DatatypeRep& operator=(const DtEnum8DatatypeRep& rhs);
33 
35  virtual const char* datatype() const;
36 
38  virtual unsigned int enumVal(const void*, int* size = 0) const;
39 
41  virtual DtString stringRep(const void* ptr, int* size = 0) const;
42 
44  virtual double numberRep(const void* ptr, int* size = 0) const;
45 
47  virtual int sizeNeeded(const void* ptr) const;
48 
50  virtual std::vector<char> valueFromStringRep(const DtString& stringRep) const;
51 
53  virtual int byteAlignment() const { return 1; };
54 };
55 
56 
57 
58 #ifdef DtUSE_UTILITIES_NAMESPACE
59 } // end of namespace DtUSE_UTILITIES_NAMESPACE
60 #endif
Contains the DtString class declaration.
#define DT_DLL_OMTREADER
Definition: omtReader.h:27
virtual int byteAlignment() const
The alignment size in bytes for this representation.
Definition: enum8DatatypeRep.h:53
Definition: enum8DatatypeRep.h:18
Instances of DtString are used to represent strings.
Definition: vlString.h:36
Definition: enumDatatypeRep.h:21

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)