ppap4lmp  0.7.2
starter.h
Go to the documentation of this file.
1 
9 #ifndef STARTER_H
10 #define STARTER_H
11 
12 #include <core/updater.h>
13 
24 class Starter : public Updater {
33  void sort_by_id(
34  Json &data);
35  protected:
39  static const bool do_sorting_by_id = true;
57  virtual void compute_body(
58  const ElPtr &elem,
59  Json &data) override;
60  public:
61  using Updater::Updater;
62  virtual ~Starter() = default;
63 };
64 
65 #endif
void sort_by_id(Json &data)
Definition: starter.cpp:17
ShPtr< Element > ElPtr
An alias for a shared pointer of Element class.
Definition: element.h:378
Updater is an abstract class to update data held by an Element object.
Definition: updater.h:34
nlohmann::json Json
Json is an alias for nlohmann::json.
Definition: json.h:22
static const bool do_sorting_by_id
Definition: starter.h:39
Starter sets some properties to an empty Element object.
Definition: starter.h:24
Updater()=default
Constructor of Updater class.
virtual void compute_body(const ElPtr &elem, Json &data) override
Compute or parse properties and set them to Element::data given as a mutable reference.
Definition: starter.cpp:38
This file has a definition of Updater class, which is one of the cores of this program.