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);
55 static const char* CORE_PROP_REL_TYPE;
57 static const char* EXTENDED_CORE_PROP_REL_TYPE;
89 void openForWriting(
const std::string & pkgPathName,
int append,
bool useZip64 =
false);
237 std::string
extractFile(
const std::string & filename,
const std::string & password =
"");
Definition: ContentType.h:28
TypeProperty
Definition: CoreProperty.h:33
Definition: FileContentType.h:30
Definition: FileCoreProperties.h:28
Definition: FilePart.h:29
Definition: FileRelationship.h:30
void setPrincipalRelationship(const FileRelationship &pkgFileRS)
std::unordered_map< std::string, std::string > & getExtendedCoreProperty()
void addProperty(const CoreProperty::TypeProperty &pkgTypeProperty, const std::string &pkgPropertyValue)
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)
void setFileFileCoreProperties(const FileCoreProperties &pkgFileCP)
const FileContentType & getFileContentType() const
void addContentType(const ContentType &contentType)
const std::string & getPathname() const
void setFileContentType(const FileContentType &pkgFileCT)
const PartMap & getAllFilePart() const
bool isOpenedForReading() const
std::string extractFile(const std::string &filename, const std::string &password="")
const FileCoreProperties & getFileCoreProperties() const
void addRelationship(const Relationship &relationship)
const FilePart * findPart(const std::string &outputPartPath) const
bool isOpenedForWriting() const
const FileRelationship & getPrincipalRelationship() const
std::vector< std::string > openForReading(const std::string &pkgPathName)
FilePart * createPart(const std::string &inputContent, const std::string &outputPartPath)
bool fileExists(const std::string &filename) const
Definition: Relationship.h:28
The epc namespace.
Definition: ContentType.h:25