#include <Iconf.h>
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 |
Definition at line 299 of file Iconf.h.
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] |
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; }
std::string AJP13::net_alhem_1_0_server::Hosts::Host_t::Alias_t::_attribute_name [private] |
std::string AJP13::net_alhem_1_0_server::Hosts::Host_t::Alias_t::_attribute_redirect [private] |