00001 /************************************************************************* 00002 * 00003 * The Contents of this file are made available subject to 00004 * the terms of GNU Lesser General Public License Version 2.1. 00005 * 00006 * 00007 * GNU Lesser General Public License Version 2.1 00008 * ============================================= 00009 * Copyright 2005 by Kohei Yoshida. 00010 * 1039 Kingsway Dr., Apex, NC 27502, USA 00011 * 00012 * This library is free software; you can redistribute it and/or 00013 * modify it under the terms of the GNU Lesser General Public 00014 * License version 2.1, as published by the Free Software Foundation. 00015 * 00016 * This library is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00019 * Lesser General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU Lesser General Public 00022 * License along with this library; if not, write to the Free Software 00023 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 00024 * MA 02111-1307 USA 00025 * 00026 ************************************************************************/ 00027 00028 #ifndef _SCSOLVER_OPTION_HXX_ 00029 #define _SCSOLVER_OPTION_HXX_ 00030 00031 #include <memory> 00032 00033 namespace scsolver { 00034 00035 enum OptModelType 00036 { 00037 OPTMODELTYPE_LP, 00038 OPTMODELTYPE_MILP, 00039 OPTMODELTYPE_NLP, 00040 OPTMODELTYPE_MINLP 00041 }; 00042 00043 struct OptionDataImpl; 00044 00045 class OptionData 00046 { 00047 public: 00048 OptionData(); 00049 ~OptionData() throw(); 00050 00051 void setVarPositive( bool b ); 00052 bool getVarPositive() const; 00053 00054 void setVarInteger( bool b ); 00055 bool getVarInteger() const; 00056 00057 void setModelType( OptModelType type ); 00058 OptModelType getModelType() const; 00059 00060 private: 00061 ::std::auto_ptr<OptionDataImpl> m_pImpl; 00062 }; 00063 00064 } 00065 00066 00067 #endif
1.5.3