Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

FileUtil.h

00001 // -*- C++ -*-
00002 /*****************************************************************************
00003  *
00004  *   |_|_|_  |_|_    |_    |_|_|_  |_                C O M M U N I C A T I O N
00005  * |_        |_  |_  |_  |_        |_                          N E T W O R K S
00006  * |_        |_  |_  |_  |_        |_                                C L A S S
00007  *   |_|_|_  |_    |_|_    |_|_|_  |_|_|_|_                      L I B R A R Y
00008  *
00009  * $Id: FileUtil.h,v 1.3 2002/01/14 11:25:34 spee Exp $
00010  *
00011  * Class: CNPathList --- ...
00012  *
00013  *****************************************************************************
00014  * Copyright (C) 1992-2002   Communication Networks
00015  *                           Aachen University of Technology
00016  *                           D-52056 Aachen
00017  *                           Germany
00018  *                           Email: cncl-adm@comnets.rwth-aachen.de
00019  *****************************************************************************
00020  * This file is part of the CN class library. All files marked with
00021  * this header are free software; you can redistribute it and/or modify
00022  * it under the terms of the GNU Library General Public License as
00023  * published by the Free Software Foundation; either version 2 of the
00024  * License, or (at your option) any later version.  This library is
00025  * distributed in the hope that it will be useful, but WITHOUT ANY
00026  * WARRANTY; without even the implied warranty of MERCHANTABILITY or
00027  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00028  * License for more details.  You should have received a copy of the GNU
00029  * Library General Public License along with this library; if not, write
00030  * to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139,
00031  * USA.
00032  * 
00033  * As an exception to this rule you may use this template to generate
00034  * your own classes. This does not cause these classes to be covered by
00035  * the GNU Library General Public License. This exception does not
00036  * however invalidate any other reasons why the resulting program must be
00037  * covered by the GNU Library General Public License. 
00038  *****************************************************************************/
00039 
00040 
00041 #ifndef __CNFileUtil_h
00042 #define __CNFileUtil_h
00043 
00044 #include <CNCL/String.h>
00045 
00047 
00048 
00049 
00050 //  // File functions
00051 //  bool wxConcatFiles(const char *src1, const char *src2, const char *dest);
00052 //  char *wxContractPath(const char *fname, const char *envname, const char *user);
00053 //  char *wxCopyAbsolutePath(const char *path);
00054 //  bool wxCopyFile(const char *src, const char *dest);
00055 //  bool wxDirExists(const char *dirname);
00056 //  void wxDos2UnixFilename(char *s);
00057 //  char *wxExpandPath(char *buf, const char *name);
00058 
00060 bool CNfile_exists(const CNString& filename);
00061 
00063 CNString CNfile_name_from_path( const CNString& path);
00064 
00065 //  char *wxFindFirstFile(const char *spec, int flags=0);
00066 //  char *wxFindNextFile(void);
00067 
00071 CNString CNhome_dir( const CNString& user = CNString("") );
00072 
00074 CNString CNcwd(void);
00075 
00076 //  char *wxGetTempFileName(char *prefix, char *buff=NULL);
00077 
00079 bool CNis_absolute_path( const CNString& path);
00080 //  bool wxIsWild(char *pattern);
00081 //  bool wxMatchWild(char *pattern, char *text, bool dot_special=FALSE);
00082 
00084 bool CNmake_dir(const CNString& dir);
00085 
00087 CNString CNpath_only( const CNString& path);
00088 
00090 CNString CNstrip_path(const CNString& path);
00091 
00092 
00093 
00094 //  char *wxRealPath (char *path);
00095 //  bool wxRemoveFile(const char *file);
00096 //  bool wxRenameFile(const char *old, const char *_new);
00097 //  bool wxRmdir(const char *dir);
00098 //  bool wxSetWorkingDirectory(char *dir);
00099 //  void wxStripExtension(char *buffer);
00100 //  void wxUnix2DosFilename(char *s);
00101 
00102 //  #define DirExists wxDirExists
00103 //  #define Dos2UnixFilename wxDos2UnixFilename
00104 //  #define FileExists wxFileExists
00105 //  #define FileNameFromPath wxFileNameFromPath
00106 //  #define IsAbsolutePath wxIsAbsolutePath
00107 //  #define PathOnly wxPathOnly
00108 //  #define Unix2DosFilename wxUnix2DosFilename
00109 
00110 //  // Network functions
00111 //  bool wxGetHostName(char *buf, int sz);
00112 //  bool wxGetEmailAddress(char *buf, int sz);
00113 //  bool wxGetUserId(char *buf, int sz);
00114 //  bool wxGetUserName(char *buf, int sz);
00115 
00116 #endif 

Generated on Fri Feb 1 19:53:49 2002 for CNCL by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001