You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mainclass.hh 473B

12345678910111213141516171819202122232425
  1. #ifndef MAINCLASS_HH
  2. # define MAINCLASS_HH
  3. # include <vector>
  4. # include <memory>
  5. class MainClass
  6. {
  7. public:
  8. MainClass(int argc, char* argv[]);
  9. int usage();
  10. int execute();
  11. static int get_current_device();
  12. static bool set_current_device(int c);
  13. private:
  14. bool build_actions_();
  15. bool bad_value_();
  16. int argc_;
  17. char** argv_;
  18. std::vector<std::function<bool()>> actions_;
  19. static int current_device_;
  20. };
  21. #endif /* !MAINCLASS_HH */