00001 // 00002 // runnable.h 00003 // 00004 // Author: Curtis Janssen <cljanss@sandia.gov> 00005 // 00006 // This file is part of the SC Toolkit. 00007 // 00008 // The SC Toolkit is free software; you can redistribute it and/or modify 00009 // it under the terms of the GNU Library General Public License as published by 00010 // the Free Software Foundation; either version 2, or (at your option) 00011 // any later version. 00012 // 00013 // The SC Toolkit 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 Library General Public License for more details. 00017 // 00018 // You should have received a copy of the GNU Library General Public License 00019 // along with the SC Toolkit; see the file COPYING.LIB. If not, write to 00020 // the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 00021 // 00022 // The U.S. Government is granted a limited license as per AL 91-7. 00023 // 00024 00025 #ifdef __GNUC__ 00026 #pragma interface 00027 #endif 00028 00029 #ifndef _util_misc_runnable_h 00030 #define _util_misc_runnable_h 00031 00032 #include <string> 00033 00034 #include <util/class/class.h> 00035 00036 namespace sc { 00037 00040 class Runnable: virtual public DescribedClass { 00041 public: 00043 virtual void run() = 0; 00044 }; 00045 00046 class TestRunnable: public Runnable { 00047 std::string test_; 00048 public: 00049 TestRunnable(const Ref<KeyVal> &); 00050 void run(); 00051 }; 00052 00053 } 00054 00055 #endif 00056 00057 // Local Variables: 00058 // mode: c++ 00059 // c-file-style: "CLJ" 00060 // End: