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.

Constructor & Destructor Documentation

PLMD::WithCmd::~WithCmd ( )
inlinevirtual

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.

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: