CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

stor::DQMEventConsumerRegistrationInfo Class Reference

#include <DQMEventConsumerRegistrationInfo.h>

Inheritance diagram for stor::DQMEventConsumerRegistrationInfo:
stor::RegistrationInfoBase

List of all members.

Public Member Functions

virtual void do_appendToPSet (edm::ParameterSet &) const
virtual void do_eventType (std::ostream &) const
virtual void do_registerMe (EventDistributor *)
 DQMEventConsumerRegistrationInfo (const edm::ParameterSet &pset, const std::string &remoteHost=toolbox::net::getHostName())
 DQMEventConsumerRegistrationInfo (const edm::ParameterSet &pset, const EventServingParams &eventServingParams, const std::string &remoteHost=toolbox::net::getHostName())
uint32 eventCode () const
uint32 eventRequestCode () const
std::string eventURL () const
bool operator!= (const DQMEventConsumerRegistrationInfo &) const
bool operator< (const DQMEventConsumerRegistrationInfo &) const
bool operator== (const DQMEventConsumerRegistrationInfo &) const
std::string registerURL () const
const std::string & topLevelFolderName () const
std::ostream & write (std::ostream &os) const
 ~DQMEventConsumerRegistrationInfo ()

Private Member Functions

void parsePSet (const edm::ParameterSet &)

Private Attributes

std::string topLevelFolderName_

Detailed Description

Holds the registration information for a DQM event consumer.

Author:
mommsen
Revision:
1.9
Date:
2011/03/07 15:31:31

Definition at line 33 of file DQMEventConsumerRegistrationInfo.h.


Constructor & Destructor Documentation

stor::DQMEventConsumerRegistrationInfo::DQMEventConsumerRegistrationInfo ( const edm::ParameterSet pset,
const EventServingParams eventServingParams,
const std::string &  remoteHost = toolbox::net::getHostName() 
)

Constructs an instance from the specified registration information.

Definition at line 14 of file DQMEventConsumerRegistrationInfo.cc.

    :
  RegistrationInfoBase(pset, remoteHost, eventServingParams, true)
  {
    parsePSet(pset);
  }
stor::DQMEventConsumerRegistrationInfo::DQMEventConsumerRegistrationInfo ( const edm::ParameterSet pset,
const std::string &  remoteHost = toolbox::net::getHostName() 
)

Definition at line 25 of file DQMEventConsumerRegistrationInfo.cc.

    :
  RegistrationInfoBase(pset, remoteHost, EventServingParams(), false)
  {
    parsePSet(pset);
  }
stor::DQMEventConsumerRegistrationInfo::~DQMEventConsumerRegistrationInfo ( ) [inline]

Definition at line 56 of file DQMEventConsumerRegistrationInfo.h.

{};

Member Function Documentation

void stor::DQMEventConsumerRegistrationInfo::do_appendToPSet ( edm::ParameterSet pset) const [virtual]
void stor::DQMEventConsumerRegistrationInfo::do_eventType ( std::ostream &  os) const [virtual]

Implements stor::RegistrationInfoBase.

Definition at line 54 of file DQMEventConsumerRegistrationInfo.cc.

References stor::RegistrationInfoBase::queueInfo(), and topLevelFolderName_.

  {
    os << "Top level folder: " << topLevelFolderName_ << "\n";
    queueInfo(os);
  }
void stor::DQMEventConsumerRegistrationInfo::do_registerMe ( EventDistributor evtDist) [virtual]

Implements stor::RegistrationInfoBase.

Definition at line 48 of file DQMEventConsumerRegistrationInfo.cc.

References stor::EventDistributor::registerDQMEventConsumer().

  {
    evtDist->registerDQMEventConsumer(shared_from_this());
  }
uint32 stor::DQMEventConsumerRegistrationInfo::eventCode ( ) const [inline]

Definition at line 61 of file DQMEventConsumerRegistrationInfo.h.

References Header::DQM_EVENT.

{ return Header::DQM_EVENT; }
uint32 stor::DQMEventConsumerRegistrationInfo::eventRequestCode ( ) const [inline]

Definition at line 60 of file DQMEventConsumerRegistrationInfo.h.

References Header::DQMEVENT_REQUEST.

std::string stor::DQMEventConsumerRegistrationInfo::eventURL ( ) const [inline]

Definition at line 62 of file DQMEventConsumerRegistrationInfo.h.

References stor::RegistrationInfoBase::sourceURL().

{ return sourceURL() + "/getDQMeventdata"; }
bool stor::DQMEventConsumerRegistrationInfo::operator!= ( const DQMEventConsumerRegistrationInfo other) const

Definition at line 78 of file DQMEventConsumerRegistrationInfo.cc.

  {
    return ! ( *this == other );
  }
bool stor::DQMEventConsumerRegistrationInfo::operator< ( const DQMEventConsumerRegistrationInfo other) const

Definition at line 61 of file DQMEventConsumerRegistrationInfo.cc.

References topLevelFolderName().

  {
    if ( topLevelFolderName() != other.topLevelFolderName() )
      return ( topLevelFolderName() < other.topLevelFolderName() );
    return RegistrationInfoBase::operator<(other);
  }
bool stor::DQMEventConsumerRegistrationInfo::operator== ( const DQMEventConsumerRegistrationInfo other) const

Definition at line 69 of file DQMEventConsumerRegistrationInfo.cc.

References topLevelFolderName().

  {
    return (
      topLevelFolderName() == other.topLevelFolderName() &&
      RegistrationInfoBase::operator==(other)
    );
  }
void stor::DQMEventConsumerRegistrationInfo::parsePSet ( const edm::ParameterSet pset) [private]
std::string stor::DQMEventConsumerRegistrationInfo::registerURL ( ) const [inline]

Definition at line 63 of file DQMEventConsumerRegistrationInfo.h.

References stor::RegistrationInfoBase::sourceURL().

{ return sourceURL() + "/registerDQMConsumer"; }
const std::string& stor::DQMEventConsumerRegistrationInfo::topLevelFolderName ( ) const [inline]

Definition at line 59 of file DQMEventConsumerRegistrationInfo.h.

References topLevelFolderName_.

Referenced by operator<(), and operator==().

{ return topLevelFolderName_; }
std::ostream& stor::DQMEventConsumerRegistrationInfo::write ( std::ostream &  os) const

Member Data Documentation