ledger/option.h
John Wiegley 9039e728b2 All system headers (except Boost) now included through system.hh;
also, added support for pre-compiled headers since I'm now using a
centralized resource for system headers.
2008-04-13 03:38:31 -04:00

26 lines
619 B
C++

#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);
class option_error : public error {
public:
option_error(const string& reason) throw() : error(reason) {}
virtual ~option_error() throw() {}
};
} // namespace ledger
#endif // _OPTION_H