/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* AResource.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: mmoussou #include namespace webserv { namespace server { enum clientResType { CGI, UP_FILE }; class AClientResource { public: virtual ~AClientResource() {} bool operator==(int i) const { if (i == _res_id) return true; return false; } void addFileDescriptor(struct pollfd fd); struct pollfd getFileDescriptor(); virtual clientResType type(void); int getId(void) const { return _res_id; } protected: struct pollfd _fd; int _res_id; }; } // -namepsace server } // -namespace webserv