Renamed all .h to .hpp for consistency

This commit is contained in:
Nicolay Korslund 2010-06-03 20:13:27 +02:00
parent 52e7570b4f
commit 6b0b7c95f8
53 changed files with 80 additions and 79 deletions

19
tools/str_exception.hpp Normal file
View file

@ -0,0 +1,19 @@
#ifndef __STR_EXCEPTION_H
#define __STR_EXCEPTION_H
#include <exception>
#include <string>
/// A simple exception that takes and holds a string
class str_exception : public std::exception
{
std::string msg;
public:
str_exception(const std::string &m) : msg(m) {}
~str_exception() throw() {}
const char* what() const throw() { return msg.c_str(); }
};
#endif