cmd_generic.hpp File Reference

Include dependency graph for cmd_generic.hpp:

Go to the source code of this file.

Data Structures

class  CmdGeneric
 Base class for skins commands. More...

Defines

#define DEFINE_COMMAND(name, type)
 Macro to define the prototype of simple commands.
#define DEFINE_CALLBACK(parent, action)
 Macro to define a "callback" command inside a class.

Typedefs

typedef CountedPtr< CmdGenericCmdGenericPtr


Define Documentation

#define DEFINE_CALLBACK ( parent,
action   ) 

Value:

class Cmd##action: public CmdGeneric                                 \
{                                                                    \
public:                                                              \
    Cmd##action( parent *pParent ):                                  \
        CmdGeneric( pParent->getIntf() ), m_pParent( pParent ) { }   \
    virtual ~Cmd##action() { }                                       \
    virtual void execute();                                          \
    virtual string getType() const { return "Cmd" #parent #action; } \
private:                                                             \
    parent *m_pParent;                                               \
} m_cmd##action;                                                     \
friend class Cmd##action;
Macro to define a "callback" command inside a class.

#define DEFINE_COMMAND ( name,
type   ) 

Value:

class Cmd##name: public CmdGeneric                             \
{   public:                                                    \
    Cmd##name( intf_thread_t *pIntf ): CmdGeneric( pIntf ) { } \
    virtual ~Cmd##name() { }                                   \
    virtual void execute();                                    \
    virtual string getType() const { return type; }            \
};
Macro to define the prototype of simple commands.


Typedef Documentation


Generated on Tue May 25 08:05:20 2010 for VLC by  doxygen 1.5.6