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