#ifndef CMD_MANAGER #define CMD_MANAGER using namespace std; #include #include #include #include #include #include class Cmd { public: string get_input(int &argc, string argstr); private: std::vector supportedExt = { "jpg", "JPG", "jpeg", "JPEG", "png", "PNG", "tif", "TIF", "tiff", "tiff" }; bool in_array(const std::string &value, const std::vector &array); bool file_exists (const std::string& name); bool is_image (const std::string& name); }; #endif