/////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance"). // All rights reserved. // // This software and its documentation and related materials are owned by // the Alliance. The software may only be incorporated into application // programs owned by members of the Alliance, subject to a signed // Membership Agreement and Supplemental Software License Agreement with the // Alliance. The structure and organization of this software are the valuable // trade secrets of the Alliance and its suppliers. The software is also // protected by copyright law and international treaty provisions. Application // programs incorporating this software must include the following statement // with their copyright notices: // // This application incorporates Open Design Alliance software pursuant to a license // agreement with Open Design Alliance. // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance. // All rights reserved. // // By use of this software, its documentation or related materials, you // acknowledge and accept the above terms. /////////////////////////////////////////////////////////////////////////////// #pragma once #include #include #include #include #include // Additional user data may be written here, marked with "///USER INCLUDES" at the beginning and "///USER END" at the end class OdIdsIdsInfo; typedef OdSmartPtr OdIdsIdsInfoPtr; typedef OdArray OdIdsIdsInfoPtrArray; ODRX_DECLARE_VALUE_TYPE(OdIdsIdsInfoPtrArray, ODIDS_DLLEXPORT) // Additional user data may be written here, marked with "///USER TYPEDEFS" at the beginning and "///USER END" at the end class ODIDS_DLLEXPORT OdIdsIdsInfo : public OdRxObject { // Additional user data may be written here, marked with "///USER CLASS START" at the beginning and "///USER END" at the end protected: xmlNode* _node = nullptr; OdAnsiString _documentationString; OdRxValue _title; OdRxValue _copyright; OdRxValue _version; OdRxValue _description; OdRxValue _author; OdRxValue _date; OdRxValue _purpose; OdRxValue _milestone; // Additional user data may be written here, marked with "///USER MEMBER DECLARATIONS" at the beginning and "///USER END" at the end public: ODRX_DECLARE_MEMBERS(OdIdsIdsInfo); OdIdsIdsInfo(); ~OdIdsIdsInfo(); void readXml(xmlNode* node); void writeXml(xmlNode* node) const; virtual void __load(bool markAsLoaded = true); inline void __load(bool markAsLoaded = true) const { const_cast(this)->__load(markAsLoaded); } bool isLoaded() const { return _node == nullptr; } OdAnsiString getXmlDocumentationString(){ if (!isLoaded()) { __load(); } return _documentationString; } void setXmlDocumentationString(OdAnsiString s) { if (!isLoaded()) { __load(); } _documentationString = s; } OdAnsiString* getTitle() { if(!isLoaded()) {__load();} return rxvalue_cast(&_title); } void setTitle(OdAnsiString val) { if(!isLoaded()) {__load();} _title = val; } OdAnsiString* getCopyright() { if(!isLoaded()) {__load();} return rxvalue_cast(&_copyright); } void setCopyright(OdAnsiString val) { if(!isLoaded()) {__load();} _copyright = val; } OdAnsiString* getVersion() { if(!isLoaded()) {__load();} return rxvalue_cast(&_version); } void setVersion(OdAnsiString val) { if(!isLoaded()) {__load();} _version = val; } OdAnsiString* getDescription() { if(!isLoaded()) {__load();} return rxvalue_cast(&_description); } void setDescription(OdAnsiString val) { if(!isLoaded()) {__load();} _description = val; } OdIdsIdsInfoAuthor* getAuthor() { if(!isLoaded()) {__load();} return rxvalue_cast(&_author); } void setAuthor(OdIdsIdsInfoAuthor val) { if(!isLoaded()) {__load();} _author = val; } OdTimeStamp* getDate() { if(!isLoaded()) {__load();} return rxvalue_cast(&_date); } void setDate(OdTimeStamp val) { if(!isLoaded()) {__load();} _date = val; } OdAnsiString* getPurpose() { if(!isLoaded()) {__load();} return rxvalue_cast(&_purpose); } void setPurpose(OdAnsiString val) { if(!isLoaded()) {__load();} _purpose = val; } OdAnsiString* getMilestone() { if(!isLoaded()) {__load();} return rxvalue_cast(&_milestone); } void setMilestone(OdAnsiString val) { if(!isLoaded()) {__load();} _milestone = val; } };