CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
Bcf_3_0Archive.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, 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-2024 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 _BCF_3_0_ARCHIVE_H
25#define _BCF_3_0_ARCHIVE_H
26
27#include "BcfCommon.h"
28#include "BcfValidation.h"
29#include "OdGUID.h"
30#define STL_USING_MAP
31#include "OdaSTL.h"
32
36namespace OdBcf {
37
38 class OdBcfArchiveFolder;
43}
44
48namespace OdBcf_3_0 {
49
50 class OdBcfExtensions;
55
56 class OdBcfVersion;
61
67
68 class OdBcfProjectInfo;
73
74 class OdBcfTopicFolder;
79
83 typedef std::map<OdGUID, OdBcfTopicFolderPtr> OdBcfTopicFolderMap;
84
85 class OdBcfSession;
86
90 class BCF_3_0_EXPORT OdBcfArchive : public OdRxObject, public OdBcf::OdBcfValidation
91 {
92 public:
93
94 //DOM-IGNORE-BEGIN
96 //DOM-IGNORE-END
97
110 const OdBcf::OdBcfArchiveFolderPtr &rootDir,
111 const OdBcfExtensionsPtr &pExtensions,
112 const OdBcfVersionPtr &pVersion,
113 const OdBcfDocumentInfoPtr &pDocumentInfo = OdBcfDocumentInfoPtr(),
114 const OdBcfProjectInfoPtr &pProjectInfo = OdBcfProjectInfoPtr(),
116 bool changed = false);
117
122
130
135 bool isRootDirUnset() const;
136
144
149 bool isExtensionsUnset() const;
150
158
163 bool isVersionUnset() const;
164
169 void setDocumentInfo(const OdBcfDocumentInfoPtr& documentInfoValue);
170
178
186
192
197 void setProjectInfo(const OdBcfProjectInfoPtr &projectInfoValue);
198
206
214
219 bool isProjectInfoUnset() const;
220
225 void setTopics(const OdBcfTopicFolderMap &topicsValue);
226
234
242
247 bool isTopicsUnset() const;
248
253 const OdGUID& getArchiveGUID() const;
254
259 bool isArchiveGUIDUnset() const;
260
261 //DOM-IGNORE-BEGIN
262 protected:
271
276 void setRootDir(const OdBcf::OdBcfArchiveFolderPtr &rootDirValue);
277
282 void setExtensions(const OdBcfExtensionsPtr& extensionsValue);
283
288 void setVersion(const OdBcfVersionPtr &versionValue);
289
297
305
313
318 virtual bool validateData() const ODRX_OVERRIDE;
319
321 //DOM-IGNORE-END
322 };
323
328
333
334} //namespace OdBcf_3_0
335
336#endif // _BCF_3_0_ARCHIVE_H
#define BCF_3_0_EXPORT
#define ODRX_OVERRIDE
void setProjectInfo(const OdBcfProjectInfoPtr &projectInfoValue)
bool isDocumentInfoUnset() const
void setTopics(const OdBcfTopicFolderMap &topicsValue)
void setRootDir(const OdBcf::OdBcfArchiveFolderPtr &rootDirValue)
void setVersion(const OdBcfVersionPtr &versionValue)
bool isProjectInfoUnset() const
const OdBcfTopicFolderMap & getTopics() const
OdBcfExtensionsPtr m_pExtensions
const OdBcfExtensionsPtr & getExtensions() const
void setExtensions(const OdBcfExtensionsPtr &extensionsValue)
bool isArchiveGUIDUnset() const
void setDocumentInfo(const OdBcfDocumentInfoPtr &documentInfoValue)
OdBcfExtensionsPtr & getExtensions()
OdBcfProjectInfoPtr & getProjectInfo()
static OdSmartPtr< OdBcfArchive > createObject(const OdBcf::OdBcfArchiveFolderPtr &rootDir, const OdBcfExtensionsPtr &pExtensions, const OdBcfVersionPtr &pVersion, const OdBcfDocumentInfoPtr &pDocumentInfo=OdBcfDocumentInfoPtr(), const OdBcfProjectInfoPtr &pProjectInfo=OdBcfProjectInfoPtr(), const OdBcfTopicFolderMap &topics=OdBcfTopicFolderMap(), bool changed=false)
OdBcfProjectInfoPtr m_pProjectInfo
OdBcfDocumentInfoPtr & getDocumentInfo()
const OdGUID & getArchiveGUID() const
bool isRootDirUnset() const
const OdBcfDocumentInfoPtr & getDocumentInfo() const
OdBcf::OdBcfArchiveFolderPtr m_rootDir
bool isVersionUnset() const
const OdBcfVersionPtr & getVersion() const
const OdBcfProjectInfoPtr & getProjectInfo() const
OdBcfVersionPtr & getVersion()
virtual bool validateData() const ODRX_OVERRIDE
OdBcfTopicFolderMap & getTopics()
OdBcfVersionPtr m_pVersion
OdBcf::OdBcfArchiveFolderPtr & getRootDir()
bool isTopicsUnset() const
ODRX_DECLARE_MEMBERS(OdBcfArchive)
OdBcfDocumentInfoPtr m_pDocumentInfo
const OdBcf::OdBcfArchiveFolderPtr & getRootDir() const
OdBcfTopicFolderMap m_topics
bool isExtensionsUnset() const
OdSmartPtr< OdBcfExtensions > OdBcfExtensionsPtr
OdSmartPtr< OdBcfProjectInfo > OdBcfProjectInfoPtr
std::map< OdString, OdBcfArchivePtr > OdBcfArchiveMap
OdSmartPtr< OdBcfVersion > OdBcfVersionPtr
std::map< OdGUID, OdBcfTopicFolderPtr > OdBcfTopicFolderMap
OdSmartPtr< OdBcfTopicFolder > OdBcfTopicFolderPtr
OdSmartPtr< OdBcfArchive > OdBcfArchivePtr
OdSmartPtr< OdBcfDocumentInfo > OdBcfDocumentInfoPtr
OdSmartPtr< OdBcfArchiveFolder > OdBcfArchiveFolderPtr