ircproxy The Ultimate Cyborg |
00001 // ircproxy -- An IRC bouncer. 00002 // 00003 //! @file IPNumber.h 00004 //! @brief This file contains the declaration of class IPNumber. 00005 // 00006 // Copyright (C) 2006, 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 IPNUMBER_H 00017 #define IPNUMBER_H 00018 00019 #ifndef USE_PCH 00020 #include <string> 00021 #include "debug.h" 00022 #endif 00023 00024 //! An IP number. 00025 class IPNumber { 00026 private: 00027 std::string M_ip_number; //!< IP number as string (FIXME) 00028 public: 00029 //! Construct an uninitialized IPNumber. 00030 IPNumber(void) { Dout(dc::objects, "Constructing uninitialized IPNumber"); } 00031 //! Construct an IPNumber with IP number \a ip_number. 00032 IPNumber(std::string const& ip_number) : M_ip_number(ip_number) 00033 { Dout(dc::objects, "Constructing IPNumber from " << ip_number); } 00034 00035 //! Returns the IP number in dot notation. 00036 std::string str(void) const { return M_ip_number; } 00037 }; 00038 00039 #endif // IPNUMBER_H
Copyright © 2005-2007 Carlo Wood. All rights reserved. |
---|