-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNetifeBasicLib.h
More file actions
51 lines (32 loc) · 1.37 KB
/
NetifeBasicLib.h
File metadata and controls
51 lines (32 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
// Created by Administrator on 2023/5/2.
//
#ifndef NETIFEDEMOPLUGIN_DEMOCLASS_H
#define NETIFEDEMOPLUGIN_DEMOCLASS_H
#include "include/plugins/v1/NetifePlugins.h"
#include "include/plugins/v1/NetifePluginAgent.h"
#include "Poco/ClassLibrary.h"
class NetifeBasicLib : public NetifePlugins{
public:
NetifeBasicLib() : NetifePlugins(){
}
~NetifeBasicLib() override;
std::string GetName() const override;
std::string GetVersion() const override;
std::string DispatcherCommand(std::string commandHead, std::map<std::string, std::optional<std::string>> params) override;
//当插件启用的时候 [顺序不明确]
bool OnEnable() override;
//当插件关闭的时候 [可能是人为禁用单独的插件]
bool OnDisable() override;
//当插件全部加载完毕的时候 [此时可以使用依赖插件]
void OnLoaded() override;
//当软件即将退出的时候 [此时所有插件都即将关闭]
void OnExiting() override;
std::string ParserRawHtml(const string &rawHtml);
std::string ParserHexString(std::string content);
std::string ParserStringHex(std::string content);
std::string WriteHexFile(std::string content);
std::string GenerateUUID(optional<std::string> content);
std::string GetRawRequestByUUID(std::string UUID, optional<std::string> uuid_sub);
};
#endif //NETIFEDEMOPLUGIN_DEMOCLASS_H