Phoxonics  1.0
Object Oriented FDTD Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
CliHelper.hpp
Go to the documentation of this file.
1 /*
2  * CommandHelper.hpp
3  *
4  * Created on: May 28, 2014
5  * Author: nano
6  */
7 
8 #ifndef CLIHELPER_HPP_
9 #define CLIHELPER_HPP_
10 
11 #include <string>
12 #include <vector>
13 #include <algorithm>
14 #include <iostream>
15 
16 class CliHelper {
17 public:
18  CliHelper();
19  virtual ~CliHelper();
20  bool exists_in_command_list(std::string command);
21  void help(std::string command);
22  static constexpr unsigned int str_to_int(const char* str, int h = 0);
23 
24 private:
25  std::vector<std::string> command_list_;
26 };
27 
28 #endif /* COMMANDHELPER_HPP_ */
bool exists_in_command_list(std::string command)
Definition: CliHelper.cpp:20
virtual ~CliHelper()
Definition: CliHelper.cpp:16
Definition: CliHelper.hpp:16
void help(std::string command)
Definition: CliHelper.cpp:25
static constexpr unsigned int str_to_int(const char *str, int h=0)
CliHelper()
Definition: CliHelper.cpp:10