dejagnu.h

Go to the documentation of this file.
00001 // 
00002 //   Copyright (C) 2005, 2006 Free Software Foundation, Inc.
00003 // 
00004 // This program is free software; you can redistribute it and/or modify
00005 // it under the terms of the GNU General Public License as published by
00006 // the Free Software Foundation; either version 2 of the License, or
00007 // (at your option) any later version.
00008 // 
00009 // This program is distributed in the hope that it will be useful,
00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 // GNU General Public License for more details.
00013 // You should have received a copy of the GNU General Public License
00014 // along with this program; if not, write to the Free Software
00015 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00016 
00017 #ifndef __DEJAGNU_PLUGIN_H__
00018 #define __DEJAGNU_PLUGIN_H__
00019 
00020 #ifdef HAVE_CONFIG_H
00021 #include "config.h"
00022 #endif
00023 
00024 #include <memory> // for auto_ptr
00025 #include "as_object.h"
00026 #include "sharedlib.h"
00027 #include "extension.h"
00028 
00029 namespace gnash
00030 {
00031 
00032 class as_object;
00033 
00034 class DejaGnu {
00035 public:
00036     DejaGnu();
00037     ~DejaGnu();
00038     const char *pass (const char *msg);
00039     const char *fail (const char *msg);
00040     const char *xpass (const char *msg);
00041     const char *xfail (const char *msg);
00042     void totals ();
00043 private:
00044     int passed;
00045     int failed;
00046     int xpassed;
00047     int xfailed;
00048 };
00049 
00050 extern "C" {
00051     void dejagnu_class_init(as_object *obj);  
00052 }
00053 
00055 std::auto_ptr<as_object> init_dejagnu_instance();
00056 
00057 
00058 } // end of gnash namespace
00059 
00060 // __DEJAGNU_PLUGIN_H__
00061 #endif
00062 
00063 // Local Variables:
00064 // mode: C++
00065 // indent-tabs-mode: t
00066 // End:

Generated on Thu Nov 23 22:31:30 2006 for Gnash by  doxygen 1.4.6