DocumentWriter Class Reference

#include <DocumentWriter.h>

List of all members.

Public Member Functions

 DocumentWriter (string w_fname_)
virtual ~DocumentWriter ()
bool write (const google::protobuf::Message &msg)

Detailed Description

Wrapper around protobuf msgs for convenient writing of words, topics & (word,index) pairs into word, topic, dictionary dump files respectively. Each msg is written into a binary file in record* format where record=(size of serialized msg,msg serialized as string)


Constructor & Destructor Documentation

DocumentWriter::DocumentWriter ( string  w_fname_  ) 

Constructs a DocumentWriter object to write msgs into w_fname and optionally topics to t_fname. You can however choose to ignore the words file if you want to write only topics by setting w_fname_="" & using write_topics() method.

DocumentWriter::~DocumentWriter (  )  [virtual]

Member Function Documentation

bool DocumentWriter::write ( const google::protobuf::Message &  msg  ) 

The default method to write a message to w_fname in (size of serialized msg,msg serialized as string)* format


The documentation for this class was generated from the following files:
Generated on Tue Jul 19 11:45:26 2011 for Y!LDA by  doxygen 1.6.3