A.I.M.S


aims::BundleWriter Class Reference

Writes bundles information to a bundles file. More...

#include <aims/fibers/bundles.h>

Inheritance diagram for aims::BundleWriter:
Collaboration diagram for aims::BundleWriter:

Public Types

typedef std::vector< FiberPointFiberPoints
 
- Public Types inherited from carto::PropertySet
typedef ::sigc::signal3< void,
const Object &, const
std::string &, const Object & > 
Signal
 

Public Member Functions

 BundleWriter ()
 
void setFileString (const std::string &fileName)
 set the output file name More...
 
virtual ~BundleWriter ()
 
virtual void bundleStarted (const BundleProducer &, const BundleInfo &)
 
virtual void bundleTerminated (const BundleProducer &, const BundleInfo &)
 
virtual void fiberStarted (const BundleProducer &, const BundleInfo &, const FiberInfo &)
 
virtual void fiberTerminated (const BundleProducer &, const BundleInfo &, const FiberInfo &)
 
virtual void newFiberPoint (const BundleProducer &, const BundleInfo &, const FiberInfo &, const FiberPoint &)
 
virtual void noMoreBundle (const BundleProducer &)
 
virtual void checkStreams ()
 
virtual void addFiber (const BundleProducer &, const BundleInfo &, const FiberInfo &, FiberPoint *, int &)
 
- Public Member Functions inherited from aims::BundleListener
virtual ~BundleListener ()
 
- Public Member Functions inherited from carto::PropertySet
 PropertySet ()
 
 PropertySet (const PropertySet &)
 
PropertySetoperator= (const PropertySet &)
 
virtual ~PropertySet ()
 
SignalgetSignalPropertyChanged ()
 
void addBuiltinProperty (const std::string &, T &)
 
void addBuiltinProperty (const std::string &, T &, bool &provided)
 
bool getProperty (const std::string &, T &) const
 
void setProperty (const std::string &, const T &)
 
virtual bool getProperty (const std::string &, Object &) const
 
virtual void setProperty (const std::string &, Object)
 
virtual bool removeProperty (const std::string &)
 
virtual bool hasProperty (const std::string &) const
 
virtual size_t size () const
 
virtual void clearProperties ()
 
virtual void copyBuiltinProperties (const PropertySet &source)
 
virtual Object objectIterator () const
 
iterator getIterator () const
 
- Public Member Functions inherited from carto::DictionaryInterface
virtual ~DictionaryInterface ()
 
virtual bool isDictionary () const
 
Object getProperty (const std::string &) const
 
Object getProperty (Object key) const
 
bool getProperty (const std::string &key, T &value) const
 
void setProperty (const std::string &, const char *)
 
void setProperty (const std::string &, const T &)
 
virtual void copyProperties (Object source)
 
virtual bool operator== (const DictionaryInterface &other) const
 
virtual bool operator!= (const DictionaryInterface &other) const
 
void setProperty (const std::string &key, Object const &value)
 
bool getProperty (const std::string &key, Object &value) const
 

Protected Attributes

int _ascii
 
std::string _fileName
 
carto::Object _header
 
std::ofstream _dataFile
 
int _firstFiberInBundle
 
int _writtenFibersCount
 
FiberPoints _fiberPoints
 

Additional Inherited Members

- Protected Member Functions inherited from aims::BundleListener
virtual void fiberTerminated (const BundleProducer &, const BundleInfo &, const FiberInfo &, FiberPoint *, int &)
 

Detailed Description

Writes bundles information to a bundles file.

BundleWriter is a BundleListener, thus must be connected to a BundleProducer, and is fed by it.

It will write the .bundles format.

Definition at line 225 of file bundles.h.

Member Typedef Documentation

Definition at line 234 of file bundles.h.

Constructor & Destructor Documentation

aims::BundleWriter::BundleWriter ( )
virtual aims::BundleWriter::~BundleWriter ( )
virtual

Member Function Documentation

virtual void aims::BundleWriter::addFiber ( const BundleProducer ,
const BundleInfo ,
const FiberInfo ,
FiberPoint ,
int &   
)
virtual
virtual void aims::BundleWriter::bundleStarted ( const BundleProducer ,
const BundleInfo  
)
virtual

Reimplemented from aims::BundleListener.

virtual void aims::BundleWriter::bundleTerminated ( const BundleProducer ,
const BundleInfo  
)
virtual

Reimplemented from aims::BundleListener.

virtual void aims::BundleWriter::checkStreams ( )
virtual
virtual void aims::BundleWriter::fiberStarted ( const BundleProducer ,
const BundleInfo ,
const FiberInfo  
)
virtual

Reimplemented from aims::BundleListener.

virtual void aims::BundleWriter::fiberTerminated ( const BundleProducer ,
const BundleInfo ,
const FiberInfo  
)
virtual

Reimplemented from aims::BundleListener.

virtual void aims::BundleWriter::newFiberPoint ( const BundleProducer ,
const BundleInfo ,
const FiberInfo ,
const FiberPoint  
)
virtual

Reimplemented from aims::BundleListener.

virtual void aims::BundleWriter::noMoreBundle ( const BundleProducer )
virtual

Reimplemented from aims::BundleListener.

void aims::BundleWriter::setFileString ( const std::string &  fileName)

set the output file name

Member Data Documentation

int aims::BundleWriter::_ascii
protected

Definition at line 250 of file bundles.h.

std::ofstream aims::BundleWriter::_dataFile
protected

Definition at line 253 of file bundles.h.

FiberPoints aims::BundleWriter::_fiberPoints
protected

Definition at line 256 of file bundles.h.

std::string aims::BundleWriter::_fileName
protected

Definition at line 251 of file bundles.h.

int aims::BundleWriter::_firstFiberInBundle
protected

Definition at line 254 of file bundles.h.

carto::Object aims::BundleWriter::_header
protected

Definition at line 252 of file bundles.h.

int aims::BundleWriter::_writtenFibersCount
protected

Definition at line 255 of file bundles.h.


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