FreeLing
4.0
|
Class output implements a wrapper to transparently create and access an output_handler. More...
#include <output.h>
Public Member Functions | |
output (const std::wstring &) | |
Constructor. | |
~output () | |
Destructor. | |
void | load_tagset (const std::wstring &ftag) |
initialize underlying handler tagset | |
void | set_language (const std::wstring &lg) |
initialize underlying handler language | |
void | PrintHeader (std::wostream &sout) const |
void | PrintFooter (std::wostream &sout) const |
void | PrintResults (std::wostream &sout, const std::list< freeling::sentence > &ls) const |
print given sentences to sout in appropriate format (no headers) | |
std::wstring | PrintResults (const std::list< freeling::sentence > &ls) const |
void | PrintResults (std::wostream &sout, const freeling::document &doc) |
print given document to sout in appropriate format, including headers. | |
std::wstring | PrintResults (const freeling::document &doc) const |
Private Attributes | |
output_handler * | who |
Class output implements a wrapper to transparently create and access an output_handler.
freeling::io::output::output | ( | const std::wstring & | ) |
Constructor.
Destructor.
void freeling::io::output::load_tagset | ( | const std::wstring & | ftag | ) |
initialize underlying handler tagset
void freeling::io::output::PrintFooter | ( | std::wostream & | sout | ) | const |
void freeling::io::output::PrintHeader | ( | std::wostream & | sout | ) | const |
void freeling::io::output::PrintResults | ( | std::wostream & | sout, |
const std::list< freeling::sentence > & | ls | ||
) | const |
print given sentences to sout in appropriate format (no headers)
std::wstring freeling::io::output::PrintResults | ( | const std::list< freeling::sentence > & | ls | ) | const |
void freeling::io::output::PrintResults | ( | std::wostream & | sout, |
const freeling::document & | doc | ||
) |
print given document to sout in appropriate format, including headers.
std::wstring freeling::io::output::PrintResults | ( | const freeling::document & | doc | ) | const |
void freeling::io::output::set_language | ( | const std::wstring & | lg | ) |
initialize underlying handler language
output_handler* freeling::io::output::who [private] |