code::DataHandler Class Reference

Inheritance diagram for code::DataHandler:

code::DORADEDataHandler code::GRIBDataHandler code::MesonetDataHandler code::SigmetDataHandler code::UFDataHandler code::GRIBLDMDataHandler code::GRIBMultiDirDataHandler code::GRIBNetcdfDataHandler List of all members.

Public Member Functions

 DataHandler (const std::string &inputDirectory, const std::string &outputDirectory, const std::string &lbname, const std::string &namePattern=std::string(), bool compressedFlag=false, bool insameDir=false, bool keepFile=false, bool readAll=false)
 Base class for Satellite data and GRIB data, etc.
virtual void createW2NetcdfFiles ()
virtual bool isNewFile (const std::string &file_name)
virtual ~DataHandler ()
void addModifier (SmartPtr< DataModifier > m)
 By default, a DataHandler does not do anything to the LatLonGrid.
virtual bool modifyBeforeWrite (code::LatLonGrid &llgrid)

Static Public Member Functions

static void getSubDirs (const std::string &inputDir, std::vector< std::string > &subdirs)

Protected Member Functions

virtual void findFilesToRead ()

Protected Attributes

std::string inputDir
std::string outputDir
bool compressedFlag
bool subDirFlag
std::set< std::string > fileNames
std::string readFile_
code::SmartPtr< code::IndexRecordNotifier > lb
std::string fileNamePattern
bool keepFile_
bool readAll_
std::string lastFileRead_
std::vector< SmartPtr< DataModifier > > modifiers

Constructor & Destructor Documentation

code::DataHandler::DataHandler ( const std::string &  inputDirectory,
const std::string &  outputDirectory,
const std::string &  lbname,
const std::string &  namePattern = std::string(),
bool  compressedFlag = false,
bool  insameDir = false,
bool  keepFile = false,
bool  readAll = false 
)

Base class for Satellite data and GRIB data, etc.

Will look into a directory periodically. if a new file is found, it will convert it to a netcdf file.

Author:
Lulin Song, Lakshman
Version:
Id
DataHandler.h,v 1.12 2009/06/02 20:17:41 lakshman Exp

virtual code::DataHandler::~DataHandler (  )  [virtual]


Member Function Documentation

void code::DataHandler::addModifier ( SmartPtr< DataModifier m  )  [inline]

By default, a DataHandler does not do anything to the LatLonGrid.

Subclasses can modify the data, by changing the data values or cropping the grid. This is done by attaching a DataModifier.

Modifications are done in the order in which they are attached.

virtual void code::DataHandler::createW2NetcdfFiles (  )  [virtual]

Reimplemented in code::DORADEDataHandler, code::GRIBDataHandler, code::GRIBLDMDataHandler, code::GRIBMultiDirDataHandler, code::SigmetDataHandler, and code::UFDataHandler.

virtual void code::DataHandler::findFilesToRead (  )  [protected, virtual]

Reimplemented in code::GRIBMultiDirDataHandler.

static void code::DataHandler::getSubDirs ( const std::string &  inputDir,
std::vector< std::string > &  subdirs 
) [static]

virtual bool code::DataHandler::isNewFile ( const std::string &  file_name  )  [virtual]

Reimplemented in code::MesonetDataHandler, code::SigmetDataHandler, and code::UFDataHandler.

virtual bool code::DataHandler::modifyBeforeWrite ( code::LatLonGrid &  llgrid  )  [virtual]


Member Data Documentation

bool code::DataHandler::compressedFlag [protected]

std::string code::DataHandler::fileNamePattern [protected]

std::set<std::string > code::DataHandler::fileNames [protected]

std::string code::DataHandler::inputDir [protected]

bool code::DataHandler::keepFile_ [protected]

std::string code::DataHandler::lastFileRead_ [protected]

code::SmartPtr<code::IndexRecordNotifier> code::DataHandler::lb [protected]

std::vector< SmartPtr<DataModifier> > code::DataHandler::modifiers [protected]

std::string code::DataHandler::outputDir [protected]

bool code::DataHandler::readAll_ [protected]

std::string code::DataHandler::readFile_ [protected]

bool code::DataHandler::subDirFlag [protected]


Generated on Fri May 4 13:40:21 2012 for WDSS-IIw2algs by  doxygen 1.4.7