/usr/include/ossim/vec/ossimVpfFeatureClassSchema.h is in libossim-dev 1.8.16-3+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | //*******************************************************************
//
// License: See top level LICENSE.txt file.
//
// Author: Garrett Potts (gpotts@imagelinks.com)
//
//********************************************************************
// $Id: ossimVpfFeatureClassSchema.h 20936 2012-05-18 14:45:00Z oscarkramer $
#ifndef ossimVpfFeatureClassSchema_HEADER
#define ossimVpfFeatureClassSchema_HEADER
#include <iostream>
#include <map>
#include <vector>
#include <ossim/vec/ossimVpfTable.h>
class ossimVpfLibrary;
class ossimVpfFeatureClassSchemaNode
{
public:
friend ostream& operator <<(std::ostream& out,
const ossimVpfFeatureClassSchemaNode& data)
{
out << "table : " << data.theTable << endl
<< "key : " << data.theTableKey << endl
<< "primitive: " << data.thePrimitiveTable << endl
<< "primitive key: " << data.thePrimitiveTableKey << endl;
return out;
}
ossimVpfFeatureClassSchemaNode(const ossimFilename& table=ossimFilename(""),
const ossimString& tableKey=ossimString(""),
const ossimFilename& primitiveTable=ossimFilename(""),
const ossimString& primitiveTableKey=ossimString(""))
:theTable(table),
theTableKey(tableKey),
thePrimitiveTable(primitiveTable),
thePrimitiveTableKey(primitiveTableKey)
{
}
ossimFilename theTable;
ossimString theTableKey;
ossimFilename thePrimitiveTable;
ossimString thePrimitiveTableKey;
};
class ossimVpfFeatureClassSchema : public ossimVpfTable
{
public:
ossimVpfFeatureClassSchema();
bool openSchema(ossimVpfCoverage* coverage);
virtual void closeTable();
void getFeatureClasses(std::vector<ossimString>& featureClassArray)const;
bool getFeatureClassNode(const ossimString& featureClass,
ossimVpfFeatureClassSchemaNode& featureClassNode)const;
ossim_int32 getNumberOfFeatureClasses()const;
protected:
ossimVpfCoverage* theCoverage;
ossimFilename theSchemaTableName;
std::map<ossimString, ossimVpfFeatureClassSchemaNode, ossimStringLtstr> theFeatureClassMap;
bool validateColumnNames()const;
void setFeatureClassMapping();
};
#endif
|