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 //
20 
21 // system include files
22 
23 // user include files
24 
25 // forward declarations
26 namespace edm {
27  namespace multicore {
29  {
30 
31  public:
33  MessageReceiverForSource(int parentSocket, int parentPipe);
34 
35  // ---------- const member functions ---------------------
36 
37  // ---------- static member functions --------------------
38 
39  // ---------- member functions ---------------------------
40 
42  void receive();
43 
45  unsigned long startIndex() const {
46  return m_startIndex;
47  }
51  unsigned long numberOfConsecutiveIndices() const {
53  }
56  unsigned long numberToSkip() const {
57  return m_numberToSkip;
58  }
59 
60  private:
61  MessageReceiverForSource(const MessageReceiverForSource&); // stop default
62 
63  const MessageReceiverForSource& operator=(const MessageReceiverForSource&); // stop default
64 
65  // ---------- member data --------------------------------
68  int m_maxFd;
69  unsigned long m_startIndex;
71  unsigned long m_numberToSkip;
72 
73  };
74  }
75 }
76 
77 
78 #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.