//OpenSCADA module Special.FLibMath file: statfunc.h /*************************************************************************** * Copyright (C) 2005-2022 by Roman Savochenko, * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; version 2 of the License. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ #ifndef STATFUNC_H #define STATFUNC_H #undef _ #define _(mess) mod->I18N(mess).c_str() #undef trS #define trS(mess) mod->I18N(mess,mess_PreSave) #include #include #include using std::string; using std::vector; using namespace OSCADA; namespace FLibMath { //************************************************* //* Lib: Complex1 functions library * //************************************************* class Lib : public TSpecial { public: //Methods Lib( string src ); ~Lib( ); void modStart( ); void modStop( ); void list( vector &ls ) const { chldList(m_fnc, ls); } bool present( const string &id ) const { return chldPresent(m_fnc, id); } AutoHD at( const string &id ) const { return chldAt(m_fnc, id); } void reg( TFunction *fnc ) { chldAdd(m_fnc, fnc); } void unreg( const char *id ) { chldDel(m_fnc, id); } TVariant objFuncCall( const string &id, vector &prms, const string &user_lang ); private: //Methods void postEnable( int flag ); void cntrCmdProc( XMLNode *opt ); //Control interface command process //Attributes int m_fnc; }; extern Lib *mod; } //End namespace StatFunc #endif //STATFUNC_H