VR-Forces Development_Version 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
vrfExtProtocol
ifVrfObjectDeleted.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2003 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: ifVrfObjDeltd.h,v $ $Revision: 1.7 $ $State: Exp $
7
*******************************************************************************/
8
9
#ifndef DtIfVrfObjectDeleted_H_
10
#define DtIfVrfObjectDeleted_H_
11
12
#include <
vrfExtProtocol/simInterfaceContent.h
>
13
#include <vlutil/vlString.h>
14
#include <vl/hostStructs.h>
15
#include <vlpi/netStructs.h>
16
17
// This is the *FIXED* length portion of a DtIfVrfObjectDeleted message
18
// content when placed on the network.
19
struct
DtNetIfVrfObjectDeleted
20
{
21
DtNetEntityIdentifier
myObjectIdentifier
;
// 48
22
};
// Total: 48 bytes
23
24
// class DtIfVrfObjectDeleted:
25
//
26
// Instances of DtIfVrfObjectDeleted are the message content for vrf object
27
// deleted messages. These messages are sent by the vrf process responsible
28
// for locally simulating the object to be deleted. The message indicates
29
// that all other vrf processes should delete their remote version of
30
// the this object.
31
//
32
// Content-Type: DtVrfObjectDeletedMessageType
33
//
34
#include <
vrfExtProtocol/vrfExtProtocolDefines.h
>
35
class
DT_DLL_vrfExtProtocol
DtIfVrfObjectDeleted
:
public
DtSimInterfaceContent
36
{
37
public
:
38
39
// default constructor
40
DtIfVrfObjectDeleted
();
41
42
// destructor
43
virtual
~
DtIfVrfObjectDeleted
();
44
45
// copy constructor
46
DtIfVrfObjectDeleted
(
const
DtIfVrfObjectDeleted
& orig);
47
48
// assignment operator
49
DtIfVrfObjectDeleted
&
operator=
(
const
DtIfVrfObjectDeleted
& orig);
50
51
// Returns a newly created instance of a DtIfVrfObjectDeleted.
52
virtual
DtSimInterfaceContent
*
clone
()
const
;
53
54
// Returns the string type of message, DtDeleteVrfObjectMessageType (defined
55
// in msgTypes.h).
56
virtual
int
type
()
const
;
57
58
// Set/get the object identifier (site:app:object id) of the vrf object.
59
// Corresponds to entity identifier for individual entities, aggregate Id
60
// for aggregates, and object identifier for environmental process objects.
61
virtual
void
setObjectIdentifier(
const
DtEntityIdentifier & objectIdentifier);
62
virtual
const
DtEntityIdentifier & objectIdentifier()
const
;
63
64
virtual
int
netRepSize
()
const
;
65
virtual
bool
setFromNet
(
const
char
* contentBuffer,
66
unsigned
contentSize);
67
virtual
bool
setToNet
();
68
69
virtual
void
printDataToString
(
DtString
& str);
70
71
static
DtSimInterfaceContent
* creator();
72
73
protected
:
74
75
DtEntityIdentifier
myObjectIdentifier
;
76
};
77
78
#endif
79
Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)