VR-Link API Documentation for DIS
 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-2010 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 std::vector<char> valueFromStringRep(const DtString& stringRep) const;
48 
50  virtual int byteAlignment() const { return 1; };
51 };
52 
53 
54 
55 #ifdef DtUSE_UTILITIES_NAMESPACE
56 } // end of namespace DtUSE_UTILITIES_NAMESPACE
57 #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:50
Definition: enum8DatatypeRep.h:18
Instances of DtString are used to represent strings.
Definition: vlString.h:29
Definition: enumDatatypeRep.h:21

Document ID: Generated on Thu Sep 19 02:12:35 EDT 2024 from SVN revision 269601
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)