CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MessageForSource.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_MessageForSource_h
2 #define FWCore_Framework_MessageForSource_h
3 // -*- C++ -*-
4 //
5 // Package: Framework
6 // Class : MessageForSource
7 //
22 //
23 // Original Author: Chris Jones
24 // Created: Thu Dec 30 10:08:24 CST 2010
25 // $Id$
26 //
27 
28 // system include files
29 
30 // user include files
31 
32 // forward declarations
33 
34 namespace edm {
35  namespace multicore {
37  {
38 
39  public:
42 
43  //virtual ~MessageForSource();
44 
45  // ---------- const member functions ---------------------
46 
47  // ---------- static member functions --------------------
48  static size_t sizeForBuffer() {
49  //posix message queue needs to know how much information to
50  //send excluding the manditory 'type' (which must be a long).
51  return sizeof(MessageForSource)-sizeof(long);
52  }
53  static long messageType() { return 1;}
54 
55  // ---------- member functions ---------------------------
56 
57  public:
58  //MessageForSource(const MessageForSource&); // allow default
59 
60  //const MessageForSource& operator=(const MessageForSource&); // allow default
61 
62  // ---------- member data --------------------------------
63  long mtype; //posixs requires the first member data be a long which holds the 'type'
64  unsigned long startIndex; //which event index to start processing for this 'block'
65  unsigned long nIndices; //number of consecutive indicies in the block
66 
67  };
68  }
69 }
70 
71 #endif