OGS
UserPunch.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
6#include <iosfwd>
7#include <string>
8#include <vector>
9
11#include "Output.h"
12
13namespace BaseLib
14{
15class ConfigTree;
16}
17
18namespace ChemistryLib
19{
20namespace PhreeqcIOData
21{
23{
24 SecondaryVariable(std::string name_,
26 : name(std::move(name_)), value(value_)
27 {
28 }
29
30 std::string const name;
33};
34
36{
37 UserPunch(std::vector<SecondaryVariable>&& secondary_variables_,
38 std::vector<std::string>&& statements_)
39 : secondary_variables(std::move(secondary_variables_)),
40 statements(std::move(statements_))
41 {
42 }
43
44 void initialize(std::size_t const num_chemical_systems);
45
46 friend std::ostream& operator<<(std::ostream& os,
47 UserPunch const& user_punch);
48
49 std::vector<SecondaryVariable> secondary_variables;
50 std::vector<std::string> const statements;
51};
52} // namespace PhreeqcIOData
53} // namespace ChemistryLib
ItemType
Category used to interpret a PHREEQC output column.
MeshLib::PropertyVector< double > * value
Definition UserPunch.h:31
SecondaryVariable(std::string name_, MeshLib::PropertyVector< double > *value_)
Definition UserPunch.h:24
void initialize(std::size_t const num_chemical_systems)
Definition UserPunch.cpp:12
UserPunch(std::vector< SecondaryVariable > &&secondary_variables_, std::vector< std::string > &&statements_)
Definition UserPunch.h:37
friend std::ostream & operator<<(std::ostream &os, UserPunch const &user_punch)
Definition UserPunch.cpp:20
std::vector< SecondaryVariable > secondary_variables
Definition UserPunch.h:49
std::vector< std::string > const statements
Definition UserPunch.h:50