Inheritance diagram for ltg::ArchivedDataWriter:

It will read archived lighting data and write out data into linear buffer with xml format.
Public Member Functions | |
| ArchivedDataWriter (const std::string &inputDirName, const std::string &inputFileNamePattern, const std::string &output_dir=std::string(), const std::string &outputIndexLBName=std::string(), const std::string &outputNationalDataLBName=std::string(), const std::string &outputRegionalDataLBName=std::string(), const std::string &nw=std::string(), const std::string &ne=std::string(), const std::string &sw=std::string(), const std::string &se=std::string()) | |
| virtual | ~ArchivedDataWriter () |
| void | findFilesToRead () |
| searching the input dir and put file name into a vector | |
| void | processData () |
| read file one by one and write out data to output LB and write out the corresponding index record | |
| void | storeData (const std::string &line) |
Protected Member Functions | |
| virtual void | getLBNames () |
| First lb name is for nation data, Second lb name is index file third lb name is for regional data. | |
| virtual void | writeOutData () |
| code::Time | getTime (const std::string &line) |
| 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) |
| 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_ |
| ltg::ArchivedDataWriter::ArchivedDataWriter | ( | const std::string & | inputDirName, | |
| const std::string & | inputFileNamePattern, | |||
| const std::string & | output_dir = std::string(), |
|||
| const std::string & | outputIndexLBName = std::string(), |
|||
| const std::string & | outputNationalDataLBName = std::string(), |
|||
| const std::string & | outputRegionalDataLBName = std::string(), |
|||
| const std::string & | nw = std::string(), |
|||
| const std::string & | ne = std::string(), |
|||
| const std::string & | sw = std::string(), |
|||
| const std::string & | se = std::string() | |||
| ) |
| virtual ltg::ArchivedDataWriter::~ArchivedDataWriter | ( | ) | [virtual] |
| void ltg::DataWriter::closeLBs | ( | ) | [protected, inherited] |
| void ltg::DataWriter::convertToDataTables | ( | code::DataTable & | tb, | |
| code::DataTable & | tbRegion, | |||
| std::deque< std::string > & | data_ | |||
| ) | [protected, inherited] |
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, inherited] |
| void ltg::ArchivedDataWriter::findFilesToRead | ( | ) |
searching the input dir and put file name into a vector
| virtual void ltg::ArchivedDataWriter::getLBNames | ( | ) | [protected, virtual] |
First lb name is for nation data, Second lb name is index file third lb name is for regional data.
Reimplemented from ltg::DataWriter.
| code::Time ltg::ArchivedDataWriter::getTime | ( | const std::string & | line | ) | [protected] |
| void ltg::DataWriter::openLBs | ( | ) | [protected, inherited] |
| void ltg::ArchivedDataWriter::processData | ( | ) |
read file one by one and write out data to output LB and write out the corresponding index record
| void ltg::DataWriter::storeData | ( | const std::string & | line | ) | [inherited] |
| virtual void ltg::ArchivedDataWriter::writeOutData | ( | ) | [protected, virtual] |
Reimplemented from ltg::DataWriter.
| void ltg::DataWriter::writeXMLLBIndex | ( | const code::Time & | t, | |
| const code::LinearBuffer & | lb1, | |||
| const std::string & | lb_name, | |||
| code::LinearBuffer & | lb2, | |||
| bool | US | |||
| ) | [protected, inherited] |
std::deque< std::string > ltg::DataWriter::data_ [protected, inherited] |
std::string ltg::DataWriter::east_lon_ [protected, inherited] |
code::LinearBuffer ltg::DataWriter::lb1 [protected, inherited] |
code::LinearBuffer ltg::DataWriter::lb2 [protected, inherited] |
code::LinearBuffer ltg::DataWriter::lb3 [protected, inherited] |
std::string ltg::DataWriter::lb_name1 [protected, inherited] |
std::string ltg::DataWriter::lb_name2 [protected, inherited] |
std::string ltg::DataWriter::lb_name3 [protected, inherited] |
std::string ltg::DataWriter::north_lat_ [protected, inherited] |
std::string ltg::DataWriter::output_dir_ [protected, inherited] |
std::string ltg::DataWriter::south_lat_ [protected, inherited] |
std::string ltg::DataWriter::west_lon_ [protected, inherited] |
1.4.7