VR-Forces 4.6 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
vrfmsgs
ifServerMessage.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2016 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
9
#pragma once
10
11
#include "
vrfmsgs/vrfmsgsDefines.h
"
12
#include <
vrfExtProtocol/simInterfaceContent.h
>
13
19
20
class
DT_DLL_vrfmsgs
DtIfServerMessage
:
public
DtSimInterfaceContent
21
{
22
public
:
23
enum
MessageCategory
24
{
25
Unknown = 0,
26
ScenarioGeneric
,
27
ScenarioLoad
,
28
ScenarioSave
,
29
ScenarioCheckpointSaved
,
30
UserDefined = 100000
31
};
32
33
public
:
34
36
DtIfServerMessage
();
37
39
virtual
~
DtIfServerMessage
();
40
42
DtIfServerMessage
(
const
DtIfServerMessage
& orig);
43
45
DtIfServerMessage
&
operator=
(
const
DtIfServerMessage
& orig);
46
48
virtual
int
type
()
const
;
49
50
virtual
DtSimInterfaceContent
*
clone
()
const
;
51
52
virtual
void
setMessage(
const
std::string&);
53
virtual
std::string message()
const
;
54
55
virtual
void
setMessageCategory(MessageCategory);
56
virtual
MessageCategory messageCategory()
const
;
57
58
virtual
void
setSeverity(
int
);
59
virtual
int
severity()
const
;
60
61
virtual
void
addExtra(
const
std::string&,
const
std::string&);
62
const
std::map<std::string, std::string>
extra
()
const
{
return
myExtra; };
63
virtual
std::string extraValue(
const
std::string& key)
const
;
64
65
virtual
int
netRepSize
()
const
;
66
virtual
bool
setFromNet
(
const
char
* contentBuffer,
67
unsigned
contentSize);
68
virtual
bool
setToNet
();
69
70
virtual
void
printDataToString
(
DtString
& str);
71
72
static
DtSimInterfaceContent
* creator();
73
74
protected
:
75
std::string
myMessage
;
76
MessageCategory
myMessageCategory
;
77
int
mySeverity
;
78
79
std::map<std::string, std::string>
myExtra
;
80
};
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)