/usr/include/ossim/base/ossimEnvironmentUtility.h is in libossim-dev 1.8.16-4ubuntu1.
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 | #ifndef ossimEnvironmentUtility_HEADER
#define ossimEnvironmentUtility_HEADER
#include <ossim/base/ossimConstants.h>
#include <ossim/base/ossimFilename.h>
class OSSIM_DLL ossimEnvironmentUtility
{
public:
typedef std::vector<ossimFilename> FilenameListType;
static ossimEnvironmentUtility* instance();
ossimString getEnvironmentVariable(const ossimString& variable)const;
ossimFilename getUserDir()const;
ossimString getUserName()const;
ossimFilename getUserOssimSupportDir()const;
ossimFilename getUserOssimPreferences()const;
ossimFilename getUserOssimPluginDir()const;
ossimFilename getInstalledOssimSupportDir()const;
ossimFilename getInstalledOssimPluginDir()const;
ossimFilename getInstalledOssimPreferences()const;
/**
* @return The current working dir which is $(PWD) for unix $(CD) for
* windows.
*/
ossimFilename getCurrentWorkingDir()const;
ossimFilename searchAllPaths(const ossimFilename& file)const;
ossimFilename findPlugin(const ossimFilename& plugin)const;
ossimFilename findData(const ossimFilename& data)const;
void addDataSearchPath(const ossimFilename& path);
void addDataSearchPathToFront(const ossimFilename& path);
void addPluginSearchPath(const ossimFilename& path);
void addPluginSearchPathToFront(const ossimFilename& path);
ossimEnvironmentUtility::FilenameListType& getPluginSearchPath();
const ossimEnvironmentUtility::FilenameListType& getPluginSearchPath()const;
ossimEnvironmentUtility::FilenameListType& getDataSearchPath();
const ossimEnvironmentUtility::FilenameListType& getDataSearchPath()const;
private:
static ossimEnvironmentUtility* theInstance;
ossimEnvironmentUtility::FilenameListType thePluginSearchPath;
ossimEnvironmentUtility::FilenameListType theDataSearchPath;
ossimEnvironmentUtility();
ossimEnvironmentUtility(const ossimEnvironmentUtility& obj);
const ossimEnvironmentUtility& operator=
(const ossimEnvironmentUtility& rhs);
};
#endif
|