#include <resource.h>
Public Member Functions | |
template<typename VT > | |
View< RT, VT > * | createView (const std::string &name) |
RT::DataTypePtr & | getData () |
void | releaseView (const std::string &name) |
Resource (const std::string &name, const typename RT::DataTypePtr &data) | |
void | resourceChanged () |
~Resource () | |
Private Member Functions | |
template<typename VT > | |
View< RT, VT > * | createView (const std::string &name, ViewTypes::View2D) |
template<typename VT > | |
View< RT, VT > * | createView (const std::string &name, ViewTypes::ViewText) |
Private Attributes | |
RT::DataTypePtr | data_ |
std::string | name_ |
std::map< std::string, ViewBase * > | views_ |
Definition at line 87 of file resource.h.
Gui::Resource< RT >::Resource | ( | const std::string & | name, |
const typename RT::DataTypePtr & | data | ||
) | [inline] |
Definition at line 90 of file resource.h.
Gui::Resource< RT >::~Resource | ( | ) | [inline] |
Definition at line 91 of file resource.h.
View<RT, VT>* Gui::Resource< RT >::createView | ( | const std::string & | name | ) | [inline] |
Definition at line 94 of file resource.h.
Gui::View< RT, VT > * Gui::Resource< RT >::createView | ( | const std::string & | name, |
ViewTypes::View2D | |||
) | [private] |
Definition at line 82 of file resource.hpp.
Gui::View< RT, VT > * Gui::Resource< RT >::createView | ( | const std::string & | name, |
ViewTypes::ViewText | |||
) | [private] |
Definition at line 91 of file resource.hpp.
RT::DataTypePtr& Gui::Resource< RT >::getData | ( | ) | [inline] |
Definition at line 96 of file resource.h.
void Gui::Resource< RT >::releaseView | ( | const std::string & | name | ) | [inline, virtual] |
Implements Gui::ResourceBase.
Definition at line 97 of file resource.h.
void Gui::Resource< RT >::resourceChanged | ( | ) | [virtual] |
Implements Gui::ResourceBase.
Definition at line 74 of file resource.hpp.
RT::DataTypePtr Gui::Resource< RT >::data_ [private] |
Definition at line 106 of file resource.h.
std::string Gui::Resource< RT >::name_ [private] |
Definition at line 105 of file resource.h.
std::map<std::string, ViewBase*> Gui::Resource< RT >::views_ [private] |
Definition at line 107 of file resource.h.