cfgfile 0.2.11
Loading...
Searching...
No Matches
cfgfile::details::parser_base_t< Trait > Class Template Referenceabstract

Base implementation of parser. More...

#include <parser.hpp>

+ Inheritance diagram for cfgfile::details::parser_base_t< Trait >:
+ Collaboration diagram for cfgfile::details::parser_base_t< Trait >:

Public Member Functions

 parser_base_t (tag_t< Trait > &tag)
 
virtual ~parser_base_t ()
 
virtual void parse (const typename Trait::string_t &file_name)=0
 Do parsing.
 

Protected Member Functions

void check_parser_state_after_parsing ()
 

Protected Attributes

tag_t< Trait > & m_tag
 Tag.
 
std::stack< tag_t< Trait > * > m_stack
 Stack of tags.
 

Detailed Description

template<typename Trait = string_trait_t>
class cfgfile::details::parser_base_t< Trait >

Base implementation of parser.

Constructor & Destructor Documentation

◆ parser_base_t()

template<typename Trait = string_trait_t>
cfgfile::details::parser_base_t< Trait >::parser_base_t ( tag_t< Trait > &  tag)
inlineexplicit

◆ ~parser_base_t()

template<typename Trait = string_trait_t>
virtual cfgfile::details::parser_base_t< Trait >::~parser_base_t ( )
inlinevirtual

Member Function Documentation

◆ check_parser_state_after_parsing()

template<typename Trait = string_trait_t>
void cfgfile::details::parser_base_t< Trait >::check_parser_state_after_parsing ( )
inlineprotected

◆ parse()

template<typename Trait = string_trait_t>
virtual void cfgfile::details::parser_base_t< Trait >::parse ( const typename Trait::string_t &  file_name)
pure virtual

Member Data Documentation

◆ m_stack

template<typename Trait = string_trait_t>
std::stack< tag_t< Trait > * > cfgfile::details::parser_base_t< Trait >::m_stack
protected

Stack of tags.

◆ m_tag

template<typename Trait = string_trait_t>
tag_t< Trait >& cfgfile::details::parser_base_t< Trait >::m_tag
protected

Tag.


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