VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
intDatatypeRep.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 "datatypeRep.h"
12 
13 #include <vlutil/vlString.h>
14 #ifdef DtUSE_UTILITIES_NAMESPACE
15 namespace DtUSE_UTILITIES_NAMESPACE
16 {
17 #endif
18 class DtNetU32;
23 {
24 public:
25 
27  DtIntDatatypeRep(bool useImplicitPadding, bool unsign = false);
28 
30  virtual ~DtIntDatatypeRep();
31 
34 
36  DtIntDatatypeRep& operator=(const DtIntDatatypeRep& rhs);
37 
39  virtual const char* datatype() const;
40 
45  virtual int intVal(const void*);
46 
48  virtual unsigned unsignedIntVal(const void*) const;
49 
51  virtual DtString stringRep(const void* ptr, int* size = 0) const;
52 
54  virtual double numberRep(const void* ptr, int* size = 0) const;
55 
56  virtual void setUnsigned(bool);
57 
59  virtual std::vector<char> valueFromStringRep(const DtString& stringRep) const;
60 
62  virtual int byteAlignment() const { return 4; };
63 
64 public:
65 
70  static int intValFromBuffer(const void*);
71 
72 protected:
73 
75  const DtNetU32* netValPtr(const void* ptr, int* size=0) const;
76 
77 protected:
79 };
80 
81 
82 #ifdef DtUSE_UTILITIES_NAMESPACE
83 } // end of namespace DtUSE_UTILITIES_NAMESPACE
84 #endif

Document ID: Generated on Mon Apr 8 04:49:21 EDT 2019 from SVN revision 197403
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)