Program options handling. More...
#include <vector>
#include <string>
#include <boost/version.hpp>
#include <boost/any.hpp>
#include <Common/Error.h>
#include <boost/program_options.hpp>
Go to the source code of this file.
Classes | |
class | Hypertable::Properties |
Manages a collection of program options. More... | |
class | Hypertable::SubProperties |
Helper class to access parts of the properties. More... | |
Namespaces | |
boost | |
Boost library. | |
boost::program_options | |
Program options. | |
Hypertable | |
Hypertable definitions | |
Hypertable::Property | |
Macros | |
#define | HT_PROPERTIES_ABBR_ACCESSORS(_const_) |
Typedefs | |
typedef std::vector< std::string > | boost::program_options::Strings |
typedef std::vector< int64_t > | boost::program_options::Int64s |
typedef std::vector< String > | Hypertable::Strings |
typedef std::vector< int64_t > | Hypertable::Int64s |
typedef std::vector< double > | Hypertable::Doubles |
typedef Po::options_description | Hypertable::PropertiesDesc |
typedef Po::positional_options_description | Hypertable::PositionalDesc |
typedef std::shared_ptr < Properties > | Hypertable::PropertiesPtr |
Functions | |
void | boost::program_options::validate (boost::any &v, const vector< string > &values,::int64_t *, int) |
void | boost::program_options::validate (boost::any &v, const vector< string > &values,::int32_t *, int) |
void | boost::program_options::validate (boost::any &v, const vector< string > &values,::uint16_t *, int) |
void | boost::program_options::validate (boost::any &v, const vector< string > &values, double *, int) |
template<typename T > | |
void | boost::program_options::validate (boost::any &v, const vector< string > &s, std::vector< T > *, int) |
Implement validation function for vector<T>, which is not implemented in boost prior to 1.35. More... | |
Po::typed_value< bool > * | Hypertable::Property::boo (bool *v=0) |
Po::typed_value< String > * | Hypertable::Property::str (String *v=0) |
Po::typed_value< Strings > * | Hypertable::Property::strs (Strings *v=0) |
Po::typed_value< uint16_t > * | Hypertable::Property::i16 (uint16_t *v=0) |
Po::typed_value< int32_t > * | Hypertable::Property::i32 (int32_t *v=0) |
Po::typed_value< int64_t > * | Hypertable::Property::i64 (int64_t *v=0) |
Po::typed_value< Int64s > * | Hypertable::Property::i64s (Int64s *v=0) |
Po::typed_value< double > * | Hypertable::Property::f64 (double *v=0) |
Po::typed_value< Doubles > * | Hypertable::Property::f64s (Doubles *v=0) |
Variables | |
const uint64_t | Hypertable::Property::K = 1000 |
const uint64_t | Hypertable::Property::KiB = 1024 |
const uint64_t | Hypertable::Property::M = K * 1000 |
const uint64_t | Hypertable::Property::MiB = KiB * 1024 |
const uint64_t | Hypertable::Property::G = M * 1000 |
const uint64_t | Hypertable::Property::GiB = MiB * 1024 |
Program options handling.
Based on boost::program_options, the options are configured in Config.h.
Definition in file Properties.h.
#define HT_PROPERTIES_ABBR_ACCESSORS | ( | _const_ | ) |
Definition at line 102 of file Properties.h.