lemon/lp_base.h
branch1.3
changeset 1133 85d6e26096ef
parent 1078 38c432e01489
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