preCICE v3.1.2
Loading...
Searching...
No Matches
RecorderAction.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4#include "action/Action.hpp"
6
7namespace precice::action {
8
10class RecorderAction : public Action {
11public:
20 Timing timing,
21 const mesh::PtrMesh &mesh);
22
24 virtual void performAction() final override;
25
26 struct Record {
28 };
29
31 static void reset();
32
34};
35
36} // namespace precice::action
Abstract base class for configurable actions on data and/or meshes.
Definition Action.hpp:14
Timing
Defines the time and place of application of the action.
Definition Action.hpp:17
Action that records invocations for testing purposes.
static void reset()
resets the saved records.
virtual void performAction() final override
Records the invocation and appends it to the records.
static std::vector< Record > records
RecorderAction(Timing timing, const mesh::PtrMesh &mesh)
Constructor.
contains actions to modify exchanged data.
Definition Action.hpp:6