# proto/Source/writer.cpp File Reference

Definition (implementation) of (output) writing module interface. More...

`#include <algorithm>`
`#include <iomanip>`
`#include "config.h"`
`#include "dependencies.h"`
`#include "evaluation.h"`
`#include "filter.h"`
`#include "ngrams.h"`
`#include "notifier.h"`
`#include "persistent.h"`
`#include "utils.h"`
`#include "writer.h"`

## Namespaces
namespace | ace
## Typedefs
typedef std::vector< double > | ace::scores_t
| Container for scores and statistics thresholds.
## Functions
void | ace::_print_member (std::ostream &output, ngram_size_t index, const NGram::Member *member)
| Helper procedure - prints given N-gram member to given output stream.
void | ace::_print_members (std::ostream &output, const NGram *ngram)
| Helper procedure - prints given N-gram members to given output stream.
void | ace::_print_n_members (std::ostream &output, const NGram *ngram)
| Helper procedure - prints given N-gram members to given output stream.
void | ace::_print_tables (std::ostream &output, const EvaluationTables &tables)
| Helper procedure - prints certain N-gram evaluation tables to given output stream.
void | ace::_print_stats (std::ostream &output, const scores_t &scores)
| Helper procedure - prints certain N-gram statistics to given output stream.
void | ace::write (std::ofstream &output_file)
| Procedure writes extracted ngrams with their frequency count to given output file in plain text (tab-separated) format.
void | ace::_print_context (std::ofstream &output_file, const context_t *ctx, bool narrow=false)
void | ace::write_contexts (std::ofstream &output_file)
| Procedure writes extracted ngrams contexts to given output file.
void | ace::write_stats (std::ofstream &output_file)
| Procedure writes datafiles statistics to given output file.
void | ace::write_morphologic_filter_stats (std::ofstream &output_file)
| Procedure writes morphologic filtration statistics to given output file.
## Variables
const char | ace::fields_separator = '\t'
| CSV format separator.

## Detailed Description

Definition (implementation) of (output) writing module interface.

See writer.h for more info.

(C) Ceslav Przywara 2008, MFF UK Prague