#include <Iconf.h>
Public Member Functions | |
Network () | |
Network (const Xml::XmlNode &it) | |
virtual | ~Network () |
void | FromXml (const Xml::XmlNode &it) |
const std::string | ToString (const std::string &name="") const |
bool | IsSet () const |
const std::list < net_alhem_1_0_server::Network::Bind_t > & | GetBind () const |
std::list < net_alhem_1_0_server::Network::Bind_t > & | GetBind () |
void | SetBind (const std::list< net_alhem_1_0_server::Network::Bind_t > &bind) |
bool | BindIsSet () const |
Private Attributes | |
std::list < net_alhem_1_0_server::Network::Bind_t > | _element_bind |
Classes | |
class | Bind_t |
Definition at line 642 of file Iconf.h.
AJP13::net_alhem_1_0_server::Network::Network | ( | ) |
AJP13::net_alhem_1_0_server::Network::Network | ( | const Xml::XmlNode & | it | ) |
virtual AJP13::net_alhem_1_0_server::Network::~Network | ( | ) | [inline, virtual] |
void AJP13::net_alhem_1_0_server::Network::FromXml | ( | const Xml::XmlNode & | it | ) |
Definition at line 2035 of file Iconf.cpp.
References _element_bind.
Referenced by AJP13::net_alhem_1_0_server::Configuration_t::FromXml(), and Network().
02036 { 02037 if (!it.Exists("bind")) 02038 throw Xml::XmlException("missing required node in element 'network': bind"); 02039 { 02040 Xml::XmlNode n(it, "bind"); 02041 while (n) 02042 { 02043 net_alhem_1_0_server::Network::Bind_t tmp(n); 02044 _element_bind.push_back( tmp ); 02045 ++n; 02046 } 02047 } 02048 }
const std::string AJP13::net_alhem_1_0_server::Network::ToString | ( | const std::string & | name = "" |
) | const |
Definition at line 2052 of file Iconf.cpp.
References _element_bind, and AJP13::net_alhem_1_0_server::Network::Bind_t::ToString().
Referenced by AJP13::net_alhem_1_0_server::Configuration_t::ToString().
02053 { 02054 std::string r; 02055 if (!name.empty()) 02056 r += "<" + name + ">"; 02057 for (std::list<net_alhem_1_0_server::Network::Bind_t>::const_iterator it = _element_bind.begin(); it != _element_bind.end(); it++) 02058 { 02059 const net_alhem_1_0_server::Network::Bind_t& ref = *it; 02060 r += ref.ToString("bind"); 02061 } 02062 if (!name.empty()) 02063 r += "</" + name + ">"; 02064 return r; 02065 }
bool AJP13::net_alhem_1_0_server::Network::IsSet | ( | ) | const |
Definition at line 2069 of file Iconf.cpp.
References BindIsSet().
Referenced by AJP13::net_alhem_1_0_server::Configuration_t::NetworkIsSet().
02070 { 02071 return BindIsSet(); 02072 }
const std::list< net_alhem_1_0_server::Network::Bind_t > & AJP13::net_alhem_1_0_server::Network::GetBind | ( | ) | const |
Definition at line 2076 of file Iconf.cpp.
References _element_bind.
02077 { 02078 return _element_bind; 02079 }
std::list< net_alhem_1_0_server::Network::Bind_t > & AJP13::net_alhem_1_0_server::Network::GetBind | ( | ) |
Definition at line 2082 of file Iconf.cpp.
References _element_bind.
02083 { 02084 return _element_bind; 02085 }
void AJP13::net_alhem_1_0_server::Network::SetBind | ( | const std::list< net_alhem_1_0_server::Network::Bind_t > & | bind | ) |
Definition at line 2088 of file Iconf.cpp.
References _element_bind.
02089 { 02090 _element_bind = bind; 02091 }
bool AJP13::net_alhem_1_0_server::Network::BindIsSet | ( | ) | const |
Definition at line 2095 of file Iconf.cpp.
References _element_bind.
Referenced by IsSet().
02096 { 02097 return !_element_bind.empty(); 02098 }
std::list<net_alhem_1_0_server::Network::Bind_t> AJP13::net_alhem_1_0_server::Network::_element_bind [private] |
Definition at line 701 of file Iconf.h.
Referenced by BindIsSet(), FromXml(), GetBind(), SetBind(), and ToString().