tbx  0.7.3
Public Member Functions | List of all members
tbx::MatchLifetime< T > Class Template Reference

Templated class to match the lifetime of a toolbox object to a c++ class. More...

#include <matchlifetime.h>

Inheritance diagram for tbx::MatchLifetime< T >:
tbx::AutoCreateListener tbx::Listener

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.
 
- Public Member Functions inherited from tbx::Listener
virtual ~Listener ()
 Destroy the listener object.
 

Additional Inherited Members

- Protected Member Functions inherited from tbx::Listener
 Listener ()
 Construct the Listener object.
 

Detailed Description

template<class T>
class tbx::MatchLifetime< T >

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

Constructor & Destructor Documentation

template<class T >
tbx::MatchLifetime< T >::MatchLifetime ( )
inline

Constructor with no parameters.

Add to application with Application::set_autocreate_listener

template<class T >
tbx::MatchLifetime< T >::MatchLifetime ( const char *  template_name)
inline

Constructor with template name automatically sets autocreate listener on the application.

Parameters
template_namename of object template in resource

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