CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
MvdXmlRoot.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#if !defined(ODA_ODMVDXMLROOT_H_INCLUDED_)
25#define ODA_ODMVDXMLROOT_H_INCLUDED_
26
27#if _MSC_VER > 1000
28#pragma once
29#endif // _MSC_VER > 1000
30
31#include "MvdXmlIdentity.h"
33#include "MvdXmlModelView.h"
34#include "MvdXmlAuditInfo.h"
35
39namespace OdMvdXml
40{
58
60
65 {
67
68 public:
73
78 void addElement(OdMvdXmlIdentityPtr pElement);
79
86 OdResult loadDocument(TiXmlDocument* pDocument, OdMvdXmlAuditInfo* audit);
87
94 OdResult saveDocument(TiXmlDocument* pDocument, OdMvdXmlAuditInfo* audit);
95
101 OdMvdXmlIdentityPtr getElement(const OdGUID& uuid) const;
102
107 const OdMvdXmlModelViewPtrArray& getViews() const;
108
113 const OdMvdXmlConceptTemplatePtrArray& getTemplates() const;
114
120 int appendTemplate(OdMvdXmlConceptTemplatePtr item);
121
127
133
138 OdAnsiString getXmlns();
139
144 void setXmlns(const OdAnsiString& value);
145
150 OdAnsiString getXsi();
151
156 void setXsi(const OdAnsiString& value);
157
165 OdAnsiStringArray& getSchemaLocation();
166
173 void setSchemaLocation(const OdAnsiStringArray& value);
174
180
184 void Clear();
185
186 protected:
187
193 virtual OdAnsiString getElementName();
194
202 virtual OdResult inAttributes(TiXmlElement* pItem) override;
203
212 virtual OdResult inChildNode(const char *nodeName, TiXmlElement* pChild) override;
213
221 virtual OdResult outAttributes(TiXmlElement* pItem) override;
222
230 virtual OdResult outChildNodes(TiXmlNode* pParent) override;
231
232 private:
233
238 OdMvdXmlConceptTemplatePtrArray m_templates;
239
247 OdMvdXmlModelViewPtrArray m_views;
248
252 OdMvdXmlIdentityPtrArray m_elements;
253
257 OdMvdXmlAuditInfo* m_audit;
258
259 /*
260 TODO Do I need to keep these values?
261 */
262 OdAnsiString m_xmlns;
263 OdAnsiString m_xsi;
264 OdAnsiStringArray m_schemaLocation;
265 };
266}
267
268#endif // !defined(ODA_ODMVDXMLROOT_H_INCLUDED_)
269
#define SMARTPTR(classname)
Definition IfcCommon.h:33
OdResult
Definition OdResult.h:29
#define ODRX_DECLARE_MEMBERS(ClassName)
Definition RxObject.h:112
virtual OdResult outChildNodes(TiXmlNode *pParent) override
virtual OdAnsiString getElementName()
void setSchemaLocation(const OdAnsiStringArray &value)
OdMvdXmlAuditInfo * getAudit()
OdAnsiString getXmlns()
virtual OdResult outAttributes(TiXmlElement *pItem) override
const mvdXmlVersion getVersion() const
int appendTemplate(OdMvdXmlConceptTemplatePtr item)
const OdMvdXmlConceptTemplatePtrArray & getTemplates() const
const OdMvdXmlModelViewPtrArray & getViews() const
void addElement(OdMvdXmlIdentityPtr pElement)
OdAnsiStringArray & getSchemaLocation()
void setXsi(const OdAnsiString &value)
OdMvdXmlIdentityPtr getElement(const OdGUID &uuid) const
OdResult loadDocument(TiXmlDocument *pDocument, OdMvdXmlAuditInfo *audit)
void setAudit(OdMvdXmlAuditInfo *value)
virtual OdResult inAttributes(TiXmlElement *pItem) override
virtual OdResult inChildNode(const char *nodeName, TiXmlElement *pChild) override
void setXmlns(const OdAnsiString &value)
OdAnsiString getXsi()
OdResult saveDocument(TiXmlDocument *pDocument, OdMvdXmlAuditInfo *audit)
GLsizei const GLfloat * value
Definition gles2_ext.h:302
#define MVDXML_EXPORT
@ mvdXml1dot2
Definition MvdXmlRoot.h:53
@ mvdXmlUnset
Definition MvdXmlRoot.h:47
@ mvdXml1dot1
Definition MvdXmlRoot.h:50