roar
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
FileServer Class Reference

#include <file_server.hpp>

Collaboration diagram for FileServer:

Public Member Functions

 FileServer ()
 

Private Member Functions

 ROAR_MAKE_LISTENER (FileServer)
 
ROAR_SERVE() serve ("/bla", "~/roar")
 
ROAR_SERVE() serveAppdata ("/blub", "%appdata%/roar")
 
std::filesystem::path getServePath ()
 
void createDummyFile (std::filesystem::path const &where)
 

Private Attributes

std::mt19937 gen {0}
 
std::uniform_int_distribution< int > letters {1, 2_MiB}
 

Constructor & Destructor Documentation

◆ FileServer()

FileServer::FileServer ( )
inline

Member Function Documentation

◆ createDummyFile()

void FileServer::createDummyFile ( std::filesystem::path const &  where)
inlineprivate

◆ getServePath()

std::filesystem::path FileServer::getServePath ( )
inlineprivate

◆ ROAR_MAKE_LISTENER()

FileServer::ROAR_MAKE_LISTENER ( FileServer  )
private

◆ serve()

Roar::ServeDecision FileServer::serve ( "/bla"  ,
"~/roar"   
)
private

◆ serveAppdata()

Roar::ServeDecision FileServer::serveAppdata ( "/blub"  ,
"%appdata%/roar"   
)
private

if (user has permissions) options.allowUpload = true;

Member Data Documentation

◆ gen

std::mt19937 FileServer::gen {0}
private

◆ letters

std::uniform_int_distribution<int> FileServer::letters {1, 2_MiB}
private

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