mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-01 14:18:15 +00:00
This will be a place to put object serialization/deserialization logic, message parsing, endpoint management, etc.
19 lines
265 B
C++
19 lines
265 B
C++
#pragma once
|
|
|
|
#include <AK/AKString.h>
|
|
#include <AK/ByteBuffer.h>
|
|
|
|
class IMessage {
|
|
public:
|
|
virtual ~IMessage();
|
|
|
|
const String& name() const { return m_name; }
|
|
virtual ByteBuffer encode() = 0;
|
|
|
|
protected:
|
|
IMessage();
|
|
|
|
private:
|
|
String m_name;
|
|
};
|