Qt IOC Container 3.5


qic::XmlApplicationContext Class Reference

#include <XmlApplicationContext.h>

Inheritance diagram for qic::XmlApplicationContext:

Inheritance graph
[legend]
Collaboration diagram for qic::XmlApplicationContext:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 XmlApplicationContext (QStringList &files)
virtual ~XmlApplicationContext ()
QObject * getObject (QString id)
bool containsObject (QString id)

Protected Attributes

XmlApplicationContextImpl_impl

Detailed Description

Concrete Applicaton Context handling XML configuration files.

Author:
Zhihong "John" Wang

Definition at line 20 of file XmlApplicationContext.h.


Constructor & Destructor Documentation

XmlApplicationContext::XmlApplicationContext QStringList &  files  ) 
 

Construct the ApplicationContext based on info in the XML configuration files.

Parameters:
files paths of all the configuration files as QStringList.

Definition at line 6 of file XmlApplicationContext.cpp.

References _impl.

XmlApplicationContext::~XmlApplicationContext  )  [virtual]
 

Definition at line 11 of file XmlApplicationContext.cpp.

References _impl.


Member Function Documentation

bool XmlApplicationContext::containsObject QString  id  )  [virtual]
 

Test if object id is in the container.

Implements qic::ApplicationContext.

Definition at line 26 of file XmlApplicationContext.cpp.

References _impl, and qic::DefaultApplicationContext::containsObject().

QObject * XmlApplicationContext::getObject QString  id  )  [virtual]
 

Get object pointer indicated by the id of the object.

Parameters:
id id of the object.
Exceptions:
ObjectNotFoundException 

Implements qic::ApplicationContext.

Definition at line 20 of file XmlApplicationContext.cpp.

References _impl, and qic::DefaultApplicationContext::getObject().


Member Data Documentation

XmlApplicationContextImpl* qic::XmlApplicationContext::_impl [protected]
 

Implementation details are hidden in XmlApplicationContextImpl.

Definition at line 42 of file XmlApplicationContext.h.

Referenced by containsObject(), getObject(), XmlApplicationContext(), and ~XmlApplicationContext().


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