mlpack  2.2.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
ProgramDoc Class Reference

A static object whose constructor registers program documentation with the CLI class. More...

Public Member Functions

 ProgramDoc (const std::string &programName, const std::string &documentation)
 Construct a ProgramDoc object. More...
 

Public Attributes

std::string documentation
 Documentation for what the program does. More...
 
std::string programName
 The name of the program. More...
 

Detailed Description

A static object whose constructor registers program documentation with the CLI class.

This should not be used outside of CLI itself, and you should use the PROGRAM_INFO() macro to declare these objects. Only one ProgramDoc object should ever exist.

See Also
core/util/cli.hpp, mlpack::CLI

Definition at line 80 of file option.hpp.

Constructor & Destructor Documentation

ProgramDoc ( const std::string &  programName,
const std::string &  documentation 
)

Construct a ProgramDoc object.

When constructed, it will register itself with CLI.

Parameters
programNameShort string representing the name of the program.
documentationLong string containing documentation on how to use the program and what it is. No newline characters are necessary; this is taken care of by CLI later.

Member Data Documentation

std::string documentation

Documentation for what the program does.

Definition at line 98 of file option.hpp.

std::string programName

The name of the program.

Definition at line 96 of file option.hpp.


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