summaryrefslogtreecommitdiffstats
path: root/raul/Configuration.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-14 04:22:07 +0000
committerDavid Robillard <d@drobilla.net>2012-08-14 04:22:07 +0000
commit2a429ca76b97cca197f105b665271360b74f6917 (patch)
treed25d206910bd4a84050918693816240c26d7d0ae /raul/Configuration.hpp
parent8bf87dc2367caf9d82dbda0382363cda400971dc (diff)
downloadraul-2a429ca76b97cca197f105b665271360b74f6917.tar.gz
raul-2a429ca76b97cca197f105b665271360b74f6917.tar.bz2
raul-2a429ca76b97cca197f105b665271360b74f6917.zip
Remove glib dependency.
Make Symbol, URI, and Path simpler derivatives of std::string. 100% test coverage by line for Symbol, URI, Path, AtomicInt, and AtomicPtr. Add Raul::Exception. git-svn-id: http://svn.drobilla.net/lad/trunk/raul@4686 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'raul/Configuration.hpp')
-rw-r--r--raul/Configuration.hpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/raul/Configuration.hpp b/raul/Configuration.hpp
index 554b247..6e45d3c 100644
--- a/raul/Configuration.hpp
+++ b/raul/Configuration.hpp
@@ -22,12 +22,13 @@
#include <stdlib.h>
#include <string.h>
-#include <exception>
#include <list>
#include <map>
#include <ostream>
#include <string>
+#include "raul/Exception.hpp"
+
namespace Raul {
/** Program configuration (command line options and/or configuration file).
@@ -126,11 +127,8 @@ public:
void print_usage(const std::string& program, std::ostream& os);
- struct CommandLineError : public std::exception {
- explicit CommandLineError(const std::string& m) : msg(m) {}
- ~CommandLineError() throw() {}
- const char* what() const throw() { return msg.c_str(); }
- std::string msg;
+ struct CommandLineError : public Exception {
+ explicit CommandLineError(const std::string& m) : Exception(m) {}
};
void parse(int argc, char** argv) throw (CommandLineError);