CMS 3D CMS Logo

Public Member Functions | Private Attributes

edm::JobHeaderInserter Class Reference

#include <Utilities.h>

List of all members.

Public Member Functions

void insert (InitMsg const &msg)
 JobHeaderInserter (EventBuffer &b)

Private Attributes

EventBufferbuf_
JobHeaderDecoder decoder_

Detailed Description

Definition at line 45 of file Utilities.h.


Constructor & Destructor Documentation

edm::JobHeaderInserter::JobHeaderInserter ( EventBuffer b) [inline, explicit]

Definition at line 48 of file Utilities.h.

: buf_(&b) {}

Member Function Documentation

void edm::JobHeaderInserter::insert ( InitMsg const &  msg) [inline]

Definition at line 49 of file Utilities.h.

References b, buf_, edm::EventBuffer::OperateBuffer< T >::buffer(), edm::EventBuffer::OperateBuffer< T >::commit(), edm::JobHeaderDecoder::decodeJobHeader(), decoder_, AlCaHLTBitMon_ParallelJobs::p, and v.

    {
      std::auto_ptr<SendJobHeader> p = decoder_.decodeJobHeader(msg);
      EventBuffer::ProducerBuffer b(*buf_);
      void** v = (void**)b.buffer();
      *v = p.release();
      b.commit(sizeof(void*));
    }

Member Data Documentation

Definition at line 58 of file Utilities.h.

Referenced by insert().

Definition at line 59 of file Utilities.h.

Referenced by insert().