KeyInfo.hpp
Upload User: romrleung
Upload Date: 2022-05-23
Package Size: 18897k
Code Size: 1k
Category:

MySQL

Development Platform:

Visual C++

  1. /* Copyright (C) 2003 MySQL AB
  2.    This program is free software; you can redistribute it and/or modify
  3.    it under the terms of the GNU General Public License as published by
  4.    the Free Software Foundation; either version 2 of the License, or
  5.    (at your option) any later version.
  6.    This program is distributed in the hope that it will be useful,
  7.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  8.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  9.    GNU General Public License for more details.
  10.    You should have received a copy of the GNU General Public License
  11.    along with this program; if not, write to the Free Software
  12.    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
  13. #ifndef KEY_INFO_HPP
  14. #define KEY_INFO_HPP
  15. #include "SignalData.hpp"
  16. class KeyInfo {
  17.   /**
  18.    * Sender(s)
  19.    */
  20.   friend class DbUtil;
  21.   friend class NdbOperation;
  22.   friend class NdbScanOperation;
  23.   friend class NdbIndexScanOperation;
  24.   /**
  25.    * Reciver(s)
  26.    */
  27.   friend class Dbtc;
  28.   
  29. public:
  30.   STATIC_CONST( HeaderLength = 3 );
  31.   STATIC_CONST( DataLength = 20 );
  32.   STATIC_CONST( MaxSignalLength = HeaderLength + DataLength );
  33. private:
  34.   Uint32 connectPtr;
  35.   Uint32 transId[2];
  36.   Uint32 keyData[DataLength];
  37. };
  38. #endif