16 using namespace kome::core;
21 #define new new( _NORMAL_BLOCK, __FILE__, __LINE__ )
22 #define malloc( s ) _malloc_dbg( s, _NORMAL_BLOCK, __FILE__, __LINE__ )
29 : m_type( type ), m_ranges( dflt ) {
43 const unsigned int num,
49 for(
unsigned int i = 0; i < num; i++ ) {
53 if(
m_type == RANGE_INDEX ) {
56 else if(
m_type == RANGE_INT_VALUE ) {
58 if(
isint( values[ i ], 10, &v ) ) {
62 else if(
m_type == RANGE_DOUBLE_VALUE ) {
range list mangement class
RangeList & getRangeList()
gets ranges list object
bool isdouble(const char *s, double *val)
judge whether sutisfied character string shows real number.
bool checkIntValue(const int val)
checks integer vlaue
bool isint(const char *s, const int radix, int *val)
judge whether sutisfied character string shows integer number.
interfaces of RangeListSelector class
virtual ~RangeListSelector()
destructor
RangeListSelector(const RangeList::DefaultType dflt=RangeList::DEFAULT_NONE, const RangeType type=RANGE_INDEX)
constructor
virtual bool onSelect(const unsigned int num, const char **items, const char **values, bool *selected)
This method is called by select method. (override method)
bool checkDoubleValue(const double val)
checks double value