CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
MvdXmlDefinition.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_ODMVDXMLDEFINITION_H_INCLUDED_)
25#define ODA_ODMVDXMLDEFINITION_H_INCLUDED_
26
27#if _MSC_VER > 1000
28#pragma once
29#endif // _MSC_VER > 1000
30
31#include "MvdXmlElement.h"
32#include "MvdXmlBody.h"
33#include "MvdXmlLink.h"
34
38namespace OdMvdXml
39{
41
47 {
49
50 public:
51
56 const OdMvdXmlBodyPtr getBody() const;
57
62 const OdMvdXmlLinkPtrArray& getLinks() const;
63
70
71 protected:
77 void assign(const OdMvdXmlDefinition* other);
78
84 virtual OdAnsiString getElementName();
85
94 virtual OdResult inChildNode(const char *nodeName, TiXmlElement* pChild) override;
95
103 virtual OdResult outChildNodes(TiXmlNode* pParent) override;
104
105 private:
109 OdMvdXmlBodyPtr m_pBody;
113 OdMvdXmlLinkPtrArray m_links;
114 };
115
120 {
121 public:
126 const OdMvdXmlDefinitionPtrArray& getDefinitions() const;
127
128 protected:
134 void assign(const OdMvdXmlDefinitionsBase* other);
142 OdResult inDefinitions(TiXmlElement* pParent);
143
151 OdResult outDefinitions(TiXmlNode* pParent);
152
157 OdMvdXmlDefinitionPtrArray m_definitions;
158 };
159
164 {
166
167 protected:
173 void assign(const OdMvdXmlDefinitions* other);
174
183 virtual OdResult inChildNode(const char *nodeName, TiXmlElement* pChild) override;
184
192 virtual OdResult outChildNodes(TiXmlNode* pParent) override;
193
195 };
196}
197
198#endif // !defined(ODA_ODMVDXMLDEFINITION_H_INCLUDED_)
199
#define SMARTPTR(classname)
Definition IfcCommon.h:33
OdResult
Definition OdResult.h:29
#define ODRX_DECLARE_MEMBERS(ClassName)
Definition RxObject.h:112
void assign(const OdMvdXmlDefinition *other)
virtual OdResult outChildNodes(TiXmlNode *pParent) override
const OdMvdXmlLinkPtrArray & getLinks() const
virtual OdResult inChildNode(const char *nodeName, TiXmlElement *pChild) override
OdMvdXmlDefinition & operator=(const OdMvdXmlDefinition &other)
const OdMvdXmlBodyPtr getBody() const
virtual OdAnsiString getElementName()
const OdMvdXmlDefinitionPtrArray & getDefinitions() const
OdMvdXmlDefinitionPtrArray m_definitions
OdResult inDefinitions(TiXmlElement *pParent)
void assign(const OdMvdXmlDefinitionsBase *other)
OdResult outDefinitions(TiXmlNode *pParent)
void assign(const OdMvdXmlDefinitions *other)
virtual OdResult outChildNodes(TiXmlNode *pParent) override
virtual OdResult inChildNode(const char *nodeName, TiXmlElement *pChild) override
#define MVDXML_EXPORT