23#include "../epc/Package.h"
25#include "DataObjectRepository.h"
26#include "DataFeeder.h"
47 DLL_IMPORT_OR_EXPORT
EpcDocument(
const std::string & fileName) { open(fileName); }
61 DLL_IMPORT_OR_EXPORT
void open(
const std::string & fileName);
64 DLL_IMPORT_OR_EXPORT
void close() {
78 DLL_IMPORT_OR_EXPORT
void setFilePath(
const std::string & fp);
117 DLL_IMPORT_OR_EXPORT std::string
getName()
const;
151 DLL_IMPORT_OR_EXPORT std::string resolvePartial(
AbstractObject const * partialObj)
const;
154 static constexpr char const* DOCUMENT_EXTENSION =
".epc";
159 std::unique_ptr<epc::Package> package;
161 std::string filePath;
An abstract data object.
Definition AbstractObject.h:33
A DataObjectRepository stores in memory all dataObjects. This is the in-memory container which holds ...
Definition DataObjectRepository.h:171
openingMode
Definition DataObjectRepository.h:190
EPC is an implementation of the Open Packaging Conventions (OPC), a widely used container-file techno...
Definition EpcDocument.h:39
void open(const std::string &fileName)
std::string getExtendedCoreProperty(const std::string &key)
EpcDocument(const std::string &fileName)
Definition EpcDocument.h:47
std::string getName() const
void setFilePath(const std::string &fp)
void serializeFrom(DataObjectRepository &repo, bool useZip64=false)
virtual std::string deserializeInto(DataObjectRepository &repo, DataObjectRepository::openingMode hdfPermissionAccess=DataObjectRepository::openingMode::READ_ONLY)
~EpcDocument()
Definition EpcDocument.h:50
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:64