CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
BcfDataAccessorXml.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_TOPIC_PROCESSOR_XML_H
25#define _BFC_TOPIC_PROCESSOR_XML_H
26
27#include "BcfCommon.h"
28#define STL_USING_MAP
29#include "OdaSTL.h"
30
31#include "BcfDataAccessor.h"
32
36namespace OdBcf {
37
38 class OdBcfArchiveFolder;
40 typedef std::map<OdString, OdBcfArchiveFolderPtr> OdBcfArchiveFolderMap;
41
42 class OdBcfVersion;
44
45 class OdBcfProjectExtension;
47
48 class OdBcfTopicFolder;
50
51 class OdBcfTopic;
54
55 class OdBcfMarkup;
57
60
61 class OdBcfArchive;
63
68 {
69 public:
70
71 //DOM-IGNORE-BEGIN
73 //DOM-IGNORE-END
74
83
92 OdResult openProject(const OdString &projectName, bool forcedReopen = false);
93
101 OdResult closeProject(const OdString &projectName);
102
109 virtual OdResult putArchive(const OdString &projectName, const OdBcfArchivePtr &pArchive) ODRX_OVERRIDE;
110
116 bool projectOpened(const OdString &projectName) const;
117
124
131 virtual OdBcfVersionPtr getVersion(const OdString &projectName, OdResult *result = NULL) ODRX_OVERRIDE;
132
140
148 virtual OdBcfTopicFolderPtr getTopic(const OdString &projectName, const OdString &topicId, OdResult *result = NULL) ODRX_OVERRIDE;
149
157 virtual OdBcfMarkupPtr getMarkup(const OdString &projectName, const OdString &topicId, OdResult *result = NULL) ODRX_OVERRIDE;
158
168 const OdString &projectName,
169 const OdString &topicId,
170 const OdString &viewpoint = DEFAULT_VIEWPOINT_FILE_NAME,
171 OdResult *result = NULL) ODRX_OVERRIDE;
172
179 virtual OdBcfTopicArray getTopics(const OdString &projectName, OdResult *result = NULL);
180
187 virtual OdBcfArchivePtr getArchive(const OdString &projectName, OdResult *result = NULL) ODRX_OVERRIDE;
188
189 //DOM-IGNORE-BEGIN
190 protected:
194
195 OdString getExtractPath(const OdString &projectName) const;
197 OdString getProjectWorkFolder(const OdString &projectName) const;
198 //DOM-IGNORE-END
199 };
200
205
206} //namespace OdBcf
207
208#endif // _BFC_TOPIC_PROCESSOR_XML_H
#define DEFAULT_VIEWPOINT_FILE_NAME
Definition: BcfCommon.h:46
#define BCF_EXPORT
#define ODRX_OVERRIDE
OdResult
Definition: OdResult.h:29
virtual OdBcfVisualizationInfoPtr getVisualizationInfo(const OdString &projectName, const OdString &topicId, const OdString &viewpoint=DEFAULT_VIEWPOINT_FILE_NAME, OdResult *result=NULL) ODRX_OVERRIDE
ODRX_DECLARE_MEMBERS(OdBcfDataAccessorXml)
virtual OdBcfArchivePtr getArchive(const OdString &projectName, OdResult *result=NULL) ODRX_OVERRIDE
OdString getExtractProjectNameFromPath(const OdString &projectName) const
virtual OdBcfProjectExtensionPtr getProjectExtension(const OdString &projectName, OdResult *result=NULL) ODRX_OVERRIDE
static OdSmartPtr< OdBcfDataAccessorXml > createObject(const OdString &folderPath)
virtual OdResult setProgressMeter(OdDbHostAppProgressMeter *pMeter) ODRX_OVERRIDE
virtual OdBcfMarkupPtr getMarkup(const OdString &projectName, const OdString &topicId, OdResult *result=NULL) ODRX_OVERRIDE
virtual OdBcfVersionPtr getVersion(const OdString &projectName, OdResult *result=NULL) ODRX_OVERRIDE
OdString getProjectWorkFolder(const OdString &projectName) const
OdDbHostAppProgressMeter * m_pMeter
virtual OdBcfTopicFolderPtr getTopic(const OdString &projectName, const OdString &topicId, OdResult *result=NULL) ODRX_OVERRIDE
OdString getExtractPath(const OdString &projectName) const
virtual OdResult putArchive(const OdString &projectName, const OdBcfArchivePtr &pArchive) ODRX_OVERRIDE
OdResult closeProject(const OdString &projectName)
OdResult openProject(const OdString &projectName, bool forcedReopen=false)
bool projectOpened(const OdString &projectName) const
OdBcfArchiveFolderMap m_openedProjects
virtual OdBcfTopicArray getTopics(const OdString &projectName, OdResult *result=NULL)
OdSmartPtr< OdBcfArchive > OdBcfArchivePtr
Definition: BcfArchive.h:231
OdSmartPtr< OdBcfMarkup > OdBcfMarkupPtr
OdSmartPtr< OdBcfVersion > OdBcfVersionPtr
Definition: BcfArchive.h:44
OdSmartPtr< OdBcfArchiveFolder > OdBcfArchiveFolderPtr
Definition: BcfArchive.h:38
OdArray< OdBcfTopicPtr > OdBcfTopicArray
std::map< OdString, OdBcfArchiveFolderPtr > OdBcfArchiveFolderMap
OdSmartPtr< OdBcfTopic > OdBcfTopicPtr
OdSmartPtr< OdBcfProjectExtension > OdBcfProjectExtensionPtr
Definition: BcfArchive.h:41
OdSmartPtr< OdBcfDataAccessorXml > OdBcfDataAccessorXmlPtr
OdSmartPtr< OdBcfVisualizationInfo > OdBcfVisualizationInfoPtr
OdSmartPtr< OdBcfTopicFolder > OdBcfTopicFolderPtr
Definition: BcfArchive.h:47