CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DbFileHandler.h
Go to the documentation of this file.
1 // $Id: DbFileHandler.h,v 1.4.10.1 2011/03/07 11:33:04 mommsen Exp $
3 
4 #ifndef EventFilter_StorageManager_DbFileHandler_h
5 #define EventFilter_StorageManager_DbFileHandler_h
6 
8 
9 #include "boost/shared_ptr.hpp"
10 #include "boost/thread/mutex.hpp"
11 
12 #include <fstream>
13 #include <string>
14 
15 
16 namespace stor {
17 
27  {
28  public:
29 
30  DbFileHandler();
31 
33 
37  void configure(const unsigned int runNumber, const DiskWritingParams&);
38 
42  void writeOld(const utils::TimePoint_t&, const std::string&);
43 
48  void write(const std::string&);
49 
50 
51  private:
52 
53  void openFile(std::ofstream&, const utils::TimePoint_t&) const;
54 
55  void addReportHeader(std::ostream&, const utils::TimePoint_t&) const;
56 
57  //Prevent copying of the DbFileHandler
60 
62  unsigned int runNumber_;
63  };
64 
65  typedef boost::shared_ptr<DbFileHandler> DbFileHandlerPtr;
66 
67 } // stor namespace
68 
69 #endif // EventFilter_StorageManager_DbFileHandler_h
70 
71 
unsigned int runNumber_
Definition: DbFileHandler.h:62
void configure(const unsigned int runNumber, const DiskWritingParams &)
void writeOld(const utils::TimePoint_t &, const std::string &)
void addReportHeader(std::ostream &, const utils::TimePoint_t &) const
DiskWritingParams dwParams_
Definition: DbFileHandler.h:61
boost::shared_ptr< DbFileHandler > DbFileHandlerPtr
Definition: DbFileHandler.h:65
DbFileHandler & operator=(DbFileHandler const &)
void write(const std::string &)
boost::posix_time::ptime TimePoint_t
Definition: Utils.h:35
void openFile(std::ofstream &, const utils::TimePoint_t &) const