WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
FileTool.h
1#ifndef _WINC_FILETOOL
2#define _WINC_FILETOOL
3
4#include <stdio.h>
5
6#include <WXP/String.h>
7
8namespace WXP {
9 class FileTool {
10 static size_t curl_write( char *buffer, size_t size, size_t nitems,
11 void *userp);
12 static size_t curl_header( char *buffer, size_t size, size_t nitems,
13 void *userp);
14
15 public:
16 static bool isFullPath( const char *filename );
17 static int addPath( const char *path, const char *file, String &filename );
18 static int checkPath( const char *path, const char *file );
19 static int addOutPath( const char *path, const char *file, String &filename );
20 static int numPath( const char *path );
21 static int getPath( const char *path, int ind, String &spath );
22 static int addPathDelim( String &path );
23 static int addUserPath( const char *file, String &filename );
24 static bool exist( const char *file );
25 static bool isStdio( const char *file );
26 static bool isDir( const char *file );
27 static bool isFile( const char *file );
28 static bool isFifo( const char *file );
29 static bool isDevice( const char *file );
30 static off_t getSize( const char *file );
31 static int getModTime( const char *file );
32 static int remove( const char *file );
33 static int makeDir( const char *dir, int flag );
34 };
35}
36#endif
This class has a set of file tools.
Definition FileTool.h:9
static int remove(const char *file)
Definition FileTool.cc:598
static int getPath(const char *path, int ind, String &spath)
Definition FileTool.cc:217
static bool isStdio(const char *file)
Definition FileTool.cc:429
static bool isFullPath(const char *filename)
Definition FileTool.cc:34
static int getModTime(const char *file)
Definition FileTool.cc:583
static bool isDir(const char *file)
Definition FileTool.cc:440
static int addOutPath(const char *path, const char *file, String &filename)
Definition FileTool.cc:163
static bool isFile(const char *file)
Definition FileTool.cc:457
static bool exist(const char *file)
Definition FileTool.cc:354
static bool isFifo(const char *file)
Definition FileTool.cc:474
static int addPathDelim(String &path)
Definition FileTool.cc:253
static int checkPath(const char *path, const char *file)
Definition FileTool.cc:128
static bool isDevice(const char *file)
Definition FileTool.cc:493
static int makeDir(const char *dir, int flag)
Definition FileTool.cc:611
static int addUserPath(const char *file, String &filename)
Definition FileTool.cc:288
static int addPath(const char *path, const char *file, String &filename)
Definition FileTool.cc:95
static int numPath(const char *path)
Definition FileTool.cc:194
static off_t getSize(const char *file)
Definition FileTool.cc:517
This is a variable length string class.
Definition String.h:5
All WXP classes fall under the WXP namespace.
Definition Angle.h:4