TestDriver.hpp

00001 /*------------------------------------------------------------------------*/
00002 /*      phdMesh : Parallel Heterogneous Dynamic unstructured Mesh         */
00003 /*                Copyright (2007) Sandia Corporation                     */
00004 /*                                                                        */
00005 /*  Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive   */
00006 /*  license for use of this work by or on behalf of the U.S. Government.  */
00007 /*                                                                        */
00008 /*  This library is free software; you can redistribute it and/or modify  */
00009 /*  it under the terms of the GNU Lesser General Public License as        */
00010 /*  published by the Free Software Foundation; either version 2.1 of the  */
00011 /*  License, or (at your option) any later version.                       */
00012 /*                                                                        */
00013 /*  This library 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 GNU     */
00016 /*  Lesser General Public License for more details.                       */
00017 /*                                                                        */
00018 /*  You should have received a copy of the GNU Lesser General Public      */
00019 /*  License along with this library; if not, write to the Free Software   */
00020 /*  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307   */
00021 /*  USA                                                                   */
00022 /*------------------------------------------------------------------------*/
00027 #ifndef main_TestDriver_hpp
00028 #define main_TestDriver_hpp
00029 
00030 #include <map>
00031 #include <string>
00032 #include <iosfwd>
00033 
00034 #include <util/Parallel.hpp>
00035 
00036 namespace phdmesh {
00037 
00038 typedef
00039 void (*TestSubprogram)( ParallelMachine , std::istream & );
00040 
00041 typedef std::map< std::string , TestSubprogram > TestDriverMap ;
00042 
00043 int test_driver( ParallelMachine , std::istream & , const TestDriverMap & );
00044 
00045 }
00046 
00047 #endif
00048 

Generated on Wed May 12 21:24:30 2010 for phdMesh by  doxygen 1.4.7