cfgfile 0.2.11
Loading...
Searching...
No Matches
cfgfile::tag_no_value_t< Trait > Class Template Reference

Tag without a value. More...

#include <tag_no_value.hpp>

+ Inheritance diagram for cfgfile::tag_no_value_t< Trait >:
+ Collaboration diagram for cfgfile::tag_no_value_t< Trait >:

Public Member Functions

 tag_no_value_t (const typename Trait::string_t &name, bool is_mandatory=false)
 Construct tag.
 
 tag_no_value_t (tag_t< Trait > &owner, const typename Trait::string_t &name, bool is_mandatory=false)
 Construct tag.
 
 ~tag_no_value_t ()
 
Trait::string_t print (int indent=0) const override
 Print tag to the output.
 
void print (QDomDocument &doc, QDomElement *parent=0) const override
 Print tag to the output.
 
void on_finish (const parser_info_t< Trait > &info) override
 Called when tag parsing finished.
 
void on_string (const parser_info_t< Trait > &info, const typename Trait::string_t &str) override
 Called when string found.
 
- Public Member Functions inherited from cfgfile::tag_t< Trait >
 tag_t (const typename Trait::string_t &name, bool is_mandatory=false)
 Construct tag.
 
 tag_t (tag_t< Trait > &owner, const typename Trait::string_t &name, bool is_mandatory=false)
 Construct tag.
 
virtual ~tag_t ()
 
void add_child (tag_t< Trait > &tag)
 Add child tag.
 
void remove_child (tag_t< Trait > &tag)
 Remove child tag.
 
const tag_t< Trait > * parent () const
 
const Trait::string_t & name () const
 
bool is_mandatory () const
 
bool is_defined () const
 
void set_defined (bool on=true)
 Set "defined" property.
 
Trait::pos_t line_number () const
 
Trait::pos_t column_number () const
 
virtual const child_tags_list_tchildren () const
 
virtual void on_start (const parser_info_t< Trait > &info)
 Called when tag parsing started.
 

Additional Inherited Members

- Public Types inherited from cfgfile::tag_t< Trait >
typedef std::vector< tag_t< Trait > * > child_tags_list_t
 List with children.
 
- Protected Member Functions inherited from cfgfile::tag_t< Trait >
void set_parent (const tag_t< Trait > *p)
 Set parent tag.
 
bool is_any_child_defined () const
 
bool is_defined_member_value () const
 

Detailed Description

template<typename Trait = string_trait_t>
class cfgfile::tag_no_value_t< Trait >

Tag without a value.

Constructor & Destructor Documentation

◆ tag_no_value_t() [1/2]

template<typename Trait = string_trait_t>
cfgfile::tag_no_value_t< Trait >::tag_no_value_t ( const typename Trait::string_t &  name,
bool  is_mandatory = false 
)
inlineexplicit

Construct tag.

◆ tag_no_value_t() [2/2]

template<typename Trait = string_trait_t>
cfgfile::tag_no_value_t< Trait >::tag_no_value_t ( tag_t< Trait > &  owner,
const typename Trait::string_t &  name,
bool  is_mandatory = false 
)
inline

Construct tag.

◆ ~tag_no_value_t()

template<typename Trait = string_trait_t>
cfgfile::tag_no_value_t< Trait >::~tag_no_value_t ( )
inline

Member Function Documentation

◆ on_finish()

template<typename Trait = string_trait_t>
void cfgfile::tag_no_value_t< Trait >::on_finish ( const parser_info_t< Trait > &  info)
inlineoverridevirtual

Called when tag parsing finished.

Implements cfgfile::tag_t< Trait >.

◆ on_string()

template<typename Trait = string_trait_t>
void cfgfile::tag_no_value_t< Trait >::on_string ( const parser_info_t< Trait > &  info,
const typename Trait::string_t &  str 
)
inlineoverridevirtual

Called when string found.

Implements cfgfile::tag_t< Trait >.

◆ print() [1/2]

template<typename Trait = string_trait_t>
Trait::string_t cfgfile::tag_no_value_t< Trait >::print ( int  indent = 0) const
inlineoverridevirtual

Print tag to the output.

Implements cfgfile::tag_t< Trait >.

◆ print() [2/2]

template<typename Trait = string_trait_t>
void cfgfile::tag_no_value_t< Trait >::print ( QDomDocument doc,
QDomElement parent = 0 
) const
inlineoverridevirtual

Print tag to the output.

Implements cfgfile::tag_t< Trait >.


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