OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
src
vec
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 $
10
#include <
ossim/vec/ossimVpfDatabaseHeader.h
>
11
#include <
ossim/base/ossimErrorCodes.h
>
12
#include <
ossim/vpfutil/vpftable.h
>
13
ossimVpfDatabaseHeader::ossimVpfDatabaseHeader
()
14
{
15
}
16
17
18
ossimVpfDatabaseHeader::~ossimVpfDatabaseHeader
()
19
{
20
}
21
22
ossimErrorCode
ossimVpfDatabaseHeader::open
(
const
ossimFilename
& databaseHeaderTable)
23
{
24
vpf_table_type
tableTypeData;
25
26
if
(
is_vpf_table
( databaseHeaderTable.
c_str
() ) )
27
{
28
tableTypeData =
vpf_open_table
(databaseHeaderTable.
c_str
(),
29
(
storage_type
)
DISK
,
30
"rb"
,
31
NULL);
32
if
(
isDatabaseHeaderTable
(tableTypeData))
33
{
34
35
}
36
else
37
{
38
return
ossimErrorCodes::OSSIM_ERROR
;
39
}
40
}
41
else
42
{
43
return
ossimErrorCodes::OSSIM_ERROR
;
44
}
45
46
return
ossimErrorCodes::OSSIM_OK
;
47
}
48
49
bool
ossimVpfDatabaseHeader::isDatabaseHeaderTable
(
vpf_table_type
&
/* tableType */
)
50
{
51
return
true
;
52
}
ossimVpfDatabaseHeader::isDatabaseHeaderTable
bool isDatabaseHeaderTable(vpf_table_type &tableType)
Definition:
ossimVpfDatabaseHeader.cpp:49
ossimErrorCode
ossim_int32 ossimErrorCode
Definition:
ossimConstants.h:246
ossimVpfDatabaseHeader.h
vpf_open_table
vpf_table_type vpf_open_table(const char *tablename, storage_type storage, const char *mode, char *defstr)
ossimErrorCodes::OSSIM_OK
static const ossimErrorCode OSSIM_OK
Definition:
ossimErrorCodes.h:50
DISK
#define DISK
Definition:
vpftable.h:76
ossimErrorCodes::OSSIM_ERROR
static const ossimErrorCode OSSIM_ERROR
Definition:
ossimErrorCodes.h:53
ossimVpfDatabaseHeader::ossimVpfDatabaseHeader
ossimVpfDatabaseHeader()
Definition:
ossimVpfDatabaseHeader.cpp:13
ossimVpfDatabaseHeader::open
virtual ossimErrorCode open(const ossimFilename &databaseHeaderTable)
Definition:
ossimVpfDatabaseHeader.cpp:22
ossimErrorCodes.h
vpf_table_type
Definition:
vpftable.h:103
is_vpf_table
ossim_int32 is_vpf_table(const char *fname)
ossimFilename
Definition:
ossimFilename.h:20
storage_type
storage_type
Definition:
vpftable.h:74
ossimString::c_str
const char * c_str() const
Returns a pointer to a null-terminated array of characters representing the string's contents...
Definition:
ossimString.h:396
vpftable.h
ossimVpfDatabaseHeader::~ossimVpfDatabaseHeader
virtual ~ossimVpfDatabaseHeader()
Definition:
ossimVpfDatabaseHeader.cpp:18
Generated on Fri Aug 3 2018 08:46:54 for OSSIM - Open Source Software Image Map by
1.8.14