1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 as
5 * published by the Free Software Foundation;
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15 *
16 * Author: John Abraham <john.abraham.in@gmail.com>
17 */
18
19 #include "logqt.h"
20 using namespace std;
21
22 namespace netanim
23 {
24
operator <<(std::ostream & os,QPointF pt)25 std::ostream & operator << (std::ostream & os, QPointF pt)
26 {
27 os << "QPointF [x,y]:[" << pt.x () << "," << pt.y () << "]";
28 return os;
29 }
30
operator <<(std::ostream & os,QRectF r)31 std::ostream & operator << (std::ostream & os, QRectF r)
32 {
33 os << "QRectF topLeft:" << r.topLeft () << " bottomRight:" << r.bottomRight ();
34 return os;
35 }
36
37
operator <<(std::ostream & os,QTransform t)38 std::ostream & operator << (std::ostream & os, QTransform t)
39 {
40 os << "QTransform m11:" << t.m11 () << " m22:" << t.m22 ();
41 return os;
42 }
43
44
operator <<(std::ostream & os,AnimPacket * p)45 std::ostream & operator << (std::ostream & os, AnimPacket * p)
46 {
47 os << "AnimPacket:";
48 os << " From Node Id:" << p->getFromNodeId ();
49 os << " To Node Id:" << p->getToNodeId ();
50 os << " First Bit Tx:" << p->getFirstBitTx () << endl;
51 //os << "First Bit Rx:" << p->getFirstBitRx () << endl;
52 //os << "Last Bit Tx:" << p->getLastBitTx () << endl;
53 //os << "Last Bit Rx:" << p->getLastBitRx () << endl;
54 return os;
55 }
56
57
58 }
59