Blame view

check_memfree_freebsd/range.h 414 Bytes
1
2
3
4
5
6
7
#ifndef RANGE_H
#define RANGE_H

#include <exception>

#include <string.h>
Imanol-Mikel Barba Sabariego authored
8
#include "auxiliar.h"
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

struct range
{
        int min;
        int max;
};

range parseRange(char* input, int total);

class rangeException : public exception
{
	public:
		rangeException(std::string ss) : s(ss) {}
		~rangeException() throw () {}
		const char* what() const throw() { return s.c_str(); }
	private:
		string s;
};

#endif