CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ConsRegMessage.h
Go to the documentation of this file.
1 #ifndef IOPool_Streamer_ConsumerRegMessage_h
2 #define IOPool_Streamer_ConsumerRegMessage_h
3 
14 #include <map>
15 
16 // --------------- registration request builder ----------------
17 
19 {
20  public:
22  std::string const& consumerName,
23  std::string const& requestParameterSet);
24 
25  uint32 bufferSize() const { return bufSize_; }
26  uint8* startAddress() { return buf_; }
27  uint32 size() const;
28 
29  private:
32 };
33 
34 // --------------- registration request viewer -----------------
35 
37 {
38  public:
39  ConsRegRequestView(void* buf);
40 
41  uint32 code() const { return head_.code(); }
42  uint32 size() const { return head_.size(); }
43  uint8* startAddress() { return buf_; }
44 
45  std::string getConsumerName() { return consumerName_; }
46  std::string getRequestParameterSet() { return requestParameterSet_; }
47 
48  private:
51  std::string consumerName_;
52  std::string requestParameterSet_;
53 };
54 
55 // -------------- registration response builder ----------------
56 
58 {
59  public:
61  uint32 status, uint32 consumerId);
62 
63  uint32 bufferSize() const { return bufSize_; }
64  uint8* startAddress() { return buf_; }
65  uint32 size() const;
66 
67  void setStreamSelectionTable(std::map<std::string, Strings> const& selTable);
68 
69  enum STATUS_CODES { ES_NOT_READY = 0x10000 };
70 
71  private:
74 };
75 
76 // -------------- registration response viewer -----------------
77 
79 {
80  public:
81  ConsRegResponseView(void* buf);
82 
83  uint32 code() const { return head_.code(); }
84  uint32 size() const { return head_.size(); }
85  uint8* startAddress() { return buf_; }
86 
87  uint32 getStatus() { return status_; }
89  std::map<std::string, Strings> getStreamSelectionTable();
90 
91  private:
96 };
97 
98 #endif
std::string getRequestParameterSet()
uint32 bufferSize() const
ConsRegResponseView(void *buf)
uint32 code() const
Definition: MsgHeader.h:34
static int const bufSize
Definition: Guid.cc:24
ConsRegResponseBuilder(void *buf, uint32 bufSize, uint32 status, uint32 consumerId)
uint32 size() const
std::string requestParameterSet_
std::string getConsumerName()
ConsRegRequestView(void *buf)
ConsRegRequestBuilder(void *buf, uint32 bufSize, std::string const &consumerName, std::string const &requestParameterSet)
uint32 bufferSize() const
uint32 code() const
unsigned int uint32
Definition: MsgTools.h:13
uint32 size() const
Definition: MsgHeader.h:35
unsigned char uint8
Definition: MsgTools.h:11
uint8 * startAddress()
std::map< std::string, Strings > getStreamSelectionTable()
void setStreamSelectionTable(std::map< std::string, Strings > const &selTable)
uint32 code() const
tuple status
Definition: ntuplemaker.py:245
uint32 size() const
std::string consumerName_
uint32 size() const