23#include "../epc/Package.h"
25#include "DataObjectRepository.h"
26#include "DataFeeder.h"
40 DLL_IMPORT_OR_EXPORT
EpcDocument(
const std::string & fileName) { open(fileName); }
54 DLL_IMPORT_OR_EXPORT
void open(
const std::string & fileName);
57 DLL_IMPORT_OR_EXPORT
void close() {
71 DLL_IMPORT_OR_EXPORT
void setFilePath(
const std::string & fp);
111 DLL_IMPORT_OR_EXPORT std::string
getName()
const;
145 DLL_IMPORT_OR_EXPORT std::string resolvePartial(
AbstractObject const * partialObj)
const;
148 static constexpr char const* DOCUMENT_EXTENSION =
".epc";
153 std::unique_ptr<epc::Package> package;
155 std::string filePath;
An abstract data object.
Definition AbstractObject.h:33
This abstract class acts as a buffer between the RESQML (business) classes and the persisted data.
Definition DataObjectRepository.h:167
openingMode
Definition DataObjectRepository.h:185
This class allows an access to a memory package representing an EPC document.
Definition EpcDocument.h:32
void open(const std::string &fileName)
std::string getExtendedCoreProperty(const std::string &key)
EpcDocument(const std::string &fileName)
Definition EpcDocument.h:40
std::string getName() const
void setFilePath(const std::string &fp)
virtual std::string deserializeInto(DataObjectRepository &repo, DataObjectRepository::openingMode hdfPermissionAccess=DataObjectRepository::openingMode::READ_ONLY)
~EpcDocument()
Definition EpcDocument.h:43
void serializeFrom(const DataObjectRepository &repo, bool useZip64=false)
uint64_t getExtendedCorePropertyCount() const
void setExtendedCoreProperty(const std::string &key, const std::string &value)
std::string deserializePartiallyInto(DataObjectRepository &repo, DataObjectRepository::openingMode hdfPermissionAccess=DataObjectRepository::openingMode::READ_ONLY)
std::unordered_map< std::string, std::string > & getExtendedCoreProperty()
std::string getStorageDirectory() const
void close()
Definition EpcDocument.h:57