VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
boolDatatypeRep.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
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
21 {
22 public:
23 
26 
28  virtual ~DtBoolDatatypeRep();
29 
32 
34  DtBoolDatatypeRep& operator=(const DtBoolDatatypeRep& rhs);
35 
37  virtual const char* datatype() const;
38 
40  virtual bool boolVal(const void*) const;
41 
43  virtual DtString stringRep(const void* ptr, int* size = 0) const;
44 
46  virtual double numberRep(const void* ptr, int* size = 0) const;
47 
49  virtual std::vector<char> valueFromStringRep(const DtString& stringRep) const;
50 
52  virtual int byteAlignment() const { return 1; };
53 };
54 
55 
56 #ifdef DtUSE_UTILITIES_NAMESPACE
57 } // end of namespace DtUSE_UTILITIES_NAMESPACE
58 #endif
A type of datatype that can turn itself into a number (double) representation.
Definition: numberDatatypeRep.h:19
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: boolDatatypeRep.h:52
OMT Datatype of type Boolean.
Definition: boolDatatypeRep.h:20
Instances of DtString are used to represent strings.
Definition: vlString.h:29

Document ID: Generated on Mon Apr 25 03:39:01 EDT 2022 from SVN revision 242502
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)