comm_option_mfptr Class Template Reference

Member function pointer for cli command function.

#include <cli.h>

Inheritance diagram for comm_option_mfptr:

comm_option_funct

Detailed Description

template<class tclass>
class comm_option_mfptr< tclass >

Definition at line 59 of file cli.h.


Public Member Functions

 comm_option_mfptr (tclass *tp, int(tclass::*fp)(std::vector< std::string > &, bool))
 Create from a member function pointer from the specified class.
virtual int operator() (std::vector< std::string > &cstr, bool itive_com)
 The basic function called by cli.

Protected Member Functions

 comm_option_mfptr (const comm_option_mfptr &f)
 Copy constructor.
comm_option_mfptroperator= (const comm_option_mfptr &f)
 Copy constructor.

Protected Attributes

int(tclass::* fptr )(std::vector< std::string > &cstr, bool itive_com)
 The pointer to the member function.
tclass * tptr
 The pointer to the class.

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

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page