n-Dimensional Fast Methods  0.7
 All Classes Functions Variables Typedefs Pages
console.h
1 
22 #ifndef CONSOLE_H_
23 #define CONSOLE_H_
24 
25 #include <string>
26 #include <vector>
27 
29 
30 class console {
31 
32  public:
45  static int findArguments (int argc, const char** argv, const char* argument_name);
46 
47 
63  static int parseArguments (int argc, const char** argv, const char* str, std::string &val);
64 
69  static int parseArguments (int argc, const char** argv, const char* str, bool &val);
70 
75  static int parseArguments (int argc, const char** argv, const char* str, int &val);
76 
81  static int parseArguments (int argc, const char** argv, const char* str, float &val);
82 
87  int parseArguments (int argc, const char** argv, const char* str, double &val);
88 
93  static int parseArguments (int argc, const char** argv, const char* str, unsigned int &val);
94 
99  static int parseArguments (int argc, const char** argv, const char* str, char &val);
100 
101 
119  static int parseArguments (int argc, const char** argv, const char* str, std::vector<std::string> & vals);
120 
125  static int parseArguments (int argc, const char** argv, const char* str, std::vector<int> & vals);
126 
132  static void info (const std::string &val);
133 
139  static void warning (const std::string &val);
140 
146  static void error (const std::string &val);
147 
155  static std::string str_info (const std::string &val);
156 
164  static std::string str_warning (const std::string &val);
165 
173  static std::string str_error (const std::string &val);
174 };
175 
176 #endif /* CONSOLE_H_ */
static int parseArguments(int argc, const char **argv, const char *str, std::string &val)
static std::string str_warning(const std::string &val)
static std::string str_info(const std::string &val)
static void error(const std::string &val)
static void info(const std::string &val)
static void warning(const std::string &val)
static std::string str_error(const std::string &val)
static int findArguments(int argc, const char **argv, const char *argument_name)