22 #include <kernel_types.h>
23 #include <Properties.hpp>
24 #include <ndb_limits.h>
26 #include "InitConfigFileParser.hpp"
30 #define MANDATORY ((char*)~(UintPtr)0)
56 CI_ONLINE_UPDATEABLE = 1,
57 CI_CHECK_WRITABLE = 2,
80 CI_RESTART_SYSTEM = 4,
81 CI_RESTART_INITIAL = 8
109 const char* _description;
130 assert(p._type == CI_SECTION);
131 return Uint32(reinterpret_cast<UintPtr>(p.
_default));
138 assert(p._type == CI_ENUM);
139 return reinterpret_cast<const Typelib*
>(p._min);
144 const char* m_section_name;
149 Uint32 section_type = ~0);
164 const char * m_section;
166 const char * m_ruleData);
167 const char * m_ruleData;
181 const char * m_ruleData);
182 const char * m_ruleData;
200 const char* value, Uint32& value_int)
const;
203 static const char* nameToAlias(
const char*);
204 static const char* getAlias(
const char*);
205 bool isSection(
const char*)
const;
207 const char* getDescription(
const Properties * sec,
const char*
fname)
const;
212 Uint64 getDefault(
const Properties * section,
const char*
fname)
const;
214 const char* getDefaultString(
const Properties * section,
215 const char*
fname)
const;
216 bool getMandatory(
const Properties * section,
const char*
fname)
const;
219 const Properties * getInfo(
const char * section)
const;
220 const Properties * getDefaults(
const char * section)
const;
222 const char* sectionName(Uint32 section_type, Uint32
type)
const;
224 void print(
const char* section= NULL)
const;
225 void print_xml(
const char* section= NULL)
const;
227 bool is_internal_section(
const Properties* sec)
const;
228 void print_impl(
const char* section,
234 static const AliasPair m_sectionNameAliases[];
235 static const char* m_sectionNames[];
236 static const int m_noOfSectionNames;
241 static const int m_NoOfParams;
246 static const int m_NoOfRules;
250 #endif // ConfigInfo_H