18 #ifndef CREATE_EVNT_HPP
19 #define CREATE_EVNT_HPP
22 #include "SignalData.hpp"
23 #include <NodeBitmask.hpp>
24 #include <signaldata/DictTabInfo.hpp>
25 #include <AttributeList.hpp>
33 friend bool printDROP_EVNT_REQ(FILE*,
const Uint32*, Uint32, Uint16);
36 STATIC_CONST( SignalLength = 2 );
37 SECTION( EVENT_NAME_SECTION = 0 );
48 Uint32 getUserRef()
const {
51 void setUserRef(Uint32 val) {
54 Uint32 getUserData()
const {
57 void setUserData(Uint32 val) {
66 friend bool printDROP_EVNT_CONF(FILE*,
const Uint32*, Uint32, Uint16);
69 STATIC_CONST( SignalLength = 2 );
80 Uint32 getUserRef()
const {
83 void setUserRef(Uint32 val) {
86 Uint32 getUserData()
const {
89 void setUserData(Uint32 val) {
98 friend bool printDROP_EVNT_REF(FILE*,
const Uint32*, Uint32, Uint16);
104 NF_FakeErrorREF = 11,
108 STATIC_CONST( SignalLength = 7 );
109 STATIC_CONST( SignalLength2 = SignalLength+1 );
126 Uint32 m_masterNodeId;
127 Uint32 getUserRef()
const {
130 void setUserRef(Uint32 val) {
133 Uint32 getUserData()
const {
136 void setUserData(Uint32 val) {
139 Uint32 getErrorCode()
const {
142 void setErrorCode(Uint32 val) {
145 Uint32 getErrorLine()
const {
148 void setErrorLine(Uint32 val) {
151 Uint32 getErrorNode()
const {
154 void setErrorNode(Uint32 val) {
157 Uint32 getMasterNode()
const {
158 return m_masterNodeId;
160 void setMasterNode(Uint32 val) {
161 m_masterNodeId = val;
169 friend bool printCREATE_EVNT_REQ(FILE*,
const Uint32*, Uint32, Uint16);
176 RT_DICT_AFTER_GET = 0x1 << 4
184 EF_REPORT_ALL = 0x1 << 16,
185 EF_REPORT_SUBSCRIBE = 0x2 << 16,
186 EF_NO_REPORT_DDL = 0x4 << 16,
187 EF_ALL = 0xFFFF << 16
189 STATIC_CONST( SignalLengthGet = 3 );
190 STATIC_CONST( SignalLengthCreate = 6+MAXNROFATTRIBUTESINWORDS_OLD );
191 STATIC_CONST( SignalLength = 8+MAXNROFATTRIBUTESINWORDS_OLD );
193 SECTION( EVENT_NAME_SECTION = 0 );
194 SECTION( ATTRIBUTE_MASK = 1 );
204 Uint32 m_requestInfo;
206 Uint32 m_tableVersion;
207 AttributeMask_OLD::Data m_attrListBitmask;
211 Uint32 getUserRef()
const {
214 void setUserRef(Uint32 val) {
217 Uint32 getUserData()
const {
220 void setUserData(Uint32 val) {
223 CreateEvntReq::RequestType getRequestType()
const {
225 return (CreateEvntReq::RequestType)val;
227 void setRequestType(CreateEvntReq::RequestType val) {
228 m_requestInfo = (Uint32)val;
230 Uint32 getRequestFlag()
const {
233 void addRequestFlag(Uint32 val) {
237 Uint32 getTableId()
const {
240 void setTableId(Uint32 val) {
243 Uint32 getTableVersion()
const {
244 return m_tableVersion;
246 void setTableVersion(Uint32 val) {
247 m_tableVersion = val;
251 tmp.
assign(m_attrListBitmask);
255 setAttrListBitmask(val.getSizeInWords(), val.rep.data);
258 setAttrListBitmask(val.getSizeInWords(), val.rep.data);
260 void setAttrListBitmask(Uint32 sz,
const Uint32 data[]){
261 bzero(m_attrListBitmask.data,
sizeof(m_attrListBitmask.data));
262 if (sz >= AttributeMask_OLD::Size)
271 Uint32 getEventType()
const {
272 return m_eventType & ~EF_ALL;
274 void setEventType(Uint32 val) {
275 m_eventType = (m_eventType & EF_ALL) | (~EF_ALL & (Uint32)val);
277 Uint32 getEventId()
const {
280 void setEventId(Uint32 val) {
283 Uint32 getEventKey()
const {
286 void setEventKey(Uint32 val) {
290 m_eventType&= ~EF_ALL;
292 Uint32 getReportFlags()
const {
293 return m_eventType & EF_ALL;
295 void setReportFlags(Uint32 val) {
296 m_eventType = (val & EF_ALL) | (m_eventType & ~EF_ALL);
298 Uint32 getReportAll()
const {
299 return m_eventType & EF_REPORT_ALL ;
301 void setReportAll() {
302 m_eventType|= EF_REPORT_ALL;
304 Uint32 getReportSubscribe()
const {
305 return m_eventType & EF_REPORT_SUBSCRIBE ;
307 void setReportSubscribe() {
308 m_eventType|= EF_REPORT_SUBSCRIBE;
310 Uint32 getReportDDL()
const {
311 return (m_eventType & EF_NO_REPORT_DDL) == 0;
313 void setReportDDL() {
314 m_eventType &= ~(Uint32)EF_NO_REPORT_DDL;
316 void clearReportDDL() {
317 m_eventType |= EF_NO_REPORT_DDL;
325 friend bool printCREATE_EVNT_CONF(FILE*,
const Uint32*, Uint32, Uint16);
329 STATIC_CONST( SignalLength = 8+MAXNROFATTRIBUTESINWORDS_OLD );
339 Uint32 m_requestInfo;
341 Uint32 m_tableVersion;
347 Uint32 getUserRef()
const {
350 void setUserRef(Uint32 val) {
353 Uint32 getUserData()
const {
356 void setUserData(Uint32 val) {
359 CreateEvntReq::RequestType getRequestType()
const {
360 return (CreateEvntReq::RequestType)m_requestInfo;
362 void setRequestType(CreateEvntReq::RequestType val) {
363 m_requestInfo = (Uint32)val;
365 Uint32 getTableId()
const {
368 void setTableId(Uint32 val) {
371 Uint32 getTableVersion()
const {
372 return m_tableVersion;
374 void setTableVersion(Uint32 val) {
375 m_tableVersion = val;
378 return m_attrListBitmask;
381 m_attrListBitmask = val;
383 Uint32 getEventType()
const {
386 void setEventType(Uint32 val) {
387 m_eventType = (Uint32)val;
389 Uint32 getEventId()
const {
392 void setEventId(Uint32 val) {
395 Uint32 getEventKey()
const {
398 void setEventKey(Uint32 val) {
408 friend bool printCREATE_EVNT_REF(FILE*,
const Uint32*, Uint32, Uint16);
410 STATIC_CONST( SignalLength = 11 );
411 STATIC_CONST( SignalLength2 = SignalLength + 1 );
415 NF_FakeErrorREF = 11,
428 Uint32 m_requestInfo;
430 Uint32 m_tableVersion;
438 Uint32 m_masterNodeId;
439 Uint32 getUserRef()
const {
442 void setUserRef(Uint32 val) {
445 Uint32 getUserData()
const {
448 void setUserData(Uint32 val) {
451 CreateEvntReq::RequestType getRequestType()
const {
452 return (CreateEvntReq::RequestType)m_requestInfo;
454 void setRequestType(CreateEvntReq::RequestType val) {
455 m_requestInfo = (Uint32)val;
457 Uint32 getTableId()
const {
460 void setTableId(Uint32 val) {
463 Uint32 getTableVersion()
const {
464 return m_tableVersion;
466 void setTableVersion(Uint32 val) {
467 m_tableVersion = val;
470 Uint32 getEventType()
const {
473 void setEventType(Uint32 val) {
474 m_eventType = (Uint32)val;
476 Uint32 getEventId()
const {
479 void setEventId(Uint32 val) {
482 Uint32 getEventKey()
const {
485 void setEventKey(Uint32 val) {
489 Uint32 getErrorCode()
const {
492 void setErrorCode(Uint32 val) {
495 Uint32 getErrorLine()
const {
498 void setErrorLine(Uint32 val) {
501 Uint32 getErrorNode()
const {
504 void setErrorNode(Uint32 val) {
507 Uint32 getMasterNode()
const {
508 return m_masterNodeId;
510 void setMasterNode(Uint32 val) {
511 m_masterNodeId = val;