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

OutputStream Class Reference

A small to stream Data I/O. More...

#include <OutputStream.h>

Inheritance diagram for OutputStream:

Algorithm List of all members.

Public Types

typedef std::vector<DataStoreItem*> Items
typedef std::vector<std::string> ItemNames

Public Methods

virtual StatusCode initialize ()
 Initialize OutputStream. More...

virtual StatusCode finalize ()
 Terminate OutputStream. More...

virtual StatusCode execute ()
 Working entry point. More...

virtual StatusCode connectConversionSvc ()
virtual bool collect (IDataDirectory* dir, int level)
 Store agent's classback. More...

void clearItems ()
 Clear item list. More...

void addItem (const std::string& descriptor)
 Add item to output stramer list. More...

void clearSelection ()
 Clear list of selected objects. More...

IDataSelector* selectedObjects ()
 Return the list of selected objects. More...


Protected Methods

 OutputStream (const std::string& name, ISvcLocator* pSvcLocator)
 Standard algorithm Constructor. More...

virtual ~OutputStream ()
 Standard Destructor. More...

StatusCode decodeAcceptAlgs ( )
 Decode list of Algorithms that this stream accepts. More...

void acceptAlgsHandler ( Property& theProp )
 Handler for AcceptAlgs Property. More...

StatusCode decodeRequireAlgs ( )
 Decode list of Algorithms that this stream requires. More...

void requireAlgsHandler ( Property& theProp )
 Handler for RequireAlgs Property. More...

StatusCode decodeVetoAlgs ( )
 Decode list of Algorithms that this stream is vetoed by. More...

void vetoAlgsHandler ( Property& theProp )
 Handler for VetoAlgs Property. More...

StatusCode decodeAlgorithms ( StringArrayProperty& theNames, std::vector<Algorithm*>* theAlgs )
 Decode specified list of Algorithms. More...

bool isEventAccepted ( ) const
 Test whether this event should be output. More...


Protected Attributes

bool m_doPreLoad
 Flag indicating wether data pre-loading should be performed. More...

std::string m_storeName
 Name of the service managing the data store. More...

std::string m_persName
 Name of the persistency service capable to write data from the store. More...

std::string m_output
 Name of the output file specification. More...

std::string m_outputName
 Name of the output file. More...

OutputStreamAgentm_agent
 Keep reference of agent. More...

IDataProviderSvc* m_pDataProvider
 Keep reference to the data provider service. More...

IDataManagerSvc* m_pDataManager
 Keep reference to the data manager service. More...

IConversionSvcm_pConversionSvc
 Keep reference to the data conversion service. More...

DataStoreItem* m_currentItem
 Keep track of the current item. More...

ItemNames m_itemNames
 Vector of item names. More...

Items m_itemList
 Vector of items to be saved to this stream. More...

IDataSelector m_objects
 Collection of objects beeing selected. More...

int m_events
 Number of events written to this output stream. More...

StringArrayProperty m_acceptNames
 Vector of names of Algorithms that this stream accepts. More...

StringArrayProperty m_requireNames
 Vector of names of Algorithms that this stream requires. More...

StringArrayProperty m_vetoNames
 Vector of names of Algorithms that this stream is vetoed by. More...

std::vector<Algorithm*>* m_acceptAlgs
 Vector of Algorithms that this stream accepts. More...

std::vector<Algorithm*>* m_requireAlgs
 Vector of Algorithms that this stream requires. More...

std::vector<Algorithm*>* m_vetoAlgs
 Vector of Algorithms that this stream is vetoed by. More...


Friends

class  AlgFactory< OutputStream >

Detailed Description

A small to stream Data I/O.

Author: M.Frank Version: 1.0

Definition at line 34 of file OutputStream.h.


Member Typedef Documentation

typedef std::vector<std::string> OutputStream::ItemNames
 

Definition at line 38 of file OutputStream.h.

typedef std::vector<DataStoreItem*> OutputStream::Items
 

Definition at line 37 of file OutputStream.h.


Constructor & Destructor Documentation

OutputStream::OutputStream ( const std::string & name,
ISvcLocator * pSvcLocator ) [protected]
 

Standard algorithm Constructor.

Definition at line 35 of file OutputStream.cpp.

OutputStream::~OutputStream ( ) [protected, virtual]
 

Standard Destructor.

Definition at line 66 of file OutputStream.cpp.


Member Function Documentation

void OutputStream::acceptAlgsHandler ( Property & theProp ) [protected]
 

Handler for AcceptAlgs Property.

Definition at line 296 of file OutputStream.cpp.

void OutputStream::addItem ( const std::string & descriptor )
 

Add item to output stramer list.

Definition at line 208 of file OutputStream.cpp.

Referenced by initialize().

void OutputStream::clearItems ( )
 

Clear item list.

Definition at line 200 of file OutputStream.cpp.

Referenced by finalize(), and initialize().

void OutputStream::clearSelection ( )
 

Clear list of selected objects.

Definition at line 195 of file OutputStream.cpp.

Referenced by execute().

bool OutputStream::collect ( IDataDirectory * dir,
int level ) [virtual]
 

Store agent's classback.

Definition at line 177 of file OutputStream.cpp.

Referenced by OutputStreamAgent::analyse().

StatusCode OutputStream::connectConversionSvc ( ) [virtual]
 

Definition at line 228 of file OutputStream.cpp.

Referenced by initialize().

StatusCode OutputStream::decodeAcceptAlgs ( ) [protected]
 

Decode list of Algorithms that this stream accepts.

Definition at line 289 of file OutputStream.cpp.

Referenced by initialize().

StatusCode OutputStream::decodeAlgorithms ( StringArrayProperty & theNames,
std::vector< Algorithm *>* theAlgs ) [protected]
 

Decode specified list of Algorithms.

Definition at line 328 of file OutputStream.cpp.

Referenced by acceptAlgsHandler(), decodeAcceptAlgs(), decodeRequireAlgs(), decodeVetoAlgs(), requireAlgsHandler(), and vetoAlgsHandler().

StatusCode OutputStream::decodeRequireAlgs ( ) [protected]
 

Decode list of Algorithms that this stream requires.

Definition at line 302 of file OutputStream.cpp.

Referenced by initialize().

StatusCode OutputStream::decodeVetoAlgs ( ) [protected]
 

Decode list of Algorithms that this stream is vetoed by.

Definition at line 315 of file OutputStream.cpp.

Referenced by initialize().

StatusCode OutputStream::execute ( ) [virtual]
 

Working entry point.

Definition at line 150 of file OutputStream.cpp.

StatusCode OutputStream::finalize ( ) [virtual]
 

Terminate OutputStream.

Definition at line 136 of file OutputStream.cpp.

StatusCode OutputStream::initialize ( ) [virtual]
 

Initialize OutputStream.

Definition at line 74 of file OutputStream.cpp.

bool OutputStream::isEventAccepted ( ) const [protected]
 

Test whether this event should be output.

Definition at line 389 of file OutputStream.cpp.

Referenced by execute().

void OutputStream::requireAlgsHandler ( Property & theProp ) [protected]
 

Handler for RequireAlgs Property.

Definition at line 309 of file OutputStream.cpp.

IDataSelector * OutputStream::selectedObjects ( ) [inline]
 

Return the list of selected objects.

Definition at line 122 of file OutputStream.h.

Referenced by execute().

void OutputStream::vetoAlgsHandler ( Property & theProp ) [protected]
 

Handler for VetoAlgs Property.

Definition at line 322 of file OutputStream.cpp.


Friends And Related Function Documentation

class AlgFactory [friend]
 

Definition at line 35 of file OutputStream.h.


Member Data Documentation

std::vector< Algorithm *>* OutputStream::m_acceptAlgs [protected]
 

Vector of Algorithms that this stream accepts.

Definition at line 75 of file OutputStream.h.

StringArrayProperty OutputStream::m_acceptNames [protected]
 

Vector of names of Algorithms that this stream accepts.

Definition at line 69 of file OutputStream.h.

OutputStreamAgent * OutputStream::m_agent [protected]
 

Keep reference of agent.

Definition at line 51 of file OutputStream.h.

DataStoreItem * OutputStream::m_currentItem [protected]
 

Keep track of the current item.

Definition at line 59 of file OutputStream.h.

bool OutputStream::m_doPreLoad [protected]
 

Flag indicating wether data pre-loading should be performed.

Definition at line 41 of file OutputStream.h.

int OutputStream::m_events [protected]
 

Number of events written to this output stream.

Definition at line 67 of file OutputStream.h.

Items OutputStream::m_itemList [protected]
 

Vector of items to be saved to this stream.

Definition at line 63 of file OutputStream.h.

ItemNames OutputStream::m_itemNames [protected]
 

Vector of item names.

Definition at line 61 of file OutputStream.h.

IDataSelector OutputStream::m_objects [protected]
 

Collection of objects beeing selected.

Definition at line 65 of file OutputStream.h.

std::string OutputStream::m_output [protected]
 

Name of the output file specification.

Definition at line 47 of file OutputStream.h.

std::string OutputStream::m_outputName [protected]
 

Name of the output file.

Definition at line 49 of file OutputStream.h.

IConversionSvc * OutputStream::m_pConversionSvc [protected]
 

Keep reference to the data conversion service.

Definition at line 57 of file OutputStream.h.

IDataManagerSvc * OutputStream::m_pDataManager [protected]
 

Keep reference to the data manager service.

Definition at line 55 of file OutputStream.h.

IDataProviderSvc * OutputStream::m_pDataProvider [protected]
 

Keep reference to the data provider service.

Definition at line 53 of file OutputStream.h.

std::string OutputStream::m_persName [protected]
 

Name of the persistency service capable to write data from the store.

Definition at line 45 of file OutputStream.h.

std::vector< Algorithm *>* OutputStream::m_requireAlgs [protected]
 

Vector of Algorithms that this stream requires.

Definition at line 77 of file OutputStream.h.

StringArrayProperty OutputStream::m_requireNames [protected]
 

Vector of names of Algorithms that this stream requires.

Definition at line 71 of file OutputStream.h.

std::string OutputStream::m_storeName [protected]
 

Name of the service managing the data store.

Definition at line 43 of file OutputStream.h.

std::vector< Algorithm *>* OutputStream::m_vetoAlgs [protected]
 

Vector of Algorithms that this stream is vetoed by.

Definition at line 79 of file OutputStream.h.

StringArrayProperty OutputStream::m_vetoNames [protected]
 

Vector of names of Algorithms that this stream is vetoed by.

Definition at line 73 of file OutputStream.h.


The documentation for this class was generated from the following files:
Generated at Wed Nov 21 12:22:34 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000