AJP13::net_alhem_1_0_server::Hosts::HostDefaults_t Class Reference

#include <Iconf.h>

List of all members.

Public Member Functions

 HostDefaults_t ()
 HostDefaults_t (const Xml::XmlNode &it)
virtual ~HostDefaults_t ()
void FromXml (const Xml::XmlNode &it)
const std::string ToString (const std::string &name="") const
bool IsSet () const
const std::string & GetDocuments () const
void SetDocuments (const std::string &documents)
const std::string & GetScripts () const
void SetScripts (const std::string &scripts)
const std::string & GetLogs () const
void SetLogs (const std::string &logs)
const std::string & GetIndexDocument () const
void SetIndexDocument (const std::string &indexDocument)
const std::list
< net_alhem_1_0_server::Log > & 
GetLog () const
std::list
< net_alhem_1_0_server::Log > & 
GetLog ()
void SetLog (const std::list< net_alhem_1_0_server::Log > &log)
bool DocumentsIsSet () const
bool ScriptsIsSet () const
bool LogsIsSet () const
bool IndexDocumentIsSet () const
bool LogIsSet () const

Private Attributes

std::string _element_documents
std::string _element_scripts
std::string _element_logs
std::string _element_indexDocument
std::list
< net_alhem_1_0_server::Log
_element_log
bool _element_documents_is_set
bool _element_scripts_is_set
bool _element_logs_is_set
bool _element_indexDocument_is_set


Detailed Description

Definition at line 248 of file Iconf.h.


Constructor & Destructor Documentation

AJP13::net_alhem_1_0_server::Hosts::HostDefaults_t::HostDefaults_t (  ) 

Definition at line 869 of file Iconf.cpp.

00870 : _element_documents_is_set(false)
00871 , _element_scripts_is_set(false)
00872 , _element_logs_is_set(false)
00873 , _element_indexDocument_is_set(false)
00874 {
00875 }

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

Definition at line 879 of file Iconf.cpp.

References FromXml().

00880 : _element_documents_is_set(false)
00881 , _element_scripts_is_set(false)
00882 , _element_logs_is_set(false)
00883 , _element_indexDocument_is_set(false)
00884 {
00885         FromXml(it);
00886 }

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

Definition at line 253 of file Iconf.h.

00253 {}


Member Function Documentation

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

Definition at line 890 of file Iconf.cpp.

References _element_log, SetDocuments(), SetIndexDocument(), SetLogs(), and SetScripts().

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

00891 {
00892         if (it.Exists("documents"))
00893                 SetDocuments( it["documents"] );
00894         if (it.Exists("scripts"))
00895                 SetScripts( it["scripts"] );
00896         if (it.Exists("logs"))
00897                 SetLogs( it["logs"] );
00898         if (it.Exists("indexDocument"))
00899                 SetIndexDocument( it["indexDocument"] );
00900         {
00901                 Xml::XmlNode n(it, "log");
00902                 while (n)
00903                 {
00904                         net_alhem_1_0_server::Log tmp(n);
00905                         _element_log.push_back( tmp );
00906                         ++n;
00907                 }
00908         }
00909 }

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

Definition at line 913 of file Iconf.cpp.

References _element_documents, _element_documents_is_set, _element_indexDocument, _element_indexDocument_is_set, _element_log, _element_logs, _element_logs_is_set, _element_scripts, _element_scripts_is_set, and AJP13::net_alhem_1_0_server::Log::ToString().

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

00914 {
00915         std::string r;
00916         if (!name.empty())
00917                 r += "<" + name + ">";
00918         if (_element_documents_is_set)
00919                 r += "<documents>" + _element_documents + "</documents>";
00920         if (_element_scripts_is_set)
00921                 r += "<scripts>" + _element_scripts + "</scripts>";
00922         if (_element_logs_is_set)
00923                 r += "<logs>" + _element_logs + "</logs>";
00924         if (_element_indexDocument_is_set)
00925                 r += "<indexDocument>" + _element_indexDocument + "</indexDocument>";
00926         for (std::list<net_alhem_1_0_server::Log>::const_iterator it = _element_log.begin(); it != _element_log.end(); it++)
00927         {
00928                 const net_alhem_1_0_server::Log& ref = *it;
00929                 r += ref.ToString("log");
00930         }
00931         if (!name.empty())
00932                 r += "</" + name + ">";
00933         return r;
00934 }

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

const std::string & AJP13::net_alhem_1_0_server::Hosts::HostDefaults_t::GetDocuments (  )  const

Definition at line 945 of file Iconf.cpp.

References _element_documents.

00946 {
00947         return _element_documents;
00948 }

void AJP13::net_alhem_1_0_server::Hosts::HostDefaults_t::SetDocuments ( const std::string &  documents  ) 

Definition at line 951 of file Iconf.cpp.

References _element_documents, and _element_documents_is_set.

Referenced by FromXml().

00952 {
00953         _element_documents = documents;
00954         _element_documents_is_set = true;
00955 }

const std::string & AJP13::net_alhem_1_0_server::Hosts::HostDefaults_t::GetScripts (  )  const

Definition at line 959 of file Iconf.cpp.

References _element_scripts.

00960 {
00961         return _element_scripts;
00962 }

void AJP13::net_alhem_1_0_server::Hosts::HostDefaults_t::SetScripts ( const std::string &  scripts  ) 

Definition at line 965 of file Iconf.cpp.

References _element_scripts, and _element_scripts_is_set.

Referenced by FromXml().

00966 {
00967         _element_scripts = scripts;
00968         _element_scripts_is_set = true;
00969 }

const std::string & AJP13::net_alhem_1_0_server::Hosts::HostDefaults_t::GetLogs (  )  const

Definition at line 973 of file Iconf.cpp.

References _element_logs.

00974 {
00975         return _element_logs;
00976 }

void AJP13::net_alhem_1_0_server::Hosts::HostDefaults_t::SetLogs ( const std::string &  logs  ) 

Definition at line 979 of file Iconf.cpp.

References _element_logs, and _element_logs_is_set.

Referenced by FromXml().

00980 {
00981         _element_logs = logs;
00982         _element_logs_is_set = true;
00983 }

const std::string & AJP13::net_alhem_1_0_server::Hosts::HostDefaults_t::GetIndexDocument (  )  const

Definition at line 987 of file Iconf.cpp.

References _element_indexDocument.

00988 {
00989         return _element_indexDocument;
00990 }

void AJP13::net_alhem_1_0_server::Hosts::HostDefaults_t::SetIndexDocument ( const std::string &  indexDocument  ) 

Definition at line 993 of file Iconf.cpp.

References _element_indexDocument, and _element_indexDocument_is_set.

Referenced by FromXml().

00994 {
00995         _element_indexDocument = indexDocument;
00996         _element_indexDocument_is_set = true;
00997 }

const std::list< net_alhem_1_0_server::Log > & AJP13::net_alhem_1_0_server::Hosts::HostDefaults_t::GetLog (  )  const

Definition at line 1001 of file Iconf.cpp.

References _element_log.

01002 {
01003         return _element_log;
01004 }

std::list< net_alhem_1_0_server::Log > & AJP13::net_alhem_1_0_server::Hosts::HostDefaults_t::GetLog (  ) 

Definition at line 1007 of file Iconf.cpp.

References _element_log.

01008 {
01009         return _element_log;
01010 }

void AJP13::net_alhem_1_0_server::Hosts::HostDefaults_t::SetLog ( const std::list< net_alhem_1_0_server::Log > &  log  ) 

Definition at line 1013 of file Iconf.cpp.

References _element_log.

01014 {
01015         _element_log = log;
01016 }

bool AJP13::net_alhem_1_0_server::Hosts::HostDefaults_t::DocumentsIsSet (  )  const [inline]

Definition at line 277 of file Iconf.h.

References _element_documents_is_set.

Referenced by IsSet().

00277 { return _element_documents_is_set; }

bool AJP13::net_alhem_1_0_server::Hosts::HostDefaults_t::ScriptsIsSet (  )  const [inline]

Definition at line 278 of file Iconf.h.

References _element_scripts_is_set.

Referenced by IsSet().

00278 { return _element_scripts_is_set; }

bool AJP13::net_alhem_1_0_server::Hosts::HostDefaults_t::LogsIsSet (  )  const [inline]

Definition at line 279 of file Iconf.h.

References _element_logs_is_set.

Referenced by IsSet().

00279 { return _element_logs_is_set; }

bool AJP13::net_alhem_1_0_server::Hosts::HostDefaults_t::IndexDocumentIsSet (  )  const [inline]

Definition at line 280 of file Iconf.h.

References _element_indexDocument_is_set.

Referenced by IsSet().

bool AJP13::net_alhem_1_0_server::Hosts::HostDefaults_t::LogIsSet (  )  const

Definition at line 1020 of file Iconf.cpp.

References _element_log.

Referenced by IsSet().

01021 {
01022         return !_element_log.empty();
01023 }


Member Data Documentation

Definition at line 284 of file Iconf.h.

Referenced by GetDocuments(), SetDocuments(), and ToString().

Definition at line 285 of file Iconf.h.

Referenced by GetScripts(), SetScripts(), and ToString().

Definition at line 286 of file Iconf.h.

Referenced by GetLogs(), SetLogs(), and ToString().

Definition at line 287 of file Iconf.h.

Referenced by GetIndexDocument(), SetIndexDocument(), and ToString().

Definition at line 288 of file Iconf.h.

Referenced by FromXml(), GetLog(), LogIsSet(), SetLog(), and ToString().

Definition at line 289 of file Iconf.h.

Referenced by DocumentsIsSet(), SetDocuments(), and ToString().

Definition at line 290 of file Iconf.h.

Referenced by ScriptsIsSet(), SetScripts(), and ToString().

Definition at line 291 of file Iconf.h.

Referenced by LogsIsSet(), SetLogs(), and ToString().

Definition at line 292 of file Iconf.h.

Referenced by IndexDocumentIsSet(), SetIndexDocument(), and ToString().


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