My 11th 2023 update

This commit is contained in:
Ned Wright
2023-05-11 18:54:44 +00:00
parent 240f58217a
commit 29bd82d125
92 changed files with 9301 additions and 135 deletions

View File

@@ -0,0 +1,10 @@
#ifndef __NEW_TABLE_ENTRY_H__
#define __NEW_TABLE_ENTRY_H__
#include "event.h"
class NewTableEntry : public Event<NewTableEntry>
{
};
#endif // __NEW_TABLE_ENTRY_H__

View File

@@ -0,0 +1,25 @@
#ifndef __PARSED_CONTEXT_H__
#define __PARSED_CONTEXT_H__
#include <string>
#include "event.h"
#include "buffer.h"
enum class ParsedContextReply { ACCEPT, DROP };
class ParsedContext : public Event<ParsedContext, ParsedContextReply>
{
public:
ParsedContext(const Buffer &_buf, const std::string &_name, uint _id) : buf(_buf), name(_name), id(_id) {}
const Buffer & getBuffer() const { return buf; }
const std::string & getName() const { return name; }
uint getId() const { return id; }
private:
Buffer buf;
std::string name;
uint id;
};
#endif // __PARSED_CONTEXT_H__