19 #ifndef TRIG_ATTRINFO_HPP
20 #define TRIG_ATTRINFO_HPP
22 #include "SignalData.hpp"
23 #include <NodeBitmask.hpp>
24 #include <trigger_definitions.h>
49 friend class SumaParticipant;
54 friend bool printTRIG_ATTRINFO(FILE * output,
const Uint32 * theData, Uint32 len, Uint16 receiverBlockNo);
63 STATIC_CONST( DataLength = 22 );
64 STATIC_CONST( StaticLength = 3 );
67 Uint32 m_connectionPtr;
70 Uint32 m_data[DataLength];
74 Uint32 getConnectionPtr()
const;
75 void setConnectionPtr(Uint32);
76 AttrInfoType getAttrInfoType()
const;
77 void setAttrInfoType(AttrInfoType anAttrType);
78 Uint32 getTriggerId()
const;
79 void setTriggerId(Uint32 aTriggerId);
80 Uint32 getTransactionId1()
const;
81 void setTransactionId1(Uint32 aTransId);
82 Uint32 getTransactionId2()
const;
83 void setTransactionId2(Uint32 aTransId);
84 Uint32* getData()
const;
85 int setData(Uint32* aDataBuf, Uint32 aDataLen);
89 Uint32 TrigAttrInfo::getConnectionPtr()
const
91 return m_connectionPtr;
95 void TrigAttrInfo::setConnectionPtr(Uint32 aConnectionPtr)
97 m_connectionPtr = aConnectionPtr;
101 TrigAttrInfo::AttrInfoType TrigAttrInfo::getAttrInfoType()
const
103 return (TrigAttrInfo::AttrInfoType) m_type;
107 void TrigAttrInfo::setAttrInfoType(TrigAttrInfo::AttrInfoType anAttrType)
109 m_type = (Uint32) anAttrType;
113 Uint32 TrigAttrInfo::getTriggerId()
const
119 void TrigAttrInfo::setTriggerId(Uint32 aTriggerId)
121 m_trigId = aTriggerId;
125 Uint32* TrigAttrInfo::getData()
const
127 return (Uint32*)&m_data[0];
131 int TrigAttrInfo::setData(Uint32* aDataBuf, Uint32 aDataLen)
133 if (aDataLen > DataLength)
135 memcpy(m_data, aDataBuf, aDataLen*
sizeof(Uint32));