17 #ifndef NYMPH_METHOD_H
18 #define NYMPH_METHOD_H
20 #include "nymph_types.h"
21 #include "nymph_listener.h"
22 #include "nymph_message.h"
23 #include "nymph_session.h"
25 #include <Poco/Poco.h>
26 #include <Poco/Net/StreamSocket.h>
46 std::vector<NymphTypes> parameters;
47 NymphMethodCallback callback;
48 NymphTypes returnType;
49 std::string loggerName;
50 std::string serialized;
53 void setId(uint32_t
id);
56 NymphMethod(std::string name, std::vector<NymphTypes> parameters, NymphTypes retType);
57 void setCallback(NymphMethodCallback callback);
59 bool call(Poco::Net::StreamSocket* socket,
NymphRequest* &request, std::vector<NymphType*> &values, std::string &result);
60 bool call(
NymphSession* session, std::vector<NymphType*> &values, std::string &result);
61 uint32_t getId() {
return id; }
62 std::string getSerialized() {
return serialized; }
63 bool enableCallback(
bool state =
true) { isCallback = state;
return true; }
Definition: nymph_message.h:38
Definition: nymph_method.h:40
Definition: remote_client.h:33
Definition: remote_server.h:31
Definition: nymph_session.h:26
Definition: nymph_socket_listener.h:40