CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdIdsIdsInfoAuthor.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 <RxValue.h>
30#include <OdAnsiString.h>
31// Additional user data may be written here, marked with "///USER INCLUDES" at the beginning and "///USER END" at the end
32
35
38// Additional user data may be written here, marked with "///USER TYPEDEFS" at the beginning and "///USER END" at the end
39
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;
45 OdAnsiString _value;
46// Additional user data may be written here, marked with "///USER MEMBER DECLARATIONS" at the beginning and "///USER END" at the end
47public:
50 void readXml(xmlNode* node);
51 void writeXml(xmlNode* node) const;
52 virtual void __load(bool markAsLoaded = true);
53 inline void __load(bool markAsLoaded = true) const {
54 const_cast<OdIdsIdsInfoAuthor*>(this)->__load(markAsLoaded);
55 }
56 bool isLoaded() const { return _node == nullptr; }
57 static OdIdsIdsInfoAuthor readFromString(const xmlChar* node);
58 OdAnsiString writeToString() const;
59 OdAnsiString getValue() { if(!isLoaded()) {__load();} return _value; }
60 const OdAnsiString getValue() const { if(!isLoaded()) {__load();} return _value; }
61 void setValue(OdAnsiString val) { if(!isLoaded()) {__load();} _value = val; }
62 bool operator==(const OdIdsIdsInfoAuthor& other) const { return this->_value == other._value; }
63 bool operator!=(const OdIdsIdsInfoAuthor& other) const { return this->_value != other._value; }
64};
#define ODIDS_DLLEXPORT
Definition OdIds.h:35
OdArray< OdIdsIdsInfoAuthor > OdIdsIdsInfoAuthorArray
#define ODRX_DECLARE_VALUE_TYPE(type, attribute)
Definition RxValue.h:801
void readXml(xmlNode *node)
static OdIdsIdsInfoAuthor readFromString(const xmlChar *node)
virtual void __load(bool markAsLoaded=true)
const OdAnsiString getValue() const
bool operator==(const OdIdsIdsInfoAuthor &other) const
OdAnsiString getValue()
bool operator!=(const OdIdsIdsInfoAuthor &other) const
void setValue(OdAnsiString val)
OdAnsiString writeToString() const
void __load(bool markAsLoaded=true) const
void writeXml(xmlNode *node) const