AJP13::net_alhem_1_0_server::Hosts::Host_t::Alias_t Class Reference

#include <Iconf.h>

List of all members.

Public Member Functions

 Alias_t ()
 Alias_t (const Xml::XmlNode &it)
virtual ~Alias_t ()
void FromXml (const Xml::XmlNode &it)
const std::string ToString (const std::string &name="") const
bool IsSet () const
const std::string & GetName () const
void SetName (const std::string &name)
const std::string & GetRedirect () const
void SetRedirect (const std::string &redirect)
bool NameIsSet () const
bool RedirectIsSet () const

Private Attributes

std::string _attribute_name
std::string _attribute_redirect
bool _attribute_name_is_set
bool _attribute_redirect_is_set


Detailed Description

Definition at line 299 of file Iconf.h.


Constructor & Destructor Documentation

AJP13::net_alhem_1_0_server::Hosts::Host_t::Alias_t::Alias_t (  ) 

Definition at line 1386 of file Iconf.cpp.

01387 : _attribute_name_is_set(false)
01388 , _attribute_redirect_is_set(false)
01389 {
01390 }

AJP13::net_alhem_1_0_server::Hosts::Host_t::Alias_t::Alias_t ( const Xml::XmlNode &  it  ) 

Definition at line 1394 of file Iconf.cpp.

References FromXml().

01395 : _attribute_name_is_set(false)
01396 , _attribute_redirect_is_set(false)
01397 {
01398         FromXml(it);
01399 }

virtual AJP13::net_alhem_1_0_server::Hosts::Host_t::Alias_t::~Alias_t (  )  [inline, virtual]

Definition at line 304 of file Iconf.h.

00304 {}


Member Function Documentation

void AJP13::net_alhem_1_0_server::Hosts::Host_t::Alias_t::FromXml ( const Xml::XmlNode &  it  ) 

Definition at line 1403 of file Iconf.cpp.

References SetName(), and SetRedirect().

Referenced by Alias_t(), and AJP13::net_alhem_1_0_server::Hosts::Host_t::FromXml().

01404 {
01405         SetName(it.GetProperty("name"));
01406         SetRedirect(it.GetProperty("redirect"));
01407 }

const std::string AJP13::net_alhem_1_0_server::Hosts::Host_t::Alias_t::ToString ( const std::string &  name = ""  )  const

Definition at line 1411 of file Iconf.cpp.

References GetName(), and GetRedirect().

Referenced by AJP13::net_alhem_1_0_server::Hosts::Host_t::ToString().

01412 {
01413         std::string r;
01414         if (!name.empty())
01415                 r += "<" + name;
01416         r += " name='" + GetName() + "'";
01417         r += " redirect='" + GetRedirect() + "'";
01418         r += ">";
01419         if (!name.empty())
01420                 r += "</" + name + ">";
01421         return r;
01422 }

bool AJP13::net_alhem_1_0_server::Hosts::Host_t::Alias_t::IsSet (  )  const

Definition at line 1426 of file Iconf.cpp.

References NameIsSet(), and RedirectIsSet().

Referenced by AJP13::net_alhem_1_0_server::Hosts::Host_t::AliasIsSet().

01427 {
01428         return NameIsSet() || RedirectIsSet();
01429 }

const std::string & AJP13::net_alhem_1_0_server::Hosts::Host_t::Alias_t::GetName (  )  const

Definition at line 1433 of file Iconf.cpp.

References _attribute_name.

Referenced by ToString().

01434 {
01435         return _attribute_name;
01436 }

void AJP13::net_alhem_1_0_server::Hosts::Host_t::Alias_t::SetName ( const std::string &  name  ) 

Definition at line 1439 of file Iconf.cpp.

References _attribute_name, and _attribute_name_is_set.

Referenced by FromXml().

01440 {
01441         _attribute_name = name;
01442         _attribute_name_is_set = true;
01443 }

const std::string & AJP13::net_alhem_1_0_server::Hosts::Host_t::Alias_t::GetRedirect (  )  const

Definition at line 1447 of file Iconf.cpp.

References _attribute_redirect.

Referenced by ToString().

01448 {
01449         return _attribute_redirect;
01450 }

void AJP13::net_alhem_1_0_server::Hosts::Host_t::Alias_t::SetRedirect ( const std::string &  redirect  ) 

Definition at line 1453 of file Iconf.cpp.

References _attribute_redirect, and _attribute_redirect_is_set.

Referenced by FromXml().

01454 {
01455         _attribute_redirect = redirect;
01456         _attribute_redirect_is_set = true;
01457 }

bool AJP13::net_alhem_1_0_server::Hosts::Host_t::Alias_t::NameIsSet (  )  const [inline]

Definition at line 317 of file Iconf.h.

References _attribute_name_is_set.

Referenced by IsSet().

00317 { return _attribute_name_is_set; }

bool AJP13::net_alhem_1_0_server::Hosts::Host_t::Alias_t::RedirectIsSet (  )  const [inline]

Definition at line 318 of file Iconf.h.

References _attribute_redirect_is_set.

Referenced by IsSet().

00318 { return _attribute_redirect_is_set; }


Member Data Documentation

Definition at line 321 of file Iconf.h.

Referenced by GetName(), and SetName().

Definition at line 322 of file Iconf.h.

Referenced by GetRedirect(), and SetRedirect().

Definition at line 323 of file Iconf.h.

Referenced by NameIsSet(), and SetName().

Definition at line 324 of file Iconf.h.

Referenced by RedirectIsSet(), and SetRedirect().


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

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