36 #include "proxies/gsoap_resqml2_0_1H.h" 37 #include "proxies/gsoap_eml2_1H.h" 38 #include "common/EpcDocument.h" 45 gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject;
51 void setUuid(
const std::string & uuid);
56 void pushBackExtraMetadataV2_0_1(
const std::string & key,
const std::string & value);
61 #if (defined(_WIN32) && _MSC_VER >= 1600) || defined(__APPLE__) 62 std::unordered_map< std::string, std::string > getExtraMetadataSetV2_0_1()
const;
64 std::tr1::unordered_map< std::string, std::string > getExtraMetadataSetV2_0_1()
const;
71 std::vector<std::string> getExtraMetadataV2_0_1(
const std::string & key)
const;
76 unsigned int getExtraMetadataCountV2_0_1()
const;
81 std::string getExtraMetadataKeyAtIndexV2_0_1(
const unsigned int & index)
const;
86 std::string getExtraMetadataStringValueAtIndexV2_0_1(
const unsigned int & index)
const;
95 gsoap_resqml2_0_1::eml20__AbstractCitedDataObject* gsoapProxy2_0_1;
96 gsoap_eml2_1::eml21__AbstractObject* gsoapProxy2_1;
98 std::vector<resqml2::Activity*> activitySet;
108 AbstractObject(gsoap_resqml2_0_1::eml20__DataObjectReference* partialObject);
110 AbstractObject(gsoap_resqml2_0_1::eml20__AbstractCitedDataObject* proxy);
116 void initMandatoryMetadata();
127 virtual std::vector<epc::Relationship> getAllEpcRelationships()
const = 0;
138 void setMetadata(
const std::string & guid,
const std::string & title,
const std::string & editor,
const time_t & creation,
const std::string & originator,
139 const std::string & description,
const time_t & lastUpdate,
const std::string & format,
const std::string & descriptiveKeywords);
144 void cannotBePartial()
const;
149 void changeToPartialObject();
159 bool isPartial()
const {
return partialObject !=
nullptr;}
161 std::string getUuid()
const;
162 std::string getTitle()
const;
163 std::string getEditor()
const;
164 time_t getCreation()
const;
165 std::string getOriginator()
const;
166 std::string getDescription()
const;
167 time_t getLastUpdate()
const;
168 std::string getFormat()
const;
169 std::string getDescriptiveKeywords()
const;
171 void setTitle(
const std::string & title);
172 void setEditor(
const std::string & editor);
173 void setCreation(
const time_t & creation);
174 void setOriginator(
const std::string & originator);
175 void setDescription(
const std::string & description);
176 void setLastUpdate(
const time_t & lastUpdate);
177 void setFormat(
const std::string & format);
178 void setDescriptiveKeywords(
const std::string & descriptiveKeywords);
184 void setMetadata(
const std::string & title,
const std::string & editor,
const time_t & creation,
const std::string & originator,
185 const std::string & description,
const time_t & lastUpdate,
const std::string & format,
const std::string & descriptiveKeywords);
191 void serializeIntoStream(std::ostream * stream);
196 gsoap_resqml2_0_1::eml20__AbstractCitedDataObject*
getGsoapProxy()
const {
return gsoapProxy2_0_1;}
201 soap* getGsoapContext()
const;
206 int getGsoapType()
const;
208 gsoap_resqml2_0_1::eml20__DataObjectReference* newResqmlReference()
const;
209 gsoap_eml2_1::eml21__DataObjectReference* newEmlReference()
const;
211 gsoap_resqml2_0_1::resqml2__ContactElementReference* newResqmlContactElementReference()
const;
221 virtual std::string getXmlNamespace()
const;
226 virtual std::string getXmlTag()
const = 0;
231 virtual std::string getResqmlVersion()
const;
236 virtual std::string getContentType()
const;
241 virtual std::string getPartNameInEpcDocument()
const;
246 std::string serializeIntoString();
251 void addAlias(
const std::string & authority,
const std::string & title);
256 unsigned int getAliasCount()
const;
261 std::string getAliasAuthorityAtIndex(
const unsigned int & index)
const;
266 std::string getAliasTitleAtIndex(
const unsigned int & index)
const;
271 const std::vector<resqml2::Activity*> & getActivitySet()
const;
276 unsigned int getActivityCount()
const;
286 void pushBackExtraMetadata(
const std::string & key,
const std::string & value);
291 #if (defined(_WIN32) && _MSC_VER >= 1600) || defined(__APPLE__) 292 std::unordered_map< std::string, std::string > getExtraMetadataSet()
const;
294 std::tr1::unordered_map< std::string, std::string > getExtraMetadataSet()
const;
301 std::vector<std::string> getExtraMetadata(
const std::string & key)
const;
306 unsigned int getExtraMetadataCount()
const;
311 std::string getExtraMetadataKeyAtIndex(
const unsigned int & index)
const;
316 std::string getExtraMetadataStringValueAtIndex(
const unsigned int & index)
const;
void updateAllRelationships()
Definition: EpcDocument.cpp:1466
bool isPartial() const
Definition: AbstractObject.h:159
virtual void serialize(bool useZip64=false)
Definition: EpcDocument.cpp:652
common::EpcDocument * getEpcDocument() const
Definition: AbstractObject.h:216
Definition: EpcDocument.h:168
Definition: AbstractObject.h:42
Definition: AbstractHdfProxy.h:43
Definition: Activity.h:40
void addGsoapProxy(common::AbstractObject *proxy)
Definition: EpcDocument.cpp:519
gsoap_resqml2_0_1::eml20__AbstractCitedDataObject * getGsoapProxy() const
Definition: AbstractObject.h:196