nexuslua
Loading...
Searching...
No Matches
cpp_handler.hpp
Go to the documentation of this file.
1/*
2Copyright (c) 2025 acrion innovations GmbH
3Authors: Stefan Zipproth, s.zipproth@acrion.ch
4
5This file is part of nexuslua, see https://github.com/acrion/nexuslua and https://nexuslua.org
6
7nexuslua is offered under a commercial and under the AGPL license.
8For commercial licensing, contact us at https://acrion.ch/sales. For AGPL licensing, see below.
9
10AGPL licensing:
11
12nexuslua is free software: you can redistribute it and/or modify
13it under the terms of the GNU Affero General Public License as published by
14the Free Software Foundation, either version 3 of the License, or
15(at your option) any later version.
16
17nexuslua is distributed in the hope that it will be useful,
18but WITHOUT ANY WARRANTY; without even the implied warranty of
19MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20GNU Affero General Public License for more details.
21
22You should have received a copy of the GNU Affero General Public License
23along with nexuslua. If not, see <https://www.gnu.org/licenses/>.
24*/
25
26#pragma once
27
28#include <functional>
29#include <memory>
30
31namespace nexuslua
32{
33 struct Message;
34
38 typedef std::function<void(std::shared_ptr<Message>)> CppHandler;
39}
The nexuslua library is implemented inside this namespace.
std::function< void(std::shared_ptr< Message >)> CppHandler
the signature of a function that is called whenever a C++ nexuslua::agent receives a message
Definition cpp_handler.hpp:38
This type is the actual message type that is sent by function send.
Definition message.hpp:44