AJP13::net_alhem_1_0_server_typ::NetworkTyp Class Reference

#include <Iconf.h>

List of all members.

Public Member Functions

 NetworkTyp ()
 NetworkTyp (const Xml::XmlNode &it)
virtual ~NetworkTyp ()
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_typ::NetworkTyp::Bind_t > & 
GetBind () const
std::list
< net_alhem_1_0_server_typ::NetworkTyp::Bind_t > & 
GetBind ()
void SetBind (const std::list< net_alhem_1_0_server_typ::NetworkTyp::Bind_t > &bind)
bool BindIsSet () const

Private Attributes

std::list
< net_alhem_1_0_server_typ::NetworkTyp::Bind_t
_element_bind

Classes

class  Bind_t


Detailed Description

Definition at line 744 of file Iconf.h.


Constructor & Destructor Documentation

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

Definition at line 2513 of file Iconf.cpp.

02514 {
02515 }

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

Definition at line 2519 of file Iconf.cpp.

References FromXml().

02520 {
02521         FromXml(it);
02522 }

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

Definition at line 788 of file Iconf.h.

00788 {}


Member Function Documentation

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

Definition at line 2526 of file Iconf.cpp.

References _element_bind.

Referenced by AJP13::net_alhem_1_0_server::Configuration_t::FromXml(), and NetworkTyp().

02527 {
02528         if (!it.Exists("bind"))
02529                 throw Xml::XmlException("missing required node in element 'networkTyp': bind");
02530         {
02531                 Xml::XmlNode n(it, "bind");
02532                 while (n)
02533                 {
02534                         net_alhem_1_0_server_typ::NetworkTyp::Bind_t tmp(n);
02535                         _element_bind.push_back( tmp );
02536                         ++n;
02537                 }
02538         }
02539 }

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

Definition at line 2543 of file Iconf.cpp.

References _element_bind, and AJP13::net_alhem_1_0_server_typ::NetworkTyp::Bind_t::ToString().

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

02544 {
02545         std::string r;
02546         if (!name.empty())
02547                 r += "<" + name + ">";
02548         for (std::list<net_alhem_1_0_server_typ::NetworkTyp::Bind_t>::const_iterator it = _element_bind.begin(); it != _element_bind.end(); it++)
02549         {
02550                 const net_alhem_1_0_server_typ::NetworkTyp::Bind_t& ref = *it;
02551                 r += ref.ToString("bind");
02552         }
02553         if (!name.empty())
02554                 r += "</" + name + ">";
02555         return r;
02556 }

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

Definition at line 2560 of file Iconf.cpp.

References BindIsSet().

Referenced by AJP13::net_alhem_1_0_server::Configuration_t::Network_typIsSet().

02561 {
02562         return BindIsSet();
02563 }

const std::list< net_alhem_1_0_server_typ::NetworkTyp::Bind_t > & AJP13::net_alhem_1_0_server_typ::NetworkTyp::GetBind (  )  const

Definition at line 2567 of file Iconf.cpp.

References _element_bind.

02568 {
02569         return _element_bind;
02570 }

std::list< net_alhem_1_0_server_typ::NetworkTyp::Bind_t > & AJP13::net_alhem_1_0_server_typ::NetworkTyp::GetBind (  ) 

Definition at line 2573 of file Iconf.cpp.

References _element_bind.

02574 {
02575         return _element_bind;
02576 }

void AJP13::net_alhem_1_0_server_typ::NetworkTyp::SetBind ( const std::list< net_alhem_1_0_server_typ::NetworkTyp::Bind_t > &  bind  ) 

Definition at line 2579 of file Iconf.cpp.

References _element_bind.

02580 {
02581         _element_bind = bind;
02582 }

bool AJP13::net_alhem_1_0_server_typ::NetworkTyp::BindIsSet (  )  const

Definition at line 2586 of file Iconf.cpp.

References _element_bind.

Referenced by IsSet().

02587 {
02588         return !_element_bind.empty();
02589 }


Member Data Documentation

Definition at line 803 of file Iconf.h.

Referenced by BindIsSet(), FromXml(), GetBind(), SetBind(), and ToString().


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