00001
00002 #ifndef __FICHIER_LP_H
00003 #define __FICHIER_LP_H
00004
00005
00006 #include "FichierProbleme.h"
00007
00013 class FichierLP : public FichierProbleme
00014 {
00015 protected:
00016
00017 bool IsComment (std::string& );
00018 std::string trim (const std::string& ) const;
00019 std::string AvoidSpaces(const std::string& ) const;
00020
00021 bool IsNumber (const std::string& ) const;
00022 void GetNumVar(const std::string& , std::string& , std::string& );
00023
00024
00025 void ParseObjective(const std::string& );
00026 void ParseSubjects (const std::string& , const std::string&);
00027 void ParseBounds (const std::string& );
00028 void ParseGenerals (const std::string& );
00029 void ParseBinaries (const std::string& );
00030 void Tokenize(const std::string& ,std::list<std::string>&
00031 ,std::list<std::string>&);
00032
00033 public:
00037 FichierLP();
00038
00040 bool Open(const std::string& );
00041
00043 ~FichierLP()
00044 {
00045
00046 };
00047 };
00048
00049
00050
00051 #endif
00052