Blame view

check_memfree_freebsd/range.h 428 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef RANGE_H
#define RANGE_H

#include <exception>

#include <string.h>

#include "aux.h"

struct range
{
        int min;
        int max;
};

void wrongRange();
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