equal
deleted
inserted
replaced
36 { |
36 { |
37 public: |
37 public: |
38 NumberListParser(); |
38 NumberListParser(); |
39 virtual ~NumberListParser(); |
39 virtual ~NumberListParser(); |
40 |
40 |
41 typedef list<unsigned int> NumberList; |
41 typedef list<unsigned int> List; |
42 |
42 |
43 NumberList parse(const char *); |
43 List parse(const char *); |
44 |
44 |
45 virtual unsigned int getMax() = 0; |
45 virtual int getMax() = 0; |
46 |
46 |
47 private: |
47 private: |
48 unsigned int max; |
48 int max; |
49 bool hasMax; |
49 bool hasMax; |
50 |
50 |
51 unsigned int maximum(); |
51 int maximum(); |
52 |
52 |
53 static bool isNumeric(char); |
53 static bool isNumeric(char); |
54 static unsigned int parseNumber(const char *, unsigned int *, |
54 static unsigned int parseNumber(const char *, unsigned int *, |
55 unsigned int); |
55 unsigned int); |
56 static NumberList range(unsigned int, unsigned int); |
56 static List range(unsigned int, unsigned int); |
57 }; |
57 }; |
58 |
58 |
59 /****************************************************************************/ |
59 /****************************************************************************/ |