tbx
0.7.6
|
Templated class to match the lifetime of a toolbox object to a c++ class. More...
#include <matchlifetime.h>
Public Member Functions | |
MatchLifetime () | |
Constructor with no parameters. More... | |
MatchLifetime (const char *template_name) | |
Constructor with template name automatically sets autocreate listener on the application. More... | |
virtual void | auto_created (std::string template_name, Object object) |
Create a new C++ class for the auto created object. | |
![]() | |
virtual | ~Listener () |
Destroy the listener object. | |
Additional Inherited Members | |
![]() | |
Listener () | |
Construct the Listener object. | |
Templated class to match the lifetime of a toolbox object to a c++ class.
Add it to the application as an auto create listener.
The C++ object must have a constructor that takes an Object argument
|
inline |
Constructor with no parameters.
Add to application with Application::set_autocreate_listener
|
inline |
Constructor with template name automatically sets autocreate listener on the application.
template_name | name of object template in resource |