Logo Pico-Framework A web-first embedded framework for C++
Loading...
Searching...
No Matches
DashboardView Class Reference

#include <DashboardView.h>

+ Inheritance diagram for DashboardView:
+ Collaboration diagram for DashboardView:

Public Member Functions

 DashboardView ()
 
- Public Member Functions inherited from StaticView
 StaticView (const char *html)
 
std::string render (const std::map< std::string, std::string > &={}) const override
 Render the view body.
 
std::string getContentType () const override
 Return the MIME content type for this view.
 
- Public Member Functions inherited from FrameworkView
virtual ~FrameworkView ()=default
 
virtual void applyHeaders (HttpResponse &response) const
 Optional hook to set response headers (e.g., Content-Disposition).
 
virtual std::string render (const nlohmann::json &context) const
 Optional JSON context hook (used by JsonView or convenience).
 

Static Private Attributes

static constexpr const char * dashboard_html
 

Detailed Description

Definition at line 4 of file DashboardView.h.

Constructor & Destructor Documentation

◆ DashboardView()

DashboardView::DashboardView ( )

Definition at line 5 of file DashboardView.cpp.

6 : StaticView(dashboard_html) {} // uses TemplateSource::Inline by default
static constexpr const char * dashboard_html
StaticView sends a fixed HTML string with no template substitution.
Definition StaticView.h:13

Member Data Documentation

◆ dashboard_html

constexpr const char* DashboardView::dashboard_html
staticconstexprprivate

Definition at line 9 of file DashboardView.h.


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