VR-Link API Documentation for HLA 1.3
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
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 Thu Feb 22 04:26:36 EST 2018 from SVN revision 186468
Copyright © 2005-2016 VT MÄK. All Rights Reserved (
www.mak.com
)