From fa560b540a55db2a15d7639704f8500c0c5c5e9d Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Thu, 10 Apr 2014 17:37:45 +0000 Subject: [PATCH] Include : - modifica interfaccia di CmdParser. --- EgnCmdParser.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/EgnCmdParser.h b/EgnCmdParser.h index 34d2e53..8225dcd 100644 --- a/EgnCmdParser.h +++ b/EgnCmdParser.h @@ -8,6 +8,7 @@ // // Modifiche : 25.11.13 DS Creazione modulo. // 15.03.14 DS Agg. ExecuteLine. +// 10.04.14 DS Agg. GetIdParam. // //---------------------------------------------------------------------------- @@ -38,9 +39,14 @@ class __declspec( novtable) ICmdParser virtual bool SetVariable( const std::string& sName, int nVal) = 0 ; virtual bool GetVariable( const std::string& sName, int& nVal) = 0 ; virtual bool RemoveVariable( const std::string& sName) = 0 ; + virtual int GetIdParam( const std::string& sParam, bool bNewAllowed = false) = 0 ; virtual bool Run( const std::string& sCmdFile, bool bIsolated = true) = 0 ; virtual bool ExecLine( const std::string& sCmdLine, bool bIsolated = false) = 0 ; } ; //----------------------------------------------------------------------------- -EGN_EXPORT ICmdParser* CreateCmdParser( void) ; \ No newline at end of file +EGN_EXPORT ICmdParser* CreateCmdParser( void) ; + +//----------------------------------------------------------------------------- +const int CMD_ID_NULL = - 1 ; +const int CMD_ID_ERROR = - 99 ; \ No newline at end of file