CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ErrorStreamConfigurationInfo.h
Go to the documentation of this file.
1 // $Id: ErrorStreamConfigurationInfo.h,v 1.6 2011/03/07 15:31:31 mommsen Exp $
3 
4 #ifndef EventFilter_StorageManager_ErrorStreamConfigurationInfo_h
5 #define EventFilter_StorageManager_ErrorStreamConfigurationInfo_h
6 
8 
9 #include <boost/shared_ptr.hpp>
10 
11 #include <string>
12 #include <vector>
13 #include <iosfwd>
14 
15 namespace stor
16 {
17 
27  {
28 
29  public:
30 
31  // Constructor:
33  int maxFileSizeMB ):
34  streamLabel_( streamLabel ),
35  maxFileSizeMB_( maxFileSizeMB ),
36  streamId_(0)
37  {}
38 
39  // Destructor:
41 
42  // Accessors:
43  const std::string& streamLabel() const { return streamLabel_; }
44  const int maxFileSizeMB() const { return maxFileSizeMB_; }
45  StreamID streamId() const { return streamId_; }
46 
47  // Comparison:
48  bool operator<(const ErrorStreamConfigurationInfo&) const;
49 
50  // Set stream Id:
52 
53  // Output:
54  friend std::ostream& operator <<
55  ( std::ostream&, const ErrorStreamConfigurationInfo& );
56 
57  private:
58 
59  std::string streamLabel_;
62 
63  };
64 
65  typedef std::vector<ErrorStreamConfigurationInfo> ErrStrConfigList;
66  typedef boost::shared_ptr<ErrStrConfigList> ErrStrConfigListPtr;
67 
68  std::ostream& operator << ( std::ostream&, const ErrorStreamConfigurationInfo& );
69 
70 } // namespace stor
71 
72 #endif // EventFilter_StorageManager_ErrorStreamConfigurationInfo_h
73 
74 
81 
boost::shared_ptr< ErrStrConfigList > ErrStrConfigListPtr
std::vector< ErrorStreamConfigurationInfo > ErrStrConfigList
ErrorStreamConfigurationInfo(const std::string &streamLabel, int maxFileSizeMB)
std::ostream & operator<<(std::ostream &os, ConsumerID id)
Definition: ConsumerID.h:69
bool operator<(const ErrorStreamConfigurationInfo &) const
size_t StreamID
Definition: StreamID.h:19