00001 /* 00002 * $Revision: 2299 $ 00003 * 00004 * last checkin: 00005 * $Author: gutwenger $ 00006 * $Date: 2012-05-07 15:57:08 +0200 (Mon, 07 May 2012) $ 00007 ***************************************************************/ 00008 00042 #ifdef _MSC_VER 00043 #pragma once 00044 #endif 00045 00046 00047 #ifndef OGDF_MODULE_H 00048 #define OGDF_MODULE_H 00049 00050 00051 #include <ogdf/basic/basic.h> 00052 00053 namespace ogdf { 00054 00055 00066 class OGDF_EXPORT Module 00067 { 00068 public: 00070 enum ReturnType { 00071 retFeasible, 00072 retOptimal, 00073 retNoFeasibleSolution, 00074 retTimeoutFeasible, 00075 retTimeoutInfeasible, 00076 retError 00077 }; 00078 00080 Module() { } 00081 00082 virtual ~Module() { } 00083 00085 static bool isSolution(ReturnType ret) { 00086 return ret == retFeasible || ret == retOptimal || ret == retTimeoutFeasible; 00087 } 00088 }; 00089 00090 00091 } // end namespace ogdf 00092 00093 00094 #endif