SignalDataPrint.cpp
上传用户:romrleung
上传日期:2022-05-23
资源大小:18897k
文件大小:9k
源码类别:

MySQL数据库

开发平台:

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. #include <GlobalSignalNumbers.h>
  14. #include <signaldata/SignalData.hpp>
  15. #include <signaldata/SignalDataPrint.hpp>
  16. /** 
  17.  * This is the register
  18.  */
  19. const NameFunctionPair
  20. SignalDataPrintFunctions[] = {
  21.   { GSN_TCKEYREQ, printTCKEYREQ },
  22.   { GSN_TCKEYCONF, printTCKEYCONF },
  23.   { GSN_TCKEYREF, printTCKEYREF },
  24.   { GSN_LQHKEYREQ, printLQHKEYREQ },
  25.   { GSN_LQHKEYCONF, printLQHKEYCONF },
  26.   { GSN_LQHKEYREF, printLQHKEYREF },
  27.   { GSN_TUPKEYREQ, printTUPKEYREQ },
  28.   { GSN_TUPKEYCONF, printTUPKEYCONF },
  29.   { GSN_TUPKEYREF, printTUPKEYREF },
  30.   { GSN_TUP_COMMITREQ, printTUPCOMMITREQ },
  31.   { GSN_CONTINUEB, printCONTINUEB },
  32.   { GSN_FSOPENREQ, printFSOPENREQ },
  33.   { GSN_FSCLOSEREQ, printFSCLOSEREQ },
  34.   { GSN_FSREADREQ, printFSREADWRITEREQ },
  35.   { GSN_FSWRITEREQ, printFSREADWRITEREQ },
  36.   { GSN_FSCLOSEREF, printFSREF },
  37.   { GSN_FSOPENREF, printFSREF },
  38.   { GSN_FSWRITEREF, printFSREF },
  39.   { GSN_FSREADREF, printFSREF },
  40.   { GSN_FSSYNCREF, printFSREF },
  41.   { GSN_FSCLOSECONF, printFSCONF },
  42.   { GSN_FSOPENCONF, printFSCONF },
  43.   { GSN_FSWRITECONF, printFSCONF },
  44.   { GSN_FSREADCONF, printFSCONF },
  45.   { GSN_FSSYNCCONF, printFSCONF },
  46.   { GSN_CLOSE_COMREQ, printCLOSECOMREQCONF },
  47.   { GSN_CLOSE_COMCONF, printCLOSECOMREQCONF },
  48.   { GSN_PACKED_SIGNAL, printPACKED_SIGNAL },
  49.   { GSN_PREP_FAILREQ, printPREPFAILREQREF },
  50.   { GSN_PREP_FAILREF, printPREPFAILREQREF },
  51.   { GSN_ALTER_TABLE_REQ, printALTER_TABLE_REQ },
  52.   { GSN_ALTER_TABLE_CONF, printALTER_TABLE_CONF },
  53.   { GSN_ALTER_TABLE_REF, printALTER_TABLE_REF },
  54.   { GSN_ALTER_TAB_REQ, printALTER_TAB_REQ },
  55.   { GSN_ALTER_TAB_CONF, printALTER_TAB_CONF },
  56.   { GSN_ALTER_TAB_REF, printALTER_TAB_REF },
  57.   { GSN_CREATE_TRIG_REQ, printCREATE_TRIG_REQ },
  58.   { GSN_CREATE_TRIG_CONF, printCREATE_TRIG_CONF },
  59.   { GSN_CREATE_TRIG_REF, printCREATE_TRIG_REF },
  60.   { GSN_ALTER_TRIG_REQ, printALTER_TRIG_REQ },
  61.   { GSN_ALTER_TRIG_CONF, printALTER_TRIG_CONF },
  62.   { GSN_ALTER_TRIG_REF, printALTER_TRIG_REF },
  63.   { GSN_DROP_TRIG_REQ, printDROP_TRIG_REQ },
  64.   { GSN_DROP_TRIG_CONF, printDROP_TRIG_CONF },
  65.   { GSN_DROP_TRIG_REF, printDROP_TRIG_REF },
  66.   { GSN_FIRE_TRIG_ORD, printFIRE_TRIG_ORD },
  67.   { GSN_TRIG_ATTRINFO, printTRIG_ATTRINFO },
  68.   { GSN_CREATE_INDX_REQ, printCREATE_INDX_REQ },
  69.   { GSN_CREATE_INDX_CONF, printCREATE_INDX_CONF },
  70.   { GSN_CREATE_INDX_REF, printCREATE_INDX_REF },
  71.   { GSN_DROP_INDX_REQ, printDROP_INDX_REQ },
  72.   { GSN_DROP_INDX_CONF, printDROP_INDX_CONF },
  73.   { GSN_DROP_INDX_REF, printDROP_INDX_REF },
  74.   { GSN_ALTER_INDX_REQ, printALTER_INDX_REQ },
  75.   { GSN_ALTER_INDX_CONF, printALTER_INDX_CONF },
  76.   { GSN_ALTER_INDX_REF, printALTER_INDX_REF },
  77.   { GSN_TCINDXREQ, printTCINDXREQ },
  78.   { GSN_TCINDXCONF, printTCINDXCONF },
  79.   { GSN_TCINDXREF, printTCINDXREF },
  80.   { GSN_INDXKEYINFO, printINDXKEYINFO },
  81.   { GSN_INDXATTRINFO, printINDXATTRINFO },
  82.   //{ GSN_TCINDXNEXTREQ, printTCINDXNEXTREQ },
  83.   //{ GSN_TCINDEXNEXTCONF, printTCINDEXNEXTCONF },
  84.   //{ GSN_TCINDEXNEXREF, printTCINDEXNEXREF },
  85.   { GSN_FSAPPENDREQ, printFSAPPENDREQ },
  86.   { GSN_BACKUP_REQ,             printBACKUP_REQ },
  87.   { GSN_BACKUP_DATA,            printBACKUP_DATA },
  88.   { GSN_BACKUP_REF,             printBACKUP_REF },
  89.   { GSN_BACKUP_CONF,            printBACKUP_CONF },
  90.   { GSN_ABORT_BACKUP_ORD,       printABORT_BACKUP_ORD },
  91.   { GSN_BACKUP_ABORT_REP,       printBACKUP_ABORT_REP },
  92.   { GSN_BACKUP_COMPLETE_REP,    printBACKUP_COMPLETE_REP },
  93.   { GSN_BACKUP_NF_COMPLETE_REP, printBACKUP_NF_COMPLETE_REP },
  94.   { GSN_DEFINE_BACKUP_REQ,      printDEFINE_BACKUP_REQ },
  95.   { GSN_DEFINE_BACKUP_REF,      printDEFINE_BACKUP_REF },
  96.   { GSN_DEFINE_BACKUP_CONF,     printDEFINE_BACKUP_CONF },
  97.   { GSN_START_BACKUP_REQ,       printSTART_BACKUP_REQ },
  98.   { GSN_START_BACKUP_REF,       printSTART_BACKUP_REF },
  99.   { GSN_START_BACKUP_CONF,      printSTART_BACKUP_CONF },
  100.   { GSN_BACKUP_FRAGMENT_REQ,    printBACKUP_FRAGMENT_REQ },
  101.   { GSN_BACKUP_FRAGMENT_REF,    printBACKUP_FRAGMENT_REF },
  102.   { GSN_BACKUP_FRAGMENT_CONF,   printBACKUP_FRAGMENT_CONF },
  103.   { GSN_STOP_BACKUP_REQ,        printSTOP_BACKUP_REQ },
  104.   { GSN_STOP_BACKUP_REF,        printSTOP_BACKUP_REF },
  105.   { GSN_STOP_BACKUP_CONF,       printSTOP_BACKUP_CONF },
  106.   { GSN_BACKUP_STATUS_REQ,      printBACKUP_STATUS_REQ },
  107.   //{ GSN_BACKUP_STATUS_REF,      printBACKUP_STATUS_REF },
  108.   { GSN_BACKUP_STATUS_CONF,     printBACKUP_STATUS_CONF },
  109.   { GSN_UTIL_SEQUENCE_REQ,      printUTIL_SEQUENCE_REQ },
  110.   { GSN_UTIL_SEQUENCE_REF,      printUTIL_SEQUENCE_REF },
  111.   { GSN_UTIL_SEQUENCE_CONF,     printUTIL_SEQUENCE_CONF },
  112.   { GSN_UTIL_PREPARE_REQ,      printUTIL_PREPARE_REQ },
  113.   { GSN_UTIL_PREPARE_REF,      printUTIL_PREPARE_REF },
  114.   { GSN_UTIL_PREPARE_CONF,     printUTIL_PREPARE_CONF },
  115.   { GSN_UTIL_EXECUTE_REQ,      printUTIL_EXECUTE_REQ },
  116.   { GSN_UTIL_EXECUTE_REF,      printUTIL_EXECUTE_REF },
  117.   { GSN_UTIL_EXECUTE_CONF,     printUTIL_EXECUTE_CONF },
  118.   { GSN_SCAN_TABREQ,            printSCANTABREQ },
  119.   { GSN_SCAN_TABCONF,           printSCANTABCONF },
  120.   { GSN_SCAN_TABREF,            printSCANTABREF },
  121.   { GSN_SCAN_NEXTREQ,           printSCANNEXTREQ }, 
  122.   { GSN_LQHFRAGREQ,             printLQH_FRAG_REQ },
  123.   { GSN_LQHFRAGREF,             printLQH_FRAG_REF },
  124.   { GSN_LQHFRAGCONF,            printLQH_FRAG_CONF },
  125.   { GSN_PREP_DROP_TAB_REQ,      printPREP_DROP_TAB_REQ },
  126.   { GSN_PREP_DROP_TAB_REF,      printPREP_DROP_TAB_REF },
  127.   { GSN_PREP_DROP_TAB_CONF,     printPREP_DROP_TAB_CONF },
  128.   { GSN_DROP_TAB_REQ,           printDROP_TAB_REQ },
  129.   { GSN_DROP_TAB_REF,           printDROP_TAB_REF },
  130.   { GSN_DROP_TAB_CONF,          printDROP_TAB_CONF },
  131.   { GSN_LCP_FRAG_ORD,           printLCP_FRAG_ORD },
  132.   { GSN_LCP_FRAG_REP,           printLCP_FRAG_REP },
  133.   { GSN_LCP_COMPLETE_REP,       printLCP_COMPLETE_REP },
  134.   { GSN_START_LCP_REQ,          printSTART_LCP_REQ },
  135.   { GSN_START_LCP_CONF,         printSTART_LCP_CONF },
  136.   { GSN_MASTER_LCPREQ,          printMASTER_LCP_REQ },
  137.   { GSN_MASTER_LCPREF,          printMASTER_LCP_REF },
  138.   { GSN_MASTER_LCPCONF,         printMASTER_LCP_CONF },
  139.   { GSN_COPY_GCIREQ,            printCOPY_GCI_REQ },
  140.   { GSN_SYSTEM_ERROR,           printSYSTEM_ERROR },
  141.   { GSN_START_RECREQ,           printSTART_REC_REQ },
  142.   { GSN_START_RECCONF,          printSTART_REC_CONF },
  143.   { GSN_NF_COMPLETEREP,         printNF_COMPLETE_REP },
  144.   { GSN_SIGNAL_DROPPED_REP,     printSIGNAL_DROPPED_REP },
  145.   { GSN_FAIL_REP,               printFAIL_REP },
  146.   { GSN_DISCONNECT_REP,         printDISCONNECT_REP },
  147.   
  148.   { GSN_SUB_CREATE_REQ,         printSUB_CREATE_REQ },
  149.   //{ GSN_SUB_CREATE_REF,         printSUB_CREATE_REF },
  150.   { GSN_SUB_CREATE_CONF,        printSUB_CREATE_CONF },
  151.   { GSN_SUB_START_REQ,          printSUB_START_REQ },
  152.   { GSN_SUB_START_REF,          printSUB_START_REF },
  153.   { GSN_SUB_START_CONF,         printSUB_START_CONF },
  154.   { GSN_SUB_SYNC_REQ,           printSUB_SYNC_REQ },
  155.   { GSN_SUB_SYNC_REF,           printSUB_SYNC_REF },
  156.   { GSN_SUB_SYNC_CONF,          printSUB_SYNC_CONF },
  157.   { GSN_SUB_META_DATA,          printSUB_META_DATA },
  158.   { GSN_SUB_TABLE_DATA,         printSUB_TABLE_DATA },
  159.   { GSN_SUB_SYNC_CONTINUE_REQ,  printSUB_SYNC_CONTINUE_REQ },
  160.   { GSN_SUB_SYNC_CONTINUE_REF,  printSUB_SYNC_CONTINUE_REF },
  161.   { GSN_SUB_SYNC_CONTINUE_CONF, printSUB_SYNC_CONTINUE_CONF },
  162.   { GSN_SUB_GCP_COMPLETE_REP,   printSUB_GCP_COMPLETE_REP }
  163.   
  164.   ,{ GSN_CREATE_FRAGMENTATION_REQ, printCREATE_FRAGMENTATION_REQ }
  165.   ,{ GSN_CREATE_FRAGMENTATION_REF, printCREATE_FRAGMENTATION_REF }
  166.   ,{ GSN_CREATE_FRAGMENTATION_CONF, printCREATE_FRAGMENTATION_CONF }
  167.   ,{ GSN_UTIL_CREATE_LOCK_REQ,   printUTIL_CREATE_LOCK_REQ }
  168.   ,{ GSN_UTIL_CREATE_LOCK_REF,   printUTIL_CREATE_LOCK_REF }
  169.   ,{ GSN_UTIL_CREATE_LOCK_CONF,  printUTIL_CREATE_LOCK_CONF }
  170.   ,{ GSN_UTIL_DESTROY_LOCK_REQ,  printUTIL_DESTROY_LOCK_REQ }
  171.   ,{ GSN_UTIL_DESTROY_LOCK_REF,  printUTIL_DESTROY_LOCK_REF }
  172.   ,{ GSN_UTIL_DESTROY_LOCK_CONF, printUTIL_DESTROY_LOCK_CONF }
  173.   ,{ GSN_UTIL_LOCK_REQ,          printUTIL_LOCK_REQ }
  174.   ,{ GSN_UTIL_LOCK_REF,          printUTIL_LOCK_REF }
  175.   ,{ GSN_UTIL_LOCK_CONF,         printUTIL_LOCK_CONF }
  176.   ,{ GSN_UTIL_UNLOCK_REQ,        printUTIL_UNLOCK_REQ }
  177.   ,{ GSN_UTIL_UNLOCK_REF,        printUTIL_UNLOCK_REF }
  178.   ,{ GSN_UTIL_UNLOCK_CONF,       printUTIL_UNLOCK_CONF }
  179.   ,{ GSN_CNTR_START_REQ,         printCNTR_START_REQ }
  180.   ,{ GSN_CNTR_START_REF,         printCNTR_START_REF }
  181.   ,{ GSN_CNTR_START_CONF,        printCNTR_START_CONF }
  182.   ,{ GSN_READ_NODESCONF,         printREAD_NODES_CONF }
  183.   ,{ GSN_TUX_MAINT_REQ, printTUX_MAINT_REQ }
  184.   ,{ GSN_ACC_LOCKREQ, printACC_LOCKREQ }
  185.   ,{ GSN_LQH_TRANSCONF, printLQH_TRANSCONF }
  186.   ,{ GSN_SCAN_FRAGREQ, printSCAN_FRAGREQ }
  187.   ,{ GSN_START_FRAGREQ, printSTART_FRAG_REQ }
  188.   ,{ 0, 0 }
  189. };
  190. #include <Bitmask.hpp>
  191. template struct BitmaskPOD<1>;
  192. template struct BitmaskPOD<2>;
  193. template struct BitmaskPOD<4>;
  194. template class Bitmask<1>;
  195. template class Bitmask<2>;
  196. template class Bitmask<4>;