VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
tdbutil
filenameUtilities.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2005 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
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)