MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
enum8DatatypeRep.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 #include "enumDatatypeRep.h"
12 #include <vlutil/vlString.h>
13 // Data representation type for 8 bit enumerations
15 {
16 public:
17 
20 
22  virtual ~DtEnum8DatatypeRep();
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 
46  virtual int byteAlignment() const { return 1; };
47 };
48 
49 
50 
51 
52 
virtual std::vector< char > valueFromStringRep(const DtString &stringRep) const =0
The reverse of string rep, given a character string, this returns an unformatted byte stream...
#define DT_DLL_OMTREADER
Definition: omtReader.h:23
DtEnumDatatypeRep & operator=(const DtEnumDatatypeRep &rhs)
Assignment Operator.
virtual int byteAlignment() const
The alignment size in bytes for this representation.
Definition: enum8DatatypeRep.h:46
virtual double numberRep(const void *ptr, int *size=0) const =0
virtual const char * datatype() const =0
Definition: enum8DatatypeRep.h:14
virtual DtString stringRep(const void *ptr, int *size=0) const =0
Given a byte string, returns a character string in a format that is easily read by a person...
virtual unsigned int enumVal(const void *, int *size=0) const =0
return the numeric enumerator value
Definition: enumDatatypeRep.h:17

Document ID: Generated on Mon Mar 22 15:30:17 EDT 2021 from SVN revision 226440
Copyright © 2021 MAK Technologies. All Rights Reserved (www.mak.com)