CFx SDK Documentation  2020SP3
OdFileDepMgr.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 
25 #ifndef _ODFILEDEPMGR_INCLUDED_
26 #define _ODFILEDEPMGR_INCLUDED_
27 
28 #include "TD_PackPush.h"
29 
30 #include "OdString.h"
31 #include "RxDictionary.h"
32 #include "DbExport.h"
33 
40 {
41 protected:
43 
44 public:
46  virtual void copyFrom(
47  const OdRxObject* pSource);
48  OdString m_FullFileName; // Full name of file.
49  OdString m_FileName; // Base name of file.
50  OdString m_FoundPath; // Path at which file was found.
51  OdString m_FingerprintGuid; // Fingerprint GUID.
52  OdString m_VersionGuid; // Version GUID.
53  OdString m_Feature; // Name of the application or *feature* that created this entry.
54  bool m_bIsModified; // Database was modified since last save.
55  bool m_bAffectsGraphics; // Entry affects the screen view.
56  OdInt32 m_nIndex; // Unique File Dependency List *index*.
57  OdInt32 m_nTimeStamp; // Seconds since 1/1/1980.
58  OdInt32 m_nFileSize; // Current File size.
59  OdRefCounter m_nReferenceCount; // Current reference count for *database*.
60 };
61 
66 
77 {
78 public:
80 
82 
96  const OdString& feature,
97  const OdString& fullFileName,
98  const bool affectsGraphics = false,
99  const bool noIncrement = false) = 0;
100 
101 
114  const OdString& feature,
115  const OdString& fullFileName,
116  OdFileDependencyInfoPtr& fileInfo,
117  const bool useCachedInfo = false) = 0;
118 
131  OdUInt32 fdlIndex,
132  OdFileDependencyInfoPtr& fileInfo,
133  const bool useCachedInfo = false) = 0;
134 
146  const OdString& feature,
147  const OdString& fullFileName) = 0;
149  OdUInt32 index) = 0;
150 
163  const OdString& feature,
164  const OdString& fullFileName,
165  const bool forceRemove = false) = 0;
166 
178  OdUInt32 fdlIndex,
179  const bool forceRemove = false) = 0;
180 
184  virtual OdUInt32 countEntries() = 0;
185 
198  virtual void iteratorInitialize(
199  const OdString& feature = OdString::kEmpty,
200  const bool modifiedOnly = false,
201  const bool affectsGraphicsOnly = false,
202  const bool walkXRefTree = false) = 0;
203 
210  virtual OdUInt32 iteratorNext() = 0;
211 
212  // get feature list for saving
213 
217  virtual void getFeatures(
218  OdRxDictionaryPtr& features) = 0;
219 
224  virtual void clearXRefEntries() = 0;
225 };
226 
231 
232 #include "TD_PackPop.h"
233 
234 #endif
OdResult
OdResult
Definition: OdResult.h:29
DbExport.h
OdString
Definition: OdString.h:95
OdFileDependencyManager::countEntries
virtual OdUInt32 countEntries()=0
OdFileDependencyManager::updateEntry
virtual OdResult updateEntry(const OdString &feature, const OdString &fullFileName)=0
OdFileDependencyInfo::m_nReferenceCount
OdRefCounter m_nReferenceCount
Definition: OdFileDepMgr.h:59
OdFileDependencyManager::getFeatures
virtual void getFeatures(OdRxDictionaryPtr &features)=0
OdFileDependencyManager::createEntry
virtual OdUInt32 createEntry(const OdString &feature, const OdString &fullFileName, const bool affectsGraphics=false, const bool noIncrement=false)=0
OdFileDependencyManager::getEntry
virtual OdResult getEntry(OdUInt32 fdlIndex, OdFileDependencyInfoPtr &fileInfo, const bool useCachedInfo=false)=0
OdRxObject
Definition: RxObject.h:564
OdFileDependencyInfo::copyFrom
virtual void copyFrom(const OdRxObject *pSource)
OdFileDependencyInfo::m_FullFileName
OdString m_FullFileName
Definition: OdFileDepMgr.h:48
OdRefCounter
int OdRefCounter
Definition: OdMutex.h:436
OdFileDependencyManager
Definition: OdFileDepMgr.h:77
OdFileDependencyInfo::m_bIsModified
bool m_bIsModified
Definition: OdFileDepMgr.h:54
OdFileDependencyManager::getEntry
virtual OdResult getEntry(const OdString &feature, const OdString &fullFileName, OdFileDependencyInfoPtr &fileInfo, const bool useCachedInfo=false)=0
TD_PackPop.h
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
index
GLuint index
Definition: gles2_ext.h:265
OdFileDependencyInfo::OdFileDependencyInfo
OdFileDependencyInfo()
OdString.h
OdSmartPtr
Definition: SmartPtr.h:58
OdFileDependencyInfo::m_VersionGuid
OdString m_VersionGuid
Definition: OdFileDepMgr.h:52
OdInt32
int OdInt32
Definition: OdPlatformSettings.h:782
OdFileDependencyInfo::m_nTimeStamp
OdInt32 m_nTimeStamp
Definition: OdFileDepMgr.h:57
OdFileDependencyInfo::m_nFileSize
OdInt32 m_nFileSize
Definition: OdFileDepMgr.h:58
OdFileDependencyManager::OdFileDependencyManager
OdFileDependencyManager()
Definition: OdFileDepMgr.h:81
OdFileDependencyInfoPtr
OdSmartPtr< OdFileDependencyInfo > OdFileDependencyInfoPtr
Definition: OdFileDepMgr.h:65
OdFileDependencyManager::iteratorInitialize
virtual void iteratorInitialize(const OdString &feature=OdString::kEmpty, const bool modifiedOnly=false, const bool affectsGraphicsOnly=false, const bool walkXRefTree=false)=0
OdFileDependencyManager::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdFileDependencyManager)
OdFileDependencyInfo::m_Feature
OdString m_Feature
Definition: OdFileDepMgr.h:53
TD_PackPush.h
OdFileDependencyManager::eraseEntry
virtual OdResult eraseEntry(const OdString &feature, const OdString &fullFileName, const bool forceRemove=false)=0
OdFileDependencyInfo
Definition: OdFileDepMgr.h:40
OdFileDependencyManagerPtr
OdSmartPtr< OdFileDependencyManager > OdFileDependencyManagerPtr
Definition: OdFileDepMgr.h:230
OdFileDependencyInfo::m_FoundPath
OdString m_FoundPath
Definition: OdFileDepMgr.h:50
OdFileDependencyInfo::m_FingerprintGuid
OdString m_FingerprintGuid
Definition: OdFileDepMgr.h:51
OdFileDependencyManager::clearXRefEntries
virtual void clearXRefEntries()=0
OdFileDependencyInfo::m_FileName
OdString m_FileName
Definition: OdFileDepMgr.h:49
OdFileDependencyManager::updateEntry
virtual OdResult updateEntry(OdUInt32 index)=0
OdFileDependencyInfo::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdFileDependencyInfo)
OdFileDependencyManager::eraseEntry
virtual OdResult eraseEntry(OdUInt32 fdlIndex, const bool forceRemove=false)=0
OdString::kEmpty
FIRSTDLL_EXPORT_STATIC static const OdString kEmpty
Definition: OdString.h:98
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdFileDependencyInfo::m_bAffectsGraphics
bool m_bAffectsGraphics
Definition: OdFileDepMgr.h:55
RxDictionary.h
OdFileDependencyInfo::m_nIndex
OdInt32 m_nIndex
Definition: OdFileDepMgr.h:56
OdFileDependencyManager::iteratorNext
virtual OdUInt32 iteratorNext()=0