SFF++ library: reading and writing SFF from C++
sff::SFFostream< C > Class Template Reference

#include <sffostream.h>

Inheritance diagram for sff::SFFostream< C >:
Collaboration diagram for sff::SFFostream< C >:

Public Types

typedef C Tseries
 
typedef C::Tcoc Tcseries
 
typedef helper::ostream_manager Tbase
 

Public Member Functions

 SFFostream (std::ostream &os, const bool &debug=false)
 
 ~SFFostream ()
 
void setseries (const Tcseries &series)
 finish previous trace and start with a new one More...
 
void setfileheader (const FileHeader &)
 
void settraceheader (const TraceHeader &)
 
void setinfo (const INFO &)
 
void setwid2 (const WID2 &)
 
void setsrce (const SRCE &)
 
void setfree (const FREE &)
 
void setnormmode (const Enormmode &)
 
void nextislast ()
 
void clearlast ()
 
TraceHeader traceheader () const
 
const FileHeaderfileheader () const
 
const Enormmodenormmode () const
 

Protected Member Functions

void flushheader ()
 flush file header to output (if not done yet) More...
 

Protected Attributes

std::ostream & Mos
 
bool Mdebug
 

Private Member Functions

void write ()
 

Private Attributes

Tcseries Mseries
 
bool Mhasseries
 

Detailed Description

template<class C>
class sff::SFFostream< C >

SFF output stream

Note
You have to call the member function setseries() first upon writing a new trace. This will check for a pending trace to be flushed to disc. If there is one, it will be written to file together with all stored header information first. Then the passed series will be copied to a local member data. Notice, that this will be a shallow copy, when using aff::Series objects. The data may still be modified through another handle from the outside, before it is written to the file. After setting the series itself, header information should be passed through the inherited member functions provided by ostream_manager.
Deprecated:
The use of class SFFostream is deprecated. It should be replaced by the corresponding output class in libdatrwxx. SFFostream will no longer be maintained. Thomas Forbriger, 22.3.2013.

Definition at line 111 of file sffostream.h.


The documentation for this class was generated from the following file: