9 void mmain(std::string& rootpath)
13 std::cout <<
"Enter with a valid root directory!" << std::endl;
19 std::cout <<
"There are " << myDb.
size() <<
" file MODIS in " << rootpath <<
":" << std::endl;
26 std::cout << std::endl << std::endl <<
"Search by product. Enter with a product name: " ;
34 std::cout <<
"None found!" << std::endl;
45 std::cout << std::endl << std::endl <<
"Search by year. Enter with a year (> 2000): " ;
46 unsigned int year = 0;
51 std::vector<MODISRecord> result = myDb.
findByYear(year);
53 std::cout <<
"None found!" << std::endl;
64 std::cout <<
"Invalid year!" << std::endl;
67 std::cout << std::endl << std::endl <<
"Search by day. Enter with a day (1-365): " ;
71 if (day <= 365 || day >=
74 std::vector<MODISRecord> result = myDb.
findByDay(day);
76 std::cout <<
"None found!" << std::endl;
static bool isDirectory(const std::string &path)
Checks if a given path in UTF-8 is a directory.
std::vector< MODISRecord > findByDay(unsigned int day) const
std::vector< MODISRecord > findByYear(unsigned int year) const
std::vector< MODISRecord > findByProduct(const std::string &product) const
void mmain(std::string &rootpath)