neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::nrc::i_ui_element_parser Class Referenceabstract

#include <i_ui_element_parser.hpp>

Inheritance diagram for neogfx::nrc::i_ui_element_parser:
neolib::i_reference_counted

Classes

struct  duplicate_element_id
 
struct  element_data_not_found
 
struct  element_not_found
 
struct  element_type_not_found
 

Public Types

typedef neolib::i_simple_variant data_t
 
typedef neolib::i_vector< neolib::i_simple_variantarray_data_t
 

Public Member Functions

virtual const neolib::i_stringelement_namespace () const =0
 
virtual const neolib::i_stringcurrent_fragment () const =0
 
virtual const neolib::i_stringcurrent_element () const =0
 
virtual void index (const neolib::i_string &aId, const i_ui_element &aElement) const =0
 
virtual const i_ui_element * find (const neolib::i_string &aId) const =0
 
virtual const i_ui_element & at (const neolib::i_string &aId) const =0
 
virtual void generate_anonymous_id (neolib::i_string &aNewAnonymousId) const =0
 
virtual void indent (int32_t aLevel, neolib::i_string &aResult) const =0
 
virtual void emit (const neolib::i_string &aText) const =0
 
neolib::string generate_anonymous_id () const
 
std::string indent (int32_t aLevel) const
 
std::string source_location () const
 
bool data_exists (std::string const &aKey) const
 
bool array_data_exists (std::string const &aKey) const
 
const data_tget_data (std::string const &aKey) const
 
data_tget_data (std::string const &aKey)
 
const array_data_tget_array_data (std::string const &aKey) const
 
array_data_tget_array_data (std::string const &aKey)
 
template<typename T >
const abstract_t< T > & get (std::string const &aKey) const
 
template<typename T >
abstract_t< T > & get (std::string const &aKey)
 
template<typename T >
neolib::optional< T > get_optional (std::string const &aKey) const
 
template<typename T >
neolib::optional< T > get_optional_enum (std::string const &aKey) const
 
template<typename T , typename U >
const abstract_t< T > & get (std::string const &aKey, const U &aDefault) const
 
template<typename T , typename U >
abstract_t< T > & get (std::string const &aKey, U &aDefault)
 
void emit (std::string const &aArgument) const
 
template<typename T >
void emit (std::string const &aFormat, const T &aArgument) const
 
template<typename T1 , typename T2 >
void emit (std::string const &aFormat, const T1 &aArgument1, const T2 &aArgument2) const
 
template<typename T1 , typename T2 , typename T3 >
void emit (std::string const &aFormat, const T1 &aArgument1, const T2 &aArgument2, const T3 &aArgument3) const
 
template<typename T1 , typename T2 , typename T3 , typename T4 >
void emit (std::string const &aFormat, const T1 &aArgument1, const T2 &aArgument2, const T3 &aArgument3, const T4 &aArgument4) const
 
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 >
void emit (std::string const &aFormat, const T1 &aArgument1, const T2 &aArgument2, const T3 &aArgument3, const T4 &aArgument4, const T5 &aArgument5) const
 
- Public Member Functions inherited from neolib::i_reference_counted
virtual ~i_reference_counted ()=default
 
virtual void add_ref () const noexcept=0
 
virtual void release () const =0
 
virtual int32_t use_count () const noexcept=0
 
virtual const i_reference_countedrelease_and_take_ownership () const =0
 
virtual i_reference_countedrelease_and_take_ownership ()=0
 
virtual void pin () const noexcept=0
 
virtual void unpin () const =0
 
virtual i_ref_control_blockcontrol_block ()=0
 

Detailed Description

Definition at line 35 of file i_ui_element_parser.hpp.

Member Typedef Documentation

◆ array_data_t

◆ data_t

Member Function Documentation

◆ array_data_exists()

bool neogfx::nrc::i_ui_element_parser::array_data_exists ( std::string const &  aKey) const
inline

Definition at line 106 of file i_ui_element_parser.hpp.

◆ at()

virtual const i_ui_element & neogfx::nrc::i_ui_element_parser::at ( const neolib::i_string aId) const
pure virtual

◆ current_element()

virtual const neolib::i_string & neogfx::nrc::i_ui_element_parser::current_element ( ) const
pure virtual

◆ current_fragment()

virtual const neolib::i_string & neogfx::nrc::i_ui_element_parser::current_fragment ( ) const
pure virtual

◆ data_exists()

bool neogfx::nrc::i_ui_element_parser::data_exists ( std::string const &  aKey) const
inline

Definition at line 102 of file i_ui_element_parser.hpp.

◆ element_namespace()

virtual const neolib::i_string & neogfx::nrc::i_ui_element_parser::element_namespace ( ) const
pure virtual

◆ emit() [1/7]

virtual void neogfx::nrc::i_ui_element_parser::emit ( const neolib::i_string aText) const
pure virtual

◆ emit() [2/7]

void neogfx::nrc::i_ui_element_parser::emit ( std::string const &  aArgument) const
inline

Definition at line 174 of file i_ui_element_parser.hpp.

◆ emit() [3/7]

template<typename T >
void neogfx::nrc::i_ui_element_parser::emit ( std::string const &  aFormat,
const T &  aArgument 
) const
inline

Definition at line 179 of file i_ui_element_parser.hpp.

◆ emit() [4/7]

template<typename T1 , typename T2 >
void neogfx::nrc::i_ui_element_parser::emit ( std::string const &  aFormat,
const T1 &  aArgument1,
const T2 &  aArgument2 
) const
inline

Definition at line 184 of file i_ui_element_parser.hpp.

◆ emit() [5/7]

template<typename T1 , typename T2 , typename T3 >
void neogfx::nrc::i_ui_element_parser::emit ( std::string const &  aFormat,
const T1 &  aArgument1,
const T2 &  aArgument2,
const T3 &  aArgument3 
) const
inline

Definition at line 189 of file i_ui_element_parser.hpp.

◆ emit() [6/7]

template<typename T1 , typename T2 , typename T3 , typename T4 >
void neogfx::nrc::i_ui_element_parser::emit ( std::string const &  aFormat,
const T1 &  aArgument1,
const T2 &  aArgument2,
const T3 &  aArgument3,
const T4 &  aArgument4 
) const
inline

Definition at line 194 of file i_ui_element_parser.hpp.

◆ emit() [7/7]

template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 >
void neogfx::nrc::i_ui_element_parser::emit ( std::string const &  aFormat,
const T1 &  aArgument1,
const T2 &  aArgument2,
const T3 &  aArgument3,
const T4 &  aArgument4,
const T5 &  aArgument5 
) const
inline

Definition at line 199 of file i_ui_element_parser.hpp.

◆ find()

virtual const i_ui_element * neogfx::nrc::i_ui_element_parser::find ( const neolib::i_string aId) const
pure virtual

◆ generate_anonymous_id() [1/2]

neolib::string neogfx::nrc::i_ui_element_parser::generate_anonymous_id ( ) const
inline

Definition at line 83 of file i_ui_element_parser.hpp.

◆ generate_anonymous_id() [2/2]

virtual void neogfx::nrc::i_ui_element_parser::generate_anonymous_id ( neolib::i_string aNewAnonymousId) const
pure virtual

◆ get() [1/4]

template<typename T >
abstract_t< T > & neogfx::nrc::i_ui_element_parser::get ( std::string const &  aKey)
inline

Definition at line 132 of file i_ui_element_parser.hpp.

◆ get() [2/4]

template<typename T >
const abstract_t< T > & neogfx::nrc::i_ui_element_parser::get ( std::string const &  aKey) const
inline

Definition at line 127 of file i_ui_element_parser.hpp.

◆ get() [3/4]

template<typename T , typename U >
const abstract_t< T > & neogfx::nrc::i_ui_element_parser::get ( std::string const &  aKey,
const U &  aDefault 
) const
inline

Definition at line 158 of file i_ui_element_parser.hpp.

◆ get() [4/4]

template<typename T , typename U >
abstract_t< T > & neogfx::nrc::i_ui_element_parser::get ( std::string const &  aKey,
U &  aDefault 
)
inline

Definition at line 166 of file i_ui_element_parser.hpp.

◆ get_array_data() [1/2]

array_data_t & neogfx::nrc::i_ui_element_parser::get_array_data ( std::string const &  aKey)
inline

Definition at line 122 of file i_ui_element_parser.hpp.

◆ get_array_data() [2/2]

const array_data_t & neogfx::nrc::i_ui_element_parser::get_array_data ( std::string const &  aKey) const
inline

Definition at line 118 of file i_ui_element_parser.hpp.

◆ get_data() [1/2]

data_t & neogfx::nrc::i_ui_element_parser::get_data ( std::string const &  aKey)
inline

Definition at line 114 of file i_ui_element_parser.hpp.

◆ get_data() [2/2]

const data_t & neogfx::nrc::i_ui_element_parser::get_data ( std::string const &  aKey) const
inline

Definition at line 110 of file i_ui_element_parser.hpp.

◆ get_optional()

template<typename T >
neolib::optional< T > neogfx::nrc::i_ui_element_parser::get_optional ( std::string const &  aKey) const
inline

Definition at line 137 of file i_ui_element_parser.hpp.

◆ get_optional_enum()

template<typename T >
neolib::optional< T > neogfx::nrc::i_ui_element_parser::get_optional_enum ( std::string const &  aKey) const
inline

Definition at line 150 of file i_ui_element_parser.hpp.

◆ indent() [1/2]

std::string neogfx::nrc::i_ui_element_parser::indent ( int32_t  aLevel) const
inline

Definition at line 89 of file i_ui_element_parser.hpp.

◆ indent() [2/2]

virtual void neogfx::nrc::i_ui_element_parser::indent ( int32_t  aLevel,
neolib::i_string aResult 
) const
pure virtual

◆ index()

virtual void neogfx::nrc::i_ui_element_parser::index ( const neolib::i_string aId,
const i_ui_element &  aElement 
) const
pure virtual

◆ source_location()

std::string neogfx::nrc::i_ui_element_parser::source_location ( ) const
inline

Definition at line 96 of file i_ui_element_parser.hpp.


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