VR-Link API Documentation for HLA Evolved
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vlutil
vlObserver.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
#include "
vlList.h
"
11
#include "
vlMachineTypes.h
"
12
#include "
vlDeclNotifier.h
"
13
14
#ifdef DtUSE_UTILITIES_NAMESPACE
15
namespace
DtUSE_UTILITIES_NAMESPACE
16
{
17
#endif
18
19
class
DT_DLL_VLUTIL
DtAbsNotifyObserver
;
20
class
DT_DLL_VLUTIL
DtObserver;
21
22
DtDECLARE_OBSERVER_NOTIFIER
(DtObserver)
23
24
25
26
27
28
29
30
31
32
33
34
35
36
class
DT_DLL_VLUTIL
DtObserver
37
{
38
public
:
39
41
DtObserver();
42
45
virtual
~DtObserver();
46
50
DtObserver(
const
DtObserver& orig);
51
57
DtObserver& operator=(
const
DtObserver& orig);
58
60
virtual
bool
startObserving(
DtObservee
* toObserve);
61
63
virtual
bool
stopObserving(
DtObservee
* observed);
64
66
virtual
bool
isBeingObserved(
DtObservee
*
object
);
67
71
virtual
bool
notifyFromYourObserved(
72
const
DtObservee
* observed,
73
const
DtObservee::DtWhyNotifyObserver
& why);
74
75
protected
:
76
84
virtual
bool
pendingDeleteOfYourObserved(
const
DtObservee
* observed);
85
93
virtual
bool
deleteOfYourObserved(
const
DtObservee
* observed);
94
99
virtual
bool
removeObservedReference(
const
DtObservee
* observed);
100
104
109
bool
internalStartObserving(
DtObservee
* toObserve);
110
115
bool
internalStopObserving(
DtObservee
* observed);
116
117
protected
:
118
120
DtList
myObjectsAmObserving;
121
123
DtObserverNotifier myNotifier;
124
};
125
126
#ifdef DtUSE_UTILITIES_NAMESPACE
127
}
128
#endif
129
130
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
)