ltg::DataWriter Class Reference

Inheritance diagram for ltg::DataWriter:

ltg::ArchivedDataWriter List of all members.

Detailed Description

Lightning Data handler.

It will get lighting data and write out data into linear buffer.

Author:
Lulin Song
Version:
:
Id
ltg_DataWriter.h,v 1.7 2009/06/02 20:17:51 lakshman Exp


Public Member Functions

 DataWriter (const std::string &output_dir, const std::string &nw, const std::string &ne, const std::string &sw, const std::string &se)
virtual ~DataWriter ()
void storeData (const std::string &line)
virtual void writeOutData ()

Protected Member Functions

void createRecord (const code::Time &t, const code::LinearBuffer &lb, const std::string &lb_name, code::Index::Record &rec, bool US)
void writeXMLLBIndex (const code::Time &t, const code::LinearBuffer &lb1, const std::string &lb_name, code::LinearBuffer &lb2, bool US)
virtual void getLBNames ()
 First lb name is for nation data, Second lb name is index file third lb name is for regional data.
void openLBs ()
void closeLBs ()
void convertToDataTables (code::DataTable &tb, code::DataTable &tbRegion, std::deque< std::string > &data_)
 Convert the strings to DataTable objects.

Protected Attributes

std::string output_dir_
std::string north_lat_
std::string west_lon_
std::string south_lat_
std::string east_lon_
std::string lb_name1
std::string lb_name2
std::string lb_name3
code::LinearBuffer lb1
code::LinearBuffer lb2
code::LinearBuffer lb3
std::deque< std::string > data_


Constructor & Destructor Documentation

ltg::DataWriter::DataWriter ( const std::string &  output_dir,
const std::string &  nw,
const std::string &  ne,
const std::string &  sw,
const std::string &  se 
)

virtual ltg::DataWriter::~DataWriter (  )  [virtual]


Member Function Documentation

void ltg::DataWriter::closeLBs (  )  [protected]

void ltg::DataWriter::convertToDataTables ( code::DataTable &  tb,
code::DataTable &  tbRegion,
std::deque< std::string > &  data_ 
) [protected]

Convert the strings to DataTable objects.

The first table is for whole United States, The second table is for certain region if it is required.

void ltg::DataWriter::createRecord ( const code::Time &  t,
const code::LinearBuffer &  lb,
const std::string &  lb_name,
code::Index::Record &  rec,
bool  US 
) [protected]

virtual void ltg::DataWriter::getLBNames (  )  [protected, virtual]

First lb name is for nation data, Second lb name is index file third lb name is for regional data.

Reimplemented in ltg::ArchivedDataWriter.

void ltg::DataWriter::openLBs (  )  [protected]

void ltg::DataWriter::storeData ( const std::string &  line  ) 

virtual void ltg::DataWriter::writeOutData (  )  [virtual]

Reimplemented in ltg::ArchivedDataWriter.

void ltg::DataWriter::writeXMLLBIndex ( const code::Time &  t,
const code::LinearBuffer &  lb1,
const std::string &  lb_name,
code::LinearBuffer &  lb2,
bool  US 
) [protected]


Member Data Documentation

std::deque< std::string > ltg::DataWriter::data_ [protected]

std::string ltg::DataWriter::east_lon_ [protected]

code::LinearBuffer ltg::DataWriter::lb1 [protected]

code::LinearBuffer ltg::DataWriter::lb2 [protected]

code::LinearBuffer ltg::DataWriter::lb3 [protected]

std::string ltg::DataWriter::lb_name1 [protected]

std::string ltg::DataWriter::lb_name2 [protected]

std::string ltg::DataWriter::lb_name3 [protected]

std::string ltg::DataWriter::north_lat_ [protected]

std::string ltg::DataWriter::output_dir_ [protected]

std::string ltg::DataWriter::south_lat_ [protected]

std::string ltg::DataWriter::west_lon_ [protected]


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