CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdIdsIdsInfo.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 <OdAnsiString.h>
30#include <OdIdsIdsInfoAuthor.h>
31#include <OdTimeStamp.h>
32#include <DbRootValueTypes.h>
33// Additional user data may be written here, marked with "///USER INCLUDES" at the beginning and "///USER END" at the end
34
35class OdIdsIdsInfo;
38
40// Additional user data may be written here, marked with "///USER TYPEDEFS" at the beginning and "///USER END" at the end
41
42class ODIDS_DLLEXPORT OdIdsIdsInfo : public OdRxObject
43{
44// Additional user data may be written here, marked with "///USER CLASS START" at the beginning and "///USER END" at the end
45protected:
46 xmlNode* _node = nullptr;
56// Additional user data may be written here, marked with "///USER MEMBER DECLARATIONS" at the beginning and "///USER END" at the end
57public:
61 void readXml(xmlNode* node);
62 void writeXml(xmlNode* node) const;
63 virtual void __load(bool markAsLoaded = true);
64 inline void __load(bool markAsLoaded = true) const {
65 const_cast<OdIdsIdsInfo*>(this)->__load(markAsLoaded);
66 }
67 bool isLoaded() const { return _node == nullptr; }
68 OdAnsiString getXmlDocumentationString(){ if (!isLoaded()) { __load(); } return _documentationString; }
69 void setXmlDocumentationString(OdAnsiString s) { if (!isLoaded()) { __load(); } _documentationString = s; }
70 OdAnsiString* getTitle() { if(!isLoaded()) {__load();} return rxvalue_cast<OdAnsiString>(&_title); }
71 void setTitle(OdAnsiString val) { if(!isLoaded()) {__load();} _title = val; }
72 OdAnsiString* getCopyright() { if(!isLoaded()) {__load();} return rxvalue_cast<OdAnsiString>(&_copyright); }
73 void setCopyright(OdAnsiString val) { if(!isLoaded()) {__load();} _copyright = val; }
74 OdAnsiString* getVersion() { if(!isLoaded()) {__load();} return rxvalue_cast<OdAnsiString>(&_version); }
75 void setVersion(OdAnsiString val) { if(!isLoaded()) {__load();} _version = val; }
76 OdAnsiString* getDescription() { if(!isLoaded()) {__load();} return rxvalue_cast<OdAnsiString>(&_description); }
77 void setDescription(OdAnsiString val) { if(!isLoaded()) {__load();} _description = val; }
79 void setAuthor(OdIdsIdsInfoAuthor val) { if(!isLoaded()) {__load();} _author = val; }
81 void setDate(OdTimeStamp val) { if(!isLoaded()) {__load();} _date = val; }
82 OdAnsiString* getPurpose() { if(!isLoaded()) {__load();} return rxvalue_cast<OdAnsiString>(&_purpose); }
83 void setPurpose(OdAnsiString val) { if(!isLoaded()) {__load();} _purpose = val; }
84 OdAnsiString* getMilestone() { if(!isLoaded()) {__load();} return rxvalue_cast<OdAnsiString>(&_milestone); }
85 void setMilestone(OdAnsiString val) { if(!isLoaded()) {__load();} _milestone = val; }
86};
#define ODIDS_DLLEXPORT
Definition OdIds.h:35
OdArray< OdIdsIdsInfoPtr > OdIdsIdsInfoPtrArray
OdSmartPtr< OdIdsIdsInfo > OdIdsIdsInfoPtr
ValueType * rxvalue_cast(OdRxValue *value)
Definition RxValue.h:309
#define ODRX_DECLARE_VALUE_TYPE(type, attribute)
Definition RxValue.h:801
void setTitle(OdAnsiString val)
void setXmlDocumentationString(OdAnsiString s)
OdRxValue _title
OdTimeStamp * getDate()
OdAnsiString _documentationString
void setDate(OdTimeStamp val)
OdAnsiString * getVersion()
void setAuthor(OdIdsIdsInfoAuthor val)
OdAnsiString getXmlDocumentationString()
void readXml(xmlNode *node)
OdRxValue _milestone
xmlNode * _node
void setCopyright(OdAnsiString val)
OdRxValue _copyright
OdIdsIdsInfoAuthor * getAuthor()
OdRxValue _purpose
bool isLoaded() const
OdRxValue _author
virtual void __load(bool markAsLoaded=true)
OdAnsiString * getMilestone()
OdRxValue _description
ODRX_DECLARE_MEMBERS(OdIdsIdsInfo)
void writeXml(xmlNode *node) const
OdAnsiString * getTitle()
void __load(bool markAsLoaded=true) const
OdRxValue _version
void setDescription(OdAnsiString val)
void setPurpose(OdAnsiString val)
OdAnsiString * getPurpose()
OdRxValue _date
void setMilestone(OdAnsiString val)
void setVersion(OdAnsiString val)
OdAnsiString * getCopyright()
OdAnsiString * getDescription()