#include <modis_database.h>
Public Member Functions | |
| void | clear () |
| std::vector< MODISRecord > | findByDay (unsigned int day) const |
| MODISRecord | findByFile (const std::string &filename) const |
| std::vector< MODISRecord > | findByProduct (const std::string &product) const |
| std::vector< MODISRecord > | findByYear (unsigned int year) const |
| MODISDatabase (std::string rootpath) | |
| void | printAll () |
| size_t | size () const |
Private Types | |
| typedef boost::multi_index_container< MODISRecord, boost::multi_index::indexed_by< boost::multi_index::ordered_unique< BOOST_MULTI_INDEX_MEMBER(MODISRecord, std::string, filen)>, boost::multi_index::ordered_non_unique< BOOST_MULTI_INDEX_MEMBER(MODISRecord, std::string, product)>, boost::multi_index::ordered_non_unique< BOOST_MULTI_INDEX_MEMBER(MODISRecord, unsigned int, year)>, boost::multi_index::ordered_non_unique< BOOST_MULTI_INDEX_MEMBER(MODISRecord, unsigned int, day)> > > | MODISDb |
Private Attributes | |
| MODISDb | m_db |
Definition at line 48 of file modis_database.h.
|
private |
A mult-index container with the following indexes: 1) a non-unique index by product; 2) a non-unique index by year; 3) a non unuque index by day;
Definition at line 65 of file modis_database.h.
| MODISDatabase::MODISDatabase | ( | std::string | rootpath | ) |
Definition at line 21 of file modis_database.cpp.
References MODISRecord::day, MODISRecord::filen, MODISRecord::h, m_db, MSearch(), MODISRecord::product, MODISRecord::v, and MODISRecord::year.
| void MODISDatabase::clear | ( | ) |
Definition at line 55 of file modis_database.cpp.
References m_db.
| std::vector< MODISRecord > MODISDatabase::findByDay | ( | unsigned int | day | ) | const |
| MODISRecord MODISDatabase::findByFile | ( | const std::string & | filename | ) | const |
Definition at line 71 of file modis_database.cpp.
References m_db.
| std::vector< MODISRecord > MODISDatabase::findByProduct | ( | const std::string & | product | ) | const |
| std::vector< MODISRecord > MODISDatabase::findByYear | ( | unsigned int | year | ) | const |
| void MODISDatabase::printAll | ( | ) |
Definition at line 60 of file modis_database.cpp.
References m_db, and MODISRecord::printToCout().
Referenced by mmain().
| size_t MODISDatabase::size | ( | ) | const |
|
private |
Definition at line 67 of file modis_database.h.
Referenced by clear(), findByDay(), findByFile(), findByProduct(), findByYear(), MODISDatabase(), printAll(), and size().