CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
BcfArchive.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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-2022 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
35namespace OdBcf {
36
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(),
77 bool changed = false);
78
83
88 virtual bool validate() const;
89
97
102 bool isRootDirUnset() const;
103
111
116 bool isVersionUnset() const;
117
122 void setProjectExtension(const OdBcfProjectExtensionPtr &projectExtensionValue);
123
131
139
145
150 void setTopics(const OdBcfTopicFolderMap &topicsValue);
151
159
167
172 bool isTopicsUnset() const;
173
178 const OdGUID& getArchiveGUID() const;
179
184 bool isArchiveGUIDUnset() const;
185
186 //DOM-IGNORE-BEGIN
187 protected:
194
199 void setRootDir(const OdBcfArchiveFolderPtr &rootDirValue);
200
205 void setVersion(const OdBcfVersionPtr &versionValue);
206
214
222
223
225 //DOM-IGNORE-END
226 };
227
232
236 typedef std::map<OdString, OdBcfArchivePtr> OdBcfArchiveMap;
237
238} //namespace OdBcf
239
240#endif // _BFC_ARCHIVE_H
#define BCF_EXPORT
const OdBcfTopicFolderMap & getTopics() const
bool isVersionUnset() const
bool isProjectExtensionUnset() const
const OdBcfVersionPtr & getVersion() const
const OdBcfProjectExtensionPtr & getProjectExtension() const
OdBcfArchiveFolderPtr m_rootDir
Definition: BcfArchive.h:192
ODRX_DECLARE_MEMBERS(OdBcfArchive)
OdBcfProjectExtensionPtr m_pProjectExtension
Definition: BcfArchive.h:189
bool isTopicsUnset() const
bool isArchiveGUIDUnset() const
static OdSmartPtr< OdBcfArchive > createObject(const OdBcfArchiveFolderPtr &rootDir, const OdBcfVersionPtr &pVersion, const OdBcfProjectExtensionPtr &pProjectExtension=OdBcfProjectExtensionPtr(), const OdBcfTopicFolderMap &topics=OdBcfTopicFolderMap(), bool changed=false)
OdBcfArchiveFolderPtr & getRootDir()
void setProjectExtension(const OdBcfProjectExtensionPtr &projectExtensionValue)
void setRootDir(const OdBcfArchiveFolderPtr &rootDirValue)
void setVersion(const OdBcfVersionPtr &versionValue)
OdBcfVersionPtr & getVersion()
bool isRootDirUnset() const
OdBcfProjectExtensionPtr & getProjectExtension()
OdBcfTopicFolderMap m_topics
Definition: BcfArchive.h:190
virtual bool validate() const
const OdGUID & getArchiveGUID() const
const OdBcfArchiveFolderPtr & getRootDir() const
void setTopics(const OdBcfTopicFolderMap &topicsValue)
OdBcfVersionPtr m_pVersion
Definition: BcfArchive.h:188
OdBcfTopicFolderMap & getTopics()
Definition: OdGUID.h:33
OdSmartPtr< OdBcfArchive > OdBcfArchivePtr
Definition: BcfArchive.h:231
std::map< OdGUID, OdBcfTopicFolderPtr > OdBcfTopicFolderMap
Definition: BcfArchive.h:48
OdSmartPtr< OdBcfVersion > OdBcfVersionPtr
Definition: BcfArchive.h:44
OdSmartPtr< OdBcfArchiveFolder > OdBcfArchiveFolderPtr
Definition: BcfArchive.h:38
OdSmartPtr< OdBcfProjectExtension > OdBcfProjectExtensionPtr
Definition: BcfArchive.h:41
std::map< OdString, OdBcfArchivePtr > OdBcfArchiveMap
Definition: BcfArchive.h:236
OdSmartPtr< OdBcfTopicFolder > OdBcfTopicFolderPtr
Definition: BcfArchive.h:47