AJP13::net_alhem_1_0_server_typ::NetworkTyp::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 747 of file Iconf.h.


Constructor & Destructor Documentation

AJP13::net_alhem_1_0_server_typ::NetworkTyp::Bind_t::Bind_t (  ) 

Definition at line 2593 of file Iconf.cpp.

02594 : _attribute_port(0)
02595 , _attribute_interface_is_set(false)
02596 , _attribute_port_is_set(false)
02597 , _attribute_protocol_is_set(false)
02598 , _attribute_host_is_set(false)
02599 {
02600 }

AJP13::net_alhem_1_0_server_typ::NetworkTyp::Bind_t::Bind_t ( const Xml::XmlNode &  it  ) 

Definition at line 2604 of file Iconf.cpp.

References FromXml().

02605 : _attribute_port(0)
02606 , _attribute_interface_is_set(false)
02607 , _attribute_port_is_set(false)
02608 , _attribute_protocol_is_set(false)
02609 , _attribute_host_is_set(false)
02610 {
02611         FromXml(it);
02612 }

virtual AJP13::net_alhem_1_0_server_typ::NetworkTyp::Bind_t::~Bind_t (  )  [inline, virtual]

Definition at line 752 of file Iconf.h.

00752 {}


Member Function Documentation

void AJP13::net_alhem_1_0_server_typ::NetworkTyp::Bind_t::FromXml ( const Xml::XmlNode &  it  ) 

Definition at line 2616 of file Iconf.cpp.

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

Referenced by Bind_t().

02617 {
02618         SetInterface(it.GetProperty("interface"));
02619         SetPort( atoi(it.GetProperty("port").c_str()) );
02620         SetProtocol(it.GetProperty("protocol"));
02621         if (it.PropertyExists("host"))
02622                 SetHost(it.GetProperty("host"));
02623 }

const std::string AJP13::net_alhem_1_0_server_typ::NetworkTyp::Bind_t::ToString ( const std::string &  name = ""  )  const

Definition at line 2627 of file Iconf.cpp.

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

Referenced by AJP13::net_alhem_1_0_server_typ::NetworkTyp::ToString().

02628 {
02629         std::string r;
02630         if (!name.empty())
02631                 r += "<" + name;
02632         r += " interface='" + GetInterface() + "'";
02633 {
02634                 r = r + " port='" + Utility::l2string(GetPort()) + "'";
02635         }
02636         r += " protocol='" + GetProtocol() + "'";
02637         if (HostIsSet())
02638                 r += " host='" + GetHost() + "'";
02639         r += ">";
02640         if (!name.empty())
02641                 r += "</" + name + ">";
02642         return r;
02643 }

bool AJP13::net_alhem_1_0_server_typ::NetworkTyp::Bind_t::IsSet (  )  const

Definition at line 2647 of file Iconf.cpp.

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

02648 {
02649         return InterfaceIsSet() || PortIsSet() || ProtocolIsSet() || HostIsSet();
02650 }

const std::string & AJP13::net_alhem_1_0_server_typ::NetworkTyp::Bind_t::GetInterface (  )  const

Definition at line 2654 of file Iconf.cpp.

References _attribute_interface.

Referenced by ToString().

02655 {
02656         return _attribute_interface;
02657 }

void AJP13::net_alhem_1_0_server_typ::NetworkTyp::Bind_t::SetInterface ( const std::string &  interface  ) 

Definition at line 2660 of file Iconf.cpp.

References _attribute_interface, and _attribute_interface_is_set.

Referenced by FromXml().

02661 {
02662         _attribute_interface = interface;
02663         _attribute_interface_is_set = true;
02664 }

int AJP13::net_alhem_1_0_server_typ::NetworkTyp::Bind_t::GetPort (  )  const

Definition at line 2668 of file Iconf.cpp.

References _attribute_port.

Referenced by ToString().

02669 {
02670         return _attribute_port;
02671 }

void AJP13::net_alhem_1_0_server_typ::NetworkTyp::Bind_t::SetPort ( int  port  ) 

Definition at line 2674 of file Iconf.cpp.

References _attribute_port, and _attribute_port_is_set.

Referenced by FromXml().

02675 {
02676         _attribute_port = port;
02677         _attribute_port_is_set = true;
02678 }

const std::string & AJP13::net_alhem_1_0_server_typ::NetworkTyp::Bind_t::GetProtocol (  )  const

Definition at line 2682 of file Iconf.cpp.

References _attribute_protocol.

Referenced by ToString().

02683 {
02684         return _attribute_protocol;
02685 }

void AJP13::net_alhem_1_0_server_typ::NetworkTyp::Bind_t::SetProtocol ( const std::string &  protocol  ) 

Definition at line 2688 of file Iconf.cpp.

References _attribute_protocol, and _attribute_protocol_is_set.

Referenced by FromXml().

02689 {
02690         _attribute_protocol = protocol;
02691         _attribute_protocol_is_set = true;
02692 }

const std::string & AJP13::net_alhem_1_0_server_typ::NetworkTyp::Bind_t::GetHost (  )  const

Definition at line 2696 of file Iconf.cpp.

References _attribute_host.

Referenced by ToString().

02697 {
02698         return _attribute_host;
02699 }

void AJP13::net_alhem_1_0_server_typ::NetworkTyp::Bind_t::SetHost ( const std::string &  host  ) 

Definition at line 2702 of file Iconf.cpp.

References _attribute_host, and _attribute_host_is_set.

Referenced by FromXml().

02703 {
02704         _attribute_host = host;
02705         _attribute_host_is_set = true;
02706 }

bool AJP13::net_alhem_1_0_server_typ::NetworkTyp::Bind_t::InterfaceIsSet (  )  const [inline]

Definition at line 769 of file Iconf.h.

References _attribute_interface_is_set.

Referenced by IsSet().

00769 { return _attribute_interface_is_set; }

bool AJP13::net_alhem_1_0_server_typ::NetworkTyp::Bind_t::PortIsSet (  )  const [inline]

Definition at line 770 of file Iconf.h.

References _attribute_port_is_set.

Referenced by IsSet().

00770 { return _attribute_port_is_set; }

bool AJP13::net_alhem_1_0_server_typ::NetworkTyp::Bind_t::ProtocolIsSet (  )  const [inline]

Definition at line 771 of file Iconf.h.

References _attribute_protocol_is_set.

Referenced by IsSet().

00771 { return _attribute_protocol_is_set; }

bool AJP13::net_alhem_1_0_server_typ::NetworkTyp::Bind_t::HostIsSet (  )  const [inline]

Definition at line 772 of file Iconf.h.

References _attribute_host_is_set.

Referenced by IsSet(), and ToString().

00772 { return _attribute_host_is_set; }


Member Data Documentation

Definition at line 775 of file Iconf.h.

Referenced by GetInterface(), and SetInterface().

Definition at line 776 of file Iconf.h.

Referenced by GetPort(), and SetPort().

Definition at line 777 of file Iconf.h.

Referenced by GetProtocol(), and SetProtocol().

Definition at line 778 of file Iconf.h.

Referenced by GetHost(), and SetHost().

Definition at line 779 of file Iconf.h.

Referenced by InterfaceIsSet(), and SetInterface().

Definition at line 780 of file Iconf.h.

Referenced by PortIsSet(), and SetPort().

Definition at line 781 of file Iconf.h.

Referenced by ProtocolIsSet(), and SetProtocol().

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