GlobalObjects
Lade ...
Suche ...
Keine Treffer
EuFileHelper.h-Dateireferenz

Header für FileHelper Mehr ...

#include <EuToolTypes.h>
#include <string>
#include <fstream>
#include <vector>

gehe zum Quellcode dieser Datei

Klassen

class  eut::FileHelper::CallBackFileDirFount
 

Namensbereiche

namespace  eut
 
namespace  eut::FileHelper
 Helfer mit statischen Methoden zur Bearbeitung des Filesystems.
 

Typdefinitionen

typedef void(* eut::FileHelper::PROCESSING_DIR_MEMBERPTR) (const fs::path &rFullPathName)
 
typedef void(* eut::FileHelper::PROCESSING_FILE_MEMBERPTR) (const fs::path &rFullFileName)
 

Funktionen

int eut::FileHelper::_iterateDirectory (const fs::path &rIterPath, bool bRecursive, PROCESSING_FILE_MEMBERPTR ProcessingFileFunction, PROCESSING_DIR_MEMBERPTR ProcessingDirFunction, CallBackFileDirFount *pProcessingObject)
 
__tool_export_dll int eut::FileHelper::closeInputFile (std::ifstream *&pFileStream)
 
__tool_export_dll int eut::FileHelper::closeInputFile (std::wifstream *&pFileStream)
 
__tool_export_dll int eut::FileHelper::closeOutputFile (std::ofstream *&pFileStream)
 
__tool_export_dll int eut::FileHelper::closeOutputFile (std::wofstream *&pFileStream)
 
__tool_export_dll int eut::FileHelper::copyFile (const std::string &rsSourceFileName, const std::string &rsTargetFileName)
 
__tool_export_dll int eut::FileHelper::deleteFile (const fs::path &rFullFileName)
 
__tool_export_dll int eut::FileHelper::deleteFile (const std::string &rsFullFileName)
 
__tool_export_dll void eut::FileHelper::deleteFileForIterateDirectory (const fs::path &rFullFileName)
 
__tool_export_dll int eut::FileHelper::dirExist (const std::string &rsCheckPath)
 
__tool_export_dll int eut::FileHelper::dirExist (const std::wstring &rsCheckPath)
 
__tool_export_dll int eut::FileHelper::fileExist (const std::string &rsFullFileName)
 
__tool_export_dll int eut::FileHelper::fileExist (const std::wstring &rsFullFileName)
 
__tool_export_dll std::string eut::FileHelper::getCurrentWorkingDirAsString ()
 
__tool_export_dll std::wstring eut::FileHelper::getCurrentWorkingDirAsWString ()
 
__tool_export_dll int eut::FileHelper::iterateDirectory (const fs::path &rIterPath, bool bRecursive, CallBackFileDirFount &rProcessingObject)
 
__tool_export_dll int eut::FileHelper::iterateDirectory (const fs::path &rIterPath, bool bRecursive, PROCESSING_FILE_MEMBERPTR ProcessingFileFunction, PROCESSING_DIR_MEMBERPTR ProcessingDirFunction)
 
__tool_export_dll int eut::FileHelper::loadFile (std::string &rstr, const std::string &rsFileName)
 
__tool_export_dll int eut::FileHelper::lockFile (std::ofstream *&prLockFile, const std::string &rsLockFileName)
 
__tool_export_dll int eut::FileHelper::storeFile (const std::string &rsStr, const std::string &rsFileName)
 
__tool_export_dll int eut::FileHelper::storeFile (char *pszData, std::streamsize nSize, const std::string &rsFileName)
 Speichert Daten in eine Datei im Filesystem.
 
__tool_export_dll int eut::FileHelper::storeFile (char *pszData, std::streamsize nSize, const std::wstring &rsFileName)
 Speichert Daten in eine Datei im Filesystem.
 
__tool_export_dll int eut::FileHelper::storeFile (const Blob *pBlob, const std::string &rsFileName)
 Speichert den Inhalt eines Blobs in eine Datei im Filesystem.
 
__tool_export_dll int eut::FileHelper::storeFile (const Blob *pBlob, const std::wstring &rsFileName)
 Speichert den Inhalt eines Blobs in eine Datei im Filesystem.
 
__tool_export_dll int eut::FileHelper::storeFile (const Blob &rBlob, const std::string &rsFileName)
 Speichert den Inhalt eines Blobs in eine Datei im Filesystem.
 
__tool_export_dll int eut::FileHelper::storeFile (const Blob &rBlob, const std::wstring &rsFileName)
 Speichert den Inhalt eines Blobs in eine Datei im Filesystem.
 
__tool_export_dll int eut::FileHelper::loadFile (char *&prszData, std::streamsize &rnSize, const std::string &rsFileName, bool bText=false)
 Liefert den Inhalt und die Größe einer Datei aus dem Filesystem.
 
__tool_export_dll int eut::FileHelper::loadFile (char *&prszData, std::streamsize &rnSize, const std::wstring &rsFileName, bool bText=false)
 Liefert den Inhalt und die Größe einer Datei aus dem Filesystem.
 
__tool_export_dll int eut::FileHelper::loadFile (Blob *&prBlob, const std::string &rsFileName)
 
__tool_export_dll int eut::FileHelper::loadFile (Blob *&prBlob, const std::wstring &rsFileName)
 
__tool_export_dll int eut::FileHelper::loadFile (Blob &rBlob, const std::string &rsFileName)
 Liefert den Inhalt einer Datei aus dem Filesystem.
 
__tool_export_dll int eut::FileHelper::loadFile (Blob &rBlob, const std::wstring &rsFileName)
 Liefert den Inhalt einer Datei aus dem Filesystem.
 
__tool_export_dll int eut::FileHelper::openInputFile (std::ifstream *&pInputFileStream, const std::string &rsFileName)
 Liefert eine geöffnete Datei vom Typ std::ifstream zum Schreiben im Filesystem.
 
__tool_export_dll int eut::FileHelper::openInputFile (std::ifstream *&pInputFileStream, const std::wstring &rsFileName)
 Liefert eine geöffnete Datei vom Typ std::ifstream zum Schreiben im Filesystem.
 
__tool_export_dll int eut::FileHelper::openInputFile (std::wifstream *&pInputFileStream, const std::string &rsFileName)
 Liefert eine geöffnete Datei vom Typ std::wifstream zum Schreiben im Filesystem.
 
__tool_export_dll int eut::FileHelper::openInputFile (std::wifstream *&pInputFileStream, const std::wstring &rsFileName)
 Liefert eine geöffnete Datei vom Typ std::wifstream zum Schreiben im Filesystem.
 
__tool_export_dll int eut::FileHelper::openOutputFile (std::ofstream *&pOutputFileStream, const std::string &rsFileName)
 Liefert eine geöffnete Datei vom Typ std::ofstream zum Lesen im Filesystem.
 
__tool_export_dll int eut::FileHelper::openOutputFile (std::ofstream *&pOutputFileStream, const std::wstring &rsFileName)
 Liefert eine geöffnete Datei vom Typ std::ofstream zum Lesen im Filesystem.
 
__tool_export_dll int eut::FileHelper::openOutputFile (std::wofstream *&pOutputFileStream, const std::string &rsFileName)
 Liefert eine geöffnete Datei vom Typ std::wofstream zum Lesen im Filesystem.
 
__tool_export_dll int eut::FileHelper::openOutputFile (std::wofstream *&pOutputFileStream, const std::wstring &rsFileName)
 Liefert eine geöffnete Datei vom Typ std::wofstream zum Lesen im Filesystem.
 
__tool_export_dll int eut::FileHelper::makeDir (const std::string &rsNewPath)
 Kreiert übergebene(s) Verzeichnis(se).
 
__tool_export_dll int eut::FileHelper::makeDir (const std::wstring &rsNewPath)
 Kreiert übergebene(s) Verzeichnis(se).
 
__tool_export_dll int eut::FileHelper::makePath (const std::string &rsNewPath)
 Kreiert übergebene(s) Verzeichnis(se).
 
__tool_export_dll int eut::FileHelper::makePath (const std::wstring &rsNewPath)
 Kreiert übergebene(s) Verzeichnis(se).
 
__tool_export_dll void eut::FileHelper::splitPath (const std::string &rsFullFileName, std::string &rsDrive, std::string &rsPath, std::string &rsFileName, std::string &rsFileExtension)
 Erwartet einen Dateinamen inkl.
 
__tool_export_dll void eut::FileHelper::splitPath (const std::wstring &rsFullFileName, std::wstring &rsDrive, std::wstring &rsPath, std::wstring &rsFileName, std::wstring &rsFileExtension)
 Erwartet einen Dateinamen inkl.
 
__tool_export_dll void eut::FileHelper::getFullFileName (std::string &rsFullFileName, const fs::path &rFileSystemPath, const char &rSeparator='/')
 Setzt im übergebenen String den vollen Dateinamen aus dem übergebenen fs::path, auch wenn dieser nur rellativ ist.
 
__tool_export_dll void eut::FileHelper::getFullFileName (std::wstring &rsFullFileName, const fs::path &rFileSystemPath, const std::wstring &rSeparator=L"/")
 Setzt im übergebenen String den vollen Dateinamen aus dem übergebenen fs::path, auch wenn dieser nur rellativ ist.
 
int eut::FileHelper::_getswapDatavalue (std::string &sOutText, const std::string &sInText, const std::string &sTextOrFile)
 Hilfsfunktion für swapDataInFile (...) die einen Wert in einem std::string liefert, der entweder aus einer Datei kommt, bzw.
 
int eut::FileHelper::_getswapDatavalue (std::string &sOutText, const std::wstring &sInText, const std::string &sTextOrFile)
 Hilfsfunktion für swapDataInFile (...) die einen Wert in einem std::string liefert, der entweder aus einer Datei kommt, bzw.
 
__tool_export_dll int eut::FileHelper::swapDataInFile (std::vector< std::string > &rParamVector, bool bSimulate=false)
 Sucht und ersetzt Inhalte in Dateien und speichert diese ggf.
 

Ausführliche Beschreibung

Header für FileHelper

Autor
Helmut Jakoby

Terms of License

This file is part of the EuTools module.

EuTools is free software:

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

GNU Affero General Public License Usage
You can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. Please review the following information to ensure the GNU Affero General Public License requirements will be met: https://www.gnu.org/licenses/agpl-3.0.en.html .