VR-Link API Documentation for DIS
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
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
:
75
bool
myIsUnsigned
;
76
};
77
78
79
#ifdef DtUSE_UTILITIES_NAMESPACE
80
}
// end of namespace DtUSE_UTILITIES_NAMESPACE
81
#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
)