00001 /**************************************************************************** 00002 ** $Id: atests.h,v 1.5 2006/08/23 08:30:04 app Exp $ 00003 ** 00004 ** Tests functions header file of 00005 ** Ananas application library 00006 ** 00007 ** Created : 20051024 00008 ** 00009 ** Copyright (C) 2003-2005 Grigory Panov, Yoshkar-Ola. 00010 ** 00011 ** This file is part of the Designer application of the Ananas 00012 ** automation accounting system. 00013 ** 00014 ** This file may be distributed and/or modified under the terms of the 00015 ** GNU General Public License version 2 as published by the Free Software 00016 ** Foundation and appearing in the file LICENSE.GPL included in the 00017 ** packaging of this file. 00018 ** 00019 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00020 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00021 ** 00022 ** See http://www.leaderit.ru/page=ananas or email sales@leaderit.ru 00023 ** See http://www.leaderit.ru/gpl/ for GPL licensing information. 00024 ** 00025 ** Contact org@leaderit.ru if any conditions of this licensing are 00026 ** not clear to you. 00027 ** 00028 **********************************************************************/ 00029 00030 #ifndef ATESTS_H 00031 #define ATESTS_H 00032 00033 #include "ananas.h" 00034 #include <qmap.h> 00035 00045 class ANANAS_EXPORT aTests 00046 { 00047 public: 00048 00049 static QMap<QString, QString> readConfig(const QString &cfg_name, const QString &log_name=QString::null); 00050 static bool writeConfig(const QString &cfg_name,QMap<QString, QString> cfg, const QString &log_name=QString::null); 00051 static void print2log( const QString &log_name, 00052 const QString &test_name, 00053 const QString &status, 00054 const QString &text=""); 00055 00056 static void printline2log(const QString &log_name); 00057 static QString parseCommandLine(int argc, char** argv, const QString requestedParam); 00058 00059 private: 00060 aTests(); 00061 }; 00062 #endif// ATESTS_H