Spicy
Public Member Functions | Public Attributes | List of all members
spicy::rt::detail::GlobalState Struct Reference

#include <global-state.h>

Public Member Functions

 GlobalState (const GlobalState &)=delete
 
 GlobalState (GlobalState &&) noexcept=delete
 
GlobalStateoperator= (const GlobalState &)=delete
 
GlobalStateoperator= (GlobalState &&) noexcept=delete
 

Public Attributes

bool runtime_is_initialized = false
 
std::vector< const Parser * > parsers
 
std::optional< const Parser * > default_parser
 
std::map< std::string, std::vector< const Parser * > > parsers_by_name
 
std::map< std::string, std::vector< const Parser * > > parsers_by_mime_type
 

Detailed Description

Struct capturing all truly global runtime state.

Member Data Documentation

◆ default_parser

std::optional<const Parser*> spicy::rt::detail::GlobalState::default_parser

Default parser to use, if it can be determined.

◆ parsers

std::vector<const Parser*> spicy::rt::detail::GlobalState::parsers

List of available parsers. Compiled Spicy parsers register themselves with this list automatically at initialization time.

◆ parsers_by_mime_type

std::map<std::string, std::vector<const Parser*> > spicy::rt::detail::GlobalState::parsers_by_mime_type

Map of parsers by the MIME types they handle.

◆ parsers_by_name

std::map<std::string, std::vector<const Parser*> > spicy::rt::detail::GlobalState::parsers_by_name

Map of parsers by all their possible names. This includes port and MIME type specifications as supported by spicy-driver -p <name>`.

◆ runtime_is_initialized

bool spicy::rt::detail::GlobalState::runtime_is_initialized = false

True once hilit::init()` has finished.


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