22 lines
396 B
C++
22 lines
396 B
C++
#pragma once
|
|
#include <set>
|
|
#include "IPList.h"
|
|
#include "DateTime.h"
|
|
|
|
class UNSWSC_DLL_EXPORT IPTable
|
|
{
|
|
private:
|
|
std::set<std::pair<DateTime, IPList>> storage;
|
|
|
|
public:
|
|
IPTable();
|
|
IPTable(const IPTable& obj);
|
|
|
|
public:
|
|
void Appened(DateTime expr_time, IPList list);
|
|
void Update();
|
|
bool IPExist(std::string ip);
|
|
};
|
|
|
|
using IPTablePtr = IPTable*;
|
|
//using IPTablePtr = std::shared_ptr<IPTable>;
|