35 #ifndef _Wolframe_CMDBIND_DOCTYPE_DETECTOR_HPP_INCLUDED
36 #define _Wolframe_CMDBIND_DOCTYPE_DETECTOR_HPP_INCLUDED
39 #include <boost/shared_ptr.hpp>
57 virtual void putInput(
const char* chunk, std::size_t chunksize)=0;
102 const std::string&
name()
const
DoctypeDetector * create() const
Create an instance.
Definition: doctypeDetector.hpp:96
boost::shared_ptr< DoctypeDetector > DoctypeDetectorR
Shared doctype detector reference.
Definition: doctypeDetector.hpp:74
boost::shared_ptr< DoctypeInfo > DoctypeInfoR
Definition: doctypeinfo.hpp:74
DoctypeDetectorType(const std::string &name_, CreateDoctypeDetector create_)
Constructor.
Definition: doctypeDetector.hpp:89
CreateDoctypeDetector m_create
Definition: doctypeDetector.hpp:109
DoctypeDetector *(* CreateDoctypeDetector)()
Constructor function for doctype detector instance.
Definition: doctypeDetector.hpp:77
Structure for document type and format.
DoctypeDetectorType()
Default constructor.
Definition: doctypeDetector.hpp:86
virtual void putInput(const char *chunk, std::size_t chunksize)=0
Feed document type detection with more data.
virtual const char * lastError() const =0
Get the last error occurred.
std::string m_name
Definition: doctypeDetector.hpp:108
virtual const types::DoctypeInfoR & info() const =0
Get the result of document type and format recognition.
const std::string & name() const
Get the doctype detector name (usually docformat name)
Definition: doctypeDetector.hpp:102
virtual ~DoctypeDetector()
Destructor.
Definition: doctypeDetector.hpp:51
Interface to document type and format detection.
Definition: doctypeDetector.hpp:46
Constructor as class.
Definition: doctypeDetector.hpp:82
virtual bool run()=0
Start or continue running the document type and format detection.
DoctypeDetectorType(const DoctypeDetectorType &o)
Definition: doctypeDetector.hpp:92