// $Id$
//
-// Copyright (C) 2008
+// Copyright (C) 2008
// Fraunhofer Institute for Open Communication Systems (FOKUS)
// Competence Center NETwork research (NET), St. Augustin, GERMANY
// Stefan Bund <g0dil@berlios.de>
//#include "ProgramOptions.mpp"
#include "ProgramOptions.ih"
-///////////////////////////////hh.p////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
namespace senf {
namespace console {
// Parse only options under the directory of some object. The object 'ob'
// must have been registered somewhere in the node tree
cf.parse(ob.dir);
-
+
// Parse rest of the config file
cf.parse();
\endcode
: public detail::BundleMixin
{
public:
- ///////////////////////////////////////////////////////////////////////////
+ //-////////////////////////////////////////////////////////////////////////
///\name Structors and default members
- ///@{
-
+ //\{
+
ProgramOptions(int argc, char const ** argv, DirectoryNode & root = root());
///< Create ProgramOptions parser for given options
/**< The given argc/argv values are those passed to main by
the operating system. Especially argv[0] is \e not an
option and is ignored. */
- ///@}
- ///////////////////////////////////////////////////////////////////////////
-
+ //\}
+ //-////////////////////////////////////////////////////////////////////////
+
template <class Container>
ProgramOptions & nonOptions(Container & container);
///< Set container to add non-option arguments to
line. This argument will be appended (with an
additional '=') to \a longOpt. If \a withArg is \c
false (the default), \a longOpt may optional contain an
- argument.
+ argument.
\param[in] letter option letter
\param[in] longOpt long option alias
\param[in] withArg \c true, if the option should take
/** \brief Parse command line options
- The command line otpions in \a argc / \a argv will be parsed, interpreting all node's
+ The command line options in \a argc / \a argv will be parsed, interpreting all node's
relative to \a root as root node.
\related ProgramOptions
/** \brief ConfigBundle source reading command line options
- This cosntructor is used to create aconfig source parsing the given command line options to
+ This constructor is used to create a config source parsing the given command line options to
add to a ConfigBundle.
\related ProgramOptions
detail::ProgramOptionsSource::ptr OptionsConfig(int argc, char const ** argv);
}}
-///////////////////////////////hh.e////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
#include "ProgramOptions.cci"
//#include "ProgramOptions.ct"
#include "ProgramOptions.cti"