VR-Link API Documentation for HLA 1.3
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 #include <omtReader/omtReader.h>
9 #include <vlutil/vlString.h>
10 #include <sstream>
11 
12 #define MAKE_STRING( msg ) ( ((std::ostringstream&) \
13  (std::ostringstream() << msg)).str() )
14 
20 {
21 public:
22 
23  // Constructor
24  DtDatatypeRep(bool useImplicitPadding);
25 
27  DtDatatypeRep(const DtDatatypeRep& orig);
28 
30  DtDatatypeRep& operator=(const DtDatatypeRep& rhs);
31 
33  virtual const char* datatype() const = 0;
34 
40  virtual DtString stringRep(const void* ptr, int* size = 0) const = 0;
41 
47  virtual std::vector<char> valueFromStringRep(const DtString& stringRep) const = 0;
48 
49 protected:
51 };
52 
53 inline DtDatatypeRep::DtDatatypeRep(bool useImplicitPadding)
54  : myUseImplicitPadding(useImplicitPadding)
55 {
56 };
57 
59  : myUseImplicitPadding(orig.myUseImplicitPadding)
60 {
61 };
62 
64 {
65  if (&rhs != this)
66  {
68  }
69  return *this;
70 }
71 
72 

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)