VR-Link API Documentation for HLA 1.3
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
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
;
22
class
DT_DLL_OMTREADER
DtIntDatatypeRep
:
public
DtDatatypeRep
23
{
24
public
:
25
27
DtIntDatatypeRep
(
bool
useImplicitPadding,
bool
unsign =
false
);
28
30
virtual
~
DtIntDatatypeRep
();
31
33
DtIntDatatypeRep
(
const
DtIntDatatypeRep
& orig);
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
:
78
bool
myIsUnsigned
;
79
};
80
81
82
#ifdef DtUSE_UTILITIES_NAMESPACE
83
}
// end of namespace DtUSE_UTILITIES_NAMESPACE
84
#endif
Document ID: Generated on Mon Feb 6 18:36:34 EST 2017 from SVN revision 173107
Copyright © 2005-2016 VT MÄK. All Rights Reserved (
www.mak.com
)