00001 #include "StandbyTerm.h" 00002 00003 StandbyTerm::StandbyTerm() { 00004 } 00005 00006 StandbyTerm::StandbyTerm( const TermKey& termKey, uint pool ) : key( termKey ), pool( pool ) { 00007 } 00008 00009 StandbyTerm::StandbyTerm( const StandbyTerm& standbyTerm ) : key( standbyTerm.key ), pool( standbyTerm.pool ) { 00010 } 00011 00012 StandbyTerm::~StandbyTerm() { 00013 } 00014 00015 TermKey StandbyTerm::getKey() const { 00016 return( key ); 00017 } 00018 00019 uint StandbyTerm::getPool() const { 00020 return( pool ); 00021 } 00022 00023 int StandbyTerm::operator==( const StandbyTerm& term ) const { 00024 return( key == term.getKey() && pool == term.getPool() ); 00025 } 00026 00027 QDataStream& operator<<( QDataStream& out, const StandbyTerm& term ) { 00028 out << term.key << term.pool; 00029 00030 return( out ); 00031 } 00032 00033 QDataStream& operator>>( QDataStream& in, StandbyTerm& term ) { 00034 TermKey tempTermKey; 00035 uint tempPool; 00036 00037 in >> tempTermKey >> tempPool; 00038 00039 term = StandbyTerm( tempTermKey, tempPool ); 00040 00041 return( in ); 00042 }