CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdIdsIds.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
25
26#pragma once
27
28#include <OdIds.h>
29#include <OdIdsIdsInfo.h>
31// Additional user data may be written here, marked with "///USER INCLUDES" at the beginning and "///USER END" at the end
32
33class OdIdsIds;
36
38// Additional user data may be written here, marked with "///USER TYPEDEFS" at the beginning and "///USER END" at the end
39
40class ODIDS_DLLEXPORT OdIdsIds : public OdRxObject
41{
42// Additional user data may be written here, marked with "///USER CLASS START" at the beginning and "///USER END" at the end
43protected:
44 xmlNode* _node = nullptr;
48// Additional user data may be written here, marked with "///USER MEMBER DECLARATIONS" at the beginning and "///USER END" at the end
49public:
53 void readXml(xmlNode* node);
54 void writeXml(xmlNode* node) const;
55 virtual void __load(bool markAsLoaded = true);
56 inline void __load(bool markAsLoaded = true) const {
57 const_cast<OdIdsIds*>(this)->__load(markAsLoaded);
58 }
59 bool isLoaded() const { return _node == nullptr; }
60 OdAnsiString getXmlDocumentationString(){ if (!isLoaded()) { __load(); } return _documentationString; }
61 void setXmlDocumentationString(OdAnsiString s) { if (!isLoaded()) { __load(); } _documentationString = s; }
62 OdIdsIdsInfo* getInfo() { if(!isLoaded()) {__load();} return _info; }
63 const OdIdsIdsInfo* getInfo() const { if(!isLoaded()) {__load();} return _info; }
64 void setInfo(OdIdsIdsInfo* val) { if(!isLoaded()) {__load();} _info = val; }
68};
#define ODIDS_DLLEXPORT
Definition OdIds.h:35
OdSmartPtr< OdIdsIds > OdIdsIdsPtr
Definition OdIdsIds.h:34
OdArray< OdIdsIdsPtr > OdIdsIdsPtrArray
Definition OdIdsIds.h:35
OdSmartPtr< OdIdsIdsInfo > OdIdsIdsInfoPtr
OdSmartPtr< OdIdsSpecificationsType > OdIdsSpecificationsTypePtr
#define ODRX_DECLARE_VALUE_TYPE(type, attribute)
Definition RxValue.h:801
void readXml(xmlNode *node)
OdIdsSpecificationsType * getSpecifications()
Definition OdIdsIds.h:65
bool isLoaded() const
Definition OdIdsIds.h:59
OdIdsIdsInfoPtr _info
Definition OdIdsIds.h:46
void __load(bool markAsLoaded=true) const
Definition OdIdsIds.h:56
void setSpecifications(OdIdsSpecificationsType *val)
Definition OdIdsIds.h:67
xmlNode * _node
Definition OdIdsIds.h:44
OdAnsiString getXmlDocumentationString()
Definition OdIdsIds.h:60
ODRX_DECLARE_MEMBERS(OdIdsIds)
OdIdsIdsInfo * getInfo()
Definition OdIdsIds.h:62
OdIdsSpecificationsTypePtr _specifications
Definition OdIdsIds.h:47
void writeXml(xmlNode *node) const
virtual void __load(bool markAsLoaded=true)
OdAnsiString _documentationString
Definition OdIdsIds.h:45
void setXmlDocumentationString(OdAnsiString s)
Definition OdIdsIds.h:61
const OdIdsSpecificationsType * getSpecifications() const
Definition OdIdsIds.h:66
void setInfo(OdIdsIdsInfo *val)
Definition OdIdsIds.h:64
const OdIdsIdsInfo * getInfo() const
Definition OdIdsIds.h:63