VR-Forces 4.0.4 Class Documentation
include/tdbutil/filenameUtil.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2005 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: filenameUtil.h,v $ $Revision: 1.4 $ $State: Exp $
00007 *******************************************************************************/
00008 
00009 #ifndef DtFilenameUtil_H_
00010 #define DtFilenameUtil_H_
00011 
00012 #include "tdbutil/tdbUtilDefines.h"
00013 #include <vlutil/vlFilename.h>
00014 
00015 // Strips the base portion of a given filename from given name, and returns the 
00016 // remaining path.
00017 DT_DLL_tdbutil DtFilename stripBaseName(const DtFilename& filename);
00018 DT_DLL_tdbutil DtString createTempDirectory(const char* tmpEnvVariable, const char* dirName);
00019 
00020 // \brief Attempts to open a read/write file.
00021 // tmpEnvVariable: an environment variable representing the location of temporary files.
00022 // fp:  reference to file pointer
00023 // pBaseName: optional prefix to filename.
00024 // return:  full path to temp file if success, DtString::nullString() on fail.
00025 //    also, fp will be null.
00026 DT_DLL_tdbutil DtFilename DtCreateTempFile(const char* tmpEnvVariable, 
00027    FILE* &fp,
00028    const char* pBaseName);
00029 
00030 #if defined(__sun)
00031 DT_DLL_tdbutil char* makmkdtemp(char *path);
00032 #endif
00033 
00034 #endif   // DtFilenameUtil_H_
00035 

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)