OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
include
ossim
base
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
16
#include <
ossim/base/ossimDirectory.h
>
17
18
class
OSSIMDLLEXPORT
ossimDirectoryTree
19
{
20
public
:
21
ossimDirectoryTree
();
22
~
ossimDirectoryTree
();
23
24
bool
open(
const
ossimFilename
& dir);
25
26
bool
isOpened()
const
;
27
28
bool
getFirst(
ossimFilename
&filename,
29
int
flags =
ossimDirectory::OSSIM_DIR_DEFAULT
);
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,
37
int
flags =
ossimDirectory::OSSIM_DIR_DEFAULT
);
38
private
:
39
class
OSSIMDLLEXPORT
ossimDirData
40
{
41
public
:
42
~ossimDirData
()
43
{
44
if
(theDirectory)
45
{
46
delete
theDirectory;
47
theFilename =
""
;
48
}
49
}
50
ossimDirData
(
ossimDirectory
*aDir,
51
const
ossimFilename
&filename)
52
:theDirectory(aDir),
53
theFilename(filename)
54
{
55
56
}
57
ossimDirectory
*
theDirectory
;
58
ossimFilename
theFilename
;
59
};
60
61
queue<ossimFilename>
theDirectoryQueue
;
62
ossimDirData
*
theCurrentDirectoryData
;
63
int
theFlags
;
64
65
void
deleteAll();
66
67
void
checkToPushDirectory(
const
ossimFilename
&filename);
68
// for now we will hide copy
69
ossimDirectoryTree
(
const
ossimDirectoryTree
&rhs);
70
const
ossimDirectoryTree
& operator =(
const
ossimDirectoryTree
& rhs);
71
};
72
73
#endif
ossimDirectoryTree::ossimDirData::ossimDirData
ossimDirData(ossimDirectory *aDir, const ossimFilename &filename)
Definition:
ossimDirectoryTree.h:50
OSSIMDLLEXPORT
#define OSSIMDLLEXPORT
Definition:
ossimConstants.h:71
ossimDirectory.h
ossimDirectoryTree::ossimDirData
Definition:
ossimDirectoryTree.h:39
ossimDirectoryTree::theFlags
int theFlags
Definition:
ossimDirectoryTree.h:63
ossimDirectoryTree::ossimDirData::theDirectory
ossimDirectory * theDirectory
Definition:
ossimDirectoryTree.h:57
std
ossimDirectoryTree
Definition:
ossimDirectoryTree.h:18
ossimDirectory::OSSIM_DIR_DEFAULT
Definition:
ossimDirectory.h:39
ossimDirectoryTree::ossimDirData::theFilename
ossimFilename theFilename
Definition:
ossimDirectoryTree.h:58
ossimDirectoryTree::ossimDirData::~ossimDirData
~ossimDirData()
Definition:
ossimDirectoryTree.h:42
ossimFilename
Definition:
ossimFilename.h:20
ossimDirectory
Definition:
ossimDirectory.h:23
ossimDirectoryTree::theCurrentDirectoryData
ossimDirData * theCurrentDirectoryData
Definition:
ossimDirectoryTree.h:62
ossimDirectoryTree::theDirectoryQueue
queue< ossimFilename > theDirectoryQueue
Definition:
ossimDirectoryTree.h:61
ossimString
Definition:
ossimString.h:22
Generated on Fri Aug 3 2018 08:46:46 for OSSIM - Open Source Software Image Map by
1.8.14