12345678910111213141516171819202122232425 |
- #ifndef MAINCLASS_HH
- # define MAINCLASS_HH
- # include <vector>
- # include <memory>
- class MainClass
- {
- public:
- MainClass(int argc, char* argv[]);
-
- int usage();
- int execute();
-
- static int get_current_device();
- static bool set_current_device(int c);
-
- private:
- bool build_actions_();
- bool bad_value_();
- int argc_;
- char** argv_;
- std::vector<std::function<bool()>> actions_;
-
- static int current_device_;
- };
- #endif /* !MAINCLASS_HH */
|