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