Files
ylib/include/ynet/http_interface.h
2024-03-31 21:45:09 +08:00

26 lines
814 B
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>
namespace ylib::network::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;
network::http::center* m_center;
};
}
#endif