VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
enum32DatatypeRep.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 #include "enumDatatypeRep.h"
11 #include <vlutil/vlString.h>
12 #ifdef DtUSE_UTILITIES_NAMESPACE
13 namespace DtUSE_UTILITIES_NAMESPACE
14 {
15 #endif
16 class DtNetU32;
17 
18 // Data representation type for 32-bit enumerations
20 {
21 public:
22 
24  DtEnum32DatatypeRep(bool useImplicitPadding);
25 
27  virtual ~DtEnum32DatatypeRep();
28 
31 
33  DtEnum32DatatypeRep& operator=(const DtEnum32DatatypeRep& rhs);
34 
36  virtual const char* datatype() const;
37 
39  virtual unsigned int enumVal(const void*, int* size = 0) const;
40 
42  virtual DtString stringRep(const void* ptr, int* size = 0) const;
43 
45  virtual double numberRep(const void* ptr, int* size = 0) const;
46 
48  virtual std::vector<char> valueFromStringRep(const DtString& stringRep) const;
49 
50 protected:
51 
53  const DtNetU32* netValPtr(const void* ptr, int* size=0) const;
54 
55 };
56 
57 
58 #ifdef DtUSE_UTILITIES_NAMESPACE
59 } // end of namespace DtUSE_UTILITIES_NAMESPACE
60 #endif

Document ID: Generated on Fri Dec 2 02:42:08 EST 2016 from SVN revision 171416
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)