MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 class DtNetU32;
13 
14 // Data representation type for 32-bit enumerations
16 {
17 public:
18 
20  DtEnum32DatatypeRep(bool useImplicitPadding);
21 
23  virtual ~DtEnum32DatatypeRep();
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 
47  virtual int byteAlignment() const { return 4; };
48 
49 protected:
50 
52  const DtNetU32* netValPtr(const void* ptr, int* size=0) const;
53 
54 };
55 
56 
57 
58 

Document ID: Generated on Wed Jun 5 18:45:18 EDT 2019 from SVN revision 198968
Copyright © 2019 VT MAK. All Rights Reserved (www.mak.com)