AppOptions.cpp File Reference

#include <PVLE/Util/AppOptions.h>
#include <fstream>

Include dependency graph for AppOptions.cpp:

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 Documentation

#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.


Generated on Sun Jan 17 11:38:50 2010 for PVLE (Pro-Vocation Light Engine) by  doxygen 1.5.9