LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
BowDocumentWriter.cpp
Go to the documentation of this file.
1// Copyright 2002-2013 CEA LIST
2// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3//
4// SPDX-License-Identifier: MIT
5
6/***************************************************************************
7 * Copyright (C) 2004-2012 by CEA LIST *
8 * *
9 ***************************************************************************/
10#include "BowDocumentWriter.h"
14
15namespace Lima
16{
17
18namespace LinguisticProcessing
19{
20
27
28
31
37
41
43{
44 // enum type with small number of values coded on one byte;
46 props.write(*m_out);
47}
48
55
57void BowDocumentWriter::handle(const char* buf,int length)
58{
59 m_out->write(buf,length);
60}
61
62void BowDocumentWriter::startNode( const std::string& /*elementName*/, bool /*forIndexing*/ )
63{
64}
65
70
71}
72
73}
void writeHeader(std::ostream &file, BoWFileType type) const
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
void endAnalysis() override
notify the end of an analysis content
void startAnalysis() override
notify the start of an analysis content
void endDocument() override
notify the end of the document
void endNode(const Common::Misc::GenericDocumentProperties &props) override
notify the end of a hierarchyNode
void handle(const char *buf, int length) override
gives content.
void writeOneByteInt(std::ostream &file, const uint8_t number)
write a integer coded on one byte format in a file
NAUTITIA.