Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef FILE_H
00028 #define FILE_H
00029
00030 #include <stdio.h>
00031 #include <string>
00032 #include <vector>
00033
00034 #include "GpCoreToolsDLLExport.h"
00035
00036 namespace GpCoreTools {
00037
00038 class GPCORETOOLS_EXPORT File
00039 {
00040 public:
00041 static bool readLine(char *& buf, int& bufLen, FILE * f, bool delEOL=false);
00042 static std::vector<std::string> * complete(const std::string& beginFilePath);
00043 static bool match(const char * buffer, int& bytesRead, int bytesCount, const char * string);
00044 static char * readAll(const char * fileName);
00045 static int readInteger(const char * buffer, int& bytesRead, int bytesCount, bool& ok);
00046 static long int readLongInteger(const char * buffer, int& bytesRead, int bytesCount, bool& ok);
00047 static double readDouble(const char * buffer, int& bytesRead, int bytesCount, bool& ok);
00048 };
00049
00050 }
00051
00052 #endif // FILE_H