CMS 3D CMS Logo

edm::EventExtractor Class Reference

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

List of all members.

Public Member Functions

 EventExtractor (EventBuffer &b)
std::auto_ptr< EventPrincipalextract ()

Private Attributes

EventBufferbuf_


Detailed Description

Definition at line 84 of file Utilities.h.


Constructor & Destructor Documentation

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

Definition at line 87 of file Utilities.h.

00087 :
    explicit EventExtractor(EventBuffer& b):buf_(&b) { }


Member Function Documentation

std::auto_ptr<EventPrincipal> edm::EventExtractor::extract (  )  [inline]

Definition at line 88 of file Utilities.h.

00088                                            :buf_(&b) { }
00089     std::auto_ptr<EventPrincipal> extract()
00090     {
00091       EventBuffer::ConsumerBuffer b(*buf_);
00092           FDEBUG(2) << "Extract: " << b.buffer() << " " << b.size() << std::endl;
00093       std::auto_ptr<EventPrincipal> p(*(EventPrincipal**)b.buffer());
00094           FDEBUG(2) << "Extract: event ptr = " << (void*)p.get() << std::endl;
00095       return p;


Member Data Documentation

EventBuffer* edm::EventExtractor::buf_ [private]

Definition at line 97 of file Utilities.h.


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