File: node.cpp

package info (click to toggle)
libqxt 0.6.1-6
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 19,004 kB
  • sloc: cpp: 57,512; xml: 296; sh: 251; makefile: 56; php: 14
file content (25 lines) | stat: -rw-r--r-- 415 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "node.h"



QDataStream &operator<<(QDataStream &out,const XmlNode &c)
{
    out<<c.name;
    out<<c.value;
    out<<c.type;
    return out;
}
QDataStream &operator>>(QDataStream &in, XmlNode &c )
{
    in>>c.name;
    in>>c.value;
    in>>c.type;
    return in;
}

QDebug operator<<(QDebug dbg, const XmlNode &c)
{
    dbg.nospace() << "(" << c.name << ", " << c.value << ")";
    return dbg.space();
}