VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrfutil
rwPropertiesMap.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2013 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
9
#pragma once
10
11
#include <
vrfutil/rwPropertiesList.h
>
12
29
class
DT_DLL_vrfutil
DtRwPropertiesMap
:
public
DtRwPropertiesList
30
{
31
private
:
33
DtRwPropertiesMap
();
34
35
public
:
36
37
DtRwPropertiesMap
(
const
DtString
& name,
DtReaderWriterRegistry
* parentRegistry = 0);
38
DtRwPropertiesMap
(
const
DtString
& name,
const
DtRwPropertiesMap
& orig,
39
DtReaderWriterRegistry
* parentRegistry = 0);
40
virtual
~
DtRwPropertiesMap
();
41
45
virtual
const
char
*
readerWriterType
()
const
;
46
48
static
const
char
*
theXmlType
();
49
50
virtual
const
char
*
xmlType
()
const
51
{
52
return
theXmlType
();
53
}
54
55
virtual
void
writeSelf
(std::string& fp,
int
indentLevel = 0,
56
bool
writeUnspecified =
false
,
const
DtFilename& path =
57
DtFilename::nullFilename());
58
59
DtRwPropertiesMap
&
operator=
(
const
DtRwPropertiesMap
&);
60
63
virtual
void
setKeyType(
const
DtString
&);
64
virtual
const
DtReaderWriter
* keyType()
const
;
66
69
virtual
bool
keyIsInt()
const
;
70
virtual
bool
keyIsReal()
const
;
71
virtual
bool
keyIsString()
const
;
73
75
virtual
bool
isSimilarProperty
(
const
DtPropertyInterface
* rhs)
const
;
76
77
protected
:
79
virtual
DtPropertyInterface
*
createPrototype
(DtlObjPtr args);
80
virtual
DtlObjPtr
variablesStart
(DtlObjPtr args)
const
;
81
83
virtual
int
hlaAlignment
(
const
DtPropertyInterface
* field)
const
;
84
86
virtual
void
getSize
(
const
DtPropertyInterface
*,
int
& size)
const
;
87
88
virtual
void
createListEntry
(
DtPropertyInterface
* iFace, DtlObjPtr variableItem,
89
const
DtReaderWriter::SearchPaths
& searchPaths,
90
const
DtVariableBindingsList
& variableBindings);
91
92
virtual
char
*
encode
(
const
DtPropertyInterface
*,
char
* buf)
const
;
93
virtual
const
char
*
decode
(
DtPropertyInterface
* iFace,
const
char
* buf);
94
95
virtual
void
getData
(
const
DtEnvironmentSP
env,
const
DtEnvValueSP root,
96
const
DtReaderWriter::SearchPaths
& searchPaths,
97
const
DtVariableBindingsList
& varBindings);
98
virtual
void
putData
(
DtEnvironmentSP
env, DtEnvValueSP value)
const
;
99
100
protected
:
101
mutable
DtPropertyInterface
*
myKeyType
;
102
};
Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)