diff options
author | Roland Reichwein <mail@reichwein.it> | 2024-07-09 18:58:56 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2024-07-09 18:58:56 +0200 |
commit | f8c4fe1614cc79df9f97c8a7754cf2a5aaf5063d (patch) | |
tree | a5912910fc40b408c05172d438cd0d53192b2211 /programopts.h | |
parent | c156b07da6e8550f989919c3a015acdedfe8664f (diff) |
Use libreichwein, and googletest from Debian
Diffstat (limited to 'programopts.h')
-rw-r--r-- | programopts.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/programopts.h b/programopts.h deleted file mode 100644 index af706f7..0000000 --- a/programopts.h +++ /dev/null @@ -1,24 +0,0 @@ -// Parse command line options of program - -#pragma once - -#include <functional> -#include <map> -#include <memory> -#include <string> -#include <vector> - -class ProgramOpts -{ -public: - // Processing of options in lambdas: each do return true iff parameter was consumed - ProgramOpts(int argc, char* argv[], std::map<std::string, std::function<bool(const std::string&)>>& option_prefixes); - ~ProgramOpts(); - void process(); // must be called to run functions per option, given to ctor - std::string programName(); - std::vector<std::string> nonOptionArguments(); -private: - struct impl; - std::unique_ptr<impl> m_pimpl; -}; - |