VR-Link API Documentation for HLA 1516
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
omtReader
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
24
class
DT_DLL_OMTREADER
DtDatatypeRep
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
:
55
bool
myUseImplicitPadding
;
56
};
57
58
inline
DtDatatypeRep::DtDatatypeRep
(
bool
useImplicitPadding)
59
: myUseImplicitPadding(useImplicitPadding)
60
{
61
};
62
63
inline
DtDatatypeRep::DtDatatypeRep
(
const
DtDatatypeRep
& orig)
64
: myUseImplicitPadding(orig.myUseImplicitPadding)
65
{
66
};
67
68
inline
DtDatatypeRep
&
DtDatatypeRep::operator=
(
const
DtDatatypeRep
& rhs)
69
{
70
if
(&rhs !=
this
)
71
{
72
myUseImplicitPadding
= rhs.
myUseImplicitPadding
;
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 Dec 2 02:42:08 EST 2016 from SVN revision 171416
Copyright © 2005-2016 VT MÄK. All Rights Reserved (
www.mak.com
)