NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
#include <string>
#include <vector>
#include "../commandlineparser.hpp"
#include "../datamanagement/memorymanager.hpp"
#include "../settings.hpp"
#include "../ParserLib/muParser.h"
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) |
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().