CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DQMEventConsumerRegistrationInfo.h
Go to the documentation of this file.
1 // $Id: DQMEventConsumerRegistrationInfo.h,v 1.9 2011/03/07 15:31:31 mommsen Exp $
3 
4 #ifndef EventFilter_StorageManager_DQMEventConsumerRegistrationInfo_h
5 #define EventFilter_StorageManager_DQMEventConsumerRegistrationInfo_h
6 
7 #include <iosfwd>
8 #include <string>
9 
10 #include <boost/shared_ptr.hpp>
11 
12 #include "toolbox/net/Utils.h"
13 
19 
20 #include <boost/enable_shared_from_this.hpp>
21 
22 
23 namespace stor
24 {
34  public RegistrationInfoBase,
35  public boost::enable_shared_from_this<DQMEventConsumerRegistrationInfo>
36  {
37  public:
38 
43  (
44  const edm::ParameterSet& pset,
45  const EventServingParams& eventServingParams,
46  const std::string& remoteHost = toolbox::net::getHostName()
47  );
48 
50  (
51  const edm::ParameterSet& pset,
52  const std::string& remoteHost = toolbox::net::getHostName()
53  );
54 
55  // Destructor:
57 
58  // Accessors:
61  uint32 eventCode() const { return Header::DQM_EVENT; }
62  std::string eventURL() const { return sourceURL() + "/getDQMeventdata"; }
63  std::string registerURL() const { return sourceURL() + "/registerDQMConsumer"; }
64 
65  // Comparison:
69 
70  // Output:
71  std::ostream& write(std::ostream& os) const;
72 
73  // Implementation of the Template Method pattern.
74  virtual void do_registerMe(EventDistributor*);
75  virtual void do_eventType(std::ostream&) const;
76  virtual void do_appendToPSet(edm::ParameterSet&) const;
77 
78  private:
79 
80  void parsePSet(const edm::ParameterSet&);
81 
83  };
84 
85  typedef boost::shared_ptr<stor::DQMEventConsumerRegistrationInfo> DQMEventConsRegPtr;
86 
87 } // namespace stor
88 
89 #endif // EventFilter_StorageManager_DQMEventConsumerRegistrationInfo_h
90 
91 
virtual void do_eventType(std::ostream &) const
DQMEventConsumerRegistrationInfo(const edm::ParameterSet &pset, const EventServingParams &eventServingParams, const std::string &remoteHost=toolbox::net::getHostName())
const std::string & sourceURL() const
bool operator!=(const DQMEventConsumerRegistrationInfo &) const
unsigned int uint32
Definition: MsgTools.h:13
bool operator==(const DQMEventConsumerRegistrationInfo &) const
virtual void do_appendToPSet(edm::ParameterSet &) const
bool operator<(const DQMEventConsumerRegistrationInfo &) const
const std::string & remoteHost() const
std::ostream & write(std::ostream &os) const
boost::shared_ptr< stor::DQMEventConsumerRegistrationInfo > DQMEventConsRegPtr