OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimVpfTable.h>
Public Member Functions | |
ossimVpfTable () | |
virtual | ~ossimVpfTable () |
virtual bool | openTable (const ossimFilename &tableName) |
virtual void | closeTable () |
virtual void | print (std::ostream &out) const |
int | getNumberOfRows () const |
int | getNumberOfColumns () const |
ossimString | getColumnName (int idx) const |
virtual bool | isClosed () const |
virtual void | reset () const |
virtual bool | goToRow (long row) const |
vpf_table_type * | getVpfTableData () |
std::vector< ossimString > | getColumnValues (const ossimString &columnName) const |
std::vector< ossimString > | getColumnValues (long columnNumber) const |
ossimString | getColumnValueAsString (row_type &row, long columnNumber) const |
ossimString | getColumnValueAsString (ossim_int32 rowNumber, long columnNumber) const |
ossimString | getColumnValueAsString (const ossimString &columnName) |
ossim_int32 | getColumnPosition (const ossimString &columnName) const |
Protected Attributes | |
vpf_table_type * | theTableInformation |
ossimFilename | theTableName |
Friends | |
OSSIM_DLL std::ostream & | operator<< (std::ostream &out, const ossimVpfTable &data) |
Definition at line 22 of file ossimVpfTable.h.
ossimVpfTable::ossimVpfTable | ( | ) |
Definition at line 26 of file ossimVpfTable.cpp.
|
virtual |
Definition at line 31 of file ossimVpfTable.cpp.
References closeTable(), and theTableInformation.
|
virtual |
Closes the table.
Reimplemented in ossimVpfFeatureClassSchema.
Definition at line 72 of file ossimVpfTable.cpp.
References CLOSED, vpf_table_type::status, theTableInformation, and vpf_close_table().
Referenced by ossimVpfFeatureClassSchema::closeTable(), ossimVpfBoundingRecordTable::openTable(), openTable(), and ~ossimVpfTable().
ossimString ossimVpfTable::getColumnName | ( | int | idx | ) | const |
Definition at line 94 of file ossimVpfTable.cpp.
References getNumberOfColumns(), vpf_table_type::header, header_cell::name, and theTableInformation.
ossim_int32 ossimVpfTable::getColumnPosition | ( | const ossimString & | columnName | ) | const |
Definition at line 430 of file ossimVpfTable.cpp.
References ossimString::c_str(), table_pos(), and theTableInformation.
Referenced by ossimVpfAnnotationFeatureInfo::buildEdgFeature(), ossimVpfAnnotationFeatureInfo::buildFaceFeature(), ossimVpfAnnotationFeatureInfo::buildPointFeature(), ossimVpfAnnotationFeatureInfo::buildTxtFeature(), ossimVpfBoundingRecordTable::openTable(), ossimVpfAnnotationFeatureInfo::readGeoPolygon(), ossimVpfFeatureClassSchema::setFeatureClassMapping(), ossimVpfLibrary::setTileNames(), and ossimVpfFeatureClassSchema::validateColumnNames().
ossimString ossimVpfTable::getColumnValueAsString | ( | row_type & | row, |
long | columnNumber | ||
) | const |
Definition at line 204 of file ossimVpfTable.cpp.
References id_triplet_type::exid, format_date(), get_table_element(), vpf_table_type::header, id_triplet_type::id, is_vpf_null_double(), is_vpf_null_float(), n, theTableInformation, id_triplet_type::tile, ossimString::toString(), ossimString::trim(), header_cell::type, id_triplet_type::type, coordinate_type::x, x, coordinate_type::y, and y.
Referenced by ossimVpfAnnotationFeatureInfo::buildTxtFeature(), getColumnValueAsString(), getColumnValues(), ossimVpfLibrary::getExtent(), ossimVpfAnnotationFeatureInfo::readAttributes(), ossimVpfAnnotationFeatureInfo::readGeoPolygon(), ossimVpfAnnotationFeatureInfo::readRngId(), ossimVpfAnnotationFeatureInfo::readStartEdgeId(), ossimVpfAnnotationFeatureInfo::readTableCellAsInt(), ossimVpfFeatureClassSchema::setFeatureClassMapping(), and ossimVpfLibrary::setTileNames().
ossimString ossimVpfTable::getColumnValueAsString | ( | ossim_int32 | rowNumber, |
long | columnNumber | ||
) | const |
Definition at line 402 of file ossimVpfTable.cpp.
References free_row(), getColumnValueAsString(), read_row(), and theTableInformation.
ossimString ossimVpfTable::getColumnValueAsString | ( | const ossimString & | columnName | ) |
Definition at line 413 of file ossimVpfTable.cpp.
References ossimString::c_str(), CLOSED, free_row(), getColumnValueAsString(), read_next_row(), vpf_table_type::status, table_pos(), and theTableInformation.
std::vector< ossimString > ossimVpfTable::getColumnValues | ( | const ossimString & | columnName | ) | const |
Definition at line 139 of file ossimVpfTable.cpp.
References ossimString::c_str(), free_row(), getColumnValueAsString(), vpf_table_type::nrows, OPENED, ossimString::push_back(), read_next_row(), reset(), vpf_table_type::status, table_pos(), theTableInformation, and ossimString::trim().
Referenced by ossimVpfAnnotationFeatureInfo::buildEdgFeature(), ossimVpfAnnotationFeatureInfo::buildFaceFeature(), ossimVpfAnnotationFeatureInfo::buildPointFeature(), ossimVpfAnnotationFeatureInfo::buildTxtFeature(), ossimVpfDatabase::getLibraryNames(), ossimVpfDatabase::getLibraryNamesFullPath(), and ossimVpfLibrary::setCoverageNames().
std::vector< ossimString > ossimVpfTable::getColumnValues | ( | long | columnNumber | ) | const |
Definition at line 171 of file ossimVpfTable.cpp.
References free_row(), getColumnValueAsString(), vpf_table_type::nrows, OPENED, ossimString::push_back(), read_next_row(), reset(), vpf_table_type::status, theTableInformation, and ossimString::trim().
int ossimVpfTable::getNumberOfColumns | ( | ) | const |
Definition at line 87 of file ossimVpfTable.cpp.
References vpf_table_type::nfields, and theTableInformation.
Referenced by getColumnName(), and ossimVpfAnnotationFeatureInfo::readAttributes().
int ossimVpfTable::getNumberOfRows | ( | ) | const |
Definition at line 80 of file ossimVpfTable.cpp.
References vpf_table_type::nrows, and theTableInformation.
Referenced by ossimVpfAnnotationFeatureInfo::buildFaceFeature(), ossimVpfLibrary::getExtent(), ossimVpfBoundingRecordTable::openTable(), ossimVpfFeatureClassSchema::setFeatureClassMapping(), and ossimVpfLibrary::setTileNames().
|
inline |
Definition at line 61 of file ossimVpfTable.h.
Referenced by ossimVpfAnnotationFeatureInfo::buildPointFeature(), ossimVpfAnnotationFeatureInfo::buildTxtFeature(), ossimVpfLibrary::getExtent(), ossimVpfLibraryAttributeTableValidator::isValid(), ossimVpfDatabaseHeaderTableValidator::isValid(), ossimVpfAnnotationFeatureInfo::readEdge(), ossimVpfAnnotationFeatureInfo::readGeoPolygon(), ossimVpfAnnotationFeatureInfo::readRngId(), ossimVpfAnnotationFeatureInfo::readStartEdgeId(), ossimVpfAnnotationFeatureInfo::readTableCellAsInt(), and ossimVpfLibrary::setTileNames().
|
virtual |
Definition at line 121 of file ossimVpfTable.cpp.
References CLOSED, vpf_table_type::fp, index_pos(), vpf_table_type::status, and theTableInformation.
|
virtual |
Definition at line 103 of file ossimVpfTable.cpp.
References CLOSED, vpf_table_type::status, and theTableInformation.
Referenced by ossimVpfLibraryAttributeTableValidator::isValid(), ossimVpfDatabaseHeaderTableValidator::isValid(), ossimVpfCoverage::openFeatureClassSchema(), ossimVpfFeatureClassSchema::setFeatureClassMapping(), and ossimVpfFeatureClassSchema::validateColumnNames().
|
virtual |
Will open the table. Will return OSSIM_OK if it was successful or OSSIM_ERROR if unsuccessful.
Reimplemented in ossimVpfBoundingRecordTable.
Definition at line 41 of file ossimVpfTable.cpp.
References ossimString::c_str(), closeTable(), disk, is_vpf_table(), theTableInformation, theTableName, and vpf_open_table().
Referenced by ossimVpfAnnotationFeatureInfo::buildEdgFeature(), ossimVpfAnnotationFeatureInfo::buildFaceFeature(), ossimVpfAnnotationFeatureInfo::buildPointFeature(), ossimVpfAnnotationFeatureInfo::buildTxtFeature(), ossimVpfLibrary::getExtent(), ossimVpfDatabase::getLibraryNames(), ossimVpfDatabase::getLibraryNamesFullPath(), ossimVpfDatabase::openDatabase(), ossimVpfFeatureClass::openFeatureClass(), ossimVpfFeatureClassSchema::openSchema(), ossimVpfBoundingRecordTable::openTable(), ossimVpfCoverage::print(), ossimVpfLibrary::setCoverageNames(), and ossimVpfLibrary::setTileNames().
|
virtual |
This code is going to be cut paste from the vpf_dump_table found in vpf_util/vpf_dump_table.c. This function only allows you to output to a file. We need to re-write it to go to a stream. the best way to do this is to cut and paste the code.
Definition at line 435 of file ossimVpfTable.cpp.
References CLOSED, header_cell::count, header_cell::description, vpf_table_type::description, id_triplet_type::exid, format_date(), free_row(), get_table_element(), vpf_table_type::header, id_triplet_type::id, is_vpf_null_double(), is_vpf_null_float(), n, header_cell::name, vpf_table_type::nfields, vpf_table_type::nrows, read_next_row(), reset(), vpf_table_type::status, theTableInformation, theTableName, id_triplet_type::tile, header_cell::type, coordinate_type::x, double_coordinate_type::x, tri_coordinate_type::x, double_tri_coordinate_type::x, x, coordinate_type::y, double_coordinate_type::y, tri_coordinate_type::y, double_tri_coordinate_type::y, y, tri_coordinate_type::z, and double_tri_coordinate_type::z.
Referenced by operator<<(), and ossimVpfCoverage::print().
|
virtual |
This method will set the row pointer back to the start of the table.
Definition at line 109 of file ossimVpfTable.cpp.
References CLOSED, vpf_table_type::fp, index_pos(), vpf_table_type::status, and theTableInformation.
Referenced by ossimVpfAnnotationFeatureInfo::buildTxtFeature(), getColumnValues(), ossimVpfBoundingRecordTable::openTable(), print(), ossimVpfFeatureClassSchema::setFeatureClassMapping(), and ossimVpfLibrary::setTileNames().
|
friend |
Definition at line 19 of file ossimVpfTable.cpp.
|
protected |
this structure is in vpf_util/vpftable.h file. it holds all the access information to the table.
Definition at line 81 of file ossimVpfTable.h.
Referenced by closeTable(), getColumnName(), getColumnPosition(), getColumnValueAsString(), getColumnValues(), getNumberOfColumns(), getNumberOfRows(), goToRow(), isClosed(), ossimVpfBoundingRecordTable::openTable(), openTable(), print(), reset(), ossimVpfFeatureClassSchema::setFeatureClassMapping(), and ~ossimVpfTable().
|
protected |
Will hold the complete path and name to this table.
Definition at line 86 of file ossimVpfTable.h.
Referenced by openTable(), and print().