CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
Bcf_2_1Archive.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_2_1_ARCHIVE_H
25#define _BCF_2_1_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
41
45namespace OdBcf_2_1 {
46
49
50 class OdBcfVersion;
52
53 class OdBcfTopicFolder;
55 typedef std::map<OdGUID, OdBcfTopicFolderPtr> OdBcfTopicFolderMap;
56
57 class OdBcfSession;
58
62 class BCF_2_1_EXPORT OdBcfArchive : public OdRxObject, public OdBcf::OdBcfValidation
63 {
64 public:
65
66 //DOM-IGNORE-BEGIN
68 //DOM-IGNORE-END
69
80 const OdBcf::OdBcfArchiveFolderPtr &rootDir,
81 const OdBcfVersionPtr &pVersion,
82 const OdBcfProjectExtensionPtr &pProjectExtension = OdBcfProjectExtensionPtr(),
84 bool changed = false);
85
90
98
103 bool isRootDirUnset() const;
104
112
117 bool isVersionUnset() const;
118
123 void setProjectExtension(const OdBcfProjectExtensionPtr &projectExtensionValue);
124
132
140
146
151 void setTopics(const OdBcfTopicFolderMap &topicsValue);
152
160
168
173 bool isTopicsUnset() const;
174
179 const OdGUID& getArchiveGUID() const;
180
185 bool isArchiveGUIDUnset() const;
186
187 //DOM-IGNORE-BEGIN
188 protected:
195
200 void setRootDir(const OdBcf::OdBcfArchiveFolderPtr &rootDirValue);
201
206 void setVersion(const OdBcfVersionPtr &versionValue);
207
215
223
228 virtual bool validateData() const ODRX_OVERRIDE;
229
231 //DOM-IGNORE-END
232 };
233
238
243
244} //namespace OdBcf_2_1
245
246#endif // _BCF_2_1_ARCHIVE_H
#define BCF_2_1_EXPORT
#define ODRX_OVERRIDE
void setTopics(const OdBcfTopicFolderMap &topicsValue)
void setProjectExtension(const OdBcfProjectExtensionPtr &projectExtensionValue)
bool isArchiveGUIDUnset() const
OdBcfTopicFolderMap m_topics
OdBcfVersionPtr m_pVersion
const OdBcfProjectExtensionPtr & getProjectExtension() const
bool isVersionUnset() const
OdBcfTopicFolderMap & getTopics()
bool isTopicsUnset() const
bool isProjectExtensionUnset() const
const OdBcfTopicFolderMap & getTopics() const
OdBcfVersionPtr & getVersion()
bool isRootDirUnset() const
OdBcfProjectExtensionPtr & getProjectExtension()
OdBcf::OdBcfArchiveFolderPtr m_rootDir
static OdSmartPtr< OdBcfArchive > createObject(const OdBcf::OdBcfArchiveFolderPtr &rootDir, const OdBcfVersionPtr &pVersion, const OdBcfProjectExtensionPtr &pProjectExtension=OdBcfProjectExtensionPtr(), const OdBcfTopicFolderMap &topics=OdBcfTopicFolderMap(), bool changed=false)
OdBcfProjectExtensionPtr m_pProjectExtension
OdBcf::OdBcfArchiveFolderPtr & getRootDir()
const OdBcfVersionPtr & getVersion() const
ODRX_DECLARE_MEMBERS(OdBcfArchive)
void setVersion(const OdBcfVersionPtr &versionValue)
const OdBcf::OdBcfArchiveFolderPtr & getRootDir() const
void setRootDir(const OdBcf::OdBcfArchiveFolderPtr &rootDirValue)
const OdGUID & getArchiveGUID() const
virtual bool validateData() const ODRX_OVERRIDE
OdSmartPtr< OdBcfVersion > OdBcfVersionPtr
std::map< OdGUID, OdBcfTopicFolderPtr > OdBcfTopicFolderMap
OdSmartPtr< OdBcfArchive > OdBcfArchivePtr
std::map< OdString, OdBcfArchivePtr > OdBcfArchiveMap
OdSmartPtr< OdBcfProjectExtension > OdBcfProjectExtensionPtr
OdSmartPtr< OdBcfTopicFolder > OdBcfTopicFolderPtr
OdSmartPtr< OdBcfArchiveFolder > OdBcfArchiveFolderPtr