REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
Loading...
Searching...
No Matches
web::StaticAttic Struct Reference

#include <assets.h>

Collaboration diagram for web::StaticAttic:

Public Member Functions

 StaticAttic ()
 
const StaticFileget_by_filename (const char *filename)
 Lookup StaticFile by name.
 

Public Attributes

const StaticFilefiles
 
const size_t number_of_files
 

Detailed Description

Definition at line 52 of file assets.h.

Constructor & Destructor Documentation

◆ StaticAttic()

web::StaticAttic::StaticAttic ( )

Definition at line 13 of file assets.cpp.

Member Function Documentation

◆ get_by_filename()

const StaticFile * web::StaticAttic::get_by_filename ( const char * filename)
inline

Lookup StaticFile by name.

Code also demonstrates how to traverse attic. Returns NULL if not found.

Definition at line 59 of file assets.h.

References files, and number_of_files.

Referenced by index(), and serve_static().

Member Data Documentation

◆ files

const StaticFile* web::StaticAttic::files

Definition at line 53 of file assets.h.

Referenced by about_static(), and get_by_filename().

◆ number_of_files

const size_t web::StaticAttic::number_of_files

Definition at line 54 of file assets.h.

Referenced by about_static(), and get_by_filename().


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