summaryrefslogtreecommitdiff
path: root/src/option.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-30 06:26:38 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:33 -0400
commitc8899addfd2deed3d84be2de234681db64987722 (patch)
tree07f9a5eb603ff4ec83fe18c83083575d2b7a439a /src/option.h
parentaa9cc125796711afcaa459898e95527fdae8e912 (diff)
downloadledger-c8899addfd2deed3d84be2de234681db64987722.tar.gz
ledger-c8899addfd2deed3d84be2de234681db64987722.tar.bz2
ledger-c8899addfd2deed3d84be2de234681db64987722.zip
Rearranged the sources a bit.
Diffstat (limited to 'src/option.h')
-rw-r--r--src/option.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/option.h b/src/option.h
new file mode 100644
index 00000000..c9664ae3
--- /dev/null
+++ b/src/option.h
@@ -0,0 +1,22 @@
+#ifndef _OPTION_H
+#define _OPTION_H
+
+#include "xpath.h"
+
+namespace ledger {
+
+bool process_option(const string& name, xml::xpath_t::scope_t * scope,
+ const char * arg = NULL);
+
+void process_environment(const char ** envp, const string& tag,
+ xml::xpath_t::scope_t * scope);
+
+void process_arguments(int argc, char ** argv, const bool anywhere,
+ xml::xpath_t::scope_t * scope,
+ std::list<string>& args);
+
+DECLARE_EXCEPTION(option_exception);
+
+} // namespace ledger
+
+#endif // _OPTION_H