CMS 3D CMS Logo

IgXMLModel Class Reference

#include <Iguana/Models/interface/IgXMLModel.h>

Inheritance diagram for IgXMLModel:

IgModel IgAjaxTreeModel

List of all members.

Public Types

typedef IgDispatcher
< IgXMLModelChanged
Dispatcher
enum  EventType { CHANGED }

Public Member Functions

Dispatcherdispatcher (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

Dispatcherm_dispatcher
QDomDocument * m_document
std::list< IgXMLRep * > m_repList

Classes

class  IgXMLModelChanged


Detailed Description

Definition at line 23 of file IgXMLModel.h.


Member Typedef Documentation

typedef IgDispatcher<IgXMLModelChanged> IgXMLModel::Dispatcher

Definition at line 38 of file IgXMLModel.h.


Member Enumeration Documentation

enum IgXMLModel::EventType

Enumerator:
CHANGED 

Definition at line 36 of file IgXMLModel.h.

00036 {CHANGED};


Constructor & Destructor Documentation

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 }


Member Function Documentation

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 }

void IgXMLModel::trackRep ( IgXMLRep rep  ) 

Definition at line 54 of file IgXMLModel.cc.

References m_repList.

Referenced by IgXMLRep::IgXMLRep().

00055 {
00056     m_repList.push_back (rep);    
00057 }


Member Data Documentation

Dispatcher* IgXMLModel::m_dispatcher [private]

Definition at line 53 of file IgXMLModel.h.

Referenced by dispatcher(), and ~IgXMLModel().

QDomDocument* IgXMLModel::m_document [private]

Definition at line 52 of file IgXMLModel.h.

Referenced by document(), and ~IgXMLModel().

std::list<IgXMLRep *> IgXMLModel::m_repList [private]

Definition at line 54 of file IgXMLModel.h.

Referenced by trackRep(), and ~IgXMLModel().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:25:49 2009 for CMSSW by  doxygen 1.5.4