1.3.2
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

◆ gslBaseName()

GSTLEARN_EXPORT String gslBaseName ( const String path,
bool  keepExtension = false 
)

◆ gslFileExist() [1/2]

GSTLEARN_EXPORT bool gslFileExist ( const char *  path,
const char *  mode 
)

◆ gslFileExist() [2/2]

GSTLEARN_EXPORT bool gslFileExist ( const String path,
const String mode 
)

◆ gslFopen() [1/2]

GSTLEARN_EXPORT FILE* gslFopen ( const char *  path,
const char *  mode 
)

◆ gslFopen() [2/2]

GSTLEARN_EXPORT FILE* gslFopen ( const String path,
const String mode 
)

◆ gslGetEnv()

GSTLEARN_EXPORT String gslGetEnv ( const String name)

◆ gslSafeGetline()

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

◆ skipBOM()

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