liblevenshtein 4.0.0
A library for generating Finite State Transducers based on Levenshtein Automata.
|
#include <command_line.h>
Public Member Functions | |
CommandLine (int argc, char **argv) | |
~CommandLine ()=default | |
auto | dictionary_path () const -> const fs::path & |
auto | serialization_path () const -> const fs::path & |
auto | algorithm () const -> const ll::Algorithm & |
auto | max_distance () const -> std::size_t |
auto | parse_opts () -> bool |
auto | return_code () const -> ReturnCode |
void | print_help () const |
void | print_config () const |
Private Member Functions | |
auto | next_path (fs::path &path, int &i) -> bool |
Private Attributes | |
ReturnCode | _return_code = ReturnCode::RETURN_DEFAULT |
fs::path | _dictionary_path = "../resources/programming-languages.txt" |
fs::path | _serialization_path = "programming-languages.pb" |
ll::Algorithm | _algorithm = ll::Algorithm::TRANSPOSITION |
std::size_t | _max_distance = 2 |
int | argc |
char ** | argv |
Definition at line 24 of file command_line.h.
Definition at line 16 of file command_line.cpp.
|
default |
auto liblevenshtein::demo::CommandLine::algorithm | ( | ) | const -> const ll::Algorithm & |
Definition at line 26 of file command_line.cpp.
References _algorithm.
Referenced by main().
Definition at line 18 of file command_line.cpp.
References _dictionary_path.
Referenced by main().
auto liblevenshtein::demo::CommandLine::max_distance | ( | ) | const -> std::size_t |
Definition at line 30 of file command_line.cpp.
References _max_distance.
Definition at line 34 of file command_line.cpp.
References liblevenshtein::demo::RETURN_END_OF_OPTS.
Definition at line 45 of file command_line.cpp.
References liblevenshtein::demo::RETURN_END_OF_OPTS, liblevenshtein::demo::RETURN_FILE_NOT_EXISTS, liblevenshtein::demo::RETURN_INVALID_ARG, and liblevenshtein::demo::RETURN_SUCCESS.
Referenced by main().
void liblevenshtein::demo::CommandLine::print_config | ( | ) | const |
Definition at line 132 of file command_line.cpp.
References _algorithm, _dictionary_path, _max_distance, and _serialization_path.
void liblevenshtein::demo::CommandLine::print_help | ( | ) | const |
Definition at line 107 of file command_line.cpp.
auto liblevenshtein::demo::CommandLine::return_code | ( | ) | const -> ReturnCode |
Definition at line 103 of file command_line.cpp.
References _return_code.
Referenced by main().
Definition at line 22 of file command_line.cpp.
References _serialization_path.
Referenced by main().
|
private |
Definition at line 47 of file command_line.h.
Referenced by algorithm(), and print_config().
|
private |
Definition at line 45 of file command_line.h.
Referenced by dictionary_path(), and print_config().
|
private |
Definition at line 48 of file command_line.h.
Referenced by max_distance(), and print_config().
|
private |
Definition at line 44 of file command_line.h.
Referenced by return_code().
|
private |
Definition at line 46 of file command_line.h.
Referenced by print_config(), and serialization_path().
|
private |
Definition at line 50 of file command_line.h.
|
private |
Definition at line 51 of file command_line.h.