VAPoR  0.1
CFuncs.h
Go to the documentation of this file.
1 //
2 // $Id$
3 //
4 //************************************************************************
5 // *
6 // Copyright (C) 2004 *
7 // University Corporation for Atmospheric Research *
8 // All Rights Reserved *
9 // *
10 //************************************************************************/
11 //
12 // File:
13 //
14 // Author: John Clyne
15 // National Center for Atmospheric Research
16 // PO 3000, Boulder, Colorado
17 //
18 // Date: Mon Nov 29 11:49:03 MST 2004
19 //
20 // Description: A collection of common C system routines that
21 // aren't always portable across OS platforms
22 //
23 
24 #ifndef _CFuncs_h_
25 #define _CFuncs_h_
26 
27 #include <cmath>
28 #include <string>
29 #include <vapor/common.h>
30 
31 
32 using namespace std;
33 
34 namespace VetsUtil {
35 
36 
37 COMMON_API const char *Basename(const char *path);
38 COMMON_API string Basename(const string &path);
39 
40 
41 COMMON_API string Dirname(const string &path);
42 
43 COMMON_API string Catpath(string volume, string dir, string file);
44 
46  string path, string &volume, string &dir, string &file, bool nofile
47 );
48 
49 COMMON_API bool IsAbsPath(string path);
50 
51 
52 COMMON_API double GetTime();
53 
54 COMMON_API int MkDirHier(const string &dir);
55 
56 
57 
58 };
59 
60 #endif // _CFuncs_h_
COMMON_API string Basename(const string &path)
COMMON_API double GetTime()
COMMON_API int MkDirHier(const string &dir)
Definition: Base64.h:6
COMMON_API bool IsAbsPath(string path)
#define COMMON_API
Definition: common.h:60
COMMON_API string Catpath(string volume, string dir, string file)
COMMON_API void Splitpath(string path, string &volume, string &dir, string &file, bool nofile)
COMMON_API string Dirname(const string &path)