|
NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
#include "fileops.hpp"#include "../utils/tools.hpp"#include "../maths/parser_functions.hpp"#include "../../kernel.hpp"#include "../ui/language.hpp"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 |
| 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().
| bool moveOrCopyFiles | ( | CommandLineParser & | cmdParser | ) |
Moves or copies files from one location to another. Supports also wildcards and file lists.
| cmdParser | CommandLineParser& |
Definition at line 98 of file fileops.cpp.
References CommandLineParser::clearReturnValue(), copyFile(), FileSystem::declareFileType(), NumeRe::StringParser::evalAndFormat(), fileExists(), CommandLineParser::getCommand(), CommandLineParser::getCommandLine(), CommandLineParser::getExpr(), getFileList(), NumeReKernel::getInstance(), CommandLineParser::getParameterValueAsString(), NumeReKernel::getStringParser(), CommandLineParser::hasParam(), FileSystem::initializeFromKernel(), SyntaxError::invalid_position, moveFile(), SyntaxError::NO_TARGET, removeQuotationMarks(), replacePathSeparator(), CommandLineParser::setReturnValue(), StripSpaces(), toString(), and FileSystem::ValidFileName().
Referenced by cmd_copy(), and cmd_move().
| bool removeFile | ( | CommandLineParser & | cmdParser | ) |
Removes one or more files from the disk.
| cmdParser | CommandLineParser& |
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().
| std::string removeQuotationMarks | ( | const std::string & | sString | ) |
This function simply removes the surrounding quotation marks.
| sString | const std::string& |
Definition at line 79 of file stringfunctions.hpp.
Referenced by moveOrCopyFiles().
|
extern |
Definition at line 39 of file kernel.cpp.
Referenced by removeFile().