Drizzled Public API Documentation

systab_enabled_ms.h

00001 /* Copyright (C) 2010 PrimeBase Technologies GmbH, Germany
00002  *
00003  * PrimeBase Media Stream for MySQL
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00018  *
00019  * Barry Leslie
00020  *
00021  * System enabled table.
00022  *
00023  */
00024 
00025 #pragma once
00026 #ifndef __SYSTAB_ENABLED_H__
00027 #define __SYSTAB_ENABLED_H__
00028 
00029 #include "defs_ms.h"
00030 #include "system_table_ms.h"
00031 #include "discover_ms.h"
00032 
00033 #define ENABLED_TABLE_NAME "pbms_enabled"
00034 
00035 class MSEnabledTable : public MSOpenSystemTable {
00036 public:
00037   MSEnabledTable(MSSystemTableShare *share, TABLE *table);
00038   ~MSEnabledTable();
00039   
00040   void seqScanInit();
00041   bool seqScanNext(char *buf);
00042   int getRefLen() { return sizeof(iEnabledIndex);}
00043   void seqScanPos(unsigned char *pos );
00044   void seqScanRead(unsigned char *pos , char *buf);
00045   
00046 private:
00047   uint32_t      iEnabledIndex;
00048 };
00049 
00050 extern DT_FIELD_INFO pbms_enabled_info[];
00051 extern DT_KEY_INFO pbms_enabled_keys[];
00052 
00053 #endif // __SYSTAB_ENABLED_H__