OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimDirectoryTree.h
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: See top level LICENSE.txt file.
4 //
5 // Author: Garrett Potts (gpotts@imagelinks)
6 // Description: A brief description of the contents of the file.
7 //
8 //*************************************************************************
9 // $Id: ossimDirectoryTree.h 9968 2006-11-29 14:01:53Z gpotts $
10 #ifndef ossimDirectoryTree_HEADER
11 #define ossimDirectoryTree_HEADER
12 #include <queue>
13 #include <vector>
14 using namespace std;
15 
17 
19 {
20 public:
23 
24  bool open(const ossimFilename& dir);
25 
26  bool isOpened() const;
27 
28  bool getFirst(ossimFilename &filename,
30 
31  // get next file in the enumeration started with either GetFirst() or
32  // GetFirstNormal()
33  bool getNext(ossimFilename &filename) ;
34 
35  void findAllFilesThatMatch(std::vector<ossimFilename>& result,
36  const ossimString& regularExpressionPattern,
38 private:
40  {
41  public:
43  {
44  if(theDirectory)
45  {
46  delete theDirectory;
47  theFilename = "";
48  }
49  }
51  const ossimFilename &filename)
52  :theDirectory(aDir),
53  theFilename(filename)
54  {
55 
56  }
59  };
60 
61  queue<ossimFilename> theDirectoryQueue;
63  int theFlags;
64 
65  void deleteAll();
66 
67  void checkToPushDirectory(const ossimFilename &filename);
68  // for now we will hide copy
70  const ossimDirectoryTree& operator =(const ossimDirectoryTree& rhs);
71 };
72 
73 #endif
ossimDirData(ossimDirectory *aDir, const ossimFilename &filename)
#define OSSIMDLLEXPORT
ossimDirData * theCurrentDirectoryData
queue< ossimFilename > theDirectoryQueue