#include <PVLE/Util/AppOptions.h>
#include <fstream>
Go to the source code of this file.
Namespaces | |
namespace | AppOptions |
Utilities for application options management, related to boost.program_options. | |
Defines | |
#define | ANY_STREAM(TYPE) if (v.type() == typeid(TYPE)) { stream << boost::any_cast<TYPE>(v); return stream; } |
Functions | |
std::ostream & | AppOptions::operator<< (std::ostream &stream, const boost::any &v) |
Stream output for boost::any values, but only for those that are supposed to be used by boost.program_options. | |
PVLE_EXPORT void | AppOptions::write (const boost::program_options::variables_map &vm, const boost::program_options::options_description &desc, const boost::filesystem::path &file, const char *const strHeader=NULL) |
Utility function to write a boost::program_options::variable_map to disk. |
#define ANY_STREAM | ( | TYPE | ) | if (v.type() == typeid(TYPE)) { stream << boost::any_cast<TYPE>(v); return stream; } |
Definition at line 35 of file AppOptions.cpp.