• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ibrcommon/ibrcommon/net/NetAddress.h

Go to the documentation of this file.
00001 /*
00002  * NetAddress.h
00003  *
00004  *  Created on: 21.10.2010
00005  *      Author: morgenro
00006  */
00007 
00008 #ifndef NETADDRESS_H_
00009 #define NETADDRESS_H_
00010 
00011 #include <string>
00012 
00013 namespace ibrcommon
00014 {
00015         class NetAddress
00016         {
00017         public:
00018                 enum ADDR_TYPE
00019                 {
00020                         NETADDR_IP = 0,
00021                         NETADDR_IP6 = 1,
00022                         NETADDR_IEEE802154 = 2
00023                 };
00024 
00025                 NetAddress(const ADDR_TYPE &type, const std::string &address, const int mask);
00026                 virtual ~NetAddress();
00027 
00028                 const std::string toString() const;
00029                 const ADDR_TYPE type;
00030                 const int mask;
00031 
00032         private:
00033                 const std::string _address;
00034         };
00035 }
00036 
00037 #endif /* NETADDRESS_H_ */

Generated on Thu Nov 11 2010 09:49:47 for IBR-DTNSuite by  doxygen 1.7.1