VR-Link API Documentation for HLA 1.3
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vlutil
vlObservee.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
8
#pragma once
9
10
11
#include "
vlList.h
"
12
#include "
vlMachineTypes.h
"
13
14
#ifdef DtUSE_UTILITIES_NAMESPACE
15
namespace
DtUSE_UTILITIES_NAMESPACE
16
{
17
#endif
18
19
class
DT_DLL_VLUTIL
DtAbsNotifyObserver
;
20
39
class
DT_DLL_VLUTIL
DtObservee
40
{
41
public
:
42
45
enum
DtWhyNotifyObserver
46
{
57
DtPendingDeleteOfYourObserved
,
58
70
DtDeleteOfYourObserved
71
};
72
73
public
:
74
76
DtObservee
();
77
96
virtual
~
DtObservee
();
97
100
DtObservee
(
const
DtObservee
& orig);
101
104
DtObservee
& operator=(
const
DtObservee
& orig);
105
108
virtual
bool
registerObservedBy(
DtAbsNotifyObserver
* observer);
109
112
virtual
bool
deRegisterObservedBy(
DtAbsNotifyObserver
* observer);
113
116
virtual
void
notifyAllObservers(
const
DtWhyNotifyObserver& why);
117
118
public
:
119
123
static
void
destroy(
DtObservee
*
object
);
124
125
protected
:
126
129
void
internalNotifyAllObservers(
const
DtWhyNotifyObserver& why);
130
131
protected
:
132
135
DtList
myObservedByNotifiers
;
136
bool
myNotifiedPendingDelete
;
137
};
138
139
#ifdef DtUSE_UTILITIES_NAMESPACE
140
}
141
#endif
142
143
Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)