#ifndef _OPTION_H #define _OPTION_H #include #include #include #include #include "xpath.h" #include "error.h" namespace ledger { bool process_option(const std::string& name, xml::xpath_t::scope_t * scope, const char * arg = NULL); void process_environment(const char ** envp, const std::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& args); class option_error : public error { public: option_error(const std::string& reason) throw() : error(reason) {} virtual ~option_error() throw() {} }; } // namespace ledger #endif // _OPTION_H