$treeview $search $mathjax
StdAir Logo  1.00.2
$projectbrief
$projectbrief
$searchbox

stdair/basic/PreOptimisationMethod.hpp

Go to the documentation of this file.
00001 #ifndef __STDAIR_BAS_PREOPTIMISATIONMETHOD_HPP
00002 #define __STDAIR_BAS_PREOPTIMISATIONMETHOD_HPP
00003 
00004 // //////////////////////////////////////////////////////////////////////
00005 // Import section
00006 // //////////////////////////////////////////////////////////////////////
00007 // STL
00008 #include <string>
00009 // StdAir
00010 #include <stdair/basic/StructAbstract.hpp>
00011 
00012 namespace stdair {
00013 
00015   struct PreOptimisationMethod : public StructAbstract {
00016   public:
00017     typedef enum {
00018       NONE = 0,
00019       FA,
00020       MRT,
00021       LAST_VALUE
00022     } EN_PreOptimisationMethod;
00023 
00025     static const std::string& getLabel (const EN_PreOptimisationMethod&);
00026 
00028     static char getMethodLabel (const EN_PreOptimisationMethod&);
00029 
00031     static std::string getMethodLabelAsString (const EN_PreOptimisationMethod&);
00032 
00034     static std::string describeLabels();
00035 
00037     EN_PreOptimisationMethod getMethod() const;
00038 
00040     std::string getMethodAsString() const;
00041     
00043     const std::string describe() const;
00044 
00045   public:
00047     bool operator== (const EN_PreOptimisationMethod&) const;
00048     
00049   public:
00051     PreOptimisationMethod (const EN_PreOptimisationMethod&);
00053     PreOptimisationMethod (const char iMethod);
00055     PreOptimisationMethod (const PreOptimisationMethod&);
00056 
00057   private:
00059     PreOptimisationMethod();
00060   
00061 
00062   private:
00064     static const std::string _labels[LAST_VALUE];
00066     static const char _methodLabels[LAST_VALUE];
00067 
00068 
00069   private:
00070     // //////// Attributes /////////
00072     EN_PreOptimisationMethod _method;
00073   };
00074 
00075 }
00076 #endif // __STDAIR_BAS_PREOPTIMISATIONMETHOD_HPP