Class representing options passed on command line.
More...
#include <pmake_options.hpp>
Class representing options passed on command line.
!
- See also
- main.hpp::print_help()
| pmake_options::pmake_options |
( |
| ) |
|
|
inline |
Constructs an object with default values.
| const records& pmake_options::get_files |
( |
| ) |
const |
|
inline |
Gets value representing -W, –what-if, –new-file, –assume-new.
- Returns
- Value of that option.
| unsigned pmake_options::get_jobs |
( |
| ) |
const |
|
inline |
Gets value representing -j, –jobs.
- Returns
- Value of that option.
| const std::string& pmake_options::get_makefile |
( |
| ) |
const |
|
inline |
Gets value representing -f.
- Returns
- Value of that option.
| const targets& pmake_options::get_targets |
( |
| ) |
const |
|
inline |
Gets targets to be build given on command line.
- Returns
- Targets to be build
| bool pmake_options::is_always_make |
( |
| ) |
const |
|
inline |
Checks, whether -B, –always-make flag is on.
- Returns
- true, if is on, false otherwise.
| bool pmake_options::is_just_print |
( |
| ) |
const |
|
inline |
Checks, whether -n, –just-print, –dry-run, –recon flag is on.
- Returns
- true, if is on, false otherwise.
| bool pmake_options::is_question |
( |
| ) |
const |
|
inline |
Checks, whether -q, –question flag is on.
- Returns
- true, if is on, false otherwise.
| bool pmake_options::is_verbose |
( |
| ) |
const |
|
inline |
Checks, whether -d, –verbose flag is on.
- Returns
- true, if is on, false otherwise.
| bool pmake_options::is_warn_undefined |
( |
| ) |
const |
|
inline |
Checks, whether –warn-undefined-variables flag is on.
- Returns
- true, if is on, false otherwise.
| void pmake_options::set_always_make |
( |
| ) |
|
|
inline |
Sets -B, –always-make flag on.
| void pmake_options::set_default_target |
( |
const file & |
target | ) |
|
|
inline |
Sets default target if none is given.
- Parameters
-
| void pmake_options::set_files |
( |
const std::string & |
file | ) |
|
|
inline |
Sets -W, –what-if, –new-file, –assume-new value
- Parameters
-
| file | Value to be appended. |
| void pmake_options::set_jobs |
( |
unsigned |
jobs | ) |
|
|
inline |
Sets -j, –jobs value.
- Parameters
-
| void pmake_options::set_just_print |
( |
| ) |
|
|
inline |
Sets -n, –just-print, –dry-run, –recon flag on.
| void pmake_options::set_make_file |
( |
const std::string & |
makefile | ) |
|
|
inline |
Sets -f value.
- Parameters
-
| void pmake_options::set_question |
( |
| ) |
|
|
inline |
Sets -q, –question flag on.
| void pmake_options::set_targets |
( |
std::string && |
target | ) |
|
|
inline |
Sets which targets have to be build.
- Parameters
-
| target | target to be build. |
| void pmake_options::set_verbose |
( |
| ) |
|
|
inline |
Sets -d, –verbose flag on.
| void pmake_options::set_warn_undefined |
( |
| ) |
|
|
inline |
Sets –warn-undefined-variables flag on.
The documentation for this class was generated from the following file: