35 #ifndef _Wolframe_FILTER_INPUTFILTER_INTERFACE_HPP_INCLUDED
36 #define _Wolframe_FILTER_INPUTFILTER_INTERFACE_HPP_INCLUDED
44 #include <boost/shared_ptr.hpp>
75 ,
m_metadata( new types::DocMetaData( metadata)){}
95 virtual void putInput(
const void* ptr, std::size_t size,
bool end)=0;
103 virtual bool getNext(
ElementType& type,
const void*& element, std::size_t& elementsize)=0;
123 void setAttribute(
const std::string& name_,
const std::string& value_)
Base of a content input/ouput filter.
Definition: filterbase.hpp:140
Shared reference to an object exchangeable in a single thread context.
ElementType
Content element type that describes the role of the element in the structured input.
Definition: filterbase.hpp:66
void setError(const char *msg=0)
Set input filter error message.
Definition: filterbase.hpp:91
types::SharedReference< InputFilter > InputFilterR
Shared input filter (langbind::InputFilter) reference.
Definition: inputfilter.hpp:148
boost::shared_ptr< DocMetaData > DocMetaDataR
Shared meta data reference.
Definition: docmetadata.hpp:143
Common definitions of input and output filter.