25#include <unordered_map>
27#include "FileCoreProperties.h"
28#include "FileContentType.h"
29#include "FileRelationship.h"
43 typedef std::unordered_map<std::string, FilePart> PartMap;
52 void writeStringIntoNewPart(
const std::string &input,
const std::string & partPath);
54 static constexpr char const* CORE_PROP_REL_TYPE =
"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties";
55 static constexpr char const* EXTENDED_CORE_PROP_REL_TYPE =
"http://schemas.f2i-consulting.com/package/2014/relationships/extended-core-properties";
91 void openForWriting(
const std::string & pkgPathName,
int append,
bool useZip64 =
false);
Definition ContentType.h:28
TypeProperty
Definition CoreProperty.h:33
Definition FileContentType.h:30
Definition FileCoreProperties.h:28
Definition FileRelationship.h:30
std::vector< std::string > openForReading(const std::string &pkgPathName)
void setPrincipalRelationship(const FileRelationship &pkgFileRS)
const FileContentType & getFileContentType() const
void addProperty(const CoreProperty::TypeProperty &pkgTypeProperty, const std::string &pkgPropertyValue)
FilePart * createPart(const std::string &inputContent, const std::string &outputPartPath)
std::unordered_map< std::string, std::string > & getExtendedCoreProperty()
Package(const FileCoreProperties &pkgFileCP, const FileContentType &pkgFileCT, const FileRelationship &pkgFileRS, const PartMap &pkgFileP, const std::string &pkgPathName)
void openForWriting(const std::string &pkgPathName, int append, bool useZip64=false)
const FileRelationship & getPrincipalRelationship() const
void setFileFileCoreProperties(const FileCoreProperties &pkgFileCP)
void addContentType(const ContentType &contentType)
const std::string & getPathname() const
void setFileContentType(const FileContentType &pkgFileCT)
bool isOpenedForReading() const
const PartMap & getAllFilePart() const
std::string extractFile(const std::string &filename)
void addRelationship(const Relationship &relationship)
bool isOpenedForWriting() const
const FilePart * findPart(const std::string &outputPartPath) const
const FileCoreProperties & getFileCoreProperties() const
bool fileExists(const std::string &filename) const
Definition Relationship.h:28
The epc namespace.
Definition ContentType.h:25