VR-Forces 4.3.1 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
vrfmsgs
ifServerMessage.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2010 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: ifServerMessage.h,v $ $Revision: 149624 $ $State: Exp $
7
*******************************************************************************/
8
11
12
#pragma once
13
14
#include "
vrfmsgs/vrfmsgsDefines.h
"
15
#include <vrfExtProtocol/simInterfaceContent.h>
16
22
23
class
DT_DLL_vrfmsgs
DtIfServerMessage
:
public
DtSimInterfaceContent
24
{
25
public
:
26
enum
MessageCategory
27
{
28
Unknown = 0,
29
ScenarioGeneric
,
30
ScenarioLoad
,
31
ScenarioSave
,
32
UserDefined = 100000
33
};
34
35
public
:
36
38
DtIfServerMessage
();
39
41
virtual
~
DtIfServerMessage
();
42
44
DtIfServerMessage
(
const
DtIfServerMessage
& orig);
45
47
DtIfServerMessage
& operator=(
const
DtIfServerMessage
& orig);
48
50
virtual
int
type()
const
;
51
52
virtual
DtSimInterfaceContent
* clone()
const
;
53
54
virtual
void
setMessage(
const
std::string&);
55
virtual
std::string message()
const
;
56
57
virtual
void
setMessageCategory(MessageCategory);
58
virtual
MessageCategory messageCategory()
const
;
59
60
virtual
void
setSeverity(
int
);
61
virtual
int
severity()
const
;
62
63
virtual
void
setExtra(
int
);
64
virtual
int
extra()
const
;
65
66
virtual
int
netRepSize()
const
;
67
virtual
bool
setFromNet(
const
char
* contentBuffer,
68
unsigned
contentSize);
69
virtual
bool
setToNet();
70
71
virtual
void
printDataToString(
DtString
& str);
72
73
static
DtSimInterfaceContent
* creator();
74
75
protected
:
76
std::string
myMessage
;
77
MessageCategory
myMessageCategory
;
78
int
mySeverity
;
79
82
int
myExtra
;
83
};
Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)