/usr/include/ossim/base/ossimDirectoryTree.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 61 62 63 64 65 66 67 68 69 70 71 72 73 | //*******************************************************************
//
// License: See top level LICENSE.txt file.
//
// Author: Garrett Potts (gpotts@imagelinks)
// Description: A brief description of the contents of the file.
//
//*************************************************************************
// $Id: ossimDirectoryTree.h 9968 2006-11-29 14:01:53Z gpotts $
#ifndef ossimDirectoryTree_HEADER
#define ossimDirectoryTree_HEADER
#include <queue>
#include <vector>
using namespace std;
#include <ossim/base/ossimDirectory.h>
class OSSIMDLLEXPORT ossimDirectoryTree
{
public:
ossimDirectoryTree();
~ossimDirectoryTree();
bool open(const ossimFilename& dir);
bool isOpened() const;
bool getFirst(ossimFilename &filename,
int flags = ossimDirectory::OSSIM_DIR_DEFAULT);
// get next file in the enumeration started with either GetFirst() or
// GetFirstNormal()
bool getNext(ossimFilename &filename) ;
void findAllFilesThatMatch(std::vector<ossimFilename>& result,
const ossimString& regularExpressionPattern,
int flags = ossimDirectory::OSSIM_DIR_DEFAULT);
private:
class OSSIMDLLEXPORT ossimDirData
{
public:
~ossimDirData()
{
if(theDirectory)
{
delete theDirectory;
theFilename = "";
}
}
ossimDirData(ossimDirectory *aDir,
const ossimFilename &filename)
:theDirectory(aDir),
theFilename(filename)
{
}
ossimDirectory* theDirectory;
ossimFilename theFilename;
};
queue<ossimFilename> theDirectoryQueue;
ossimDirData* theCurrentDirectoryData;
int theFlags;
void deleteAll();
void checkToPushDirectory(const ossimFilename &filename);
// for now we will hide copy
ossimDirectoryTree(const ossimDirectoryTree &rhs);
const ossimDirectoryTree& operator =(const ossimDirectoryTree& rhs);
};
#endif
|