MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
byteDatatypeRep.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1992-2024 MAK Technologies, Inc
3 ** All rights reserved.
4 *******************************************************************************/
7 #pragma once
8 
9 
10 
11 #include "numberDatatypeRep.h"
16 {
17 public:
18 
21 
23  virtual ~DtByteDatatypeRep();
24 
27 
30 
32  virtual const char* datatype() const;
33 
35  virtual int byteVal(const void*) 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 int sizeNeeded(const void* ptr) const;
45 
47  virtual std::vector<char> valueFromStringRep(const DtString& stringRep) const;
48 
50  virtual int byteAlignment() const { return 1; };
51 };
52 
53 
54 
55 
56 
A type of datatype that can turn itself into a number (double) representation.
Definition: numberDatatypeRep.h:17
virtual int byteAlignment() const
The alignment size in bytes for this representation.
Definition: byteDatatypeRep.h:50
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
OMT Datatype of type Byte - in network format which means Big Endian representation.
Definition: byteDatatypeRep.h:15
DtDatatypeRep & operator=(const DtDatatypeRep &rhs)
Assignment Operator.
Definition: datatypeRep.h:67
virtual double numberRep(const void *ptr, int *size=nullptr) const =0
virtual const char * datatype() const =0
virtual int sizeNeeded(const void *ptr) const =0
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...

Document ID: Generated on Fri May 31 15:45:35 EDT 2024 from SVN revision 266500
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)