Taskolib  1.3.3
send_message.h
Go to the documentation of this file.
1 
23 // SPDX-License-Identifier: LGPL-2.1-or-later
24 
25 #ifndef TASKOLIB_SEND_MESSAGE_H_
26 #define TASKOLIB_SEND_MESSAGE_H_
27 
28 #include <gul14/string_view.h>
29 
30 #include "taskolib/CommChannel.h"
31 #include "taskolib/Context.h"
32 #include "taskolib/Message.h"
33 #include "taskolib/StepIndex.h"
34 
35 namespace task {
36 
50 void send_message(Message::Type type, gul14::string_view text, TimePoint timestamp,
51  OptionalStepIndex index, const Context& context,
52  CommChannel* comm_channel = nullptr);
53 
54 } // namespace task
55 
56 #endif
Declaration of the CommChannel struct.
Declaration of the Context and VariableValue types.
Declaration of the Message class.
Declaration of the StepIndex type.
Type
The type of this message.
Definition: Message.h:49
Namespace task contains all Taskolib functions and classes.
Definition: CommChannel.h:33
gul14::optional< StepIndex > OptionalStepIndex
An optional step index (gul14::optional<StepIndex>).
Definition: StepIndex.h:37
void send_message(Message::Type type, gul14::string_view text, TimePoint timestamp, OptionalStepIndex index, const Context &context, CommChannel *comm_channel)
Call the message callback and enqueue the message in the given communication channel,...
Definition: send_message.cc:29
std::chrono::time_point< Clock > TimePoint
Definition: time_types.h:34