CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MessageReceiverForSource.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_MessageReceiverForSource_h
2 #define FWCore_Framework_MessageReceiverForSource_h
3 // -*- C++ -*-
4 //
5 // Package: Framework
6 // Class : MessageReceiverForSource
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Thu Dec 30 10:09:44 CST 2010
19 // $Id: MessageReceiverForSource.h,v 1.4 2012/02/01 20:04:31 chrjones Exp $
20 //
21 
22 // system include files
23 
24 // user include files
25 
26 // forward declarations
27 namespace edm {
28  namespace multicore {
30  {
31 
32  public:
34  MessageReceiverForSource(int parentSocket, int parentPipe);
35 
36  // ---------- const member functions ---------------------
37 
38  // ---------- static member functions --------------------
39 
40  // ---------- member functions ---------------------------
41 
43  void receive();
44 
46  unsigned long startIndex() const {
47  return m_startIndex;
48  }
52  unsigned long numberOfConsecutiveIndices() const {
54  }
57  unsigned long numberToSkip() const {
58  return m_numberToSkip;
59  }
60 
61  private:
62  MessageReceiverForSource(const MessageReceiverForSource&); // stop default
63 
64  const MessageReceiverForSource& operator=(const MessageReceiverForSource&); // stop default
65 
66  // ---------- member data --------------------------------
69  int m_maxFd;
70  unsigned long m_startIndex;
72  unsigned long m_numberToSkip;
73 
74  };
75  }
76 }
77 
78 
79 #endif
unsigned long startIndex() const
After calling receive this holds the index to the first event to process.
const MessageReceiverForSource & operator=(const MessageReceiverForSource &)
MessageReceiverForSource(int parentSocket, int parentPipe)
Takes the fd of the read and write socket for communication with parent.