DependencyManager.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------------------+
2 |
3 | Supplied under applicable software license agreement.
4 |
5 | Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
6 |
7 +---------------------------------------------------------------------------------------*/
8 #pragma once
9 
10 #include <Bentley/RefCounted.h>
11 #include "ITxnManager.h"
12 #include "DependencyManagerAppid.h"
14 #include <map>
15 
17 
18 // *** Deprecated
19 #define ERR_MAXITERATIONS DependencyStatus::MaxIterationsError
20 #define ERR_MISSINGCALLBACK DependencyStatus::MissingCallBackError
21 
22 
23 
24 /*---------------------------------------------------------------------------------**/
93 //=======================================================================================
110 {
111 
113 
114 
147 DGNPLATFORM_EXPORT static DependencyStatus ProcessAffected ();
148 
150 DGNPLATFORM_EXPORT static void SatisfyDependencyGraph ();
151 
159 DGNPLATFORM_EXPORT static void RootChanged (ElementRefP root);
160 
161 
168 DGNPLATFORM_EXPORT static bool WasAdded (ElementRefP ref);
169 
173 DGNPLATFORM_EXPORT static bool IsInCurrentChangeSet (ElementRefP ref);
174 
183 DGNPLATFORM_EXPORT static void SetProcessingDisabled (bool bSuppress);
184 
189 DGNPLATFORM_EXPORT static int GetProcessingDisabled (void);
190 
191 
196 DGNPLATFORM_EXPORT static int GetTrackingDisabled (void);
197 
204 DGNPLATFORM_EXPORT static void SetTraceLevel (int traceLevel);
205 
207 
208 
209 
216 DGNPLATFORM_EXPORT static bool IsUnsupportedDependency
217 (
218 ElementRefP targetElement,
219 DgnModelP dependentCache
220 );
221 
222 DGNPLATFORM_EXPORT static bool IsGraphSatisfyInProgress (double* startTime);
223 
224 }; // DependencyManager
225 
227 
228 
#define END_BENTLEY_DGNPLATFORM_NAMESPACE
Definition: DgnPlatformBaseType.r.h:69
The Dependency Manager tracks changes to root elements and notififies dependent elements.
Definition: DependencyManager.h:109
#define DGNPLATFORM_EXPORT
Definition: DgnPlatform/ExportMacros.h:58
DependencyStatus
Error codes that may be returned by mdlDependency_processAffected.
Definition: DgnPlatform.h:739
A DgnModel represents a DgnModel in memory.
Definition: DgnModel.h:236
Interface that provides direct and efficient access to element data.
Definition: ElementRefBase.h:120
#define BEGIN_BENTLEY_DGNPLATFORM_NAMESPACE
Definition: DgnPlatformBaseType.r.h:68

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.