MeshTex  3.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
GenericMainMenu::CommandCallbackMethod< ObjectClass, member > Class Template Reference

An instance of this class can be used as a GenericMainMenu::CommandCallback, in situations where the callback is a method to be invoked on a target object. More...

#include <GenericMainMenu.h>

List of all members.

Public Member Functions

 CommandCallbackMethod (ObjectClass &object)
 Constructor.

Detailed Description

template<typename ObjectClass, void(ObjectClass::*)(const std::string &) member>
class GenericMainMenu::CommandCallbackMethod< ObjectClass, member >

An instance of this class can be used as a GenericMainMenu::CommandCallback, in situations where the callback is a method to be invoked on a target object.

When invoking this constructor, the target object is the constructor argument, and the target object class and method are template parameters. The target object's method must have an appropriate signature for CommandCallback: one string argument, void return.


Constructor & Destructor Documentation

template<typename ObjectClass , void(ObjectClass::*)(const std::string &) member>
GenericMainMenu::CommandCallbackMethod< ObjectClass, member >::CommandCallbackMethod ( ObjectClass &  object)
inline

Constructor.

Parameters:
objectThe object on which to invoke the callback method.

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