VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
charDatatypeRep.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 
12 
13 #include "numberDatatypeRep.h"
14 
15 #include <vlutil/vlString.h>
16 #ifdef DtUSE_UTILITIES_NAMESPACE
17 namespace DtUSE_UTILITIES_NAMESPACE
18 {
19 #endif
24 {
25 public:
26 
29 
31  virtual ~DtCharDatatypeRep();
32 
35 
37  DtCharDatatypeRep& operator=(const DtCharDatatypeRep& rhs);
38 
40  virtual const char* datatype() const;
41 
43  virtual int byteVal(const void*) const;
44 
46  virtual DtString stringRep(const void* ptr, int* size = 0) const;
47 
49  virtual double numberRep(const void* ptr, int* size = 0) const;
50 
52  virtual std::vector<char> valueFromStringRep(const DtString& stringRep) const;
53 
55  virtual int byteAlignment() const { return 1; };
56 };
57 
58 #ifdef DtUSE_UTILITIES_NAMESPACE
59 } // end of namespace DtUSE_UTILITIES_NAMESPACE
60 #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
OMT Datatype of type Char - in network format which means Big Endian representation.
Definition: charDatatypeRep.h:23
virtual int byteAlignment() const
The alignment size in bytes for this representation.
Definition: charDatatypeRep.h:55
Instances of DtString are used to represent strings.
Definition: vlString.h:29

Document ID: Generated on Tue Aug 10 00:12:31 EDT 2021 from SVN revision 232765
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)