AJP13::net_alhem_1_0_typ0::Network2::Bind_t Class Reference

#include <Iconf.h>

List of all members.

Public Member Functions

 Bind_t ()
 Bind_t (const Xml::XmlNode &it)
virtual ~Bind_t ()
void FromXml (const Xml::XmlNode &it)
const std::string ToString (const std::string &name="") const
bool IsSet () const
const std::string & GetInterface () const
void SetInterface (const std::string &interface)
int GetPort () const
void SetPort (int port)
const std::string & GetProtocol () const
void SetProtocol (const std::string &protocol)
const std::string & GetHost () const
void SetHost (const std::string &host)
bool InterfaceIsSet () const
bool PortIsSet () const
bool ProtocolIsSet () const
bool HostIsSet () const

Private Attributes

std::string _attribute_interface
int _attribute_port
std::string _attribute_protocol
std::string _attribute_host
bool _attribute_interface_is_set
bool _attribute_port_is_set
bool _attribute_protocol_is_set
bool _attribute_host_is_set


Detailed Description

Definition at line 849 of file Iconf.h.


Constructor & Destructor Documentation

AJP13::net_alhem_1_0_typ0::Network2::Bind_t::Bind_t (  ) 

Definition at line 2890 of file Iconf.cpp.

02891 : _attribute_port(0)
02892 , _attribute_interface_is_set(false)
02893 , _attribute_port_is_set(false)
02894 , _attribute_protocol_is_set(false)
02895 , _attribute_host_is_set(false)
02896 {
02897 }

AJP13::net_alhem_1_0_typ0::Network2::Bind_t::Bind_t ( const Xml::XmlNode &  it  ) 

Definition at line 2901 of file Iconf.cpp.

References FromXml().

02902 : _attribute_port(0)
02903 , _attribute_interface_is_set(false)
02904 , _attribute_port_is_set(false)
02905 , _attribute_protocol_is_set(false)
02906 , _attribute_host_is_set(false)
02907 {
02908         FromXml(it);
02909 }

virtual AJP13::net_alhem_1_0_typ0::Network2::Bind_t::~Bind_t (  )  [inline, virtual]

Definition at line 854 of file Iconf.h.

00854 {}


Member Function Documentation

void AJP13::net_alhem_1_0_typ0::Network2::Bind_t::FromXml ( const Xml::XmlNode &  it  ) 

Definition at line 2913 of file Iconf.cpp.

References SetHost(), SetInterface(), SetPort(), and SetProtocol().

Referenced by Bind_t().

02914 {
02915         SetInterface(it.GetProperty("interface"));
02916         SetPort( atoi(it.GetProperty("port").c_str()) );
02917         SetProtocol(it.GetProperty("protocol"));
02918         if (it.PropertyExists("host"))
02919                 SetHost(it.GetProperty("host"));
02920 }

const std::string AJP13::net_alhem_1_0_typ0::Network2::Bind_t::ToString ( const std::string &  name = ""  )  const

Definition at line 2924 of file Iconf.cpp.

References GetHost(), GetInterface(), GetPort(), GetProtocol(), and HostIsSet().

Referenced by AJP13::net_alhem_1_0_typ0::Network2::ToString().

02925 {
02926         std::string r;
02927         if (!name.empty())
02928                 r += "<" + name;
02929         r += " interface='" + GetInterface() + "'";
02930 {
02931                 r = r + " port='" + Utility::l2string(GetPort()) + "'";
02932         }
02933         r += " protocol='" + GetProtocol() + "'";
02934         if (HostIsSet())
02935                 r += " host='" + GetHost() + "'";
02936         r += ">";
02937         if (!name.empty())
02938                 r += "</" + name + ">";
02939         return r;
02940 }

bool AJP13::net_alhem_1_0_typ0::Network2::Bind_t::IsSet (  )  const

Definition at line 2944 of file Iconf.cpp.

References HostIsSet(), InterfaceIsSet(), PortIsSet(), and ProtocolIsSet().

02945 {
02946         return InterfaceIsSet() || PortIsSet() || ProtocolIsSet() || HostIsSet();
02947 }

const std::string & AJP13::net_alhem_1_0_typ0::Network2::Bind_t::GetInterface (  )  const

Definition at line 2951 of file Iconf.cpp.

References _attribute_interface.

Referenced by ToString().

02952 {
02953         return _attribute_interface;
02954 }

void AJP13::net_alhem_1_0_typ0::Network2::Bind_t::SetInterface ( const std::string &  interface  ) 

Definition at line 2957 of file Iconf.cpp.

References _attribute_interface, and _attribute_interface_is_set.

Referenced by FromXml().

02958 {
02959         _attribute_interface = interface;
02960         _attribute_interface_is_set = true;
02961 }

int AJP13::net_alhem_1_0_typ0::Network2::Bind_t::GetPort (  )  const

Definition at line 2965 of file Iconf.cpp.

References _attribute_port.

Referenced by ToString().

02966 {
02967         return _attribute_port;
02968 }

void AJP13::net_alhem_1_0_typ0::Network2::Bind_t::SetPort ( int  port  ) 

Definition at line 2971 of file Iconf.cpp.

References _attribute_port, and _attribute_port_is_set.

Referenced by FromXml().

02972 {
02973         _attribute_port = port;
02974         _attribute_port_is_set = true;
02975 }

const std::string & AJP13::net_alhem_1_0_typ0::Network2::Bind_t::GetProtocol (  )  const

Definition at line 2979 of file Iconf.cpp.

References _attribute_protocol.

Referenced by ToString().

02980 {
02981         return _attribute_protocol;
02982 }

void AJP13::net_alhem_1_0_typ0::Network2::Bind_t::SetProtocol ( const std::string &  protocol  ) 

Definition at line 2985 of file Iconf.cpp.

References _attribute_protocol, and _attribute_protocol_is_set.

Referenced by FromXml().

02986 {
02987         _attribute_protocol = protocol;
02988         _attribute_protocol_is_set = true;
02989 }

const std::string & AJP13::net_alhem_1_0_typ0::Network2::Bind_t::GetHost (  )  const

Definition at line 2993 of file Iconf.cpp.

References _attribute_host.

Referenced by ToString().

02994 {
02995         return _attribute_host;
02996 }

void AJP13::net_alhem_1_0_typ0::Network2::Bind_t::SetHost ( const std::string &  host  ) 

Definition at line 2999 of file Iconf.cpp.

References _attribute_host, and _attribute_host_is_set.

Referenced by FromXml().

03000 {
03001         _attribute_host = host;
03002         _attribute_host_is_set = true;
03003 }

bool AJP13::net_alhem_1_0_typ0::Network2::Bind_t::InterfaceIsSet (  )  const [inline]

Definition at line 871 of file Iconf.h.

References _attribute_interface_is_set.

Referenced by IsSet().

00871 { return _attribute_interface_is_set; }

bool AJP13::net_alhem_1_0_typ0::Network2::Bind_t::PortIsSet (  )  const [inline]

Definition at line 872 of file Iconf.h.

References _attribute_port_is_set.

Referenced by IsSet().

00872 { return _attribute_port_is_set; }

bool AJP13::net_alhem_1_0_typ0::Network2::Bind_t::ProtocolIsSet (  )  const [inline]

Definition at line 873 of file Iconf.h.

References _attribute_protocol_is_set.

Referenced by IsSet().

00873 { return _attribute_protocol_is_set; }

bool AJP13::net_alhem_1_0_typ0::Network2::Bind_t::HostIsSet (  )  const [inline]

Definition at line 874 of file Iconf.h.

References _attribute_host_is_set.

Referenced by IsSet(), and ToString().

00874 { return _attribute_host_is_set; }


Member Data Documentation

Definition at line 877 of file Iconf.h.

Referenced by GetInterface(), and SetInterface().

Definition at line 878 of file Iconf.h.

Referenced by GetPort(), and SetPort().

Definition at line 879 of file Iconf.h.

Referenced by GetProtocol(), and SetProtocol().

Definition at line 880 of file Iconf.h.

Referenced by GetHost(), and SetHost().

Definition at line 881 of file Iconf.h.

Referenced by InterfaceIsSet(), and SetInterface().

Definition at line 882 of file Iconf.h.

Referenced by PortIsSet(), and SetPort().

Definition at line 883 of file Iconf.h.

Referenced by ProtocolIsSet(), and SetProtocol().

Definition at line 884 of file Iconf.h.

Referenced by HostIsSet(), and SetHost().


The documentation for this class was generated from the following files:

Generated on Sun Oct 11 10:59:07 2009 for Xml Schema class generator by  doxygen 1.5.5