Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation
Public Member Functions | Public Attributes | List of all members
qpid::CommonOptions Struct Reference

Standard options for configuration. More...

#include <qpid/Options.h>

Public Member Functions

 CommonOptions (const std::string &name=std::string(), const std::string &configfile=std::string(), const std::string &clientConfigFile=std::string())
 
void parse (int argc, char const *const *argv, const std::string &configfile=std::string(), bool allowUnknown=false)
 Parses options from argc/argv, environment variables and config file. More...
 
bool findArg (int argc, char const *const *argv, const std::string &theArg)
 Tests for presence of argc/argv switch. More...
 
boost::program_options::options_description_easy_init addOptions ()
 

Public Attributes

bool help
 
bool version
 
std::string config
 
std::string clientConfig
 

Detailed Description

Standard options for configuration.

Definition at line 178 of file Options.h.

Constructor & Destructor Documentation

qpid::CommonOptions::CommonOptions ( const std::string &  name = std::string(),
const std::string &  configfile = std::string(),
const std::string &  clientConfigFile = std::string() 
)

Member Function Documentation

boost::program_options::options_description_easy_init qpid::Options::addOptions ( )
inlineinherited

Definition at line 168 of file Options.h.

bool qpid::Options::findArg ( int  argc,
char const *const *  argv,
const std::string &  theArg 
)
inherited

Tests for presence of argc/argv switch.

void qpid::Options::parse ( int  argc,
char const *const *  argv,
const std::string &  configfile = std::string(),
bool  allowUnknown = false 
)
inherited

Parses options from argc/argv, environment variables and config file.

Note the filename argument can reference an options variable that is updated by argc/argv or environment variable parsing.

Member Data Documentation

std::string qpid::CommonOptions::clientConfig

Definition at line 185 of file Options.h.

std::string qpid::CommonOptions::config

Definition at line 184 of file Options.h.

bool qpid::CommonOptions::help

Definition at line 182 of file Options.h.

bool qpid::CommonOptions::version

Definition at line 183 of file Options.h.


The documentation for this struct was generated from the following file:

Qpid C++ API Reference
Generated on Wed May 28 2014 for Qpid C++ Client API by doxygen 1.8.5