Skip to content

Commit 5a5121a

Browse files
Add missing forward declaration
1 parent 3d77807 commit 5a5121a

4 files changed

Lines changed: 12 additions & 0 deletions

File tree

CSAPI-lib/DataModels/ControlStream.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
#include "Component/DataComponentRegistry.h"
1818

1919
namespace ConnectedSystemsAPI::DataModels {
20+
class ControlStream;
21+
void to_json(nlohmann::ordered_json& j, const ControlStream& v);
22+
2023
class ControlStream {
2124
private:
2225
std::optional<std::string> id;

CSAPI-lib/DataModels/ControlledProperty.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
#include <nlohmann/json_fwd.hpp>
88

99
namespace ConnectedSystemsAPI::DataModels {
10+
class ControlledProperty;
11+
void to_json(nlohmann::ordered_json& j, const ControlledProperty& v);
12+
1013
class ControlledProperty {
1114
private:
1215
std::optional<std::string> definition;

CSAPI-lib/DataModels/ObservedProperty.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
#include <nlohmann/json_fwd.hpp>
88

99
namespace ConnectedSystemsAPI::DataModels {
10+
class ObservedProperty;
11+
void to_json(nlohmann::ordered_json& j, const ObservedProperty& v);
12+
1013
class ObservedProperty {
1114
private:
1215
std::optional<std::string> definition;

CSAPI-lib/DataModels/TimeExtent.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
#include "TimeUtils.h"
1212

1313
namespace ConnectedSystemsAPI::DataModels {
14+
class TimeExtent;
15+
void to_json(nlohmann::ordered_json& j, const TimeExtent& v);
16+
1417
/// <summary>
1518
/// Represents a time or time range.
1619
/// Also supports special cases of time instants at 'now',

0 commit comments

Comments
 (0)