OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimShapeDatabase.h>
Public Member Functions | |
ossimShapeDatabase () | |
virtual | ~ossimShapeDatabase () |
virtual bool | open (const ossimFilename &file, const ossimString &flags=ossimString("rb")) |
virtual void | close () |
bool | getRecord (ossimShapeDatabaseRecord &result) |
bool | getRecord (ossimShapeDatabaseRecord &result, int recordNumber) |
bool | getNextRecord (ossimShapeDatabaseRecord &result) |
int | getNumberOfRecords () const |
bool | isOpen () const |
virtual DBFHandle | getHandle () |
virtual const DBFHandle & | getHandle () const |
virtual std::ostream & | print (std::ostream &out) const |
Generic print method. More... | |
![]() | |
ossimObject () | |
virtual | ~ossimObject () |
virtual ossimObject * | dup () const |
virtual ossimString | getShortName () const |
virtual ossimString | getLongName () const |
virtual ossimString | getDescription () const |
virtual ossimString | getClassName () const |
virtual RTTItypeid | getType () const |
virtual bool | canCastTo (ossimObject *obj) const |
virtual bool | canCastTo (const RTTItypeid &id) const |
virtual bool | canCastTo (const ossimString &parentClassName) const |
virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
virtual bool | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
virtual void | accept (ossimVisitor &visitor) |
![]() | |
ossimReferenced () | |
ossimReferenced (const ossimReferenced &) | |
ossimReferenced & | operator= (const ossimReferenced &) |
void | ref () const |
increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
void | unref () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
void | unref_nodelete () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
int | referenceCount () const |
Protected Attributes | |
DBFHandle | theHandle |
ossimFilename | theFilename |
int | theRecordNumber |
Friends | |
std::ostream & | operator<< (std::ostream &out, const ossimShapeDatabase &rhs) |
Additional Inherited Members | |
![]() | |
virtual | ~ossimReferenced () |
Definition at line 47 of file ossimShapeDatabase.h.
ossimShapeDatabase::ossimShapeDatabase | ( | ) |
|
virtual |
|
virtual |
Definition at line 135 of file ossimShapeDatabase.cpp.
References DBFClose(), isOpen(), theHandle, and theRecordNumber.
Referenced by open(), and ~ossimShapeDatabase().
|
virtual |
|
virtual |
bool ossimShapeDatabase::getNextRecord | ( | ossimShapeDatabaseRecord & | result | ) |
Definition at line 237 of file ossimShapeDatabase.cpp.
References getNumberOfRecords(), getRecord(), isOpen(), and theRecordNumber.
int ossimShapeDatabase::getNumberOfRecords | ( | ) | const |
Definition at line 144 of file ossimShapeDatabase.cpp.
References isOpen(), and theHandle.
Referenced by getNextRecord(), and getRecord().
bool ossimShapeDatabase::getRecord | ( | ossimShapeDatabaseRecord & | result | ) |
Definition at line 154 of file ossimShapeDatabase.cpp.
References DBFGetFieldInfo(), DBFReadDoubleAttribute(), DBFReadIntegerAttribute(), DBFReadStringAttribute(), ossimShapeDatabaseRecord::getNumberOfFields(), isOpen(), ossimShapeDatabaseRecord::setField(), ossimShapeDatabaseRecord::setNumberOfFields(), ossimShapeDatabaseField::theDecimals, ossimShapeDatabaseField::theFieldType, theHandle, ossimShapeDatabaseField::theName, theRecordNumber, ossimShapeDatabaseField::theValue, ossimShapeDatabaseField::theWidth, and ossimString::toString().
Referenced by getNextRecord(), and getRecord().
bool ossimShapeDatabase::getRecord | ( | ossimShapeDatabaseRecord & | result, |
int | recordNumber | ||
) |
Definition at line 222 of file ossimShapeDatabase.cpp.
References getNumberOfRecords(), getRecord(), isOpen(), and theRecordNumber.
bool ossimShapeDatabase::isOpen | ( | ) | const |
Definition at line 248 of file ossimShapeDatabase.cpp.
References theHandle.
Referenced by close(), getNextRecord(), getNumberOfRecords(), getRecord(), open(), and print().
|
virtual |
Definition at line 120 of file ossimShapeDatabase.cpp.
References ossimString::c_str(), close(), isOpen(), theFilename, theHandle, and theRecordNumber.
|
virtual |
Generic print method.
Derived classes should re-implement as they see fit.
Reimplemented from ossimObject.
Definition at line 263 of file ossimShapeDatabase.cpp.
References ossimString::c_str(), DBFGetFieldInfo(), DBFReadDoubleAttribute(), DBFReadIntegerAttribute(), DBFReadStringAttribute(), isOpen(), theFilename, theHandle, and ossimString::toString().
Referenced by operator<<().
|
friend |
Definition at line 101 of file ossimShapeDatabase.cpp.
|
protected |
Definition at line 80 of file ossimShapeDatabase.h.
|
protected |
Definition at line 79 of file ossimShapeDatabase.h.
Referenced by close(), getHandle(), getNumberOfRecords(), getRecord(), isOpen(), open(), and print().
|
protected |
Definition at line 82 of file ossimShapeDatabase.h.
Referenced by close(), getNextRecord(), getRecord(), open(), and ossimShapeDatabase().