1.2.1
CCC
 
File.hpp File Reference
#include "gstlearn_export.hpp"
#include "geoslib_define.h"
#include <fstream>

Classes

class  StdoutRedirect
 

Functions

GSTLEARN_EXPORT void skipBOM (std::ifstream &ins)
 
GSTLEARN_EXPORT FILE * gslFopen (const char *path, const char *mode)
 
GSTLEARN_EXPORT FILE * gslFopen (const String &path, const String &mode)
 
GSTLEARN_EXPORT bool gslFileExist (const char *path, const char *mode)
 
GSTLEARN_EXPORT bool gslFileExist (const String &path, const String &mode)
 
GSTLEARN_EXPORT String gslBaseName (const String &path, bool keepExtension=false)
 
GSTLEARN_EXPORT String gslGetEnv (const String &name)
 
GSTLEARN_EXPORT std::istream & gslSafeGetline (std::istream &is, String &t)
 

Function Documentation

GSTLEARN_EXPORT String gslBaseName ( const String path,
bool  keepExtension = false 
)
GSTLEARN_EXPORT bool gslFileExist ( const char *  path,
const char *  mode 
)
GSTLEARN_EXPORT bool gslFileExist ( const String path,
const String mode 
)
GSTLEARN_EXPORT FILE* gslFopen ( const char *  path,
const char *  mode 
)
GSTLEARN_EXPORT FILE* gslFopen ( const String path,
const String mode 
)
GSTLEARN_EXPORT String gslGetEnv ( const String name)
GSTLEARN_EXPORT std::istream& gslSafeGetline ( std::istream &  is,
String t 
)

Get line from an input text stream whatever the end of line convention. Thanks to: https://stackoverflow.com/a/6089413

GSTLEARN_EXPORT void skipBOM ( std::ifstream &  ins)

This file contains all the OLD-STYLE declarations causing warnings on Windows They should gradually be replaced by modern statements However, they are kept there to keep track on these statements