cWidget::WithIdData Class Reference

Stores multiple DataSets in a map, keyed by their id="" attribute. More...

#include <cWidgetBase.h>

Inheritance diagram for cWidget::WithIdData:

Inheritance graph
[legend]
Collaboration diagram for cWidget::WithIdData:

Collaboration graph
[legend]

List of all members.

Public Member Functions

bool Process (tXmlParser::node cur)
 Passes a DataSet to WithDataFunctions::ProcessDataSet() and saves the result or calls WithDataFunctions::Process for any other tag.

Protected Attributes

std::map< tString, tValue::Setm_data
 The parsed data sets.


Detailed Description

Stores multiple DataSets in a map, keyed by their id="" attribute.

Definition at line 138 of file cWidgetBase.h.


Member Function Documentation

bool cWidget::WithIdData::Process ( tXmlParser::node  cur  )  [virtual]

Passes a DataSet to WithDataFunctions::ProcessDataSet() and saves the result or calls WithDataFunctions::Process for any other tag.

Reimplemented from cWidget::WithDataFunctions.

Reimplemented in cWidget::Label, and cWidget::WithTable.

Definition at line 312 of file cWidgetBase.cpp.

References m_data, cWidget::WithDataFunctions::Process(), cWidget::WithDataFunctions::ProcessDataSet(), and tERR_WARN.

Referenced by cWidget::WithTable::Process().

00313                                            {
00314     if(cur.IsOfType("DataSet")) {
00315         tString id = cur.GetProp("id");
00316         if(id.empty()) {
00317             tERR_WARN("Empty or no id tag where needed!");
00318             return true;
00319         }
00320         m_data[id] = ProcessDataSet(cur);
00321         return true;
00322     }
00323     return WithDataFunctions::Process(cur);

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

std::map<tString, tValue::Set> cWidget::WithIdData::m_data [protected]

The parsed data sets.

Definition at line 140 of file cWidgetBase.h.

Referenced by Process(), and cWidget::WithTable::ProcessCell().


The documentation for this class was generated from the following files:
Generated on Sun Mar 16 00:04:38 2008 for Armagetron Advanced by  doxygen 1.5.4