NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
fileops.cpp File Reference
Include dependency graph for fileops.cpp:

Go to the source code of this file.

Functions

std::string removeQuotationMarks (const std::string &)
 This function simply removes the surrounding quotation marks. More...
 
bool removeFile (CommandLineParser &cmdParser)
 Removes one or more files from the disk. More...
 
bool moveOrCopyFiles (CommandLineParser &cmdParser)
 Moves or copies files from one location to another. Supports also wildcards and file lists. More...
 
bool generateTemplate (const std::string &sFile, const std::string &sTempl, const std::vector< std::string > &vTokens, Settings &_option)
 

Variables

Language _lang
 

Function Documentation

◆ generateTemplate()

bool generateTemplate ( const std::string &  sFile,
const std::string &  sTempl,
const std::vector< std::string > &  vTokens,
Settings _option 
)

Definition at line 263 of file fileops.cpp.

References toString(), and FileSystem::ValidFileName().

Referenced by prepareTemplate().

Here is the call graph for this function:

◆ moveOrCopyFiles()

◆ removeFile()

bool removeFile ( CommandLineParser cmdParser)

Removes one or more files from the disk.

Parameters
cmdParserCommandLineParser&
Returns
bool

Definition at line 37 of file fileops.cpp.

References _lang, Language::get(), CommandLineParser::getExpr(), getFileList(), NumeReKernel::getInstance(), NumeReKernel::getline(), NumeReKernel::getSettings(), CommandLineParser::hasParam(), FileSystem::initializeFromKernel(), LineBreak(), CommandLineParser::parseExprAsString(), NumeReKernel::print(), NumeReKernel::printPreFmt(), and Language::YES().

Referenced by cmd_remove().

Here is the call graph for this function:

◆ removeQuotationMarks()

std::string removeQuotationMarks ( const std::string &  sString)

This function simply removes the surrounding quotation marks.

Parameters
sStringconst std::string&
Returns
std::string

Definition at line 79 of file stringfunctions.hpp.

Referenced by moveOrCopyFiles().

Variable Documentation

◆ _lang

Language _lang
extern

Definition at line 39 of file kernel.cpp.

Referenced by removeFile().