Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

moot::TokenWriterNative Class Reference

Class for native "cooked" text-format token output.

#include <mootTokenIO.h>

Inheritance diagram for moot::TokenWriterNative:

Inheritance graph
[legend]
Collaboration diagram for moot::TokenWriterNative:

Collaboration graph
[legend]
List of all members.

Public Methods

Constructors etc.
Overrides
Output Utilities

Public Attributes


Constructor & Destructor Documentation

moot::TokenWriterNative::TokenWriterNative int    fmt = tiofWellDone,
const std::string    name = "TokenWriterNative"
[inline]
 

Default constructor

virtual moot::TokenWriterNative::~TokenWriterNative void    [inline, virtual]
 

Default destructor


Member Function Documentation

void moot::TokenWriterNative::_put_comment const char *    buf,
size_t    len,
mootio::mostream   os
 

Write a raw comment to a mootio::mostream

void moot::TokenWriterNative::_put_raw_buffer const char *    buf,
size_t    len,
mootio::mostream   os
 

Write some raw data to a mootio::mostream, respecinting @tw_is_comment_block

void moot::TokenWriterNative::_put_sentence const mootSentence   sentence,
mootio::mostream   os
 

Write a whole sentence to a mootio::mostream (with eos marker)

void moot::TokenWriterNative::_put_token const mootToken   token,
mootio::mostream   os
 

Write a single token to a mootio::mostream (with eot marker)

virtual void moot::TokenWriterNative::put_raw_buffer const char *    buf,
size_t    len
[inline, virtual]
 

Write some data to the currently selected output sink Descendants may override this method.

Reimplemented from moot::TokenWriter.

virtual void moot::TokenWriterNative::put_sentence const mootSentence   sentence [inline, virtual]
 

Write a single sentence to the currently selected output sink. Descendants may override this method. Default implementation just calls putToken() for every element of sentence.

Reimplemented from moot::TokenWriter.

virtual void moot::TokenWriterNative::put_token const mootToken   token [inline, virtual]
 

Write a single token to the currently selected output sink. Descendants must override this method.

Reimplemented from moot::TokenWriter.

std::string moot::TokenWriterNative::sentence2string const mootSentence   sentence [inline]
 

Clear internal buffer and stringify sentence into it, returning result as a new std::string

std::string moot::TokenWriterNative::token2string const mootToken   token [inline]
 

Clear internal buffer and stringify sentence into it, returning result as a new std::string


Member Data Documentation

mootio::mocbuffer moot::TokenWriterNative::twn_tmpbuf
 

Temporary buffer for *2string methods


The documentation for this class was generated from the following file:
Generated on Mon Sep 11 16:10:37 2006 for libmoot by doxygen1.2.18