CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
MvdXmlRoot.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#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
36namespace OdMvdXml
37{
42 {
51 };
52
54
56 {
58
59 public:
61
65 void addElement(OdMvdXmlIdentityPtr pElement);
66 OdResult loadDocument(TiXmlDocument* pDocument, OdMvdXmlAuditInfo* audit);
67 OdResult saveDocument(TiXmlDocument* pDocument, OdMvdXmlAuditInfo* audit);
68 OdMvdXmlIdentityPtr getElement(const OdGUID& uuid) const;
69 const OdMvdXmlModelViewPtrArray& getViews() const;
70 const OdMvdXmlConceptTemplatePtrArray& getTemplates() const;
71 int appendTemplate(OdMvdXmlConceptTemplatePtr item);
74 OdAnsiString getXmlns();
75 void setXmlns(const OdAnsiString& value);
76 OdAnsiString getXsi();
77 void setXsi(const OdAnsiString& value);
78 OdAnsiStringArray& getSchemaLocation();
79 void setSchemaLocation(const OdAnsiStringArray& value);
80
85
89 void Clear();
90
91 protected:
92
98 virtual OdAnsiString getElementName();
99
107 virtual OdResult inAttributes(TiXmlElement* pItem) override;
108
117 virtual OdResult inChildNode(const char *nodeName, TiXmlElement* pChild) override;
118
126 virtual OdResult outAttributes(TiXmlElement* pItem) override;
127
135 virtual OdResult outChildNodes(TiXmlNode* pParent) override;
136
137 private:
138
143 OdMvdXmlConceptTemplatePtrArray m_templates;
144
152 OdMvdXmlModelViewPtrArray m_views;
153
157 OdMvdXmlIdentityPtrArray m_elements;
158
162 OdMvdXmlAuditInfo* m_audit;
163
164 /*
165 TODO Do I need to keep these values?
166 */
167 OdAnsiString m_xmlns;
168 OdAnsiString m_xsi;
169 OdAnsiStringArray m_schemaLocation;
170 };
171}
172
173#endif // !defined(ODA_ODMVDXMLROOT_H_INCLUDED_)
174
#define SMARTPTR(classname)
Definition: IfcCommon.h:33
OdResult
Definition: OdResult.h:29
#define ODRX_DECLARE_MEMBERS(ClassName)
Definition: RxObject.h:112
Definition: OdGUID.h:33
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:48
@ mvdXml1_1
Definition: MvdXmlRoot.h:50
@ mvdXmlUnset
Definition: MvdXmlRoot.h:44
@ mvdXml1dot1
Definition: MvdXmlRoot.h:46