00001 /* -*- mode:c++ -*- */ 00002 00016 class NTupleController 00017 { 00018 %TypeHeaderCode 00019 #include "datasrcs/NTupleController.h" 00020 #include "datasrcs/DataSourceException.h" 00021 %End 00022 00023 00024 private: 00025 00026 NTupleController(); 00027 00028 public: 00029 00031 static NTupleController * instance(); 00032 00043 DataSource * createNTuple ( const std::string & ) 00044 throw ( DataSourceException ) /Factory/ ; 00045 00054 NTuple * createNTuple ( const std::vector < std::string > & ) /Factory/; 00055 00064 CircularBuffer * 00065 createCircularBuffer ( const std::vector < std::string > & ) /Factory/; 00066 00073 NTuple * createNTuple ( unsigned int ) /Factory/; 00074 00078 CircularBuffer * createCircularBuffer ( unsigned int ) /Factory/; 00079 00086 NTuple * createNTuple ( ) /Factory/; 00087 00091 CircularBuffer * createCircularBuffer ( ) /Factory/; 00092 00098 DataSource * findDataSource ( const std::string & ) const; 00099 00105 void changeName ( DataSource * , 00106 const std::string & ); 00107 00112 int writeNTupleToFile ( DataSource * , 00113 const std::string & ); 00114 00118 int writeNTupleToFile ( const std::string & , const std::string & ); 00119 00126 void saveNTuples ( const std::string & , const std::string & ); 00127 00133 std::string registerNTuple ( DataSource * ); 00134 00141 void registerNTuple ( const std::string &, DataSource * ); 00142 00143 };