NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
fileops.hpp File Reference
#include <string>
#include <vector>
#include "../commandlineparser.hpp"
#include "../datamanagement/memorymanager.hpp"
#include "../settings.hpp"
#include "../ParserLib/muParser.h"
Include dependency graph for fileops.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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)
 

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: