Aegis  4.25.D505
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes
xml_node_iso_639_3 Class Reference

#include <iso_639_3.h>

Inheritance diagram for xml_node_iso_639_3:
xml_node

Public Member Functions

virtual ~xml_node_iso_639_3 ()
 xml_node_iso_639_3 ()
bool need_setup (void)
bool is_a_valid_code (const nstring &text) const

Protected Member Functions

void element_begin (const nstring &name)
void attribute (const nstring &name, const nstring &value)
void element_end (const nstring &name)

Private Types

typedef std::map< nstring,
nstring
codes_t

Private Member Functions

void assign (const nstring &key, const nstring &value)
 xml_node_iso_639_3 (const xml_node_iso_639_3 &)
xml_node_iso_639_3operator= (const xml_node_iso_639_3 &)

Private Attributes

codes_t codes
nstring id
nstring part1_code
nstring part2_code

Detailed Description

The xml_node_iso_639_3 class is used to represent processing required when reading the iso-639-3 xml data.

Definition at line 32 of file iso_639_3.h.


Member Typedef Documentation

typedef std::map<nstring, nstring> xml_node_iso_639_3::codes_t [private]

Definition at line 61 of file iso_639_3.h.


Constructor & Destructor Documentation

The destructor.

The default constructor.

The copy constructor. Do not use.


Member Function Documentation

void xml_node_iso_639_3::assign ( const nstring key,
const nstring value 
) [private]

The assign method is used to insert data into the codes instance variable.

Parameters:
keyThe left hand side of the assignment.
valueThe right hand side of the assignment.
void xml_node_iso_639_3::attribute ( const nstring name,
const nstring value 
) [protected, virtual]

The attribute method is called for XML_READER_TYPE_ATTRIBUTE nodes. The default action is to do nothing.

Reimplemented from xml_node.

void xml_node_iso_639_3::element_begin ( const nstring name) [protected, virtual]

The element_begin method is called for XML_READER_TYPE_ELEMENT nodes. The default action is to do nothing.

Reimplemented from xml_node.

void xml_node_iso_639_3::element_end ( const nstring name) [protected, virtual]

The element_end method is called for XML_READER_TYPE_END_ELEMENT nodes. The default action is to do nothing.

Reimplemented from xml_node.

bool xml_node_iso_639_3::is_a_valid_code ( const nstring text) const
xml_node_iso_639_3& xml_node_iso_639_3::operator= ( const xml_node_iso_639_3 ) [private]

The assignment operator. Do not use.


Field Documentation

The codes instance variable is used to remember the set of language codes parsed so far.

Definition at line 67 of file iso_639_3.h.

The id instance variable is used to remember the value of the "id" attribute for the current record.

Definition at line 73 of file iso_639_3.h.

The part1_code instance variable is used to remember the value of the "part1_code" (2-letter code) attribute for the current record.

Definition at line 80 of file iso_639_3.h.

The part2_code instance variable is used to remember the value of the "part2_code" (3-letter code) attribute for the current record.

Definition at line 87 of file iso_639_3.h.


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