35 #ifndef _Wolframe_FILTER_TOSTRING_FILTER_INTERFACE_HPP_INCLUDED
36 #define _Wolframe_FILTER_TOSTRING_FILTER_INTERFACE_HPP_INCLUDED
76 virtual void getOutput(
const void*& buf, std::size_t& bufsize)
virtual ~ToStringFilter()
Destructor.
Definition: tostringfilter.hpp:67
const std::string & content() const
Get the content.
Definition: tostringfilter.hpp:84
virtual void getOutput(const void *&buf, std::size_t &bufsize)
Definition: tostringfilter.hpp:76
virtual bool print(ElementType type, const types::VariantConst &element)
Implementation of TypedOutputFilter::print(ElementType,const types::VariantConst&) ...
Output filter for tostring methods in language bindings.
Definition: tostringfilter.hpp:45
Base of input/ouput filter.
Definition: filterbase.hpp:45
FilterBase::ElementType m_lasttype
last parsed element type
Definition: tostringfilter.hpp:89
open new hierarchy level
Definition: filterbase.hpp:68
ToStringFilter(const std::string indentstr_="")
Constructor.
Definition: tostringfilter.hpp:49
virtual TypedOutputFilter * copy() const
Get a self copy.
Definition: tostringfilter.hpp:71
int m_taglevel
count of open tags
Definition: tostringfilter.hpp:92
Variant value type that represents a variant copy without content ownership.
Definition: variant.hpp:286
std::string m_indent
indent array
Definition: tostringfilter.hpp:90
ElementType
Content element type that describes the role of the element in the structured input.
Definition: filterbase.hpp:66
Output filter with atomic values having a type.
Definition: typedfilter.hpp:104
std::string m_content
content string
Definition: tostringfilter.hpp:87
std::size_t m_contentpos
position in content string
Definition: tostringfilter.hpp:88
ToStringFilter(const ToStringFilter &o)
Copy constructor.
Definition: tostringfilter.hpp:58
std::string m_indentstr
indentiation string
Definition: tostringfilter.hpp:91
Typed interface for input/output filter.