claw 1.9.0
 
Loading...
Searching...
No Matches
claw::application Class Referenceabstract

A class to represent the application. More...

#include <application.hpp>

Collaboration diagram for claw::application:

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 :

  • –log-file=string Sets the file in which the logs are written,
  • –log-level=integer Sets the log level.
Author
Julien Jorge

Definition at line 60 of file application.hpp.

Constructor & Destructor Documentation

◆ application()

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 58 of file application.cpp.

◆ ~application()

claw::application::~application ( )
virtual

Destructor.

Definition at line 129 of file application.cpp.

Member Data Documentation

◆ m_arguments

arguments_table claw::application::m_arguments
protected

The arguments passed by the system.

Definition at line 70 of file application.hpp.


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