hydrobricks
Loading...
Searching...
No Matches
Forcing.h
1#ifndef HYDROBRICKS_FORCING_H
2#define HYDROBRICKS_FORCING_H
3
4#include "Includes.h"
5#include "TimeSeriesData.h"
6
7class Forcing : public wxObject {
8 public:
9 explicit Forcing(VariableType type);
10
11 ~Forcing() override = default;
12
18 void AttachTimeSeriesData(TimeSeriesData* timeSeriesData);
19
25 VariableType GetType() const {
26 return _type;
27 }
28
34 double GetValue();
35
42 [[nodiscard]] bool IsValid() const;
43
50 void Validate() const;
51
52 protected:
53 VariableType _type;
54 TimeSeriesData* _timeSeriesData; // non-owning reference
55};
56
57#endif // HYDROBRICKS_FORCING_H
Definition Forcing.h:7
void Validate() const
Definition Forcing.cpp:33
VariableType GetType() const
Definition Forcing.h:25
double GetValue()
Definition Forcing.cpp:12
bool IsValid() const
Definition Forcing.cpp:17
void AttachTimeSeriesData(TimeSeriesData *timeSeriesData)
Definition Forcing.cpp:7
Definition TimeSeriesData.h:6