All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
PLMD::WithCmd Class Referenceabstract

Base for classes with cmd() method. More...

#include <WithCmd.h>

Inheritance diagram for PLMD::WithCmd:
Inheritance graph
[legend]

Public Member Functions

virtual ~WithCmd ()
 
void cmd (const std::string &key, const void *val)
 Const val version, which indeed just overrides the const and call the virtual method. More...
 
virtual void cmd (const std::string &key, void *val=NULL)=0
 This has to be implemented in daughter classes. More...
 

Detailed Description

Base for classes with cmd() method.

This is an abstract base class for classes with cmd() method. It takes care of "const" cast, and in the future it may be used to enforce some sort of type checking on passed arguments.

Definition at line 34 of file WithCmd.h.

Constructor & Destructor Documentation

PLMD::WithCmd::~WithCmd ( )
inlinevirtual

Definition at line 53 of file WithCmd.h.

Member Function Documentation

void PLMD::WithCmd::cmd ( const std::string &  key,
const void *  val 
)
inline

Const val version, which indeed just overrides the const and call the virtual method.

Definition at line 44 of file WithCmd.h.

virtual void PLMD::WithCmd::cmd ( const std::string &  key,
void *  val = NULL 
)
pure virtual

This has to be implemented in daughter classes.

Implemented in PLMD::PlumedMain, PLMD::CLToolMain, and PLMD::GREX.


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