/usr/include/ossim/base/ossimWebRequestFactoryRegistry.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 | #ifndef ossimWebFactoryRegistry_HEADER
#define ossimWebFactoryRegistry_HEADER
#include <ossim/base/ossimFactoryListInterface.h>
#include <ossim/base/ossimWebRequestFactoryBase.h>
#include <ossim/base/ossimWebRequest.h>
/**
* This will later be changed fro ossimHttpRequest to ossimWebRequest so we have
* a base class for general schema access such as ftp, sftp,smtp, ... etc and not
* just restricted to http and https schema definitions.
*/
class OSSIM_DLL ossimWebRequestFactoryRegistry : public ossimWebRequestFactoryBase,
public ossimFactoryListInterface<ossimWebRequestFactoryBase, ossimWebRequest>
{
public:
static ossimWebRequestFactoryRegistry* instance();
virtual ossimWebRequest* create(const ossimUrl& url);
virtual ossimHttpRequest* createHttp(const ossimUrl& url);
/*!
* Creates an object given a type name.
*/
virtual ossimObject* createObject(const ossimString& typeName)const
{
return createObjectFromRegistry(typeName);
}
/*!
* Creates and object given a keyword list.
*/
virtual ossimObject* createObject(const ossimKeywordlist& kwl,
const char* prefix=0)const;
/*!
* This should return the type name of all objects in all factories.
* This is the name used to construct the objects dynamially and this
* name must be unique.
*/
virtual void getTypeNameList(std::vector<ossimString>& typeList)const
{
getAllTypeNamesFromRegistry(typeList);
}
protected:
ossimWebRequestFactoryRegistry();
static ossimWebRequestFactoryRegistry* m_instance;
};
#endif
|