VR-Link API Documentation for HLA Evolved
enum16DatatypeRep.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 #include "enumDatatypeRep.h"
10 #include <vlutil/vlString.h>
11 
12 class DtNetU16;
13 
14 // Data representation type for 16 bit enumerations
16 {
17 public:
18 
20  DtEnum16DatatypeRep(bool useImplicitPadding);
21 
23  virtual ~DtEnum16DatatypeRep();
24 
27 
30 
32  virtual const char* datatype() const;
33 
35  virtual unsigned int enumVal(const void*, int* size = 0) const;
36 
38  virtual DtString stringRep(const void* ptr, int* size = 0) const;
39 
41  virtual double numberRep(const void* ptr, int* size = 0) const;
42 
44  virtual std::vector<char> valueFromStringRep(const DtString& stringRep) const;
45 
46 protected:
47 
49  const DtNetU16* netValPtr(const void* ptr, int* size=0) const;
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)