renaming class names

fb-rpc
Claudius Holeksa 2023-03-05 12:58:31 +01:00
parent 9ecf425911
commit af61465a19
3 changed files with 24 additions and 8 deletions

View File

@ -0,0 +1,14 @@
#!/usr/bin/env false
import os
import os.path
import glob
Import('env');
dir_path = Dir('.').abspath
codec_json_env = env.Clone();

View File

@ -40,7 +40,7 @@ public:
/** /**
* A phantom conveyor feeder. Meant for interfacing with other components * A phantom conveyor feeder. Meant for interfacing with other components
*/ */
conveyor_feeder<heap_message_root<Outgoing, OutContainer>> &feeder(); // conveyor_feeder<heap_message_root<Outgoing, OutContainer>> &feeder();
conveyor<void> on_read_disconnected(); conveyor<void> on_read_disconnected();

View File

@ -1,34 +1,36 @@
#pragma once #pragma once
#include "schema.h"
namespace saw { namespace saw {
template<typename Codec, typename Schema> class Rpc; template<typename Codec, typename Schema> class rpc;
/** /**
* Provides the interface for messages with an rpc type behaviour * Provides the interface for messages with an rpc type behaviour
*/ */
template<typename Codec, typename... Responses, typename... Requests, StringLiteral... Literals> template<typename Codec, typename... Responses, typename... Requests, StringLiteral... Literals>
class Rpc<schema::Interface<schema::Function<Responses, Requests, Literals>...>> { class rpc<schema::Interface<schema::Function<Responses, Requests, Literals>...>> {
public: public:
class Client { class client {
public: public:
/** /**
* *
*/ */
template<StringLiteral FunctionLiteral> template<StringLiteral FunctionLiteral>
Conveyor<Message<FunctionResponse>> request(Message<FunctionRequest> parameters); conveyor<Message<FunctionResponse>> request(message<FunctionRequest> parameters);
}; };
class Service { class service {
public: public:
/** /**
* *
*/ */
template<StringLiteral FunctionLiteral> template<StringLiteral FunctionLiteral>
Conveyor<Message<FunctionResponse>> handle(Message<FunctionRequest> request); conveyor<Message<FunctionResponse>> handle(message<FunctionRequest> request);
}; };
class Server { class server {
}; };
}; };