ExperimentManager.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  * File:        ./ExperimentManager.h
00003  * Author:      Ronni Grapenthin, NORVULK & HU-BERLIN
00004  * Created:     13.04.2007
00005  * Licence:     GPLv2
00006  *
00007  * #########################################################################
00008  *
00009  * CrusDe, simulation framework for crustal deformation studies
00010  * Copyright (C) 2007 Ronni Grapenthin
00011  *
00012  * This program is free software; you can redistribute it and/or
00013  * modify it under the terms of the GNU General Public License
00014  * as published by the Free Software Foundation; version 2
00015  * of the License.
00016  *
00017  * This program is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  * GNU General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU General Public License
00023  * along with this program; if not, write to the Free Software
00024  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00025  *
00026  ****************************************************************************/
00027 
00028 #ifndef _experiment_manager_h
00029 #define _experiment_manager_h
00030 
00031 #include <string>
00032 #include <iostream>
00033 #include <sstream>
00034 #include <stdexcept>
00035 #include <cassert>
00036 #include <map>
00037 
00038 #include "DatabaseManager.h"
00039 
00040 using namespace std;
00041 
00045 class ExperimentManager : public DatabaseManager
00046 {
00047 
00048         private:
00050                 ExperimentManager(const ExperimentManager& x); 
00052                 ExperimentManager const &operator=(ExperimentManager const &rvalue);
00053                 
00054                 DOMNode                 *actual_experiment;
00055                 
00056                 string childrenToString(DOMNode *n);
00057                 string childrenToString(DOMNode *n, const XMLCh* tag);
00058                 DOMNode* getEntryById(int id);
00059                 
00060         public:         
00061                 ExperimentManager(const char*); /* Constructor */
00062                 virtual ~ExperimentManager(){}; /* Destructor */
00063                 
00065                 virtual void run();
00067                 virtual void addEntry(string ident, DOMNode* parent=0);
00069                 virtual string getEntryDetails(int id);
00071                 virtual multimap<string, map<int, string> > getEntryMap();
00073                 virtual bool deleteEntry(int id);
00074                 
00075                 void addMetaData(string);
00076 
00077 };
00078 
00079 #endif // _experiment_manager_h

Generated on Sun Aug 31 13:18:59 2008 for CrusDe by  doxygen 1.5.0