Line 1... |
Line 1... |
// $Id: RtclArgs.hpp 495 2013-03-06 17:13:48Z mueller $
|
// $Id: RtclArgs.hpp 521 2013-05-20 22:16:45Z mueller $
|
//
|
//
|
// Copyright 2011-2013 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
|
// Copyright 2011-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-05-19 521 1.0.9 add NextSubOpt() method, pass optset's as const
|
// 2013-03-05 495 1.0.8 add SetResult(bool)
|
// 2013-03-05 495 1.0.8 add SetResult(bool)
|
// 2013-03-02 494 1.0.7 add Quit() method
|
// 2013-03-02 494 1.0.7 add Quit() method
|
// 2013-02-12 487 1.0.6 add CurrentArg() method
|
// 2013-02-12 487 1.0.6 add CurrentArg() method
|
// 2013-02-01 479 1.0.5 add Objv() method
|
// 2013-02-01 479 1.0.5 add Objv() method
|
// 2011-03-26 373 1.0.4 add GetArg(flt/dbl), SetResult(str,sos,int,dbl)
|
// 2011-03-26 373 1.0.4 add GetArg(flt/dbl), SetResult(str,sos,int,dbl)
|
Line 27... |
Line 28... |
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
|
|
|
|
/*!
|
/*!
|
\file
|
\file
|
\version $Id: RtclArgs.hpp 495 2013-03-06 17:13:48Z mueller $
|
\version $Id: RtclArgs.hpp 521 2013-05-20 22:16:45Z mueller $
|
\brief Declaration of class RtclArgs.
|
\brief Declaration of class RtclArgs.
|
*/
|
*/
|
|
|
#ifndef included_Retro_RtclArgs
|
#ifndef included_Retro_RtclArgs
|
#define included_Retro_RtclArgs 1
|
#define included_Retro_RtclArgs 1
|
Line 102... |
Line 103... |
bool Config(const char* name, std::string& val);
|
bool Config(const char* name, std::string& val);
|
bool Config(const char* name, uint32_t& val,
|
bool Config(const char* name, uint32_t& val,
|
uint32_t max=uint32_max, uint32_t min=0);
|
uint32_t max=uint32_max, uint32_t min=0);
|
|
|
bool NextOpt(std::string& val);
|
bool NextOpt(std::string& val);
|
bool NextOpt(std::string& val, RtclNameSet& optset);
|
bool NextOpt(std::string& val, const RtclNameSet& optset);
|
|
int NextSubOpt(std::string& val, const RtclNameSet& optset);
|
bool OptValid() const;
|
bool OptValid() const;
|
|
|
Tcl_Obj* CurrentArg() const;
|
Tcl_Obj* CurrentArg() const;
|
|
|
bool AllDone();
|
bool AllDone();
|