GCpp general purpose C++ library  version 1.0
GFileFunctions.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file GFileFunctions.hh
3  *
4  * Include file for various functions related to files
5  */
6 //======================================================================
7 
8 #ifndef G_FILE_FUNCTIONS_HH
9 #define G_FILE_FUNCTIONS_HH
10 
11 #include "GGlobal.hh"
12 
13 class GStringList;
14 
15 //======================================================================
16 
17 ///! String indicating a line comment in a data file
18 extern string gFileCommentLine;
19 
20 ///! String indicating all space characters
21 extern string gFileSpaces;
22 
23 // Functions to read data in a file
24 extern string GFileReadLine ( FILE * fptr, int & error, const bool skip_empty = true, const u_int maxlen = 4096 );
25 
26 extern int GGetFileList ( GStringList & flist, const string & dir, const string & pattern );
27 extern int GGetFileList ( GStringList & flist, const string & fpattern = "*" );
28 
29 
30 //======================================================================
31 #endif
string GFileReadLine(FILE *fptr, int &error, const bool skip_empty, const u_int maxlen)
Definition: GFileFunctions.cpp:28
int GGetFileList(GStringList &flist, const string &dir, const string &pattern)
Definition: GFileFunctions.cpp:94
unsigned int u_int
Definition: GTypes.hh:38
string gFileSpaces
! String indicating all space characters
Definition: GFileFunctions.cpp:13
Definition: GStringList.hh:22
string gFileCommentLine
! String indicating a line comment in a data file
Definition: GFileFunctions.cpp:12