AJP13::net_alhem_1_0_server::Network::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 645 of file Iconf.h.


Constructor & Destructor Documentation

AJP13::net_alhem_1_0_server::Network::Bind_t::Bind_t (  ) 

Definition at line 2102 of file Iconf.cpp.

02103 : _attribute_port(0)
02104 , _attribute_interface_is_set(false)
02105 , _attribute_port_is_set(false)
02106 , _attribute_protocol_is_set(false)
02107 , _attribute_host_is_set(false)
02108 {
02109 }

AJP13::net_alhem_1_0_server::Network::Bind_t::Bind_t ( const Xml::XmlNode &  it  ) 

Definition at line 2113 of file Iconf.cpp.

References FromXml().

02114 : _attribute_port(0)
02115 , _attribute_interface_is_set(false)
02116 , _attribute_port_is_set(false)
02117 , _attribute_protocol_is_set(false)
02118 , _attribute_host_is_set(false)
02119 {
02120         FromXml(it);
02121 }

virtual AJP13::net_alhem_1_0_server::Network::Bind_t::~Bind_t (  )  [inline, virtual]

Definition at line 650 of file Iconf.h.

00650 {}


Member Function Documentation

void AJP13::net_alhem_1_0_server::Network::Bind_t::FromXml ( const Xml::XmlNode &  it  ) 

Definition at line 2125 of file Iconf.cpp.

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

Referenced by Bind_t().

02126 {
02127         SetInterface(it.GetProperty("interface"));
02128         SetPort( atoi(it.GetProperty("port").c_str()) );
02129         SetProtocol(it.GetProperty("protocol"));
02130         if (it.PropertyExists("host"))
02131                 SetHost(it.GetProperty("host"));
02132 }

const std::string AJP13::net_alhem_1_0_server::Network::Bind_t::ToString ( const std::string &  name = ""  )  const

Definition at line 2136 of file Iconf.cpp.

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

Referenced by AJP13::net_alhem_1_0_server::Network::ToString().

02137 {
02138         std::string r;
02139         if (!name.empty())
02140                 r += "<" + name;
02141         r += " interface='" + GetInterface() + "'";
02142 {
02143                 r = r + " port='" + Utility::l2string(GetPort()) + "'";
02144         }
02145         r += " protocol='" + GetProtocol() + "'";
02146         if (HostIsSet())
02147                 r += " host='" + GetHost() + "'";
02148         r += ">";
02149         if (!name.empty())
02150                 r += "</" + name + ">";
02151         return r;
02152 }

bool AJP13::net_alhem_1_0_server::Network::Bind_t::IsSet (  )  const

Definition at line 2156 of file Iconf.cpp.

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

02157 {
02158         return InterfaceIsSet() || PortIsSet() || ProtocolIsSet() || HostIsSet();
02159 }

const std::string & AJP13::net_alhem_1_0_server::Network::Bind_t::GetInterface (  )  const

Definition at line 2163 of file Iconf.cpp.

References _attribute_interface.

Referenced by ToString().

02164 {
02165         return _attribute_interface;
02166 }

void AJP13::net_alhem_1_0_server::Network::Bind_t::SetInterface ( const std::string &  interface  ) 

Definition at line 2169 of file Iconf.cpp.

References _attribute_interface, and _attribute_interface_is_set.

Referenced by FromXml().

02170 {
02171         _attribute_interface = interface;
02172         _attribute_interface_is_set = true;
02173 }

int AJP13::net_alhem_1_0_server::Network::Bind_t::GetPort (  )  const

Definition at line 2177 of file Iconf.cpp.

References _attribute_port.

Referenced by ToString().

02178 {
02179         return _attribute_port;
02180 }

void AJP13::net_alhem_1_0_server::Network::Bind_t::SetPort ( int  port  ) 

Definition at line 2183 of file Iconf.cpp.

References _attribute_port, and _attribute_port_is_set.

Referenced by FromXml().

02184 {
02185         _attribute_port = port;
02186         _attribute_port_is_set = true;
02187 }

const std::string & AJP13::net_alhem_1_0_server::Network::Bind_t::GetProtocol (  )  const

Definition at line 2191 of file Iconf.cpp.

References _attribute_protocol.

Referenced by ToString().

02192 {
02193         return _attribute_protocol;
02194 }

void AJP13::net_alhem_1_0_server::Network::Bind_t::SetProtocol ( const std::string &  protocol  ) 

Definition at line 2197 of file Iconf.cpp.

References _attribute_protocol, and _attribute_protocol_is_set.

Referenced by FromXml().

02198 {
02199         _attribute_protocol = protocol;
02200         _attribute_protocol_is_set = true;
02201 }

const std::string & AJP13::net_alhem_1_0_server::Network::Bind_t::GetHost (  )  const

Definition at line 2205 of file Iconf.cpp.

References _attribute_host.

Referenced by ToString().

02206 {
02207         return _attribute_host;
02208 }

void AJP13::net_alhem_1_0_server::Network::Bind_t::SetHost ( const std::string &  host  ) 

Definition at line 2211 of file Iconf.cpp.

References _attribute_host, and _attribute_host_is_set.

Referenced by FromXml().

02212 {
02213         _attribute_host = host;
02214         _attribute_host_is_set = true;
02215 }

bool AJP13::net_alhem_1_0_server::Network::Bind_t::InterfaceIsSet (  )  const [inline]

Definition at line 667 of file Iconf.h.

References _attribute_interface_is_set.

Referenced by IsSet().

00667 { return _attribute_interface_is_set; }

bool AJP13::net_alhem_1_0_server::Network::Bind_t::PortIsSet (  )  const [inline]

Definition at line 668 of file Iconf.h.

References _attribute_port_is_set.

Referenced by IsSet().

00668 { return _attribute_port_is_set; }

bool AJP13::net_alhem_1_0_server::Network::Bind_t::ProtocolIsSet (  )  const [inline]

Definition at line 669 of file Iconf.h.

References _attribute_protocol_is_set.

Referenced by IsSet().

00669 { return _attribute_protocol_is_set; }

bool AJP13::net_alhem_1_0_server::Network::Bind_t::HostIsSet (  )  const [inline]

Definition at line 670 of file Iconf.h.

References _attribute_host_is_set.

Referenced by IsSet(), and ToString().

00670 { return _attribute_host_is_set; }


Member Data Documentation

Definition at line 673 of file Iconf.h.

Referenced by GetInterface(), and SetInterface().

Definition at line 674 of file Iconf.h.

Referenced by GetPort(), and SetPort().

Definition at line 675 of file Iconf.h.

Referenced by GetProtocol(), and SetProtocol().

Definition at line 676 of file Iconf.h.

Referenced by GetHost(), and SetHost().

Definition at line 677 of file Iconf.h.

Referenced by InterfaceIsSet(), and SetInterface().

Definition at line 678 of file Iconf.h.

Referenced by PortIsSet(), and SetPort().

Definition at line 679 of file Iconf.h.

Referenced by ProtocolIsSet(), and SetProtocol().

Definition at line 680 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