lemon/lp_base.h
changeset 1181 1e5da3fc4fbc
parent 1076 38c432e01489
child 1130 0759d974de81
equal deleted inserted replaced
19:2ee7d71b0d57 20:162d03c876d4
     1 /* -*- mode: C++; indent-tabs-mode: nil; -*-
     1 /* -*- mode: C++; indent-tabs-mode: nil; -*-
     2  *
     2  *
     3  * This file is a part of LEMON, a generic C++ optimization library.
     3  * This file is a part of LEMON, a generic C++ optimization library.
     4  *
     4  *
     5  * Copyright (C) 2003-2010
     5  * Copyright (C) 2003-2013
     6  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     6  * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     7  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     7  * (Egervary Research Group on Combinatorial Optimization, EGRES).
     8  *
     8  *
     9  * Permission to use, modify and distribute this software is granted
     9  * Permission to use, modify and distribute this software is granted
    10  * provided that this copyright notice appears in all copies. For
    10  * provided that this copyright notice appears in all copies. For
  1026         catch (...) {}
  1026         catch (...) {}
  1027         if (!_what.empty()) return _what.c_str();
  1027         if (!_what.empty()) return _what.c_str();
  1028         else return "lemon::UnsupportedFormatError";
  1028         else return "lemon::UnsupportedFormatError";
  1029       }
  1029       }
  1030     };
  1030     };
  1031     
  1031 
  1032   protected:
  1032   protected:
  1033     virtual void _write(std::string, std::string format) const
  1033     virtual void _write(std::string, std::string format) const
  1034     {
  1034     {
  1035       throw UnsupportedFormatError(format);
  1035       throw UnsupportedFormatError(format);
  1036     }
  1036     }
  1037     
  1037 
  1038   public:
  1038   public:
  1039 
  1039 
  1040     /// Virtual destructor
  1040     /// Virtual destructor
  1041     virtual ~LpBase() {}
  1041     virtual ~LpBase() {}
  1042 
  1042