/usr/include/ossim/base/ossimTempFilename.h is in libossim-dev 1.8.16-3+b1.
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 | //*******************************************************************
// Copyright (C) 2000 ImageLinks Inc.
//
// License: LGPL
//
// See LICENSE.txt file in the top level directory for more details.
//
// Author: Garrett Potts
// Description: This is a tmeporary filename class it will create a temporary
// file and will also delete it upon destruction
//
//*************************************************************************
// $Id: ossimTempFilename.h 9094 2006-06-13 19:12:40Z dburken $
#ifndef ossimTempFilename_HEADER
#define ossimTempFilename_HEADER
#include <ossim/base/ossimFilename.h>
class OSSIM_DLL ossimTempFilename : public ossimFilename
{
public:
ossimTempFilename(const ossimString& tempDir="",
const ossimString& prefix = "",
const ossimString& extension = "",
bool autodelete=true,
bool useWildcardDelete=true);
void generateRandomFile();
void generateRandomDir();
~ossimTempFilename();
protected:
ossimString theTempDir;
ossimString thePrefix;
ossimString theExtension;
bool theAutoDeleteFlag;
bool theWildCardDeleteFlag;
void generate(bool createAsDirectoryFlag);
};
#endif
|