2024-10-06 20:08:22 -07:00
|
|
|
#pragma once
|
|
|
|
|
2024-10-06 22:54:29 -07:00
|
|
|
#include "ehs/Str.h"
|
|
|
|
#include "ehs/Serializer.h"
|
2024-10-06 20:08:22 -07:00
|
|
|
|
|
|
|
namespace ehs
|
|
|
|
{
|
|
|
|
class EHC;
|
2024-10-06 22:54:29 -07:00
|
|
|
class NetSys;
|
2024-10-06 20:08:22 -07:00
|
|
|
class NetEnd;
|
|
|
|
|
|
|
|
class NetOp
|
|
|
|
{
|
|
|
|
private:
|
2024-10-06 22:54:29 -07:00
|
|
|
friend class NetSys;
|
2024-10-06 20:08:22 -07:00
|
|
|
|
|
|
|
UInt_64 hashId;
|
|
|
|
Str_8 id;
|
|
|
|
|
|
|
|
public:
|
|
|
|
virtual ~NetOp() = default;
|
|
|
|
|
|
|
|
NetOp();
|
|
|
|
|
|
|
|
NetOp(Str_8 id);
|
|
|
|
|
|
|
|
NetOp(NetOp &&op) noexcept;
|
|
|
|
|
|
|
|
NetOp(const NetOp &op);
|
|
|
|
|
|
|
|
NetOp &operator=(NetOp &&op) noexcept;
|
|
|
|
|
|
|
|
NetOp &operator=(const NetOp &op);
|
|
|
|
|
|
|
|
Str_8 GetId() const;
|
|
|
|
|
|
|
|
UInt_64 GetHashId() const;
|
|
|
|
|
|
|
|
private:
|
2024-10-06 22:54:29 -07:00
|
|
|
virtual void Process(EHC *ehc, NetEnd *endpoint, NetSys *sys, Serializer<UInt_64> &payload);
|
2024-10-06 20:08:22 -07:00
|
|
|
};
|
|
|
|
}
|