chomik 0.2.1
experimental and minimalistic programming language

My name is Pawel Biernacki.
I am a software engineer.
This site is my hobby project.

Loading...
Searching...
No Matches
fancy_http_chomik::server Class Reference

#include <fancy_http_chomik.h>

Inheritance diagram for fancy_http_chomik::server:
Collaboration diagram for fancy_http_chomik::server:

Public Member Functions

 server (int s)
 
- Public Member Functions inherited from http_chomik::server
 server (int s)
 
 ~server ()
 
void read_data (std::ostream &input_buffer_stream)
 
void handle_main (std::ostream &message_stream)
 
void handle_incorrect_uri (std::ostream &message_stream)
 
void handle_code (std::ostream &message_stream, std::smatch &m)
 
void handle_chomik_image (std::ostream &message_stream)
 
void handle_stylesheet (std::ostream &message_stream)
 
void send_message (const std::string &message)
 

Protected Member Functions

virtual void add_html_head_content (std::ostream &message_stream) override
 
virtual void add_html_default_chomik_code (std::ostream &message_stream) override
 
virtual void add_html_body (std::ostream &message_stream) override
 
virtual void add_html_body_for_code (std::ostream &message_stream, const std::string &decoded_code, std::stringstream &error_stream, std::stringstream &error_stream2)
 
virtual void add_html_body_for_incorrect_uri (std::ostream &message_stream) override
 
void add_html_common_scripts (std::ostream &message_stream)
 
void add_html_navbar (std::ostream &message_stream)
 
- Protected Member Functions inherited from http_chomik::server
void add_html_for_program_output (std::istream &source, std::ostream &message_stream)
 
virtual void create_a_new_machine (std::unique_ptr< machine > &target)
 

Additional Inherited Members

- Static Public Member Functions inherited from http_chomik::server
static void do_processing (int my_port, wrapper_base &my_wrapper)
 

Constructor & Destructor Documentation

◆ server()

fancy_http_chomik::server::server ( int s)
inline

Member Function Documentation

◆ add_html_body()

virtual void fancy_http_chomik::server::add_html_body ( std::ostream & message_stream)
overrideprotectedvirtual

You may also change the whole body HTML by redefining this method.

Reimplemented from http_chomik::server.

◆ add_html_body_for_code()

virtual void fancy_http_chomik::server::add_html_body_for_code ( std::ostream & message_stream,
const std::string & decoded_code,
std::stringstream & error_stream,
std::stringstream & error_stream2 )
protectedvirtual

You may redefine it to handle the code processing.

Reimplemented from http_chomik::server.

◆ add_html_body_for_incorrect_uri()

virtual void fancy_http_chomik::server::add_html_body_for_incorrect_uri ( std::ostream & message_stream)
overrideprotectedvirtual

This method can be used to redefine the whole document body when handling incorrect URI.

Reimplemented from http_chomik::server.

◆ add_html_common_scripts()

void fancy_http_chomik::server::add_html_common_scripts ( std::ostream & message_stream)
protected

◆ add_html_default_chomik_code()

virtual void fancy_http_chomik::server::add_html_default_chomik_code ( std::ostream & message_stream)
overrideprotectedvirtual

Remember to pack the code properly as HTML.

Reimplemented from http_chomik::server.

◆ add_html_head_content()

virtual void fancy_http_chomik::server::add_html_head_content ( std::ostream & message_stream)
overrideprotectedvirtual

Feel free to override this function if you wish another code in the HTML head. Consider invoking the original version.

Reimplemented from http_chomik::server.

◆ add_html_navbar()

void fancy_http_chomik::server::add_html_navbar ( std::ostream & message_stream)
protected

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

copyright by Pawel Biernacki

Vantaa 2022