Files
ylib/include/net/http_interface.h
2024-06-20 01:39:32 +08:00

33 lines
1.0 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#pragma once
#include "http_define.h"
#if USE_NET_HTTP_WEBSITE
#include <functional>
#include <map>
using namespace ylib::network::http;
namespace ylib
{
namespace network
{
namespace http
{
/*************************************************************************
* class通用接口
*************************************************************************/
class website;
class center;
class interface_
{
public:
inline void website(network::http::website* website) { m_website = website; }
inline network::http::website* website() { return m_website; }
inline void center(network::http::center* center) { m_center = center; }
inline network::http::center* center() { return m_center; }
private:
network::http::website* m_website = nullptr;
network::http::center* m_center = nullptr;
};
}
}
}
#endif