/usr/include/ossim/base/ossimDatumFactory.h is in libossim-dev 2.2.2-1.
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 | //*******************************************************************
//
// License: See top level LICENSE.txt file.
//
// Author: Garrett Potts
//
// Description:
//
// This is the DatumFactory class. You give it a code and it will
// construct a Datum class. It returns NULL if no code was found.
//*******************************************************************
// $Id: ossimDatumFactory.h 22851 2014-08-05 12:02:55Z gpotts $
#ifndef ossimDatumFactory_HEADER
#define ossimDatumFactory_HEADER 1
#include <ossim/base/ossimDatumFactoryInterface.h>
#include <ossim/base/ossimEllipsoidFactory.h>
#include <map>
#include <string>
#include <vector>
class ossimFilename;
class ossimDatum;
class ossimWgs84Datum;
class ossimWgs72Datum;
class ossimString;
class OSSIM_DLL ossimDatumFactory : public ossimDatumFactoryInterface
{
public:
/** virtual destructor */
virtual ~ossimDatumFactory();
/**
* create method
*
* Implements pure virtual ossimDatumFactoryInterface::create.
*
* @return const pointer to a datum.
*/
virtual const ossimDatum* create(const ossimString &code)const;
virtual const ossimDatum* create(const ossimKeywordlist& kwl, const char *prefix=0)const;
const ossimDatum* create(const ossimDatum* copy) const;
static ossimDatumFactory* instance();
const ossimDatum* wgs84()const{return theWgs84Datum;}
const ossimDatum* wgs72()const{return theWgs72Datum;}
std::vector<ossimString> getList()const;
virtual void getList(std::vector<ossimString>& list)const;
void writeCStructure(const ossimFilename& file);
protected:
// static ossimDatumFactory* theInstance;
const ossimDatum* theWgs84Datum;
const ossimDatum* theWgs72Datum;
std::map<std::string, const ossimDatum*> theDatumTable;
ossimDatumFactory();
void deleteAll();
void initializeDefaults();
};
#endif
|