Line 1... |
Line 1... |
// $Id: RtclCmdBase.hpp 486 2013-02-10 22:34:43Z mueller $
|
// $Id: RtclCmdBase.hpp 511 2013-04-27 13:51:46Z mueller $
|
//
|
//
|
// Copyright 2013- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
// Copyright 2013- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
//
|
//
|
// This program is free software; you may redistribute and/or modify it under
|
// This program is free software; you may redistribute and/or modify it under
|
// the terms of the GNU General Public License as published by the Free
|
// the terms of the GNU General Public License as published by the Free
|
Line 11... |
Line 11... |
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
// for complete details.
|
// for complete details.
|
//
|
//
|
// Revision History:
|
// Revision History:
|
// Date Rev Version Comment
|
// Date Rev Version Comment
|
|
// 2013-04-26 511 1.0.1 AddMeth() now public
|
// 2013-02-02 480 1.0 Initial version (refactored out from ProxyBase)
|
// 2013-02-02 480 1.0 Initial version (refactored out from ProxyBase)
|
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
|
|
/*!
|
/*!
|
\file
|
\file
|
\version $Id: RtclCmdBase.hpp 486 2013-02-10 22:34:43Z mueller $
|
\version $Id: RtclCmdBase.hpp 511 2013-04-27 13:51:46Z mueller $
|
\brief Declaration of class RtclCmdBase.
|
\brief Declaration of class RtclCmdBase.
|
*/
|
*/
|
|
|
#ifndef included_Retro_RtclCmdBase
|
#ifndef included_Retro_RtclCmdBase
|
#define included_Retro_RtclCmdBase 1
|
#define included_Retro_RtclCmdBase 1
|
Line 48... |
Line 49... |
|
|
RtclCmdBase();
|
RtclCmdBase();
|
virtual ~RtclCmdBase();
|
virtual ~RtclCmdBase();
|
|
|
int DispatchCmd(RtclArgs& args);
|
int DispatchCmd(RtclArgs& args);
|
|
void AddMeth(const std::string& name, const methfo_t& methfo);
|
|
|
// some constants (also defined in cpp)
|
// some constants (also defined in cpp)
|
static const int kOK = TCL_OK; //<!
|
static const int kOK = TCL_OK; //<!
|
static const int kERR = TCL_ERROR; //<!
|
static const int kERR = TCL_ERROR; //<!
|
|
|
protected:
|
protected:
|
void AddMeth(const std::string& name, const methfo_t& methfo);
|
|
|
|
protected:
|
protected:
|
mmap_t fMapMeth; //!< map for named methods
|
mmap_t fMapMeth; //!< map for named methods
|
};
|
};
|
|
|