- Aldebaran documentation |
- C++ Libraries |
- index

libqi-api 2.8.7.4

- Main Page
- Related Pages
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Macros
application.hpp File Reference
`#include <functional>`
`#include <boost/program_options.hpp>`
`#include <vector>`
`#include <string>`
`#include <qi/api.hpp>`

Go to the source code of this file.

## Classes
class | qi::Application
| Class handling startup and teardown of an application. More...

## Namespaces
| qi
| Deprecated in 2.5. Use int8_t from <cstdint>.

## Macros
#define | _QI_APPLICATION_HPP_
#define | QI_AT_ENTER(func) static bool QI_UNIQ_DEF(_qi_atenter) QI_ATTR_UNUSED = ::qi::Application::atEnter(func);
| calls qi::Application::atEnter(func) at static initialization time. More...
#define | QI_AT_EXIT(func) static bool QI_UNIQ_DEF(_qi_atexit) QI_ATTR_UNUSED = ::qi::Application::atExit(func);
| calls qi::Application::atExit(func) at static initialization time. More...
#define | _QI_COMMAND_LINE_OPTIONS(desc, opts)

## Macro Definition Documentation

#define _QI_APPLICATION_HPP_

Definition at line 9 of file application.hpp.

#define _QI_COMMAND_LINE_OPTIONS | ( |  | desc,
|  |  | opts
| ) |  |

Value:
static void QI_UNIQ_DEF(_qi_opt_func)() { \
namespace po = boost::program_options; \
po::options_description options(desc); \
{ \
using namespace boost::program_options; \
options.add_options() opts; \
} \
::qi::Application::options().add(options); \
} \
QI_AT_ENTER(boost::bind(&(QI_UNIQ_DEF(_qi_opt_func))))
qi::Application::options
static boost::program_options::options_description & options()
Get the registered global program options.
QI_UNIQ_DEF
#define QI_UNIQ_DEF(A)
A macro to append the line number of the parent macro usage, to define a function in or a variable an...
Definition: macro.hpp:311
QI_AT_ENTER
#define QI_AT_ENTER(func)
calls qi::Application::atEnter(func) at static initialization time.
Definition: application.hpp:251
qi::bind
std::enable_if< std::is_function< RF >::value, boost::function< RF > >::type bind(AF &&fun, Arg0 &&arg0, Args &&...args)
Definition: trackable.hxx:308

Definition at line 273 of file application.hpp.

#define QI_AT_ENTER | ( |  | func | ) | static bool QI_UNIQ_DEF(_qi_atenter) QI_ATTR_UNUSED = ::qi::Application::atEnter(func);

calls qi::Application::atEnter(func) at static initialization time.

Parameters

  func | The handler that must be called at enter.

Definition at line 251 of file application.hpp.

#define QI_AT_EXIT | ( |  | func | ) | static bool QI_UNIQ_DEF(_qi_atexit) QI_ATTR_UNUSED = ::qi::Application::atExit(func);

calls qi::Application::atExit(func) at static initialization time.

Parameters

  func | The handler that must be called at exit.

Definition at line 259 of file application.hpp.