SILVERCODERS DocToText  4.0.1512
Converts DOC, XLS, XLSB, PPT, RTF, ODF (ODT, ODS, ODP), OOXML (DOCX, XLSX, PPTX), iWork (PAGES, NUMBERS, KEYNOTE), ODFXML (FODP, FODS, FODT), PDF, EML and HTML documents to plain text. Extracts metadata and annotations.
 All Classes Functions Enumerations Pages
Public Member Functions | List of all members
doctotext::Attachment Class Reference

#include <attachment.h>

Public Member Functions

 Attachment (const std::string &file_name)
 
 Attachment (const Attachment &attachment)
 
Attachmentoperator= (const Attachment &attachment)
 
void setFileName (const std::string &file_name)
 
void setBinaryContent (const std::string &binary_content)
 
void addField (const std::string &field_name, const Variant &field_value)
 
const char * filename () const
 Gets attachment file name.
 
const char * binaryContent () const
 Gets binary content of the attachment.
 
size_t binaryContentSize () const
 Returns size of the binary content.
 
bool hasField (const std::string &field_name) const
 Checks if metadata for given key exist (for example "Content-Type")
 
const VariantgetField (const std::string &field_name) const
 Returns value for given key (metadata)
 
const std::map< std::string,
Variant > & 
getFields () const
 Returns map with all keys and values.
 

Detailed Description

Structure of the attachment in parsed file. If parsed file has an attachments, PlainTextExtractor will try to get them. Attachment is usually another file. Another thing worth mentioning is that attachments may hold metadada.


The documentation for this class was generated from the following file: