Main Page | Class Hierarchy | Class List | Directories | File List | Class Members

xml_parser::basic_xml_attribute_list_parser< E > Class Template Reference

#include <xml_attribute_list_parser.h>

Inheritance diagram for xml_parser::basic_xml_attribute_list_parser< E >:

grammar_to_parser::basic_simple_non_terminal< E > grammar_to_parser::basic_parser< E > List of all members.

Public Types

typedef grammar_to_parser::basic_simple_non_terminal<
E > 
non_terminal
typedef std::list< basic_xml_attribute_parser<
E > * > 
attributes_parsers_list
typedef attributes_parsers_list::iterator attributes_parsers_list_iterator
typedef grammar_to_parser::basic_parser<
E >::parser_list 
parser_list
typedef grammar_to_parser::basic_parser<
E >::parser_list_iterator 
parser_list_iterator

Public Member Functions

void push_parsers (parser_list &l)
void assign_attributes_parsers (attributes_parsers_list &l)
virtual unsigned long parse (const E *buf, const unsigned long buf_length)
virtual std::basic_istream<
E > & 
parse (std::basic_istream< E > &is)

Protected Attributes

attributes_parsers_list m_attributes_parsers

Detailed Description

template<typename E>
class xml_parser::basic_xml_attribute_list_parser< E >

Extra parse method implemented - attribute list is parsed, where is checked the use type (OPTIONAL, REQUIRED, PROHIBITED) of each attribute (e.g. when the attribute is prohibited, it can not be in input xml) - each attribute list must return the list of atributes - method get_attributes() - is used as member of xml_element_parser


Member Function Documentation

template<typename E>
virtual std::basic_istream<E>& xml_parser::basic_xml_attribute_list_parser< E >::parse std::basic_istream< E > &  is  )  [inline, virtual]
 

The parse method - stream type - using which the input buffer is searched and the value is copied from buffer into attributes. The use type of each attribute is checked during parsing.

Reimplemented from grammar_to_parser::basic_simple_non_terminal< E >.

template<typename E>
virtual unsigned long xml_parser::basic_xml_attribute_list_parser< E >::parse const E *  buf,
const unsigned long  buf_length
[inline, virtual]
 

The parse method using which the input buffer is searched and the value is copied from buffer into attributes. The use type of each attribute is checked during parsing.

Reimplemented from grammar_to_parser::basic_simple_non_terminal< E >.


The documentation for this class was generated from the following file:
Generated on Sun Jul 2 18:39:48 2006 for grammar2parser.kdevelop by  doxygen 1.4.1