AJP13::net_alhem_1_0_server::Hosts::DefaultHost_t Class Reference

#include <Iconf.h>

List of all members.

Public Member Functions

 DefaultHost_t ()
 DefaultHost_t (const Xml::XmlNode &it)
virtual ~DefaultHost_t ()
void FromXml (const Xml::XmlNode &it)
const std::string ToString (const std::string &name="") const
bool IsSet () const
bool GetRedirect () const
void SetRedirect (bool redirect)
const std::string & GetTest1 () const
void SetTest1 (const std::string &test1)
int GetTest2 () const
void SetTest2 (int test2)
int GetTest3 () const
void SetTest3 (int test3)
const std::string & Get () const
void Set (const std::string &)
bool RedirectIsSet () const
bool Test1IsSet () const
bool Test2IsSet () const
bool Test3IsSet () const

Private Attributes

bool _attribute_redirect
std::string _attribute_test1
int _attribute_test2
int _attribute_test3
std::string m_mixed_content
bool _attribute_redirect_is_set
bool _attribute_test1_is_set
bool _attribute_test2_is_set
bool _attribute_test3_is_set


Detailed Description

Definition at line 524 of file Iconf.h.


Constructor & Destructor Documentation

AJP13::net_alhem_1_0_server::Hosts::DefaultHost_t::DefaultHost_t (  ) 

Definition at line 1771 of file Iconf.cpp.

01772 : _attribute_redirect(false)
01773 , _attribute_test1("Anders")
01774 , _attribute_test2(12345)
01775 , _attribute_test3(1)
01776 , _attribute_redirect_is_set(false)
01777 , _attribute_test1_is_set(true)
01778 , _attribute_test2_is_set(true)
01779 , _attribute_test3_is_set(true)
01780 {
01781 }

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

Definition at line 1785 of file Iconf.cpp.

References FromXml().

01786 : _attribute_redirect(false)
01787 , _attribute_test1("Anders")
01788 , _attribute_test2(12345)
01789 , _attribute_test3(1)
01790 , _attribute_redirect_is_set(false)
01791 , _attribute_test1_is_set(true)
01792 , _attribute_test2_is_set(true)
01793 , _attribute_test3_is_set(true)
01794 {
01795         FromXml(it);
01796 }

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

Definition at line 529 of file Iconf.h.

00529 {}


Member Function Documentation

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

Definition at line 1800 of file Iconf.cpp.

References m_mixed_content, SetRedirect(), SetTest1(), SetTest2(), and SetTest3().

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

01801 {
01802         if (it.PropertyExists("redirect"))
01803                 SetRedirect( atoi(it.GetProperty("redirect").c_str()) );
01804         if (it.PropertyExists("test1"))
01805                 SetTest1(it.GetProperty("test1"));
01806         if (it.PropertyExists("test2"))
01807                 SetTest2( atoi(it.GetProperty("test2").c_str()) );
01808         if (it.PropertyExists("test3"))
01809                 SetTest3( atoi(it.GetProperty("test3").c_str()) );
01810         m_mixed_content = it.GetContent();
01811 }

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

Definition at line 1815 of file Iconf.cpp.

References GetRedirect(), GetTest1(), GetTest2(), GetTest3(), m_mixed_content, RedirectIsSet(), Test1IsSet(), Test2IsSet(), and Test3IsSet().

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

01816 {
01817         std::string r;
01818         if (!name.empty())
01819                 r += "<" + name;
01820         if (RedirectIsSet())
01821         {
01822                 r = r + " redirect='" + Utility::l2string(GetRedirect()) + "'";
01823         }
01824         if (Test1IsSet())
01825                 r += " test1='" + GetTest1() + "'";
01826         if (Test2IsSet())
01827         {
01828                 r = r + " test2='" + Utility::l2string(GetTest2()) + "'";
01829         }
01830         if (Test3IsSet())
01831         {
01832                 r = r + " test3='" + Utility::l2string(GetTest3()) + "'";
01833         }
01834         r += ">";
01835         r += m_mixed_content;
01836         if (!name.empty())
01837                 r += "</" + name + ">";
01838         return r;
01839 }

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

Definition at line 1843 of file Iconf.cpp.

References m_mixed_content, RedirectIsSet(), Test1IsSet(), Test2IsSet(), and Test3IsSet().

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

01844 {
01845         return RedirectIsSet() || Test1IsSet() || Test2IsSet() || Test3IsSet() || !m_mixed_content.empty();
01846 }

bool AJP13::net_alhem_1_0_server::Hosts::DefaultHost_t::GetRedirect (  )  const

Definition at line 1850 of file Iconf.cpp.

References _attribute_redirect.

Referenced by ToString().

01851 {
01852         return _attribute_redirect;
01853 }

void AJP13::net_alhem_1_0_server::Hosts::DefaultHost_t::SetRedirect ( bool  redirect  ) 

Definition at line 1856 of file Iconf.cpp.

References _attribute_redirect, and _attribute_redirect_is_set.

Referenced by FromXml().

01857 {
01858         _attribute_redirect = redirect;
01859         _attribute_redirect_is_set = true;
01860 }

const std::string & AJP13::net_alhem_1_0_server::Hosts::DefaultHost_t::GetTest1 (  )  const

Definition at line 1864 of file Iconf.cpp.

References _attribute_test1.

Referenced by ToString().

01865 {
01866         return _attribute_test1;
01867 }

void AJP13::net_alhem_1_0_server::Hosts::DefaultHost_t::SetTest1 ( const std::string &  test1  ) 

Definition at line 1870 of file Iconf.cpp.

References _attribute_test1, and _attribute_test1_is_set.

Referenced by FromXml().

01871 {
01872         _attribute_test1 = test1;
01873         _attribute_test1_is_set = true;
01874 }

int AJP13::net_alhem_1_0_server::Hosts::DefaultHost_t::GetTest2 (  )  const

Definition at line 1878 of file Iconf.cpp.

References _attribute_test2.

Referenced by ToString().

01879 {
01880         return _attribute_test2;
01881 }

void AJP13::net_alhem_1_0_server::Hosts::DefaultHost_t::SetTest2 ( int  test2  ) 

Definition at line 1884 of file Iconf.cpp.

References _attribute_test2, and _attribute_test2_is_set.

Referenced by FromXml().

01885 {
01886         _attribute_test2 = test2;
01887         _attribute_test2_is_set = true;
01888 }

int AJP13::net_alhem_1_0_server::Hosts::DefaultHost_t::GetTest3 (  )  const

Definition at line 1892 of file Iconf.cpp.

References _attribute_test3.

Referenced by ToString().

01893 {
01894         return _attribute_test3;
01895 }

void AJP13::net_alhem_1_0_server::Hosts::DefaultHost_t::SetTest3 ( int  test3  ) 

Definition at line 1898 of file Iconf.cpp.

References _attribute_test3, and _attribute_test3_is_set.

Referenced by FromXml().

01899 {
01900         _attribute_test3 = test3;
01901         _attribute_test3_is_set = true;
01902 }

const std::string & AJP13::net_alhem_1_0_server::Hosts::DefaultHost_t::Get (  )  const

Definition at line 1906 of file Iconf.cpp.

References m_mixed_content.

01907 {
01908         return m_mixed_content;
01909 }

void AJP13::net_alhem_1_0_server::Hosts::DefaultHost_t::Set ( const std::string &  x  ) 

Definition at line 1913 of file Iconf.cpp.

References m_mixed_content.

01914 {
01915         m_mixed_content = x;
01916 }

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

Definition at line 549 of file Iconf.h.

References _attribute_redirect_is_set.

Referenced by IsSet(), and ToString().

00549 { return _attribute_redirect_is_set; }

bool AJP13::net_alhem_1_0_server::Hosts::DefaultHost_t::Test1IsSet (  )  const [inline]

Definition at line 550 of file Iconf.h.

References _attribute_test1_is_set.

Referenced by IsSet(), and ToString().

00550 { return _attribute_test1_is_set; }

bool AJP13::net_alhem_1_0_server::Hosts::DefaultHost_t::Test2IsSet (  )  const [inline]

Definition at line 551 of file Iconf.h.

References _attribute_test2_is_set.

Referenced by IsSet(), and ToString().

00551 { return _attribute_test2_is_set; }

bool AJP13::net_alhem_1_0_server::Hosts::DefaultHost_t::Test3IsSet (  )  const [inline]

Definition at line 552 of file Iconf.h.

References _attribute_test3_is_set.

Referenced by IsSet(), and ToString().

00552 { return _attribute_test3_is_set; }


Member Data Documentation

Definition at line 555 of file Iconf.h.

Referenced by GetRedirect(), and SetRedirect().

Definition at line 556 of file Iconf.h.

Referenced by GetTest1(), and SetTest1().

Definition at line 557 of file Iconf.h.

Referenced by GetTest2(), and SetTest2().

Definition at line 558 of file Iconf.h.

Referenced by GetTest3(), and SetTest3().

Definition at line 559 of file Iconf.h.

Referenced by FromXml(), Get(), IsSet(), Set(), and ToString().

Definition at line 560 of file Iconf.h.

Referenced by RedirectIsSet(), and SetRedirect().

Definition at line 561 of file Iconf.h.

Referenced by SetTest1(), and Test1IsSet().

Definition at line 562 of file Iconf.h.

Referenced by SetTest2(), and Test2IsSet().

Definition at line 563 of file Iconf.h.

Referenced by SetTest3(), and Test3IsSet().


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