Open
Graph Drawing
Framework

 v.2010.10
 

Module.h

Go to the documentation of this file.
00001 /*
00002  * $Revision: 2027 $
00003  * 
00004  * last checkin:
00005  *   $Author: gutwenger $ 
00006  *   $Date: 2010-09-01 11:55:17 +0200 (Wed, 01 Sep 2010) $ 
00007  ***************************************************************/
00008  
00052 #ifdef _MSC_VER
00053 #pragma once
00054 #endif
00055 
00056 
00057 #ifndef OGDF_MODULE_H
00058 #define OGDF_MODULE_H
00059 
00060 
00061 #include <ogdf/basic/basic.h>
00062 
00063 namespace ogdf {
00064 
00065 
00076 class OGDF_EXPORT Module
00077 {
00078 public:
00080     enum ReturnType {
00081         retFeasible, 
00082         retOptimal, 
00083         retNoFeasibleSolution, 
00084         retTimeoutFeasible, 
00085         retTimeoutInfeasible, 
00086         retError 
00087     };
00088     
00090     Module() { }
00091 
00092     virtual ~Module() { }
00093     
00095     static bool isSolution(ReturnType ret) {
00096         return ret == retFeasible || ret == retOptimal || ret == retTimeoutFeasible;
00097     }
00098 };
00099 
00100 
00101 } // end namespace ogdf
00102 
00103 
00104 #endif