EHS
Loading...
Searching...
No Matches
NetOp.h
Go to the documentation of this file.
1#pragma once
2
3#include "ehs/Str.h"
4#include "ehs/Serializer.h"
5
6namespace ehs
7{
8 class NetChannel;
9 class NetSys;
10 class NetEnd;
11
12 class NetOp
13 {
14 private:
15 friend class NetSys;
16
17 UInt_64 id;
18 Str_8 name;
19
20 public:
21 virtual ~NetOp() = default;
22
23 NetOp();
24
25 NetOp(Str_8 name);
26
27 NetOp(NetOp &&op) noexcept;
28
29 NetOp(const NetOp &op);
30
31 NetOp &operator=(NetOp &&op) noexcept;
32
33 NetOp &operator=(const NetOp &op);
34
35 UInt_64 GetId() const;
36
37 Str_8 GetName() const;
38
39 private:
40 virtual void Execute(NetChannel *channel, NetEnd *issuer, NetSys *sys, Serializer<UInt_64> &payload);
41 };
42}
Definition NetChannel.h:15
Definition NetEnd.h:16
NetOp()
Definition NetOp.cpp:7
UInt_64 GetId() const
Definition NetOp.cpp:52
Str_8 GetName() const
Definition NetOp.cpp:57
friend class NetSys
Definition NetOp.h:15
NetOp & operator=(NetOp &&op) noexcept
Definition NetOp.cpp:28
virtual ~NetOp()=default
Definition NetSys.h:14
Definition Serializer.h:25
Definition Anchor.h:6
Str< Char_8, UInt_64 > Str_8
Definition Str.h:1953