22#elif defined(__GNUG__) && __GNUC__ > 12
23#pragma GCC diagnostic push
24#pragma GCC diagnostic ignored "-Wmisleading-indentation"
26#include "../proxies/gsoap_resqml2_0_1H.h"
27#include "../proxies/gsoap_eml2_3H.h"
29#elif defined(__GNUG__) && __GNUC__ > 12
30#pragma GCC diagnostic pop
33#include "../nsDefinitions.h"
35#if defined(_WIN32) && !defined(FESAPI_STATIC)
36#if defined(FesapiCpp_EXPORTS) || defined(FesapiCppUnderDev_EXPORTS)
37#define DLL_IMPORT_OR_EXPORT __declspec(dllexport)
39#define DLL_IMPORT_OR_EXPORT __declspec(dllimport)
42#define DLL_IMPORT_OR_EXPORT
61 DataObjectReference(gsoap_resqml2_0_1::eml20__DataObjectReference * dor): dor20(dor), dor23(nullptr) {}
85 DLL_IMPORT_OR_EXPORT
bool isEmpty()
const {
86 return dor20 ==
nullptr && dor23 ==
nullptr;
94 DLL_IMPORT_OR_EXPORT std::string
getUuid()
const {
95 if (dor20 !=
nullptr) {
98 else if (dor23 !=
nullptr) {
111 DLL_IMPORT_OR_EXPORT std::string
getTitle()
const {
112 if (dor20 !=
nullptr) {
115 else if (dor23 !=
nullptr) {
129 if (dor20 !=
nullptr) {
130 return dor20->VersionString !=
nullptr ? *dor20->VersionString :
"";
132 else if (dor23 !=
nullptr) {
133 return dor23->ObjectVersion !=
nullptr ? *dor23->ObjectVersion :
"";
146 if (dor20 !=
nullptr) {
147 return dor20->ContentType;
149 else if (dor23 !=
nullptr) {
150 return dor23->QualifiedType;
163 if (dor23 !=
nullptr && dor23->EnergisticsUri !=
nullptr) {
164 return *dor23->EnergisticsUri;
177 DLL_IMPORT_OR_EXPORT gsoap_resqml2_0_1::eml20__DataObjectReference*
toDor20()
const;
180 gsoap_resqml2_0_1::eml20__DataObjectReference* dor20;
181 gsoap_eml2_3::eml23__DataObjectReference* dor23;
An abstract data object.
Definition AbstractObject.h:33
This class wraps an Energistics Data Object Reference whatever its version is.
Definition DataObjectReference.h:50
DataObjectReference(gsoap_resqml2_0_1::eml20__DataObjectReference *dor)
Definition DataObjectReference.h:61
gsoap_resqml2_0_1::eml20__DataObjectReference * toDor20() const
bool isEmpty() const
Definition DataObjectReference.h:85
std::string getUuid() const
Definition DataObjectReference.h:94
std::string getContentType() const
Definition DataObjectReference.h:145
DataObjectReference(gsoap_eml2_3::eml23__DataObjectReference *dor)
Definition DataObjectReference.h:68
DataObjectReference(AbstractObject const *dataObj)
DataObjectReference()
Definition DataObjectReference.h:54
std::string getEnergisticsUri() const
Definition DataObjectReference.h:162
~DataObjectReference()=default
std::string getTitle() const
Definition DataObjectReference.h:111
std::string getVersion() const
Definition DataObjectReference.h:128
bool operator==(const DataObjectReference &ldor, const DataObjectReference &rdor)
Title is not part of the real identifier of a dataobject. This is just a hint.
Definition DataObjectReference.h:192