VR-Link API Documentation for HLA 1.3
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 #include "enumDatatypeRep.h"
9 #include <vlutil/vlString.h>
10 
11 class DtNetU32;
12 
13 // Data representation type for 32-bit enumerations
15 {
16 public:
17 
19  DtEnum32DatatypeRep(bool useImplicitPadding);
20 
22  virtual ~DtEnum32DatatypeRep();
23 
26 
29 
31  virtual const char* datatype() const;
32 
34  virtual unsigned int enumVal(const void*, int* size = 0) const;
35 
37  virtual DtString stringRep(const void* ptr, int* size = 0) const;
38 
40  virtual double numberRep(const void* ptr, int* size = 0) const;
41 
43  virtual std::vector<char> valueFromStringRep(const DtString& stringRep) const;
44 
45 protected:
46 
48  const DtNetU32* netValPtr(const void* ptr, int* size=0) const;
49 
50 };
51 
52 

Document ID: Generated on Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)