IPCCompiler: Generate getters for message ID's and message names

Each endpoint namespace will have an enum class MessageID where you can
find all of its messages.
This commit is contained in:
Andreas Kling 2019-08-03 16:18:37 +02:00
commit 05e08afcd8
Notes: sideshowbarker 2024-07-19 12:55:22 +09:00
3 changed files with 25 additions and 6 deletions

View file

@ -6,7 +6,7 @@ class IEndpoint {
public:
virtual ~IEndpoint();
const String& name() const { return m_name; }
virtual String name() const = 0;
protected:
IEndpoint();

View file

@ -7,12 +7,10 @@ class IMessage {
public:
virtual ~IMessage();
const String& name() const { return m_name; }
virtual int id() const = 0;
virtual String name() const = 0;
virtual ByteBuffer encode() = 0;
protected:
IMessage();
private:
String m_name;
};