MODISDatabase Class Reference

#include <modis_database.h>

Public Member Functions

void clear ()
 
std::vector< MODISRecordfindByDay (unsigned int day) const
 
MODISRecord findByFile (const std::string &filename) const
 
std::vector< MODISRecordfindByProduct (const std::string &product) const
 
std::vector< MODISRecordfindByYear (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
 

Detailed Description

Definition at line 48 of file modis_database.h.

Member Typedef Documentation

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)> > > MODISDatabase::MODISDb
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.

Constructor & Destructor Documentation

MODISDatabase::MODISDatabase ( std::string  rootpath)

Member Function Documentation

void MODISDatabase::clear ( )

Definition at line 55 of file modis_database.cpp.

References m_db.

std::vector< MODISRecord > MODISDatabase::findByDay ( unsigned int  day) const

Definition at line 111 of file modis_database.cpp.

References m_db.

Referenced by mmain().

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

Definition at line 81 of file modis_database.cpp.

References m_db.

Referenced by mmain().

std::vector< MODISRecord > MODISDatabase::findByYear ( unsigned int  year) const

Definition at line 96 of file modis_database.cpp.

References m_db.

Referenced by mmain().

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

Definition at line 50 of file modis_database.cpp.

References m_db.

Referenced by mmain().

Member Data Documentation

MODISDb MODISDatabase::m_db
private

The documentation for this class was generated from the following files: