CFx SDK Documentation  2022 SP0
BcfArchive.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2020, 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 Open Design Alliance software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Open Design Alliance Copyright (C) 2002-2020 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 #ifndef _BFC_ARCHIVE_H
25 #define _BFC_ARCHIVE_H
26 
27 #include "BcfCommon.h"
28 #include "OdGUID.h"
29 #define STL_USING_MAP
30 #include "OdaSTL.h"
31 
35 namespace OdBcf {
36 
37  class OdBcfArchiveFolder;
39 
42 
43  class OdBcfVersion;
45 
46  class OdBcfTopicFolder;
48  typedef std::map<OdGUID, OdBcfTopicFolderPtr> OdBcfTopicFolderMap;
49 
50  class OdBcfSession;
51 
56  {
57  public:
58 
59  //DOM-IGNORE-BEGIN
61  //DOM-IGNORE-END
62 
73  const OdBcfArchiveFolderPtr &rootDir,
74  const OdBcfVersionPtr &pVersion,
75  const OdBcfProjectExtensionPtr &pProjectExtension = OdBcfProjectExtensionPtr(),
76  const OdBcfTopicFolderMap &topics = OdBcfTopicFolderMap(),
77  bool changed = false);
78 
83 
88  virtual bool validate() const;
89 
92  DECLARE_ACCESSORS( ProjectExtension, OdBcfProjectExtensionPtr, m_pProjectExtension);
94  DECLARE_CONST_ACCESSORS(ArchiveGUID, OdGUID, m_archiveGUID);
95 
96  //DOM-IGNORE-BEGIN
97  protected:
103  bool m_changed;
104 
105  DECLARE_SET( RootDir, OdBcfArchiveFolderPtr, m_rootDir);
107  DECLARE_GET( RootDir, OdBcfArchiveFolderPtr, m_rootDir);
109 
110  friend OdBcfSession;
111  //DOM-IGNORE-END
112  };
113 
118 
122  typedef std::map<OdString, OdBcfArchivePtr> OdBcfArchiveMap;
123 
124 } //namespace OdBcf
125 
126 #endif // _BFC_ARCHIVE_H
#define BCF_EXPORT
DECLARE_GET(Version, OdBcfVersionPtr, m_pVersion)
DECLARE_ACCESSORS(ProjectExtension, OdBcfProjectExtensionPtr, m_pProjectExtension)
OdBcfArchiveFolderPtr m_rootDir
Definition: BcfArchive.h:102
DECLARE_CONST_ACCESSORS(ArchiveGUID, OdGUID, m_archiveGUID)
ODRX_DECLARE_MEMBERS(OdBcfArchive)
OdBcfProjectExtensionPtr m_pProjectExtension
Definition: BcfArchive.h:99
DECLARE_CONST_ACCESSORS(RootDir, OdBcfArchiveFolderPtr, m_rootDir)
DECLARE_GET(RootDir, OdBcfArchiveFolderPtr, m_rootDir)
DECLARE_SET(Version, OdBcfVersionPtr, m_pVersion)
DECLARE_ACCESSORS(Topics, OdBcfTopicFolderMap, m_topics)
static OdSmartPtr< OdBcfArchive > createObject(const OdBcfArchiveFolderPtr &rootDir, const OdBcfVersionPtr &pVersion, const OdBcfProjectExtensionPtr &pProjectExtension=OdBcfProjectExtensionPtr(), const OdBcfTopicFolderMap &topics=OdBcfTopicFolderMap(), bool changed=false)
DECLARE_SET(RootDir, OdBcfArchiveFolderPtr, m_rootDir)
DECLARE_CONST_ACCESSORS(Version, OdBcfVersionPtr, m_pVersion)
OdBcfTopicFolderMap m_topics
Definition: BcfArchive.h:100
virtual bool validate() const
OdBcfVersionPtr m_pVersion
Definition: BcfArchive.h:98
Definition: OdGUID.h:29
Version
Definition: FxBIM.h:131
OdSmartPtr< OdBcfArchive > OdBcfArchivePtr
Definition: BcfArchive.h:117
std::map< OdGUID, OdBcfTopicFolderPtr > OdBcfTopicFolderMap
Definition: BcfArchive.h:48
OdSmartPtr< OdBcfVersion > OdBcfVersionPtr
Definition: BcfArchive.h:43
OdSmartPtr< OdBcfArchiveFolder > OdBcfArchiveFolderPtr
Definition: BcfArchive.h:37
OdSmartPtr< OdBcfProjectExtension > OdBcfProjectExtensionPtr
Definition: BcfArchive.h:40
std::map< OdString, OdBcfArchivePtr > OdBcfArchiveMap
Definition: BcfArchive.h:122
OdSmartPtr< OdBcfTopicFolder > OdBcfTopicFolderPtr
Definition: BcfArchive.h:46