VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
datatypeRep.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 <omtReader/omtReader.h>
11 #include <vlutil/vlString.h>
12 #include <sstream>
13 #ifdef DtUSE_UTILITIES_NAMESPACE
14 namespace DtUSE_UTILITIES_NAMESPACE
15 {
16 #endif
17 #define MAKE_STRING( msg ) ( ((std::ostringstream&) \
18  (std::ostringstream() << msg)).str() )
19 
25 {
26 public:
27 
28  // Constructor
29  DtDatatypeRep(bool useImplicitPadding);
30 
32  DtDatatypeRep(const DtDatatypeRep& orig);
33 
35  DtDatatypeRep& operator=(const DtDatatypeRep& rhs);
36 
38  virtual const char* datatype() const = 0;
39 
45  virtual DtString stringRep(const void* ptr, int* size = 0) const = 0;
46 
52  virtual std::vector<char> valueFromStringRep(const DtString& stringRep) const = 0;
53 
54 protected:
56 };
57 
58 inline DtDatatypeRep::DtDatatypeRep(bool useImplicitPadding)
59  : myUseImplicitPadding(useImplicitPadding)
60 {
61 };
62 
64  : myUseImplicitPadding(orig.myUseImplicitPadding)
65 {
66 };
67 
69 {
70  if (&rhs != this)
71  {
73  }
74  return *this;
75 }
76 
77 
78 #ifdef DtUSE_UTILITIES_NAMESPACE
79 } // end of namespace DtUSE_UTILITIES_NAMESPACE
80 #endif

Document ID: Generated on Fri May 15 06:36:13 EDT 2015 from SVN revision 153263
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)