VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
filenameUtilities.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: filenameUtil.h,v $ $Revision: 1.4 $ $State: Exp $
7 *******************************************************************************/
8 
9 #ifndef DtFilenameUtil_H_
10 #define DtFilenameUtil_H_
11 
12 #include "tdbutil/tdbUtilDefines.h"
13 #include <vlutil/vlFilename.h>
14 
15 // Strips the base portion of a given filename from given name, and returns the
16 // remaining path.
17 DT_DLL_tdbutil DtFilename stripBaseName(const DtFilename& filename);
18 DT_DLL_tdbutil DtString createTempDirectory(const char* tmpEnvVariable, const char* dirName);
19 
20 // \brief Attempts to open a read/write file.
21 // tmpEnvVariable: an environment variable representing the location of temporary files.
22 // fp: reference to file pointer
23 // pBaseName: optional prefix to filename.
24 // return: full path to temp file if success, DtString::nullString() on fail.
25 // also, fp will be null.
26 DT_DLL_tdbutil DtFilename DtCreateTempFile(const char* tmpEnvVariable,
27  FILE* &fp,
28  const char* pBaseName);
29 
30 #if defined(__sun)
31 DT_DLL_tdbutil char* makmkdtemp(char *path);
32 #endif
33 
34 #endif // DtFilenameUtil_H_
35 
DT_DLL_tdbutil DtFilename stripBaseName(const DtFilename &filename)
DT_DLL_tdbutil DtFilename DtCreateTempFile(const char *tmpEnvVariable, FILE *&fp, const char *pBaseName)
DT_DLL_tdbutil DtString createTempDirectory(const char *tmpEnvVariable, const char *dirName)
#define DT_DLL_tdbutil
Definition: tdbUtilDefines.h:23

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)