#include <Iconf.h>
Definition at line 914 of file Iconf.h.
AJP13::net_alhem_1_0_server::Configuration_t::Configuration_t | ( | ) |
AJP13::net_alhem_1_0_server::Configuration_t::Configuration_t | ( | const Xml::XmlNode & | it | ) |
Definition at line 2226 of file Iconf.cpp.
References FromXml().
02227 : _element_rootDir_is_set(false) 02228 { 02229 FromXml(it); 02230 }
virtual AJP13::net_alhem_1_0_server::Configuration_t::~Configuration_t | ( | ) | [inline, virtual] |
void AJP13::net_alhem_1_0_server::Configuration_t::FromXml | ( | const Xml::XmlNode & | it | ) |
Definition at line 2234 of file Iconf.cpp.
References _element_hosts, _element_network, _element_network_typ, _element_security, AJP13::net_alhem_1_0_server_typ::NetworkTyp::FromXml(), AJP13::net_alhem_1_0_server::Network::FromXml(), AJP13::net_alhem_1_0_server::Hosts::FromXml(), AJP13::net_alhem_1_0_server::Security::FromXml(), and SetRootDir().
Referenced by Configuration_t().
02235 { 02236 if (!it.Exists("rootDir")) 02237 throw Xml::XmlException("missing required node in element 'configuration_t': rootDir"); 02238 SetRootDir( it["rootDir"] ); 02239 if (!it.Exists("security")) 02240 throw Xml::XmlException("missing required node in element 'configuration_t': security"); 02241 { 02242 Xml::XmlNode n(it, "security"); 02243 if (n) 02244 _element_security.FromXml( n ); 02245 } 02246 if (!it.Exists("hosts")) 02247 throw Xml::XmlException("missing required node in element 'configuration_t': hosts"); 02248 { 02249 Xml::XmlNode n(it, "hosts"); 02250 if (n) 02251 _element_hosts.FromXml( n ); 02252 } 02253 if (!it.Exists("network")) 02254 throw Xml::XmlException("missing required node in element 'configuration_t': network"); 02255 { 02256 Xml::XmlNode n(it, "network"); 02257 if (n) 02258 _element_network.FromXml( n ); 02259 } 02260 if (!it.Exists("network_typ")) 02261 throw Xml::XmlException("missing required node in element 'configuration_t': network_typ"); 02262 { 02263 Xml::XmlNode n(it, "network_typ"); 02264 if (n) 02265 _element_network_typ.FromXml( n ); 02266 } 02267 }
const std::string AJP13::net_alhem_1_0_server::Configuration_t::ToString | ( | const std::string & | name = "" |
) | const |
Definition at line 2271 of file Iconf.cpp.
References _element_hosts, _element_network, _element_network_typ, _element_rootDir, _element_security, AJP13::net_alhem_1_0_server_typ::NetworkTyp::ToString(), AJP13::net_alhem_1_0_server::Network::ToString(), AJP13::net_alhem_1_0_server::Hosts::ToString(), and AJP13::net_alhem_1_0_server::Security::ToString().
02272 { 02273 std::string r; 02274 if (!name.empty()) 02275 r += "<" + name + ">"; 02276 r += "<rootDir>" + _element_rootDir + "</rootDir>"; 02277 r += _element_security.ToString("security"); 02278 r += _element_hosts.ToString("hosts"); 02279 r += _element_network.ToString("network"); 02280 r += _element_network_typ.ToString("network_typ"); 02281 if (!name.empty()) 02282 r += "</" + name + ">"; 02283 return r; 02284 }
bool AJP13::net_alhem_1_0_server::Configuration_t::IsSet | ( | ) | const |
Definition at line 2288 of file Iconf.cpp.
References HostsIsSet(), Network_typIsSet(), NetworkIsSet(), RootDirIsSet(), and SecurityIsSet().
02289 { 02290 return RootDirIsSet() || SecurityIsSet() || HostsIsSet() || NetworkIsSet() || Network_typIsSet(); 02291 }
const std::string & AJP13::net_alhem_1_0_server::Configuration_t::GetRootDir | ( | ) | const |
Definition at line 2295 of file Iconf.cpp.
References _element_rootDir.
02296 { 02297 return _element_rootDir; 02298 }
void AJP13::net_alhem_1_0_server::Configuration_t::SetRootDir | ( | const std::string & | rootDir | ) |
Definition at line 2301 of file Iconf.cpp.
References _element_rootDir, and _element_rootDir_is_set.
Referenced by FromXml().
02302 { 02303 _element_rootDir = rootDir; 02304 _element_rootDir_is_set = true; 02305 }
const net_alhem_1_0_server::Security & AJP13::net_alhem_1_0_server::Configuration_t::GetSecurity | ( | ) | const |
Definition at line 2309 of file Iconf.cpp.
References _element_security.
02310 { 02311 return _element_security; 02312 }
net_alhem_1_0_server::Security & AJP13::net_alhem_1_0_server::Configuration_t::GetSecurity | ( | ) |
Definition at line 2315 of file Iconf.cpp.
References _element_security.
02316 { 02317 return _element_security; 02318 }
void AJP13::net_alhem_1_0_server::Configuration_t::SetSecurity | ( | const net_alhem_1_0_server::Security & | security | ) |
Definition at line 2321 of file Iconf.cpp.
References _element_security.
02322 { 02323 _element_security = security; 02324 }
const net_alhem_1_0_server::Hosts & AJP13::net_alhem_1_0_server::Configuration_t::GetHosts | ( | ) | const |
Definition at line 2328 of file Iconf.cpp.
References _element_hosts.
02329 { 02330 return _element_hosts; 02331 }
net_alhem_1_0_server::Hosts & AJP13::net_alhem_1_0_server::Configuration_t::GetHosts | ( | ) |
Definition at line 2334 of file Iconf.cpp.
References _element_hosts.
02335 { 02336 return _element_hosts; 02337 }
void AJP13::net_alhem_1_0_server::Configuration_t::SetHosts | ( | const net_alhem_1_0_server::Hosts & | hosts | ) |
Definition at line 2340 of file Iconf.cpp.
References _element_hosts.
02341 { 02342 _element_hosts = hosts; 02343 }
const net_alhem_1_0_server::Network & AJP13::net_alhem_1_0_server::Configuration_t::GetNetwork | ( | ) | const |
Definition at line 2347 of file Iconf.cpp.
References _element_network.
02348 { 02349 return _element_network; 02350 }
net_alhem_1_0_server::Network & AJP13::net_alhem_1_0_server::Configuration_t::GetNetwork | ( | ) |
Definition at line 2353 of file Iconf.cpp.
References _element_network.
02354 { 02355 return _element_network; 02356 }
void AJP13::net_alhem_1_0_server::Configuration_t::SetNetwork | ( | const net_alhem_1_0_server::Network & | network | ) |
Definition at line 2359 of file Iconf.cpp.
References _element_network.
02360 { 02361 _element_network = network; 02362 }
const net_alhem_1_0_server_typ::NetworkTyp & AJP13::net_alhem_1_0_server::Configuration_t::GetNetwork_typ | ( | ) | const |
Definition at line 2366 of file Iconf.cpp.
References _element_network_typ.
02367 { 02368 return _element_network_typ; 02369 }
net_alhem_1_0_server_typ::NetworkTyp & AJP13::net_alhem_1_0_server::Configuration_t::GetNetwork_typ | ( | ) |
Definition at line 2372 of file Iconf.cpp.
References _element_network_typ.
02373 { 02374 return _element_network_typ; 02375 }
void AJP13::net_alhem_1_0_server::Configuration_t::SetNetwork_typ | ( | const net_alhem_1_0_server_typ::NetworkTyp & | network_typ | ) |
Definition at line 2378 of file Iconf.cpp.
References _element_network_typ.
02379 { 02380 _element_network_typ = network_typ; 02381 }
bool AJP13::net_alhem_1_0_server::Configuration_t::RootDirIsSet | ( | ) | const [inline] |
Definition at line 946 of file Iconf.h.
References _element_rootDir_is_set.
Referenced by IsSet().
00946 { return _element_rootDir_is_set; }
bool AJP13::net_alhem_1_0_server::Configuration_t::SecurityIsSet | ( | ) | const |
Definition at line 2385 of file Iconf.cpp.
References _element_security, and AJP13::net_alhem_1_0_server::Security::IsSet().
Referenced by IsSet().
02386 { 02387 return _element_security.IsSet(); 02388 }
bool AJP13::net_alhem_1_0_server::Configuration_t::HostsIsSet | ( | ) | const |
Definition at line 2392 of file Iconf.cpp.
References _element_hosts, and AJP13::net_alhem_1_0_server::Hosts::IsSet().
Referenced by IsSet().
02393 { 02394 return _element_hosts.IsSet(); 02395 }
bool AJP13::net_alhem_1_0_server::Configuration_t::NetworkIsSet | ( | ) | const |
Definition at line 2399 of file Iconf.cpp.
References _element_network, and AJP13::net_alhem_1_0_server::Network::IsSet().
Referenced by IsSet().
02400 { 02401 return _element_network.IsSet(); 02402 }
bool AJP13::net_alhem_1_0_server::Configuration_t::Network_typIsSet | ( | ) | const |
Definition at line 2406 of file Iconf.cpp.
References _element_network_typ, and AJP13::net_alhem_1_0_server_typ::NetworkTyp::IsSet().
Referenced by IsSet().
02407 { 02408 return _element_network_typ.IsSet(); 02409 }
std::string AJP13::net_alhem_1_0_server::Configuration_t::_element_rootDir [private] |
net_alhem_1_0_server::Security AJP13::net_alhem_1_0_server::Configuration_t::_element_security [private] |
Definition at line 954 of file Iconf.h.
Referenced by FromXml(), GetSecurity(), SecurityIsSet(), SetSecurity(), and ToString().
Definition at line 955 of file Iconf.h.
Referenced by FromXml(), GetHosts(), HostsIsSet(), SetHosts(), and ToString().
net_alhem_1_0_server::Network AJP13::net_alhem_1_0_server::Configuration_t::_element_network [private] |
Definition at line 956 of file Iconf.h.
Referenced by FromXml(), GetNetwork(), NetworkIsSet(), SetNetwork(), and ToString().
net_alhem_1_0_server_typ::NetworkTyp AJP13::net_alhem_1_0_server::Configuration_t::_element_network_typ [private] |
Definition at line 957 of file Iconf.h.
Referenced by FromXml(), GetNetwork_typ(), Network_typIsSet(), SetNetwork_typ(), and ToString().