SaltAPI  1.1
An API for the HTTPd / Zia by Salty Studio.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Module::IFileServe Class Referenceabstract

#include <IFileServe.hpp>

Public Member Functions

virtual unsigned int GetFileSize (std::string const &path) const =0
 
virtual std::ifstream & GetFile (std::string const &path) const =0
 
virtual char * GetFileByRange (unsigned int offset, unsigned int size) const =0
 

Detailed Description

Definition at line 15 of file IFileServe.hpp.

Member Function Documentation

std::ifstream & Module::IFileServe::GetFile ( std::string const &  path) const
pure virtual
Parameters
pathof file
Returns
return std::ifstream of the opened file
char * Module::IFileServe::GetFileByRange ( unsigned int  offset,
unsigned int  size 
) const
pure virtual
Parameters
offset
size
Returns
data read in the range [offset, offset + size]
unsigned int Module::IFileServe::GetFileSize ( std::string const &  path) const
pure virtual
Parameters
pathof file
Returns
size of the file

The documentation for this class was generated from the following file: