Claw  1.7.0
Public Member Functions | Protected Attributes | List of all members
claw::application Class Reference

A class to represent the application. More...

#include <application.hpp>

Public Member Functions

 application (int &argc, char **&argv)
 Constructor.
virtual ~application ()
 Destructor.
virtual int run ()=0

Protected Attributes

arguments_table m_arguments
 The arguments passed by the system.

Detailed Description

A class to represent the application.

The claw::application understand the following command line arguments :

Author
Julien Jorge

Definition at line 60 of file application.hpp.

Constructor & Destructor Documentation

claw::application::application ( int &  argc,
char **&  argv 
)

Constructor.

Parameters
argcNumber of arguments to the program.
argvThe arguments of the program.

The constructor removes from argv all supported arguments, and updates the value of argc.

Definition at line 49 of file application.cpp.

References claw::arguments_table::add_long(), claw::arguments_table::get_bool(), claw::arguments_table::get_integer(), claw::arguments_table::get_string(), claw::arguments_table::has_value(), claw::log_error, claw::log_verbose, claw::log_warning, m_arguments, claw::arguments_table::only_integer_values(), claw::arguments_table::parse(), claw::log_system::set(), and claw::log_system::set_level().


The documentation for this class was generated from the following files: