VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes
DtStaticFileController Class Reference
Inheritance diagram for DtStaticFileController:
Inheritance graph
[legend]

Public Member Functions

 DtStaticFileController (const std::shared_ptr< ObjectMapper > &objectMapper, const std::string &publicDir)
 
return serveFile (filePath)
 

Public Attributes

const std::string filePath = (tail && !tail->empty()) ? tail->c_str() : "index.html"
 

Private Member Functions

std::shared_ptr< OutgoingResponse > serveFile (const std::string &filename)
 

Static Private Member Functions

static oatpp::String contentTypeFor (const std::string &filename)
 
static bool isSafeName (const std::string &name)
 

Private Attributes

std::string myPublicDir
 

Constructor & Destructor Documentation

DtStaticFileController::DtStaticFileController ( const std::shared_ptr< ObjectMapper > &  objectMapper,
const std::string &  publicDir 
)
inline

References myPublicDir.

Member Function Documentation

return DtStaticFileController::serveFile ( filePath  )
static oatpp::String DtStaticFileController::contentTypeFor ( const std::string &  filename)
inlinestaticprivate

References SGP4Funcs::dot().

Referenced by serveFile().

static bool DtStaticFileController::isSafeName ( const std::string &  name)
inlinestaticprivate

Referenced by serveFile().

std::shared_ptr<OutgoingResponse> DtStaticFileController::serveFile ( const std::string &  filename)
inlineprivate

Member Data Documentation

const std::string DtStaticFileController::filePath = (tail && !tail->empty()) ? tail->c_str() : "index.html"
std::string DtStaticFileController::myPublicDir
private

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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)