DRDE/ACTK1_0/se/IPVersion.hpp
Ren RenJuan 681188a22d push
2014-01-08 05:00:04 +00:00

25 lines
513 B
C++

#ifndef __IPVERSION_HPP
#define __IPVERSION_HPP
#include "se/EnumType.hpp"
/**
* Enumeration of Internet Protocol versions supported by EPP.
*/
class IPVersion : public EnumType
{
public:
IPVersion (const std::string& ip);
static const IPVersion* IPv4();
static const IPVersion* IPv6();
static const IPVersion* value(const std::string &name);
static void init();
private:
static std::vector<const EnumType *> values;
};
#endif // __IPVERSION_HPP