AJP13::net_alhem_1_0_server::Hosts::ExtendLog_t Class Reference

#include <Iconf.h>

Inheritance diagram for AJP13::net_alhem_1_0_server::Hosts::ExtendLog_t:

Inheritance graph
[legend]
Collaboration diagram for AJP13::net_alhem_1_0_server::Hosts::ExtendLog_t:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ExtendLog_t ()
 ExtendLog_t (const Xml::XmlNode &it)
virtual ~ExtendLog_t ()
void FromXml (const Xml::XmlNode &it)
const std::string ToString (const std::string &name="") const
bool IsSet () const
const std::string & GetAddress () const
void SetAddress (const std::string &address)
const std::string & GetCity () const
void SetCity (const std::string &city)
const std::string & GetCountry () const
void SetCountry (const std::string &country)
bool AddressIsSet () const
bool CityIsSet () const
bool CountryIsSet () const

Private Attributes

std::string _element_address
std::string _element_city
std::string _element_country
bool _element_address_is_set
bool _element_city_is_set
bool _element_country_is_set


Detailed Description

Definition at line 567 of file Iconf.h.


Constructor & Destructor Documentation

AJP13::net_alhem_1_0_server::Hosts::ExtendLog_t::ExtendLog_t (  ) 

Definition at line 1920 of file Iconf.cpp.

01921 : Log()
01922 , _element_address_is_set(false)
01923 , _element_city_is_set(false)
01924 , _element_country_is_set(false)
01925 {
01926 }

AJP13::net_alhem_1_0_server::Hosts::ExtendLog_t::ExtendLog_t ( const Xml::XmlNode &  it  ) 

Definition at line 1930 of file Iconf.cpp.

References FromXml().

01931 : Log()
01932 , _element_address_is_set(false)
01933 , _element_city_is_set(false)
01934 , _element_country_is_set(false)
01935 {
01936         FromXml(it);
01937 }

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

Definition at line 572 of file Iconf.h.

00572 {}


Member Function Documentation

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

Reimplemented from AJP13::net_alhem_1_0_server::Log.

Definition at line 1941 of file Iconf.cpp.

References AJP13::net_alhem_1_0_server::Log::FromXml(), SetAddress(), SetCity(), and SetCountry().

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

01942 {
01943         Log::FromXml(it);
01944         if (!it.Exists("address"))
01945                 throw Xml::XmlException("missing required node in element 'extendLog_t': address");
01946         SetAddress( it["address"] );
01947         if (!it.Exists("city"))
01948                 throw Xml::XmlException("missing required node in element 'extendLog_t': city");
01949         SetCity( it["city"] );
01950         if (!it.Exists("country"))
01951                 throw Xml::XmlException("missing required node in element 'extendLog_t': country");
01952         SetCountry( it["country"] );
01953 }

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

Reimplemented from AJP13::net_alhem_1_0_server::Log.

Definition at line 1957 of file Iconf.cpp.

References _element_address, _element_city, _element_country, and AJP13::net_alhem_1_0_server::Log::ToString().

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

01958 {
01959         std::string r;
01960         if (!name.empty())
01961                 r += "<" + name + ">";
01962         r += Log::ToString();
01963         r += "<address>" + _element_address + "</address>";
01964         r += "<city>" + _element_city + "</city>";
01965         r += "<country>" + _element_country + "</country>";
01966         if (!name.empty())
01967                 r += "</" + name + ">";
01968         return r;
01969 }

bool AJP13::net_alhem_1_0_server::Hosts::ExtendLog_t::IsSet (  )  const

Reimplemented from AJP13::net_alhem_1_0_server::Log.

Definition at line 1973 of file Iconf.cpp.

References AddressIsSet(), CityIsSet(), and CountryIsSet().

Referenced by AJP13::net_alhem_1_0_server::Hosts::ExtendLogIsSet().

01974 {
01975         return AddressIsSet() || CityIsSet() || CountryIsSet();
01976 }

const std::string & AJP13::net_alhem_1_0_server::Hosts::ExtendLog_t::GetAddress (  )  const

Definition at line 1980 of file Iconf.cpp.

References _element_address.

01981 {
01982         return _element_address;
01983 }

void AJP13::net_alhem_1_0_server::Hosts::ExtendLog_t::SetAddress ( const std::string &  address  ) 

Definition at line 1986 of file Iconf.cpp.

References _element_address, and _element_address_is_set.

Referenced by FromXml().

01987 {
01988         _element_address = address;
01989         _element_address_is_set = true;
01990 }

const std::string & AJP13::net_alhem_1_0_server::Hosts::ExtendLog_t::GetCity (  )  const

Definition at line 1994 of file Iconf.cpp.

References _element_city.

01995 {
01996         return _element_city;
01997 }

void AJP13::net_alhem_1_0_server::Hosts::ExtendLog_t::SetCity ( const std::string &  city  ) 

Definition at line 2000 of file Iconf.cpp.

References _element_city, and _element_city_is_set.

Referenced by FromXml().

02001 {
02002         _element_city = city;
02003         _element_city_is_set = true;
02004 }

const std::string & AJP13::net_alhem_1_0_server::Hosts::ExtendLog_t::GetCountry (  )  const

Definition at line 2008 of file Iconf.cpp.

References _element_country.

02009 {
02010         return _element_country;
02011 }

void AJP13::net_alhem_1_0_server::Hosts::ExtendLog_t::SetCountry ( const std::string &  country  ) 

Definition at line 2014 of file Iconf.cpp.

References _element_country, and _element_country_is_set.

Referenced by FromXml().

02015 {
02016         _element_country = country;
02017         _element_country_is_set = true;
02018 }

bool AJP13::net_alhem_1_0_server::Hosts::ExtendLog_t::AddressIsSet (  )  const [inline]

Definition at line 589 of file Iconf.h.

References _element_address_is_set.

Referenced by IsSet().

00589 { return _element_address_is_set; }

bool AJP13::net_alhem_1_0_server::Hosts::ExtendLog_t::CityIsSet (  )  const [inline]

Definition at line 590 of file Iconf.h.

References _element_city_is_set.

Referenced by IsSet().

00590 { return _element_city_is_set; }

bool AJP13::net_alhem_1_0_server::Hosts::ExtendLog_t::CountryIsSet (  )  const [inline]

Definition at line 591 of file Iconf.h.

References _element_country_is_set.

Referenced by IsSet().

00591 { return _element_country_is_set; }


Member Data Documentation

Definition at line 594 of file Iconf.h.

Referenced by GetAddress(), SetAddress(), and ToString().

Definition at line 595 of file Iconf.h.

Referenced by GetCity(), SetCity(), and ToString().

Definition at line 596 of file Iconf.h.

Referenced by GetCountry(), SetCountry(), and ToString().

Definition at line 597 of file Iconf.h.

Referenced by AddressIsSet(), and SetAddress().

Definition at line 598 of file Iconf.h.

Referenced by CityIsSet(), and SetCity().

Definition at line 599 of file Iconf.h.

Referenced by CountryIsSet(), and SetCountry().


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