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
vrfExtProtocol
vrfExtendedRecordData.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2013 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
6
#pragma once
7
8
#include <
vrfExtProtocol/vrfExtProtocolDefines.h
>
9
#include <vlutil/vlString.h>
10
#include <map>
11
14
struct
DtNetEnvironmentalRecord;
15
class
DtVariableDatumRecord;
16
class
DtStateRepository
;
17
18
class
DT_DLL_vrfExtProtocol
DtVrfExtendedRecordData
19
{
20
public
:
21
typedef
std::map<DtString, DtString>
ExtendedData
;
22
24
DtVrfExtendedRecordData
();
25
DtVrfExtendedRecordData
(
const
DtVrfExtendedRecordData
&);
26
28
virtual
~
DtVrfExtendedRecordData
();
29
32
virtual
void
setExtendedData(
const
DtString
& key,
const
DtString
& value);
33
virtual
void
clearExtendedData();
34
virtual
void
removeExtendedData(
const
DtString
& key);
35
virtual
DtString
extendedData(
const
DtString
& key)
const
;
36
const
ExtendedData
& extendedDataMap()
const
37
{
38
return
myExtendedData;
39
}
40
41
virtual
void
setExtendedDataMap(
const
ExtendedData&);
42
44
45
bool
operator==
(
const
DtVrfExtendedRecordData
& rhs)
const
46
{
47
return
(myExtendedData == rhs.
myExtendedData
);
48
}
49
50
bool
operator!=
(
const
DtVrfExtendedRecordData
& rhs)
const
51
{
52
return
!(*
this
== rhs);
53
}
54
56
bool
isModified()
const
57
{
58
return
myIsModified;
59
}
60
61
public
:
63
virtual
int
netRepSize();
64
66
virtual
char
* netRep();
67
69
virtual
int
setFromNet(
const
char
*);
70
71
public
:
73
virtual
int
size(
const
char
*)
const
;
74
76
virtual
int
keyLen(
const
char
*)
const
;
77
79
virtual
int
valueLen(
const
char
*)
const
;
80
82
virtual
DtString
key(
const
char
*)
const
;
83
85
virtual
DtString
value(
const
char
*)
const
;
86
89
90
virtual
char
* createNetworkRepresentation(
const
DtString
& key,
const
DtString
& value)
const
;
91
92
protected
:
94
virtual
void
createNetRep();
95
96
protected
:
97
ExtendedData
myExtendedData
;
98
99
bool
myIsModified
;
100
101
char
*
myNetRep
;
102
int
myNetRepSize
;
103
};
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
)