EHS
NetEnc.h
Go to the documentation of this file.
1#pragma once
2
3#include "ehs/Str.h"
4#include "ehs/Version.h"
5
6namespace ehs
7{
8 class EHC;
9
10 class NetEnc
11 {
12 private:
13 friend class EHC;
14
15 UInt_64 id;
16 Str_8 name;
17 Version version;
18
19 public:
20 virtual ~NetEnc() = default;
21
22 NetEnc();
23
24 NetEnc(Str_8 name, const Version &version);
25
26 NetEnc(NetEnc &&enc) noexcept;
27
28 NetEnc(const NetEnc &enc);
29
30 NetEnc &operator=(NetEnc &&enc) noexcept;
31
32 NetEnc &operator=(const NetEnc &enc);
33
34 UInt_64 GetId() const;
35
36 Str_8 GetName() const;
37
38 Version GetVersion() const;
39
40 virtual void Encrypt(Byte *data, UInt_64 size) const;
41
42 virtual void Decrypt(Byte *data, UInt_64 size) const;
43 };
44}
Definition: EHC.h:16
Definition: NetEnc.h:11
UInt_64 GetId() const
Definition: NetEnc.cpp:54
virtual ~NetEnc()=default
virtual void Encrypt(Byte *data, UInt_64 size) const
Definition: NetEnc.cpp:69
Version GetVersion() const
Definition: NetEnc.cpp:64
Str_8 GetName() const
Definition: NetEnc.cpp:59
NetEnc()
Definition: NetEnc.cpp:5
NetEnc & operator=(NetEnc &&enc) noexcept
Definition: NetEnc.cpp:27
virtual void Decrypt(Byte *data, UInt_64 size) const
Definition: NetEnc.cpp:73
A helper class for storing version major, minor and patch.
Definition: Version.h:9
Definition: Anchor.h:6
unsigned char Byte
Definition: Types.h:39