1 /*!\file
2 * \author Matthias Elf
3 *
4 * \par License:
5 * This file is part of ABACUS - A Branch And CUt System
6 * Copyright (C) 1995 - 2003
7 * University of Cologne, Germany
8 *
9 * \par
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either
13 * version 2.1 of the License, or (at your option) any later version.
14 *
15 * \par
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Lesser General Public License for more details.
20 *
21 * \par
22 * You should have received a copy of the GNU Lesser General Public
23 * License along with this library; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 *
26 * \see http://www.gnu.org/copyleft/gpl.html
27 */
28
29 #include <ogdf/lib/abacus/optsense.h>
30
31 namespace abacus {
32
33
operator <<(std::ostream & out,const OptSense & rhs)34 std::ostream &operator<<(std::ostream &out, const OptSense &rhs)
35 {
36 switch (rhs.sense_) {
37 case OptSense::Min:
38 out << "minimize";
39 break;
40 case OptSense::Max:
41 out << "maximize";
42 break;
43 case OptSense::Unknown:
44 out << "unknown";
45 break;
46 }
47 return out;
48 }
49 }
50