range list mangement class More...
#include <RangeList.h>
Classes | |
| union | NumberValue |
| number value More... | |
Public Types | |
| enum | DefaultType { DEFAULT_NONE, DEFAULT_ALL } |
| default type | |
Public Member Functions | |
| RangeList (const DefaultType type=DEFAULT_NONE) | |
| constructor | |
| virtual | ~RangeList () |
| destructor | |
| void | addIntRange (const int start, const int end) |
| adds integer range More... | |
| void | addDoubleRange (const double start, const double end) |
| adds double range More... | |
| void | clearRanges () |
| clears range | |
| unsigned int | getNumberOfRanges () |
| gets the number of ranges More... | |
| int | getStartInt (const unsigned int idx) |
| gets range start value More... | |
| int | getEndInt (const unsigned int idx) |
| gets range end value More... | |
| double | getStartDouble (const unsigned int idx) |
| gets range start value More... | |
| double | getEndDouble (const unsigned int idx) |
| gets range end value More... | |
| bool | checkIntValue (const int val) |
| checks integer vlaue More... | |
| bool | checkDoubleValue (const double val) |
| checks double value More... | |
| void | importIntRanges (const char *str) |
| import integer ranges from character string More... | |
| void | importDoubleRanges (const char *str) |
| import double ranges from character string More... | |
| std::string | exportIntRanges () |
| exports integer ranges to character string More... | |
| std::string | exportDoubleRanges () |
| exports double ranges to character string More... | |
| DefaultType | getType () |
| gets default type More... | |
Protected Attributes | |
| DefaultType | m_type |
| std::vector< std::pair < NumberValue, NumberValue > > | m_ranges |
range list mangement class
Definition at line 27 of file RangeList.h.
| void kome::core::RangeList::addDoubleRange | ( | const double | start, |
| const double | end | ||
| ) |
adds double range
| [in] | start | range start |
| [in] | end | range end |
Definition at line 52 of file RangeList.cpp.
| void kome::core::RangeList::addIntRange | ( | const int | start, |
| const int | end | ||
| ) |
adds integer range
| [in] | start | range start |
| [in] | end | range end |
Definition at line 45 of file RangeList.cpp.
| bool kome::core::RangeList::checkDoubleValue | ( | const double | val | ) |
checks double value
| [in] | val | double value |
Definition at line 117 of file RangeList.cpp.
| bool kome::core::RangeList::checkIntValue | ( | const int | val | ) |
checks integer vlaue
| [in] | val | integer value |
Definition at line 100 of file RangeList.cpp.
| std::string kome::core::RangeList::exportDoubleRanges | ( | ) |
exports double ranges to character string
Definition at line 262 of file RangeList.cpp.
| std::string kome::core::RangeList::exportIntRanges | ( | ) |
exports integer ranges to character string
Definition at line 224 of file RangeList.cpp.
| double kome::core::RangeList::getEndDouble | ( | const unsigned int | idx | ) |
gets range end value
| [in] | idx | range index |
Definition at line 92 of file RangeList.cpp.
| int kome::core::RangeList::getEndInt | ( | const unsigned int | idx | ) |
gets range end value
| [in] | idx | range index |
Definition at line 77 of file RangeList.cpp.
| unsigned int kome::core::RangeList::getNumberOfRanges | ( | ) |
gets the number of ranges
Definition at line 64 of file RangeList.cpp.
| double kome::core::RangeList::getStartDouble | ( | const unsigned int | idx | ) |
gets range start value
| [in] | idx | range index |
Definition at line 84 of file RangeList.cpp.
| int kome::core::RangeList::getStartInt | ( | const unsigned int | idx | ) |
gets range start value
| [in] | idx | range index |
Definition at line 69 of file RangeList.cpp.
| DefaultType kome::core::RangeList::getType | ( | ) |
| void kome::core::RangeList::importDoubleRanges | ( | const char * | str | ) |
import double ranges from character string
| [in] | str | double ranges character string |
Definition at line 179 of file RangeList.cpp.

| void kome::core::RangeList::importIntRanges | ( | const char * | str | ) |
import integer ranges from character string
| [in] | str | integer ranges character string |
Definition at line 134 of file RangeList.cpp.

|
protected |
ranges
Definition at line 66 of file RangeList.h.
|
protected |
default type
Definition at line 53 of file RangeList.h.
1.8.6