CFx SDK Documentation  2023 SP0
BcfDataAccessorXml.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_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 
36 namespace 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 
81 
89  OdResult openProject(const OdString &projectName);
90 
98  OdResult closeProject(const OdString &projectName);
99 
106  virtual OdResult putArchive(const OdString &projectName, const OdBcfArchivePtr &pArchive) ODRX_OVERRIDE;
107 
113  bool projectOpened(const OdString &projectName) const;
114 
121  virtual OdBcfVersionPtr getVersion(const OdString &projectName, OdResult *result = NULL) ODRX_OVERRIDE;
122 
130 
138  virtual OdBcfTopicFolderPtr getTopic(const OdString &projectName, const OdString &topicId, OdResult *result = NULL) ODRX_OVERRIDE;
139 
147  virtual OdBcfMarkupPtr getMarkup(const OdString &projectName, const OdString &topicId, OdResult *result = NULL) ODRX_OVERRIDE;
148 
158  const OdString &projectName,
159  const OdString &topicId,
160  const OdString &viewpoint = DEFAULT_VIEWPOINT_FILE_NAME,
161  OdResult *result = NULL) ODRX_OVERRIDE;
162 
169  virtual OdBcfTopicArray getTopics(const OdString &projectName, OdResult *result = NULL);
170 
177  virtual OdBcfArchivePtr getArchive(const OdString &projectName, OdResult *result = NULL) ODRX_OVERRIDE;
178 
179  //DOM-IGNORE-BEGIN
180  protected:
183 
184  OdString getExtractPath(const OdString &projectName) const;
186  OdString getProjectWorkFolder(const OdString &projectName) const;
187  //DOM-IGNORE-END
188  };
189 
194 
195 } //namespace OdBcf
196 
197 #endif // _BFC_TOPIC_PROCESSOR_XML_H
#define DEFAULT_VIEWPOINT_FILE_NAME
Definition: BcfCommon.h:46
#define NULL
Definition: GsProperties.h:177
#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
OdResult openProject(const OdString &projectName)
virtual OdBcfProjectExtensionPtr getProjectExtension(const OdString &projectName, OdResult *result=NULL) 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
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)
bool projectOpened(const OdString &projectName) const
OdBcfArchiveFolderMap m_openedProjects
static OdSmartPtr< OdBcfDataAccessorXml > createObject(const OdString &folderPath)
virtual OdBcfTopicArray getTopics(const OdString &projectName, OdResult *result=NULL)
OdSmartPtr< OdBcfArchive > OdBcfArchivePtr
Definition: BcfArchive.h:117
OdSmartPtr< OdBcfMarkup > OdBcfMarkupPtr
OdSmartPtr< OdBcfVersion > OdBcfVersionPtr
Definition: BcfArchive.h:43
OdSmartPtr< OdBcfArchiveFolder > OdBcfArchiveFolderPtr
Definition: BcfArchive.h:37
OdArray< OdBcfTopicPtr > OdBcfTopicArray
std::map< OdString, OdBcfArchiveFolderPtr > OdBcfArchiveFolderMap
OdSmartPtr< OdBcfTopic > OdBcfTopicPtr
OdSmartPtr< OdBcfProjectExtension > OdBcfProjectExtensionPtr
Definition: BcfArchive.h:40
OdSmartPtr< OdBcfDataAccessorXml > OdBcfDataAccessorXmlPtr
OdSmartPtr< OdBcfVisualizationInfo > OdBcfVisualizationInfoPtr
OdSmartPtr< OdBcfTopicFolder > OdBcfTopicFolderPtr
Definition: BcfArchive.h:46