Files
scylladb/core/app-template.hh
Avi Kivity 6b5973af70 app-template: don't alias boost::program_options as bpo in a header file
We only have one global namespace, let's work together to keep it free
of pollution.
2014-12-01 17:56:34 +02:00

23 lines
589 B
C++

/*
* Copyright (C) 2014 Cloudius Systems, Ltd.
*/
#ifndef _APP_TEMPLATE_HH
#define _APP_TEMPLATE_HH
#include <boost/program_options.hpp>
#include <boost/optional.hpp>
#include <functional>
class app_template {
private:
boost::program_options::options_description _opts;
boost::optional<boost::program_options::variables_map> _configuration;
public:
app_template();
boost::program_options::options_description_easy_init add_options();
boost::program_options::variables_map& configuration();
int run(int ac, char ** av, std::function<void ()>&& func);
};
#endif