ppap4lmp  0.7.2
adder.h
Go to the documentation of this file.
1 
9 #ifndef ADDER_H
10 #define ADDER_H
11 
12 #include <core/updater.h>
13 
24 class Adder : public Updater {
25  protected:
44  virtual void compute_body(
45  const ElPtr &elem,
46  Json &data) override;
47  public:
48  using Updater::Updater;
49  virtual ~Adder() = default;
50 };
51 
52 #endif
ShPtr< Element > ElPtr
An alias for a shared pointer of Element class.
Definition: element.h:378
virtual void compute_body(const ElPtr &elem, Json &data) override
Compute properties and add them to Element::data given as a mutable reference.
Definition: adder.cpp:16
Updater is an abstract class to update data held by an Element object.
Definition: updater.h:34
Adder adds new properties to a non-empty Element object.
Definition: adder.h:24
nlohmann::json Json
Json is an alias for nlohmann::json.
Definition: json.h:22
Updater()=default
Constructor of Updater class.
This file has a definition of Updater class, which is one of the cores of this program.