CMS 3D CMS Logo

OtherMessageBuilder Class Reference

Other type of Messages Represented here. More...

#include <IOPool/Streamer/interface/OtherMessage.h>

List of all members.

Public Member Functions

uint32 code () const
uint8msgBody ()
 OtherMessageBuilder (void *buf, uint32 code, uint32 bodySize=0)
uint32 size () const
uint8startAddress ()

Private Attributes

uint8buf_
Headerh_


Detailed Description

Other type of Messages Represented here.

code 1 | size 4 | msg_body 4

For now use can provide any code, in future we may restrict 0, 1 and 2.

Definition at line 17 of file OtherMessage.h.


Constructor & Destructor Documentation

OtherMessageBuilder::OtherMessageBuilder ( void buf,
uint32  code,
uint32  bodySize = 0 
) [inline]

Definition at line 22 of file OtherMessage.h.

References h_.

00022                                                                 :
00023   buf_((uint8*)buf),
00024   h_((Header*)buf) 
00025    {
00026    new (h_) Header (code, (unsigned int)sizeof(Header)+bodySize);
00027    }


Member Function Documentation

uint32 OtherMessageBuilder::code ( void   )  const [inline]

Definition at line 29 of file OtherMessage.h.

References Header::code_, and h_.

00029 { return h_->code_; }

uint8* OtherMessageBuilder::msgBody (  )  [inline]

Definition at line 31 of file OtherMessage.h.

References buf_.

Referenced by stor::DataProcessManager::getHeaderFromSM(), edm::DQMHttpSource::getOneDQMEvent(), stor::DataProcessManager::getOneDQMEventFromSM(), edm::OnlineHttpReader::getOneEvent(), edm::EventStreamHttpReader::getOneEvent(), stor::DataProcessManager::getOneEventFromSM(), edm::EventStreamHttpReader::readHeader(), and edm::OnlineHttpReader::readHeader().

00031 { return buf_+sizeof(Header); }

uint32 OtherMessageBuilder::size ( void   )  const [inline]

Definition at line 30 of file OtherMessage.h.

References convert32(), h_, and Header::size_.

Referenced by stor::StorageManager::DQMeventdataWebPage(), stor::SMProxyServer::DQMeventdataWebPage(), stor::SMProxyServer::eventdataWebPage(), stor::StorageManager::eventdataWebPage(), stor::DataProcessManager::getHeaderFromSM(), edm::DQMHttpSource::getOneDQMEvent(), stor::DataProcessManager::getOneDQMEventFromSM(), edm::OnlineHttpReader::getOneEvent(), edm::EventStreamHttpReader::getOneEvent(), stor::DataProcessManager::getOneEventFromSM(), edm::EventStreamHttpReader::readHeader(), and edm::OnlineHttpReader::readHeader().

00030 { return convert32(h_->size_); }

uint8* OtherMessageBuilder::startAddress (  )  [inline]

Definition at line 32 of file OtherMessage.h.

References buf_.

Referenced by stor::DataProcessManager::getHeaderFromSM(), edm::DQMHttpSource::getOneDQMEvent(), stor::DataProcessManager::getOneDQMEventFromSM(), edm::OnlineHttpReader::getOneEvent(), edm::EventStreamHttpReader::getOneEvent(), stor::DataProcessManager::getOneEventFromSM(), edm::EventStreamHttpReader::readHeader(), and edm::OnlineHttpReader::readHeader().

00032 { return buf_; }


Member Data Documentation

uint8* OtherMessageBuilder::buf_ [private]

Definition at line 35 of file OtherMessage.h.

Referenced by msgBody(), and startAddress().

Header* OtherMessageBuilder::h_ [private]

Definition at line 36 of file OtherMessage.h.

Referenced by code(), OtherMessageBuilder(), and size().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:29:25 2009 for CMSSW by  doxygen 1.5.4