#include <Iguana/Models/interface/IgXMLModel.h>
Public Types | |
typedef IgDispatcher < IgXMLModelChanged > | Dispatcher |
enum | EventType { CHANGED } |
Public Member Functions | |
Dispatcher * | dispatcher (enum EventType eventType) |
QDomDocument * | document (void) |
IgXMLModel (const std::string &documentName, const std::string &documentType="IGUANA-Generic") | |
void | trackRep (IgXMLRep *rep) |
~IgXMLModel (void) | |
Private Attributes | |
Dispatcher * | m_dispatcher |
QDomDocument * | m_document |
std::list< IgXMLRep * > | m_repList |
Classes | |
class | IgXMLModelChanged |
Definition at line 23 of file IgXMLModel.h.
Definition at line 38 of file IgXMLModel.h.
IgXMLModel::IgXMLModel | ( | const std::string & | documentName, | |
const std::string & | documentType = "IGUANA-Generic" | |||
) |
Definition at line 19 of file IgXMLModel.cc.
00021 : m_document (new QDomDocument ()), 00022 m_dispatcher (new Dispatcher) 00023 { 00024 }
IgXMLModel::~IgXMLModel | ( | void | ) |
Definition at line 26 of file IgXMLModel.cc.
References ASSERT, i, m_dispatcher, m_document, and m_repList.
00027 { 00028 ASSERT (m_document); 00029 ASSERT (m_dispatcher); 00030 00031 for (std::list<IgXMLRep *>::iterator i = m_repList.begin (); 00032 i != m_repList.end (); 00033 i++) 00034 { 00035 delete (*i); 00036 } 00037 00038 delete m_document; 00039 delete m_dispatcher; 00040 }
IgXMLModel::Dispatcher * IgXMLModel::dispatcher | ( | enum EventType | eventType | ) |
Definition at line 44 of file IgXMLModel.cc.
References CHANGED, and m_dispatcher.
00045 { 00046 if (eventType == CHANGED) 00047 { 00048 return m_dispatcher; 00049 } 00050 return 0; 00051 }
QDomDocument * IgXMLModel::document | ( | void | ) |
Definition at line 60 of file IgXMLModel.cc.
References m_document.
Referenced by IgWebTreeService::browse(), and IgXMLRep::IgXMLRep().
00061 { 00062 return m_document; 00063 }
Definition at line 54 of file IgXMLModel.cc.
References m_repList.
Referenced by IgXMLRep::IgXMLRep().
00055 { 00056 m_repList.push_back (rep); 00057 }
Dispatcher* IgXMLModel::m_dispatcher [private] |
QDomDocument* IgXMLModel::m_document [private] |
std::list<IgXMLRep *> IgXMLModel::m_repList [private] |