AQUAgpusph 5.0.4
Loading...
Searching...
No Matches
FastASCII.hpp
Go to the documentation of this file.
1/*
2 * This file is part of AQUAgpusph, a free CFD program based on SPH.
3 * Copyright (C) 2012 Jose Luis Cercos Pita <jl.cercos@upm.es>
4 *
5 * AQUAgpusph 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 * AQUAgpusph 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 AQUAgpusph. If not, see <http://www.gnu.org/licenses/>.
17 */
18
23
24#ifndef FastASCII_H_INCLUDED
25#define FastASCII_H_INCLUDED
26
28#include "ASCII.hpp"
29
30namespace Aqua {
31namespace InputOutput {
32
59class FastASCII : public ASCII
60{
61 public:
70 FastASCII(ProblemSetup& sim_data,
71 unsigned int iset,
72 size_t offset,
73 size_t n = 0,
74 const std::string file_ext = ".dat");
75
77 ~FastASCII();
78
79 protected:
87 std::string readField(const std::string field,
88 const std::string line,
89 size_t index,
90 void* data);
91}; // class InputOutput
92
93}
94} // namespaces
95
96#endif // FastASCII_H_INCLUDED
Particles plain text data files loader/saver (with math expressions evaluator). (See Aqua::InputOutpu...
ASCII(ProblemSetup &sim_data, unsigned int iset, size_t offset, size_t n=0, const std::string file_ext=".dat")
Constructor.
Definition ASCII.cpp:36
~FastASCII()
Destructor.
Definition FastASCII.cpp:45
std::string readField(const std::string field, const std::string line, size_t index, void *data)
Extract the field value from a line.
Definition FastASCII.cpp:48
FastASCII(ProblemSetup &sim_data, unsigned int iset, size_t offset, size_t n=0, const std::string file_ext=".dat")
Constructor.
Definition FastASCII.cpp:36
std::map< std::string, void * > data() const
Get the stored memory objects where the device data has been downloaded.
Definition Particles.hpp:222
size_t n() const
Get the number of particles managed by this instance.
Definition Particles.hpp:80
Simulation configuration data.
Definition ProblemSetup.hpp:91
Input/Output data interfaces.
Definition ArgumentsManager.cpp:51
Main AQUAgpusph namespace.
Definition ArgumentsManager.cpp:50
Set of definitions and macros related with the implementation.