# ParadisEO-MOEOMovingObjects: FlowShopBenchmarkParser.h Source File

# FlowShopBenchmarkParser.h

    00001 // -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*-
    00002
    00003 //-----------------------------------------------------------------------------
    00004 // FlowShopBenchmarkParser.h
    00005 // (c) OPAC Team (LIFL), Dolphin Project (INRIA), 2007
    00006 /*
    00007     This library...
    00008
    00009     Contact: paradiseo-help@lists.gforge.inria.fr, http://paradiseo.gforge.inria.fr
    00010  */
    00011 //-----------------------------------------------------------------------------
    00012
    00013 #ifndef FLOWSHOPBENCHMARKPARSER_H_
    00014 #define FLOWSHOPBENCHMARKPARSER_H_
    00015
    00016 #include <fstream>
    00017 #include <string>
    00018 #include <vector>
    00019
    00023 class FlowShopBenchmarkParser
    00024 {
    00025 public:
    00026
    00031     FlowShopBenchmarkParser(const std::string _benchmarkFileName);
    00032
    00033
    00037     const unsigned int getM();
    00038
    00039
    00043     const unsigned int getN();
    00044
    00045
    00049     const std::vector < std::vector < unsigned int > > getP();
    00050
    00051
    00055     const std::vector < unsigned int > getD();
    00056
    00057
    00061     void printOn(std::ostream & _os) const;
    00062
    00063
    00064 private:
    00065
    00067     unsigned int M;
    00069     unsigned int N;
    00071     std::vector < std::vector < unsigned int > > p;
    00073     std::vector < unsigned int > d;
    00074
    00075
    00080     void init(const std::string _benchmarkFileName);
    00081
    00082 };
    00083
    00084 #endif /*FLOWSHOPBENCHMARKPARSER_H_*/