OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimTempFilename.h
Go to the documentation of this file.
1 //*******************************************************************
2 // Copyright (C) 2000 ImageLinks Inc.
3 //
4 // License: MIT
5 //
6 // See LICENSE.txt file in the top level directory for more details.
7 //
8 // Author: Garrett Potts
9 // Description: This is a tmeporary filename class it will create a temporary
10 // file and will also delete it upon destruction
11 //
12 //*************************************************************************
13 // $Id: ossimTempFilename.h 9094 2006-06-13 19:12:40Z dburken $
14 #ifndef ossimTempFilename_HEADER
15 #define ossimTempFilename_HEADER
17 
19 {
20 public:
21  ossimTempFilename(const ossimString& tempDir="",
22  const ossimString& prefix = "",
23  const ossimString& extension = "",
24  bool autodelete=true,
25  bool useWildcardDelete=true);
26 
27  void generateRandomFile();
28  void generateRandomDir();
29 
31 
32 protected:
38 
39 
40  void generate(bool createAsDirectoryFlag);
41 };
42 #endif
ossimString theTempDir
ossimString theExtension
#define OSSIM_DLL