19namespace LinguisticProcessing
56 LDEBUG <<
"SBowDocumentWriter::endDocument()";
64 LDEBUG <<
"SBowDocumentWriter::handle()";
65 m_out->write(buf,length);
71 LDEBUG <<
"SBowDocumentWriter::startNode(" << elementName <<
"," << forIndexing <<
")";
83 LDEBUG <<
"SBowDocumentWriter::endNode()";
#define LPCLIENTSBOWHANDLERLOGINIT
defines callback interface
void writeHeader(std::ostream &file, BoWFileType type) const
void write(std::ostream &file) const
void endAnalysis() override
notify the end of an analysis content
virtual void setOut(std::ostream *out) override
set the output stream.
void handle(const char *buf, int length) override
gives content.
void startAnalysis() override
notify the start of an analysis content
void endNode(const Common::Misc::GenericDocumentProperties &props) override
notify the end of a hierarchyNode
void endDocument() override
notify the end of the document
void startNode(const std::string &elementName, bool forIndexing) override
notify the start of a new hierarchyNode
void startDocument(const Common::Misc::GenericDocumentProperties &props) override
notify the start of a new document
virtual ~SBowDocumentWriter()
void writeOneByteInt(std::ostream &file, const uint8_t number)
write a integer coded on one byte format in a file
void writeStringField(ostream &file, const string &s)