SaltAPI  1.1
An API for the HTTPd / Zia by Salty Studio.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
IFileServe.hpp
Go to the documentation of this file.
1 //
2 // Created by wery_a on 07/01/17.
3 //
4 
5 #ifndef API_V2_IFILESERVE_HPP
6 #define API_V2_IFILESERVE_HPP
7 
8 #include <string>
9 #include <fstream>
10 
11 namespace Module {
15  class IFileServe {
16  public:
22  virtual unsigned int GetFileSize(std::string const &path) const = 0;
23 
29  virtual std::ifstream &GetFile(std::string const &path) const = 0;
30 
37  virtual char *GetFileByRange(unsigned int offset, unsigned int size) const = 0;
38  };
39 }
40 #endif //API_V2_IFILESERVE_HPP
virtual char * GetFileByRange(unsigned int offset, unsigned int size) const =0
virtual std::ifstream & GetFile(std::string const &path) const =0
virtual unsigned int GetFileSize(std::string const &path) const =0