ircproxy The Ultimate Cyborg |
00001 // ircproxy -- An IRC bouncer. 00002 // 00003 //! @file ServerVersion.cc 00004 //! @brief This file contains the implementation of class ServerVersion. 00005 // 00006 // Copyright (C) 2007 by 00007 // 00008 // Carlo Wood, Run on IRC <carlo@alinoe.com> 00009 // RSA-1024 0x624ACAD5 1997-01-26 Sign & Encrypt 00010 // Fingerprint16 = 32 EC A7 B6 AC DB 65 A6 F6 F6 55 DD 1C DC FF 61 00011 // 00012 // This file may be distributed under the terms of the Q Public License 00013 // version 1.0 as appearing in the file LICENSE.QPL included in the 00014 // packaging of this file. 00015 00016 #ifndef USE_PCH 00017 #include "sys.h" 00018 #endif 00019 00020 #include "ServerVersion.h" 00021 00022 #include "PersistXML.h" 00023 00024 void ServerVersion::print_on(std::ostream& os) const 00025 { 00026 os << "{version:\"" << M_version << "\"; time:" << M_time << "; user_supports_umode:" << M_user_supports_umode << "}"; 00027 } 00028 00029 void ServerVersion::serialize(PersistXML& xml) 00030 { 00031 xml.serialize("M_version", M_version); 00032 xml.serialize("M_time", M_time); 00033 xml.serialize("M_user_supports_umode", M_user_supports_umode); 00034 }
Copyright © 2005-2007 Carlo Wood. All rights reserved. |
---|