Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
ApiDataLoggerQueryParamsBuilder.hpp
Go to the documentation of this file.
1#ifndef APIDATALOGGERQUERYPARAMSBUILDER_HPP
2#define APIDATALOGGERQUERYPARAMSBUILDER_HPP
3
5#include "core/defines.hpp"
6
8{
9
11{
12public:
14
15 [[nodiscard]] std::optional<std::string> getChannelId() const override;
16 [[nodiscard]] std::unordered_map<std::string_view, std::string> build() const override;
17
21
22private:
23 std::optional<iv::types::channelId> m_channelId;
24 std::optional<iv::types::timestamp> m_startTimestamp;
25 std::optional<iv::types::timestamp> m_endTimestamp;
26
27 struct Request
28 {
29 static constexpr std::string_view startTimestamp {"startTimestamp"};
30 static constexpr std::string_view endTimestamp {"endTimestamp"};
31 };
32};
33
34}// namespace iv::comms::api::dataLogger
35
36#endif//APIDATALOGGERQUERYPARAMSBUILDER_HPP
Definition IApiQueryParamsBuilder.hpp:13
Definition ApiDataLoggerQueryParamsBuilder.hpp:11
std::optional< iv::types::timestamp > m_startTimestamp
Definition ApiDataLoggerQueryParamsBuilder.hpp:24
std::unordered_map< std::string_view, std::string > build() const override
Definition ApiDataLoggerQueryParamsBuilder.cpp:15
std::optional< iv::types::channelId > m_channelId
Definition ApiDataLoggerQueryParamsBuilder.hpp:23
std::optional< std::string > getChannelId() const override
Definition ApiDataLoggerQueryParamsBuilder.cpp:10
ApiDataLoggerQueryParamsBuilder & setStartTimestamp(iv::types::timestamp startTimestamp)
Definition ApiDataLoggerQueryParamsBuilder.cpp:39
ApiDataLoggerQueryParamsBuilder & setEndTimestamp(iv::types::timestamp endTimestamp)
Definition ApiDataLoggerQueryParamsBuilder.cpp:46
std::optional< iv::types::timestamp > m_endTimestamp
Definition ApiDataLoggerQueryParamsBuilder.hpp:25
ApiDataLoggerQueryParamsBuilder & setChannelId(iv::types::channelId channelId)
Definition ApiDataLoggerQueryParamsBuilder.cpp:32
Definition ApiDataLoggerCommunicationProtocol.cpp:9
uint64_t timestamp
Definition types.hpp:21
std::string channelId
Definition types.hpp:66
Definition ApiDataLoggerQueryParamsBuilder.hpp:28
static constexpr std::string_view startTimestamp
Definition ApiDataLoggerQueryParamsBuilder.hpp:29
static constexpr std::string_view endTimestamp
Definition ApiDataLoggerQueryParamsBuilder.hpp:30