MAK Data Logger API Documentation for HLA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Attributes
MAKLogger::DtCommandInterfaceFunctor< T > Class Template Reference

DtCommandInterfaceFunctor provides an implementation of the DtResponseFunctor which wraps a single member function call. More...

+ Inheritance diagram for MAKLogger::DtCommandInterfaceFunctor< T >:
+ Collaboration diagram for MAKLogger::DtCommandInterfaceFunctor< T >:

Public Types

typedef void(T::* ProcCmdFunction )(DtResponse command)
 The Process Response Function signature. More...
 

Public Member Functions

 DtCommandInterfaceFunctor (T *object, ProcCmdFunction function)
 The Constructor. More...
 
virtual ~DtCommandInterfaceFunctor ()
 The Destructor. More...
 
virtual void operator() (DtResponse command)
 Function call operator which calls this stored object's stored member function. More...
 
- Public Member Functions inherited from MAKLogger::DtResponseFunctor
 DtResponseFunctor ()
 Constructor. More...
 
virtual ~DtResponseFunctor ()
 Virtual Destructor which does nothing. More...
 

Protected Attributes

T * myObject
 Pointer to my object. More...
 
ProcCmdFunction myFunction
 My function to call. More...
 

Detailed Description

template<typename T>
class MAKLogger::DtCommandInterfaceFunctor< T >

DtCommandInterfaceFunctor provides an implementation of the DtResponseFunctor which wraps a single member function call.

Member Typedef Documentation

template<typename T >
typedef void(T::* MAKLogger::DtCommandInterfaceFunctor< T >::ProcCmdFunction)(DtResponse command)

The Process Response Function signature.

Constructor & Destructor Documentation

template<typename T >
MAKLogger::DtCommandInterfaceFunctor< T >::DtCommandInterfaceFunctor ( T *  object,
ProcCmdFunction  function 
)

The Constructor.

Creates a functor which will call the member function using the object passed in.

Parameters
Input
objectThe object who will call its member function.
functionThe member function of object to call.
Precondition
The object passed in must be valid.
Postcondition
<what will="" be="" true="" as="" a="" result="" of="" this="" function>="">
Warning
The lifetime of the object is not assured. It is safest to embed the functor in the host object itself or it's parent who can ensure it's life.
template<typename T >
MAKLogger::DtCommandInterfaceFunctor< T >::~DtCommandInterfaceFunctor ( )
virtual

The Destructor.

Member Function Documentation

template<typename T >
void MAKLogger::DtCommandInterfaceFunctor< T >::operator() ( DtResponse  command)
virtual

Function call operator which calls this stored object's stored member function.

Implements MAKLogger::DtResponseFunctor.

Member Data Documentation

template<typename T >
ProcCmdFunction MAKLogger::DtCommandInterfaceFunctor< T >::myFunction
protected

My function to call.

template<typename T >
T* MAKLogger::DtCommandInterfaceFunctor< T >::myObject
protected

Pointer to my object.


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

Document ID: Generated on Thu Dec 18 15:35:09 EST 2025 from SVN revision 282494
Copyright © 2024 MAK Technologies. All Rights Reserved (www.mak.com)