OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Private Member Functions | List of all members
ossimVpfDatabaseHeader Class Reference

#include <ossimVpfDatabaseHeader.h>

Public Member Functions

 ossimVpfDatabaseHeader ()
 
virtual ~ossimVpfDatabaseHeader ()
 
virtual ossimErrorCode open (const ossimFilename &databaseHeaderTable)
 

Private Member Functions

bool isDatabaseHeaderTable (vpf_table_type &tableType)
 

Detailed Description

Definition at line 19 of file ossimVpfDatabaseHeader.h.

Constructor & Destructor Documentation

◆ ossimVpfDatabaseHeader()

ossimVpfDatabaseHeader::ossimVpfDatabaseHeader ( )

Definition at line 13 of file ossimVpfDatabaseHeader.cpp.

14 {
15 }

◆ ~ossimVpfDatabaseHeader()

ossimVpfDatabaseHeader::~ossimVpfDatabaseHeader ( )
virtual

Definition at line 18 of file ossimVpfDatabaseHeader.cpp.

19 {
20 }

Member Function Documentation

◆ isDatabaseHeaderTable()

bool ossimVpfDatabaseHeader::isDatabaseHeaderTable ( vpf_table_type tableType)
private

Definition at line 49 of file ossimVpfDatabaseHeader.cpp.

Referenced by open().

50 {
51  return true;
52 }

◆ open()

ossimErrorCode ossimVpfDatabaseHeader::open ( const ossimFilename databaseHeaderTable)
virtual

Definition at line 22 of file ossimVpfDatabaseHeader.cpp.

References ossimString::c_str(), DISK, is_vpf_table(), isDatabaseHeaderTable(), ossimErrorCodes::OSSIM_ERROR, ossimErrorCodes::OSSIM_OK, and vpf_open_table().

23 {
24  vpf_table_type tableTypeData;
25 
26  if( is_vpf_table( databaseHeaderTable.c_str() ) )
27  {
28  tableTypeData = vpf_open_table(databaseHeaderTable.c_str(),
30  "rb",
31  NULL);
32  if(isDatabaseHeaderTable(tableTypeData))
33  {
34 
35  }
36  else
37  {
39  }
40  }
41  else
42  {
44  }
45 
47 }
bool isDatabaseHeaderTable(vpf_table_type &tableType)
vpf_table_type vpf_open_table(const char *tablename, storage_type storage, const char *mode, char *defstr)
static const ossimErrorCode OSSIM_OK
#define DISK
Definition: vpftable.h:76
static const ossimErrorCode OSSIM_ERROR
ossim_int32 is_vpf_table(const char *fname)
storage_type
Definition: vpftable.h:74
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string&#39;s contents...
Definition: ossimString.h:396

The documentation for this class was generated from the following files: