OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimVpfDatabaseHeader.cpp
Go to the documentation of this file.
1 //*******************************************************************
2 // License: See top level LICENSE.txt file.
3 //
4 // Author: Garrett Potts
5 //
6 // Description: This class extends the stl's string class.
7 //
8 //********************************************************************
9 // $Id: ossimVpfDatabaseHeader.cpp 17206 2010-04-25 23:20:40Z dburken $
12 #include <ossim/vpfutil/vpftable.h>
14 {
15 }
16 
17 
19 {
20 }
21 
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 }
48 
50 {
51  return true;
52 }
bool isDatabaseHeaderTable(vpf_table_type &tableType)
ossim_int32 ossimErrorCode
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
virtual ossimErrorCode open(const ossimFilename &databaseHeaderTable)
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