VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
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: 108016 $ $State: Exp $
7
*******************************************************************************/
8
11
12
#pragma once
13
14
#include "
vrfmsgs/vrfmsgsDefines.h
"
15
#include <
vrfExtProtocol/ifaceCont.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
UserDefined = 100000
32
};
33
34
public
:
35
37
DtIfServerMessage
();
38
40
virtual
~
DtIfServerMessage
();
41
43
DtIfServerMessage
(
const
DtIfServerMessage
& orig);
44
46
DtIfServerMessage
&
operator=
(
const
DtIfServerMessage
& orig);
47
49
virtual
int
type
()
const
;
50
51
virtual
DtSimInterfaceContent
*
clone
()
const
;
52
53
virtual
void
setMessage(
const
std::string&);
54
virtual
std::string message()
const
;
55
56
virtual
void
setMessageCategory(MessageCategory);
57
virtual
MessageCategory messageCategory()
const
;
58
59
virtual
void
setSeverity(
int
);
60
virtual
int
severity()
const
;
61
62
virtual
void
setExtra(
int
);
63
virtual
int
extra()
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
81
int
myExtra
;
82
};
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)