NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
dataops.hpp
Go to the documentation of this file.
1/*****************************************************************************
2 NumeRe: Framework fuer Numerische Rechnungen
3 Copyright (C) 2018 Erik Haenel et al.
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17******************************************************************************/
18
19
20#ifndef DATAOPS_HPP
21#define DATAOPS_HPP
22
23#include <string>
24#include "memorymanager.hpp"
25#include "../settings.hpp"
26#include "../commandlineparser.hpp"
27#include "../ParserLib/muParser.h"
28#include "../io/output.hpp"
29#include "../maths/define.hpp"
30
31void load_data(MemoryManager& _data, Settings& _option, mu::Parser& _parser, std::string sFileName = "");
32void show_data(MemoryManager& _data, Output& _out, Settings& _option, const std::string& _sCache, size_t nPrecision);
33void append_data(CommandLineParser& cmdParser);
34void clear_cache(MemoryManager& _data, Settings& _option, bool bIgnore = false);
35bool deleteCacheEntry(CommandLineParser& cmdParser);
36bool CopyData(CommandLineParser& cmdParser);
37bool moveData(CommandLineParser& cmdParser);
38bool sortData(CommandLineParser& cmdParser);
39bool writeToFile(CommandLineParser& cmdParser);
40bool readFromFile(CommandLineParser& cmdParser);
41bool readImage(CommandLineParser& cmdParser);
42
43
44#endif // DATAOPS_HPP
This class provides the functionality to extract the different components of a command line into the ...
This class represents the central memory managing instance. It will handle all tables and clusters,...
This class manages the setting values of the internal (kernel) settings of this application.
Definition: settings.hpp:663
Mathematical expressions parser.
Definition: muParser.h:51
bool sortData(CommandLineParser &cmdParser)
This function is a wrapper for the corresponding member function of the Datafile object.
Definition: dataops.cpp:933
bool readImage(CommandLineParser &cmdParser)
This function reads image data from an image file and stores it as a cache table.
Definition: dataops.cpp:1234
bool moveData(CommandLineParser &cmdParser)
This function will move the selected part of a data table to a new location.
Definition: dataops.cpp:655
bool CopyData(CommandLineParser &cmdParser)
This function copies whole chunks of data between tables.
Definition: dataops.cpp:620
bool deleteCacheEntry(CommandLineParser &cmdParser)
This function removes one or multiple entries in the selected table or cluster.
Definition: dataops.cpp:579
bool readFromFile(CommandLineParser &cmdParser)
This function reads the content of a file as strings and copies them to a temporary string vector var...
Definition: dataops.cpp:1145
void append_data(CommandLineParser &cmdParser)
This function handles appending data sets to already existing data.
Definition: dataops.cpp:346
void clear_cache(MemoryManager &_data, Settings &_option, bool bIgnore=false)
This function removes all allocated tables and frees the assigned memory.
Definition: dataops.cpp:428
void show_data(MemoryManager &_data, Output &_out, Settings &_option, const std::string &_sCache, size_t nPrecision)
This function presents the passed data to the user in a visual way.
Definition: dataops.cpp:281
bool writeToFile(CommandLineParser &cmdParser)
This function writes the string contents in the command to a file.
Definition: dataops.cpp:998
void load_data(MemoryManager &_data, Settings &_option, mu::Parser &_parser, std::string sFileName="")
This function is a wrapper for the Datafile object. It will simply do the whole UI stuff and let the ...
Definition: dataops.cpp:53