00001 /* Copyright (C) 2003 MySQL AB 00002 00003 This program is free software; you can redistribute it and/or modify 00004 it under the terms of the GNU General Public License as published by 00005 the Free Software Foundation; either version 2 of the License, or 00006 (at your option) any later version. 00007 00008 This program is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 GNU General Public License for more details. 00012 00013 You should have received a copy of the GNU General Public License 00014 along with this program; if not, write to the Free Software 00015 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ 00016 00017 #ifndef MGMAPI_CONFIGURATION_HPP 00018 #define MGMAPI_CONFIGURATION_HPP 00019 00020 #include <ConfigValues.hpp> 00021 00022 struct ndb_mgm_configuration { 00023 ConfigValues m_config; 00024 }; 00025 00026 struct ndb_mgm_configuration_iterator { 00027 Uint32 m_sectionNo; 00028 Uint32 m_typeOfSection; 00029 ConfigValues::ConstIterator m_config; 00030 00031 ndb_mgm_configuration_iterator(const ndb_mgm_configuration &, unsigned type); 00032 ~ndb_mgm_configuration_iterator(); 00033 00034 int first(); 00035 int next(); 00036 int valid() const; 00037 int find(int param, unsigned value); 00038 00039 int get(int param, unsigned * value) const ; 00040 int get(int param, Uint64 * value) const ; 00041 int get(int param, const char ** value) const ; 00042 00043 // 00044 void reset(); 00045 int enter(); 00046 }; 00047 00048 #endif
1.4.7

