24#ifndef HTML_OVER_GUICHET_HPP
25#define HTML_OVER_GUICHET_HPP
39#include "body_builder.hpp"
40#include "html_mask.hpp"
42#include "bibliotheque_subconfig.hpp"
61 static const std::string changed;
82 void set_child(
const std::shared_ptr<bibliotheque> & ptr,
83 std::unique_ptr<body_builder> & to_give,
85 const std::string & changed_event);
88 virtual std::unique_ptr<libdar::mask>
get_mask()
const override;
95 virtual void load_json(
const json & source)
override;
107 virtual void on_event(
const std::string & event_name)
override;
117 std::string child_event;
119 std::shared_ptr<body_builder> inner;
121 void check_inner()
const {
if(!inner)
throw WEBDAR_BUG; };
class of object that are pointed/triggered to by others
Definition: actor.hpp:55
class bibliotheque_subconfig is an interface (pure virtual class)
Definition: bibliotheque_subconfig.hpp:50
std::set< coordinates > using_set
list of configs a given config depends on
Definition: bibliotheque.hpp:117
category
change event is replaced by a static method with category in argument
Definition: bibliotheque.hpp:63
class body_builder is the root class of object generating HTML body
Definition: body_builder.hpp:99
class chemin definition
Definition: chemin.hpp:51
class events
Definition: events.hpp:52
class guichet let one fetch config from a bibliotheque, save as or setup manually for a given compone...
Definition: guichet.hpp:92
class html_mask defines the interface of all masks
Definition: html_mask.hpp:44
class html_over_guichet is used to insert configuration from a bibliotheque in-place of a subconfigur...
Definition: html_over_guichet.hpp:58
virtual void on_event(const std::string &event_name) override
inherited from actor parent class
Definition: html_over_guichet.cpp:138
void set_child(const std::shared_ptr< bibliotheque > &ptr, std::unique_ptr< body_builder > &to_give, bibliotheque::category cat, const std::string &changed_event)
mandatory call to provide the object to adopt and use to load/save json and get mask configurations
Definition: html_over_guichet.cpp:57
virtual std::string inherited_get_body_part(const chemin &path, const request &req) override
inherited from body_builder
Definition: html_over_guichet.cpp:147
virtual bool is_relative() const override
inherited from html_mask
Definition: html_over_guichet.cpp:106
virtual void load_json(const json &source) override
inherited_from jsoner
Definition: html_over_guichet.cpp:118
html_over_guichet()
constructor
Definition: html_over_guichet.cpp:44
virtual json save_json() const override
inherited_from jsoner
Definition: html_over_guichet.cpp:123
virtual void clear_json() override
inherited_from jsoner
Definition: html_over_guichet.cpp:128
virtual bibliotheque::using_set get_using_set() const override
inherited from bibliotheque_subconfig
Definition: html_over_guichet.cpp:133
virtual std::unique_ptr< libdar::mask > get_mask() const override
inherited from html_mask
Definition: html_over_guichet.cpp:95
class jsoner
Definition: jsoner.hpp:73
class holding fields of an HTTP request (method, URI, header, cookies, and so on)
Definition: request.hpp:45
defines jsoner class and class exception_json