/usr/include/ossim/util/ossimToolRegistry.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 | //**************************************************************************************************
//
// OSSIM Open Source Geospatial Data Processing Library
// See top level LICENSE.txt file for license information
//
//**************************************************************************************************
#ifndef ossimUtilityManager_HEADER
#define ossimUtilityManager_HEADER
#include <ossim/base/ossimFactoryListInterface.h>
#include <ossim/util/ossimToolFactoryBase.h>
#include <map>
#include <string>
class ossimTool;
/**
* Registry of all utility factories. Presently only one factory exists, ossimUtilityFactory, but
* eventually plugins can provide their own utilities and corresponding factories.
*/
class OSSIMDLLEXPORT ossimToolRegistry : public ossimToolFactoryBase,
public ossimFactoryListInterface<ossimToolFactoryBase, ossimTool>
{
public:
ossimToolRegistry();
~ossimToolRegistry();
static ossimToolRegistry* instance();
/**
* Initializes the utility factory. Returns TRUE if successful.
* @note Throws ossimException on error.
*/
virtual bool initialize();
/**
* Appends map with available utilities along with descriptions as <name, decription> pairs.
* The names are the human-readable name of the utility/service, typically the utility's class
* name without the "ossim" prefix nor "Util" suffix, all lowercase.
*/
virtual void getCapabilities(std::map<std::string, std::string>& capabilities) const;
virtual std::map<std::string, std::string> getCapabilities() const;
virtual ossimTool* createTool(const std::string& typeName) const;
virtual ossimString getClassName() const { return "ossimToolRegistry"; }
virtual void getTypeNameList(std::vector<ossimString>& typeList) const;
private:
static ossimToolRegistry* s_instance;
};
#endif
|