Debian Codegraph @

src/plugins/schedulers/tj/taskjuggler/Interval.cpp

raw
1 /*
2 * Interval.h - TaskJuggler
3 *
4 * SPDX-FileCopyrightText: 2011 Dag Andersen <[email protected]>
5 * SPDX-FileCopyrightText: 2011 Dag Andersen <[email protected]>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of version 2 of the GNU General Public License as
9 * published by the Free Software Foundation.
10 *
11 * $Id$
12 */
13
14 // clazy:excludeall=qstring-arg
15 #include "Interval.h"
16
17 QDebug operator<<(QDebug dbg, const TJ::Interval *i)
18 {
19 return i == nullptr ? (dbg << (void*)i) : operator<<(dbg, *i);
20 }
21
22 QDebug operator<<(QDebug dbg, const TJ::Interval &i)
23 {
24 dbg << "Interval[";
25 if (i.isNull()) dbg << "Null";
26 else dbg << TJ::time2ISO(i.getStart())<<"-"<<TJ::time2ISO(i.getEnd());
27 dbg << "]";
28 return dbg;
29 }