VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrfExtObjects
keyValuePair.h
Go to the documentation of this file.
1
/****************************************************************************
2
* Copyright (c) 2017 VT MAK
3
* All rights reserved.
4
****************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrfExtObjects/dllExport.h
>
13
#include <vl/globalObjectDesignator.h>
14
#include <vlpi/entityIdentifier.h>
15
#include <vlpi/entityType.h>
16
#include <vlutil/vlMachineTypes.h>
17
#include <vlutil/vlString.h>
18
#include <matrix/vlVector.h>
19
#include <vector>
20
23
class
DT_DLL_vrfExtObjects
DtKeyValuePair
24
{
25
public
:
26
27
DtKeyValuePair
();
28
DtKeyValuePair
(
const
DtString
& key,
const
DtString
& val);
29
DtKeyValuePair
(
const
DtKeyValuePair
& orig);
30
~
DtKeyValuePair
();
31
32
DtKeyValuePair
& operator=(
const
DtKeyValuePair
& orig);
33
34
virtual
void
setKey(
const
DtString
& val);
35
virtual
const
DtString
& key()
const
;
36
virtual
void
setValue(
const
DtString
& val);
37
virtual
const
DtString
& value()
const
;
38
39
bool
operator==
(
const
DtKeyValuePair
& other)
const
;
40
bool
operator!=
(
const
DtKeyValuePair
& other)
const
;
41
42
int
netSize()
const
;
43
static
int
octetBoundary();
44
unsigned
int
getPaddingSize(DtU64 byteOffset,
unsigned
int
boundary)
const
;
45
46
void
writeToBuffer(
char
* buffer )
const
;
47
void
fillFromBuffer(
const
char
* buffer,
int
bufferSize,
int
offset
);
48
49
virtual
void
printData()
const
;
50
virtual
void
printDataToStream(std::ostream &)
const
;
51
52
protected
:
53
54
DtString
myKey
;
55
DtString
myValue
;
56
57
};
58
59
DT_DLL_vrfExtObjects
std::ostream&
operator <<
( std::ostream&
stream
,
const
DtKeyValuePair
& );
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)