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 
61 public:
62 
67  static int intValFromBuffer(const void*);
68 
69 protected:
70 
72  const DtNetU32* netValPtr(const void* ptr, int* size=0) const;
73 
74 protected:
76 };
77 
78 
79 #ifdef DtUSE_UTILITIES_NAMESPACE
80 } // end of namespace DtUSE_UTILITIES_NAMESPACE
81 #endif

Document ID: Generated on Fri Dec 2 02:42:08 EST 2016 from SVN revision 171416
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)