Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
Manager::Make Class Reference

#include <elm/option/Manager.h>

Public Member Functions

 Make (void)
 
 Make (cstring program, Version version=Version::ZERO)
 
Makeauthor (cstring s)
 
Makecopyright (cstring s)
 
Makedescription (cstring s)
 
Makefree_argument (cstring s)
 
Makehelp (void)
 
Makeversion (void)
 

Detailed Description

This class is an initializer for class Manager. It procides a safe and readable way to initialize an option manager. It is usually passed directly to the Manager constructor.

Constructor & Destructor Documentation

◆ Make() [1/2]

Make ( void  )
inline

◆ Make() [2/2]

Make ( cstring  program,
Version  version = Version::ZERO 
)
inline

Member Function Documentation

◆ author()

Manager::Make & author ( cstring  s)
inline

Specify the author of the application.

◆ copyright()

Manager::Make & copyright ( cstring  s)
inline

Specify the copyright of the application.

◆ description()

Manager::Make & description ( cstring  s)
inline

Specify the description of the application.

◆ free_argument()

Manager::Make & free_argument ( cstring  s)
inline

Specify description of the free arguments.

◆ help()

Manager::Make & help ( void  )
inline

Ask the manager to create a switch option activated with "-h" or "--help" that, when activated, display help message and the list of options. Then it stops the application with an exit code of 1.

◆ version()

Make& version ( void  )
inline

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