Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

NTupleController Class Reference

List of all members.

Detailed Description

Definition at line 16 of file NTupleController.sip.

Public Member Functions

DataSourcecreateNTuple (const std::string &)/Factory/ throw ( DataSourceException )
 Creates and registers an NTuple from data in file filename.
NTuplecreateNTuple (const std::vector< std::string > &)/Factory/
 Creates and registers an empty NTuple.
CircularBuffercreateCircularBuffer (const std::vector< std::string > &)/Factory/
 Creates and registers an empty CircularBuffer.
NTuplecreateNTuple (unsigned int)/Factory/
 Creates and registers an empty NTuple.
CircularBuffercreateCircularBuffer (unsigned int)/Factory/
 Creates and registers an empty CircularBuffer.
NTuplecreateNTuple ()/Factory/
 Creates and registers an empty NTuple.
CircularBuffercreateCircularBuffer ()/Factory/
 Creates and registers an empty CircularBuffer.
DataSourcefindDataSource (const std::string &) const
 Returns the DataSource object with name name.
void changeName (DataSource *, const std::string &)
 Changes the name of the DataSource object.
int writeNTupleToFile (DataSource *, const std::string &)
 Writes the DataSource source to a file given by filename.
int writeNTupleToFile (const std::string &, const std::string &)
 Writes the NTuple named name to the file filename.
void saveNTuples (const std::string &, const std::string &)
 Saves all the NTuple.
std::string registerNTuple (DataSource *)
 Register a NTuple.
void registerNTuple (const std::string &, DataSource *)
 Register a NTuple.

Static Public Member Functions

static NTupleControllerinstance ()
 Returns the pointer to the singleton instance.


Member Function Documentation

void NTupleController::changeName DataSource ,
const std::string & 
 

Changes the name of the DataSource object.

Deprecated:
.
This method is deprecated. Use corresponding method in DataSourceController instead.

CircularBuffer* NTupleController::createCircularBuffer  ) 
 

Creates and registers an empty CircularBuffer.

Creates an empty CircularBuffer with no columns or rows.

CircularBuffer* NTupleController::createCircularBuffer unsigned  int  ) 
 

Creates and registers an empty CircularBuffer.

Creates an empty CircularBuffer with columns columns.

CircularBuffer* NTupleController::createCircularBuffer const std::vector< std::string > &   ) 
 

Creates and registers an empty CircularBuffer.

Creates an empty CircularBuffer with the number of columns equal to the length of the vector labels. The labels for the columns is taken from the elements of the vector labels.

Note:
This method is deprecated. Create your CircularBuffer and register it instead.

NTuple* NTupleController::createNTuple  ) 
 

Creates and registers an empty NTuple.

Creates an empty NTuple with no columns or rows.

Note:
This method is deprecated. Create your NTuple and register it instead.

NTuple* NTupleController::createNTuple unsigned  int  ) 
 

Creates and registers an empty NTuple.

Creates an empty NTuple with columns columns.

Note:
This method is deprecated. Create your CircularBuffer and register it instead.

NTuple* NTupleController::createNTuple const std::vector< std::string > &   ) 
 

Creates and registers an empty NTuple.

Creates an empty NTuple with the number of columns equal to the length of the vector labels. The labels for the columns is taken from the elements of the vector labels.

Note:
This method is deprecated. Create your CircularBuffer and register it instead.

DataSource* NTupleController::createNTuple const std::string &   )  throw ( DataSourceException )
 

Creates and registers an NTuple from data in file filename.

If file has already been opened, return pointer to the existing NTuple. Otherwise attempts to read the file as NTuple and if successful returns a pointer to the created NTuple object. If file was not found, or could not be parsed, then throws a DataSourceException with an explanation.

Note:
This method is deprecated. Create your NTuple and register it instead.

DataSource* NTupleController::findDataSource const std::string &   )  const
 

Returns the DataSource object with name name.

Deprecated:
This method is deprecated.
Use the DataSourceController methods instead.

static NTupleController* NTupleController::instance  )  [static]
 

Returns the pointer to the singleton instance.

void NTupleController::registerNTuple const std::string &  ,
DataSource
 

Register a NTuple.

Deprecated:
This method is deprecated.
Use DataSourceController::registerNTuple(const std::string &,DataSource *) instead.

std::string NTupleController::registerNTuple DataSource  ) 
 

Register a NTuple.

Deprecated:
This method is deprecated.
Use DataSourceController::registerNTuple(DataSource *) instead.

void NTupleController::saveNTuples const std::string &  ,
const std::string & 
 

Saves all the NTuple.

Saves all the NTuple objects of the application with the file name prefixed by prefix followed by index number and a suffix suffix. After the file is saved, the the file name part of prefix is used to set the NTuple name.

int NTupleController::writeNTupleToFile const std::string &  ,
const std::string & 
 

Writes the NTuple named name to the file filename.

Returns 0 if successful, otherwise returns a yet to be determined return code.

int NTupleController::writeNTupleToFile DataSource ,
const std::string & 
 

Writes the DataSource source to a file given by filename.

Returns 0 if successful, otherwise returns a yet to be determined return code.


The documentation for this class was generated from the following file:
Generated on Wed Sep 7 14:51:56 2005 for SiHippo by  doxygen 1.4.3