00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 00002 /* ***** BEGIN LICENSE BLOCK ***** 00003 * Version: GPL 2.0 00004 * 00005 * K-10 Distributed Processing - Lium, Le Mans 00006 * Copyright (C) 2006 Frederic POUHET 00007 * 00008 * This program is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU General Public License 00010 * as published by the Free Software Foundation; either version 2 00011 * of the License, or (at your option) any later version. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with this program; if not, write to the Free Software 00020 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00021 * 00022 * ***** END LICENSE BLOCK ***** */ 00023 00024 #ifndef DESCRIPTORRENDERER_H 00025 #define DESCRIPTORRENDERER_H 00026 00027 #include "Task.h" 00028 00029 #include <string> 00030 using namespace std; 00031 00035 class TaskRenderer 00036 { 00037 public: 00042 TaskRenderer(); 00047 ~TaskRenderer(); 00048 00049 public: 00050 00058 bool generateXmlFile(Task* aDesc, string aXmlFileName); 00059 00067 string generateXmlString(Task* aDesc);//, string &aXmlString); 00068 00076 bool readXmlFile(Task* aDesc, string aXmlFileName) ; 00077 00085 bool readXmlString(Task* aDesc, string aXmlString); 00086 }; 00087 00088 00089 #endif 00090 00091 00092 00093 00094