⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 firetrigord.hpp

📁 mysql-5.0.22.tar.gz源码包
💻 HPP
字号:
/* Copyright (C) 2003 MySQL AB   This program is free software; you can redistribute it and/or modify   it under the terms of the GNU General Public License as published by   the Free Software Foundation; either version 2 of the License, or   (at your option) any later version.   This program is distributed in the hope that it will be useful,   but WITHOUT ANY WARRANTY; without even the implied warranty of   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   GNU General Public License for more details.   You should have received a copy of the GNU General Public License   along with this program; if not, write to the Free Software   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */#ifndef FIRE_TRIG_ORD_HPP#define FIRE_TRIG_ORD_HPP#include "SignalData.hpp"#include <NodeBitmask.hpp>#include <trigger_definitions.h>#include <string.h>/** * FireTrigOrd * * This signal is sent by TUP to signal * that a trigger has fired */class FireTrigOrd {  /**   * Sender(s)   */  // API    /**   * Sender(s) / Reciver(s)   */  friend class Dbtup;    /**   * Reciver(s)   */  friend class Dbtc;  friend class Backup;  friend class SumaParticipant;    /**   * For printing   */  friend bool printFIRE_TRIG_ORD(FILE * output, const Uint32 * theData, Uint32 len, Uint16 receiverBlockNo);public:  STATIC_CONST( SignalLength = 7 );  STATIC_CONST( SignalWithGCILength = 8 );  STATIC_CONST( SignalWithHashValueLength = 9 );private:  Uint32 m_connectionPtr;  Uint32 m_userRef;  Uint32 m_triggerId;  TriggerEvent::Value m_triggerEvent;  Uint32 m_noPrimKeyWords;  Uint32 m_noBeforeValueWords;  Uint32 m_noAfterValueWords;  Uint32 m_gci;  Uint32 m_hashValue;  // Public methodspublic:  Uint32 getConnectionPtr() const;  void setConnectionPtr(Uint32);    Uint32 getUserRef() const;  void setUserRef(Uint32);  Uint32 getTriggerId() const;  void setTriggerId(Uint32 anIndxId);  TriggerEvent::Value getTriggerEvent() const;  void setTriggerEvent(TriggerEvent::Value);  Uint32 getNoOfPrimaryKeyWords() const;  void setNoOfPrimaryKeyWords(Uint32);  Uint32 getNoOfBeforeValueWords() const;  void setNoOfBeforeValueWords(Uint32);  Uint32 getNoOfAfterValueWords() const;  void setNoOfAfterValueWords(Uint32);  Uint32 getGCI() const;  void setGCI(Uint32);  Uint32 getHashValue() const;  void setHashValue(Uint32);};inlineUint32 FireTrigOrd::getConnectionPtr() const{  return m_connectionPtr;}inline void FireTrigOrd::setConnectionPtr(Uint32 aConnectionPtr){  m_connectionPtr = aConnectionPtr;}inlineUint32 FireTrigOrd::getUserRef() const{  return m_userRef;}inline void FireTrigOrd::setUserRef(Uint32 aUserRef){  m_userRef = aUserRef;}inlineUint32 FireTrigOrd::getTriggerId() const{  return m_triggerId;}inlinevoid FireTrigOrd::setTriggerId(Uint32 aTriggerId){  m_triggerId = aTriggerId;}inlineTriggerEvent::Value FireTrigOrd::getTriggerEvent() const{  return m_triggerEvent;}inlinevoid FireTrigOrd::setTriggerEvent(TriggerEvent::Value aTriggerEvent){  m_triggerEvent = aTriggerEvent;}inlineUint32 FireTrigOrd::getNoOfPrimaryKeyWords() const{  return m_noPrimKeyWords;}inlinevoid FireTrigOrd::setNoOfPrimaryKeyWords(Uint32 noPrim){  m_noPrimKeyWords = noPrim;}inlineUint32 FireTrigOrd::getNoOfBeforeValueWords() const{  return m_noBeforeValueWords;}inlinevoid FireTrigOrd::setNoOfBeforeValueWords(Uint32 noBefore){  m_noBeforeValueWords = noBefore;}inlineUint32 FireTrigOrd::getNoOfAfterValueWords() const{  return m_noAfterValueWords;}inlinevoid FireTrigOrd::setNoOfAfterValueWords(Uint32 noAfter){  m_noAfterValueWords = noAfter;}inlineUint32 FireTrigOrd::getGCI() const{  return m_gci;}inlinevoid FireTrigOrd::setGCI(Uint32 aGCI){  m_gci = aGCI;}inlineUint32 FireTrigOrd::getHashValue() const{  return m_hashValue;}inlinevoid FireTrigOrd::setHashValue(Uint32 flag){  m_hashValue = flag;}#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -