21 #include "proxies/gsoap_resqml2_0_1H.h" 22 #include "proxies/gsoap_eml2_1H.h" 23 #include "common/EpcDocument.h" 30 gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject;
36 void setUuid(
const std::string & uuid);
41 void pushBackExtraMetadataV2_0_1(
const std::string & key,
const std::string & value);
46 #if (defined(_WIN32) && _MSC_VER >= 1600) || defined(__APPLE__) 47 std::unordered_map< std::string, std::string > getExtraMetadataSetV2_0_1()
const;
49 std::tr1::unordered_map< std::string, std::string > getExtraMetadataSetV2_0_1()
const;
56 std::vector<std::string> getExtraMetadataV2_0_1(
const std::string & key)
const;
61 unsigned int getExtraMetadataCountV2_0_1()
const;
66 std::string getExtraMetadataKeyAtIndexV2_0_1(
const unsigned int & index)
const;
71 std::string getExtraMetadataStringValueAtIndexV2_0_1(
const unsigned int & index)
const;
80 gsoap_resqml2_0_1::eml20__AbstractCitedDataObject* gsoapProxy2_0_1;
81 gsoap_eml2_1::eml21__AbstractObject* gsoapProxy2_1;
83 std::vector<RESQML2_NS::Activity*> activitySet;
93 AbstractObject(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject);
95 AbstractObject(gsoap_resqml2_0_1::eml20__AbstractCitedDataObject* proxy);
101 void initMandatoryMetadata();
112 virtual std::vector<epc::Relationship> getAllEpcRelationships()
const = 0;
123 void setMetadata(
const std::string & guid,
const std::string & title,
const std::string & editor,
const time_t & creation,
const std::string & originator,
124 const std::string & description,
const time_t & lastUpdate,
const std::string & format,
const std::string & descriptiveKeywords);
129 void cannotBePartial()
const;
134 void changeToPartialObject();
144 bool isPartial()
const {
return partialObject !=
nullptr;}
146 std::string getUuid()
const;
147 std::string getTitle()
const;
148 std::string getEditor()
const;
149 time_t getCreation()
const;
153 tm getCreationAsTimeStructure()
const;
154 std::string getOriginator()
const;
155 std::string getDescription()
const;
156 time_t getLastUpdate()
const;
160 tm getLastUpdateAsTimeStructure()
const;
161 std::string getFormat()
const;
162 std::string getDescriptiveKeywords()
const;
163 std::string getVersionString()
const;
165 void setTitle(
const std::string & title);
166 void setEditor(
const std::string & editor);
167 void setCreation(
const time_t & creation);
171 void setCreation(
const tm & creation);
172 void setOriginator(
const std::string & originator);
173 void setDescription(
const std::string & description);
174 void setLastUpdate(
const time_t & lastUpdate);
178 void setLastUpdate(
const tm & lastUpdate);
179 void setFormat(
const std::string & format);
180 void setDescriptiveKeywords(
const std::string & descriptiveKeywords);
181 void setVersionString(
const std::string & versionString);
187 void setMetadata(
const std::string & title,
const std::string & editor,
const time_t & creation,
const std::string & originator,
188 const std::string & description,
const time_t & lastUpdate,
const std::string & format,
const std::string & descriptiveKeywords);
194 void serializeIntoStream(std::ostream * stream);
199 gsoap_resqml2_0_1::eml20__AbstractCitedDataObject* getGsoapProxy()
const;
204 soap* getGsoapContext()
const;
209 int getGsoapType()
const;
211 gsoap_resqml2_0_1::eml20__DataObjectReference* newResqmlReference()
const;
212 gsoap_eml2_1::eml21__DataObjectReference* newEmlReference()
const;
214 gsoap_resqml2_0_1::resqml2__ContactElementReference* newResqmlContactElementReference()
const;
224 virtual std::string getXmlNamespace()
const;
229 virtual std::string getXmlTag()
const = 0;
234 virtual std::string getResqmlVersion()
const;
239 virtual std::string getContentType()
const;
244 virtual std::string getPartNameInEpcDocument()
const;
249 std::string serializeIntoString();
254 void addAlias(
const std::string & authority,
const std::string & title);
259 unsigned int getAliasCount()
const;
264 std::string getAliasAuthorityAtIndex(
const unsigned int & index)
const;
269 std::string getAliasTitleAtIndex(
const unsigned int & index)
const;
274 const std::vector<RESQML2_NS::Activity*> & getActivitySet()
const;
279 unsigned int getActivityCount()
const;
289 void pushBackExtraMetadata(
const std::string & key,
const std::string & value);
294 #if (defined(_WIN32) && _MSC_VER >= 1600) || defined(__APPLE__) 295 std::unordered_map< std::string, std::string > getExtraMetadataSet()
const;
297 std::tr1::unordered_map< std::string, std::string > getExtraMetadataSet()
const;
304 std::vector<std::string> getExtraMetadata(
const std::string & key)
const;
309 unsigned int getExtraMetadataCount()
const;
314 std::string getExtraMetadataKeyAtIndex(
const unsigned int & index)
const;
319 std::string getExtraMetadataStringValueAtIndex(
const unsigned int & index)
const;
bool isPartial() const
Definition: AbstractObject.h:144
void updateAllRelationships()
Definition: EpcDocument.cpp:1457
void addGsoapProxy(COMMON_NS::AbstractObject *proxy)
Definition: EpcDocument.cpp:529
virtual void serialize(bool useZip64=false)
Definition: EpcDocument.cpp:665
Definition: EpcDocument.h:154
Definition: AbstractObject.h:27
COMMON_NS::EpcDocument * getEpcDocument() const
Definition: AbstractObject.h:219
Definition: Activity.h:25
Definition: AbstractHdfProxy.h:28