00001 /* 00002 Copyright (C) 2008-2009 Anders Hedstrom (grymse@alhem.net) 00003 00004 This program is made available under the terms of the GNU GPL. 00005 00006 If you would like to use this program in a closed-source application, 00007 a separate license agreement is available. For information about 00008 the closed-source license agreement for this program, please 00009 visit http://www.alhem.net/Sockets/license.html and/or 00010 email license@alhem.net. 00011 00012 This program is free software; you can redistribute it and/or 00013 modify it under the terms of the GNU General Public License 00014 as published by the Free Software Foundation; either version 2 00015 of the License, or (at your option) any later version. 00016 00017 This program is distributed in the hope that it will be useful, 00018 but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 GNU General Public License for more details. 00021 00022 You should have received a copy of the GNU General Public License 00023 along with this program; if not, write to the Free Software 00024 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00025 */ 00026 00027 #include <string> 00028 #include <vector> 00029 #include <list> 00030 00031 namespace Xml { class XmlNode; } 00032 00033 namespace AJP13 { 00034 00036 namespace net_alhem_1_0_server { 00037 00038 // ----------------------------------------------------------------------------- 00039 class Security 00040 { 00041 public: 00042 class Group_t 00043 { 00044 public: 00045 Group_t(); 00046 Group_t(const Xml::XmlNode& it); 00047 virtual ~Group_t() {} 00048 00049 void FromXml(const Xml::XmlNode& it); 00050 00051 const std::string ToString(const std::string& name = "") const; 00052 00053 bool IsSet() const; 00054 00055 const std::string& GetName() const; 00056 void SetName(const std::string& name); 00057 00058 bool NameIsSet() const { return _attribute_name_is_set; } 00059 00060 private: 00061 std::string _attribute_name; 00062 bool _attribute_name_is_set; 00063 }; 00064 00065 public: 00066 class BasicAuthentication_t 00067 { 00068 public: 00069 class User_t 00070 { 00071 public: 00072 User_t(); 00073 User_t(const Xml::XmlNode& it); 00074 virtual ~User_t() {} 00075 00076 void FromXml(const Xml::XmlNode& it); 00077 00078 const std::string ToString(const std::string& name = "") const; 00079 00080 bool IsSet() const; 00081 00082 const std::string& GetLogin() const; 00083 void SetLogin(const std::string& login); 00084 const std::string& GetAuth() const; 00085 void SetAuth(const std::string& auth); 00086 const std::string& GetName() const; 00087 void SetName(const std::string& name); 00088 const std::string& GetGroups() const; 00089 void SetGroups(const std::string& groups); 00090 00091 bool LoginIsSet() const { return _attribute_login_is_set; } 00092 bool AuthIsSet() const { return _attribute_auth_is_set; } 00093 bool NameIsSet() const { return _attribute_name_is_set; } 00094 bool GroupsIsSet() const { return _attribute_groups_is_set; } 00095 00096 private: 00097 std::string _attribute_login; 00098 std::string _attribute_auth; 00099 std::string _attribute_name; 00100 std::string _attribute_groups; 00101 bool _attribute_login_is_set; 00102 bool _attribute_auth_is_set; 00103 bool _attribute_name_is_set; 00104 bool _attribute_groups_is_set; 00105 }; 00106 00107 public: 00108 BasicAuthentication_t(); 00109 BasicAuthentication_t(const Xml::XmlNode& it); 00110 virtual ~BasicAuthentication_t() {} 00111 00112 void FromXml(const Xml::XmlNode& it); 00113 00114 const std::string ToString(const std::string& name = "") const; 00115 00116 bool IsSet() const; 00117 00118 const net_alhem_1_0_server::Security::BasicAuthentication_t::User_t& GetUser() const; 00119 net_alhem_1_0_server::Security::BasicAuthentication_t::User_t& GetUser(); 00120 void SetUser(const net_alhem_1_0_server::Security::BasicAuthentication_t::User_t& user); 00121 00122 const std::string& GetName() const; 00123 void SetName(const std::string& name); 00124 00125 bool UserIsSet() const; 00126 00127 bool NameIsSet() const { return _attribute_name_is_set; } 00128 00129 private: 00130 net_alhem_1_0_server::Security::BasicAuthentication_t::User_t _element_user; 00131 std::string _attribute_name; 00132 bool _attribute_name_is_set; 00133 }; 00134 00135 public: 00136 class Authorization_t 00137 { 00138 public: 00139 Authorization_t(); 00140 Authorization_t(const Xml::XmlNode& it); 00141 virtual ~Authorization_t() {} 00142 00143 void FromXml(const Xml::XmlNode& it); 00144 00145 const std::string ToString(const std::string& name = "") const; 00146 00147 bool IsSet() const; 00148 00149 const std::list<std::string>& GetGroup() const; 00150 std::list<std::string>& GetGroup(); 00151 void SetGroup(const std::list<std::string>& group); 00152 00153 const std::list<std::string>& GetUser() const; 00154 std::list<std::string>& GetUser(); 00155 void SetUser(const std::list<std::string>& user); 00156 00157 const std::string& GetName() const; 00158 void SetName(const std::string& name); 00159 const std::string& GetLevel() const; 00160 void SetLevel(const std::string& level); 00161 00162 bool GroupIsSet() const; 00163 bool UserIsSet() const; 00164 00165 bool NameIsSet() const { return _attribute_name_is_set; } 00166 bool LevelIsSet() const { return _attribute_level_is_set; } 00167 00168 private: 00169 std::list<std::string> _element_group; 00170 std::list<std::string> _element_user; 00171 std::string _attribute_name; 00172 std::string _attribute_level; 00173 bool _attribute_name_is_set; 00174 bool _attribute_level_is_set; 00175 }; 00176 00177 public: 00178 Security(); 00179 Security(const Xml::XmlNode& it); 00180 virtual ~Security() {} 00181 00182 void FromXml(const Xml::XmlNode& it); 00183 00184 const std::string ToString(const std::string& name = "") const; 00185 00186 bool IsSet() const; 00187 00188 const std::list<net_alhem_1_0_server::Security::Group_t>& GetGroup() const; 00189 std::list<net_alhem_1_0_server::Security::Group_t>& GetGroup(); 00190 void SetGroup(const std::list<net_alhem_1_0_server::Security::Group_t>& group); 00191 00192 const net_alhem_1_0_server::Security::BasicAuthentication_t& GetBasicAuthentication() const; 00193 net_alhem_1_0_server::Security::BasicAuthentication_t& GetBasicAuthentication(); 00194 void SetBasicAuthentication(const net_alhem_1_0_server::Security::BasicAuthentication_t& basicAuthentication); 00195 00196 const net_alhem_1_0_server::Security::Authorization_t& GetAuthorization() const; 00197 net_alhem_1_0_server::Security::Authorization_t& GetAuthorization(); 00198 void SetAuthorization(const net_alhem_1_0_server::Security::Authorization_t& authorization); 00199 00200 bool GroupIsSet() const; 00201 bool BasicAuthenticationIsSet() const; 00202 bool AuthorizationIsSet() const; 00203 00204 private: 00205 std::list<net_alhem_1_0_server::Security::Group_t> _element_group; 00206 net_alhem_1_0_server::Security::BasicAuthentication_t _element_basicAuthentication; 00207 net_alhem_1_0_server::Security::Authorization_t _element_authorization; 00208 }; 00209 00210 // ----------------------------------------------------------------------------- 00211 class Log 00212 { 00213 public: 00214 Log(); 00215 Log(const Xml::XmlNode& it); 00216 virtual ~Log() {} 00217 00218 void FromXml(const Xml::XmlNode& it); 00219 00220 const std::string ToString(const std::string& name = "") const; 00221 00222 bool IsSet() const; 00223 00224 const std::string& GetFilename() const; 00225 void SetFilename(const std::string& filename); 00226 const std::string& GetType() const; 00227 void SetType(const std::string& type); 00228 const std::string& GetFormat() const; 00229 void SetFormat(const std::string& format); 00230 00231 bool FilenameIsSet() const { return _attribute_filename_is_set; } 00232 bool TypeIsSet() const { return _attribute_type_is_set; } 00233 bool FormatIsSet() const { return _attribute_format_is_set; } 00234 00235 private: 00236 std::string _attribute_filename; 00237 std::string _attribute_type; 00238 std::string _attribute_format; 00239 bool _attribute_filename_is_set; 00240 bool _attribute_type_is_set; 00241 bool _attribute_format_is_set; 00242 }; 00243 00244 // ----------------------------------------------------------------------------- 00245 class Hosts 00246 { 00247 public: 00248 class HostDefaults_t 00249 { 00250 public: 00251 HostDefaults_t(); 00252 HostDefaults_t(const Xml::XmlNode& it); 00253 virtual ~HostDefaults_t() {} 00254 00255 void FromXml(const Xml::XmlNode& it); 00256 00257 const std::string ToString(const std::string& name = "") const; 00258 00259 bool IsSet() const; 00260 00261 const std::string& GetDocuments() const; 00262 void SetDocuments(const std::string& documents); 00263 00264 const std::string& GetScripts() const; 00265 void SetScripts(const std::string& scripts); 00266 00267 const std::string& GetLogs() const; 00268 void SetLogs(const std::string& logs); 00269 00270 const std::string& GetIndexDocument() const; 00271 void SetIndexDocument(const std::string& indexDocument); 00272 00273 const std::list<net_alhem_1_0_server::Log>& GetLog() const; 00274 std::list<net_alhem_1_0_server::Log>& GetLog(); 00275 void SetLog(const std::list<net_alhem_1_0_server::Log>& log); 00276 00277 bool DocumentsIsSet() const { return _element_documents_is_set; } 00278 bool ScriptsIsSet() const { return _element_scripts_is_set; } 00279 bool LogsIsSet() const { return _element_logs_is_set; } 00280 bool IndexDocumentIsSet() const { return _element_indexDocument_is_set; } 00281 bool LogIsSet() const; 00282 00283 private: 00284 std::string _element_documents; 00285 std::string _element_scripts; 00286 std::string _element_logs; 00287 std::string _element_indexDocument; 00288 std::list<net_alhem_1_0_server::Log> _element_log; 00289 bool _element_documents_is_set; 00290 bool _element_scripts_is_set; 00291 bool _element_logs_is_set; 00292 bool _element_indexDocument_is_set; 00293 }; 00294 00295 public: 00296 class Host_t 00297 { 00298 public: 00299 class Alias_t 00300 { 00301 public: 00302 Alias_t(); 00303 Alias_t(const Xml::XmlNode& it); 00304 virtual ~Alias_t() {} 00305 00306 void FromXml(const Xml::XmlNode& it); 00307 00308 const std::string ToString(const std::string& name = "") const; 00309 00310 bool IsSet() const; 00311 00312 const std::string& GetName() const; 00313 void SetName(const std::string& name); 00314 const std::string& GetRedirect() const; 00315 void SetRedirect(const std::string& redirect); 00316 00317 bool NameIsSet() const { return _attribute_name_is_set; } 00318 bool RedirectIsSet() const { return _attribute_redirect_is_set; } 00319 00320 private: 00321 std::string _attribute_name; 00322 std::string _attribute_redirect; 00323 bool _attribute_name_is_set; 00324 bool _attribute_redirect_is_set; 00325 }; 00326 00327 public: 00328 class Ssl_t 00329 { 00330 public: 00331 Ssl_t(); 00332 Ssl_t(const Xml::XmlNode& it); 00333 virtual ~Ssl_t() {} 00334 00335 void FromXml(const Xml::XmlNode& it); 00336 00337 const std::string ToString(const std::string& name = "") const; 00338 00339 bool IsSet() const; 00340 00341 const std::string& GetCertFile() const; 00342 void SetCertFile(const std::string& certFile); 00343 00344 const std::string& GetKeyFile() const; 00345 void SetKeyFile(const std::string& keyFile); 00346 00347 const std::string& GetKeyAuth() const; 00348 void SetKeyAuth(const std::string& keyAuth); 00349 00350 bool CertFileIsSet() const { return _element_certFile_is_set; } 00351 bool KeyFileIsSet() const { return _element_keyFile_is_set; } 00352 bool KeyAuthIsSet() const { return _element_keyAuth_is_set; } 00353 00354 private: 00355 std::string _element_certFile; 00356 std::string _element_keyFile; 00357 std::string _element_keyAuth; 00358 bool _element_certFile_is_set; 00359 bool _element_keyFile_is_set; 00360 bool _element_keyAuth_is_set; 00361 }; 00362 00363 public: 00364 class Mount_t 00365 { 00366 public: 00367 Mount_t(); 00368 Mount_t(const Xml::XmlNode& it); 00369 virtual ~Mount_t() {} 00370 00371 void FromXml(const Xml::XmlNode& it); 00372 00373 const std::string ToString(const std::string& name = "") const; 00374 00375 bool IsSet() const; 00376 00377 const std::string& GetUri() const; 00378 void SetUri(const std::string& uri); 00379 const std::string& GetJobber() const; 00380 void SetJobber(const std::string& jobber); 00381 const std::string& GetStrip() const; 00382 void SetStrip(const std::string& strip); 00383 const std::string& GetPath() const; 00384 void SetPath(const std::string& path); 00385 00386 bool UriIsSet() const { return _attribute_uri_is_set; } 00387 bool JobberIsSet() const { return _attribute_jobber_is_set; } 00388 bool StripIsSet() const { return _attribute_strip_is_set; } 00389 bool PathIsSet() const { return _attribute_path_is_set; } 00390 00391 private: 00392 std::string _attribute_uri; 00393 std::string _attribute_jobber; 00394 std::string _attribute_strip; 00395 std::string _attribute_path; 00396 bool _attribute_uri_is_set; 00397 bool _attribute_jobber_is_set; 00398 bool _attribute_strip_is_set; 00399 bool _attribute_path_is_set; 00400 }; 00401 00402 public: 00403 class Secure_t 00404 { 00405 public: 00406 Secure_t(); 00407 Secure_t(const Xml::XmlNode& it); 00408 virtual ~Secure_t() {} 00409 00410 void FromXml(const Xml::XmlNode& it); 00411 00412 const std::string ToString(const std::string& name = "") const; 00413 00414 bool IsSet() const; 00415 00416 const std::string& GetUri() const; 00417 void SetUri(const std::string& uri); 00418 const std::string& GetBasicAuthentication() const; 00419 void SetBasicAuthentication(const std::string& basicAuthentication); 00420 const std::string& GetAuthorization() const; 00421 void SetAuthorization(const std::string& authorization); 00422 00423 bool UriIsSet() const { return _attribute_uri_is_set; } 00424 bool BasicAuthenticationIsSet() const { return _attribute_basicAuthentication_is_set; } 00425 bool AuthorizationIsSet() const { return _attribute_authorization_is_set; } 00426 00427 private: 00428 std::string _attribute_uri; 00429 std::string _attribute_basicAuthentication; 00430 std::string _attribute_authorization; 00431 bool _attribute_uri_is_set; 00432 bool _attribute_basicAuthentication_is_set; 00433 bool _attribute_authorization_is_set; 00434 }; 00435 00436 public: 00437 Host_t(); 00438 Host_t(const Xml::XmlNode& it); 00439 virtual ~Host_t() {} 00440 00441 void FromXml(const Xml::XmlNode& it); 00442 00443 const std::string ToString(const std::string& name = "") const; 00444 00445 bool IsSet() const; 00446 00447 const std::string& GetDocuments() const; 00448 void SetDocuments(const std::string& documents); 00449 00450 const std::string& GetScripts() const; 00451 void SetScripts(const std::string& scripts); 00452 00453 const std::string& GetLogs() const; 00454 void SetLogs(const std::string& logs); 00455 00456 const std::string& GetIndexDocument() const; 00457 void SetIndexDocument(const std::string& indexDocument); 00458 00459 const std::list<net_alhem_1_0_server::Log>& GetLog() const; 00460 std::list<net_alhem_1_0_server::Log>& GetLog(); 00461 void SetLog(const std::list<net_alhem_1_0_server::Log>& log); 00462 00463 const net_alhem_1_0_server::Hosts::Host_t::Alias_t& GetAlias() const; 00464 net_alhem_1_0_server::Hosts::Host_t::Alias_t& GetAlias(); 00465 void SetAlias(const net_alhem_1_0_server::Hosts::Host_t::Alias_t& alias); 00466 00467 const net_alhem_1_0_server::Hosts::Host_t::Ssl_t& GetSsl() const; 00468 net_alhem_1_0_server::Hosts::Host_t::Ssl_t& GetSsl(); 00469 void SetSsl(const net_alhem_1_0_server::Hosts::Host_t::Ssl_t& ssl); 00470 00471 const std::string& GetPre() const; 00472 void SetPre(const std::string& pre); 00473 00474 const std::list<net_alhem_1_0_server::Hosts::Host_t::Mount_t>& GetMount() const; 00475 std::list<net_alhem_1_0_server::Hosts::Host_t::Mount_t>& GetMount(); 00476 void SetMount(const std::list<net_alhem_1_0_server::Hosts::Host_t::Mount_t>& mount); 00477 00478 const std::list<net_alhem_1_0_server::Hosts::Host_t::Secure_t>& GetSecure() const; 00479 std::list<net_alhem_1_0_server::Hosts::Host_t::Secure_t>& GetSecure(); 00480 void SetSecure(const std::list<net_alhem_1_0_server::Hosts::Host_t::Secure_t>& secure); 00481 00482 const std::string& GetName() const; 00483 void SetName(const std::string& name); 00484 const std::string& GetRootDir() const; 00485 void SetRootDir(const std::string& rootDir); 00486 00487 bool DocumentsIsSet() const { return _element_documents_is_set; } 00488 bool ScriptsIsSet() const { return _element_scripts_is_set; } 00489 bool LogsIsSet() const { return _element_logs_is_set; } 00490 bool IndexDocumentIsSet() const { return _element_indexDocument_is_set; } 00491 bool LogIsSet() const; 00492 bool AliasIsSet() const; 00493 bool SslIsSet() const; 00494 bool PreIsSet() const { return _element_pre_is_set; } 00495 bool MountIsSet() const; 00496 bool SecureIsSet() const; 00497 00498 bool NameIsSet() const { return _attribute_name_is_set; } 00499 bool RootDirIsSet() const { return _attribute_rootDir_is_set; } 00500 00501 private: 00502 std::string _element_documents; 00503 std::string _element_scripts; 00504 std::string _element_logs; 00505 std::string _element_indexDocument; 00506 std::list<net_alhem_1_0_server::Log> _element_log; 00507 net_alhem_1_0_server::Hosts::Host_t::Alias_t _element_alias; 00508 net_alhem_1_0_server::Hosts::Host_t::Ssl_t _element_ssl; 00509 std::string _element_pre; 00510 std::list<net_alhem_1_0_server::Hosts::Host_t::Mount_t> _element_mount; 00511 std::list<net_alhem_1_0_server::Hosts::Host_t::Secure_t> _element_secure; 00512 std::string _attribute_name; 00513 std::string _attribute_rootDir; 00514 bool _element_documents_is_set; 00515 bool _element_scripts_is_set; 00516 bool _element_logs_is_set; 00517 bool _element_indexDocument_is_set; 00518 bool _element_pre_is_set; 00519 bool _attribute_name_is_set; 00520 bool _attribute_rootDir_is_set; 00521 }; 00522 00523 public: 00524 class DefaultHost_t 00525 { 00526 public: 00527 DefaultHost_t(); 00528 DefaultHost_t(const Xml::XmlNode& it); 00529 virtual ~DefaultHost_t() {} 00530 00531 void FromXml(const Xml::XmlNode& it); 00532 00533 const std::string ToString(const std::string& name = "") const; 00534 00535 bool IsSet() const; 00536 00537 bool GetRedirect() const; 00538 void SetRedirect(bool redirect); 00539 const std::string& GetTest1() const; 00540 void SetTest1(const std::string& test1); 00541 int GetTest2() const; 00542 void SetTest2(int test2); 00543 int GetTest3() const; 00544 void SetTest3(int test3); 00545 00546 const std::string& Get() const; 00547 void Set(const std::string&); 00548 00549 bool RedirectIsSet() const { return _attribute_redirect_is_set; } 00550 bool Test1IsSet() const { return _attribute_test1_is_set; } 00551 bool Test2IsSet() const { return _attribute_test2_is_set; } 00552 bool Test3IsSet() const { return _attribute_test3_is_set; } 00553 00554 private: 00555 bool _attribute_redirect; 00556 std::string _attribute_test1; 00557 int _attribute_test2; 00558 int _attribute_test3; 00559 std::string m_mixed_content; 00560 bool _attribute_redirect_is_set; 00561 bool _attribute_test1_is_set; 00562 bool _attribute_test2_is_set; 00563 bool _attribute_test3_is_set; 00564 }; 00565 00566 public: 00567 class ExtendLog_t : public Log 00568 { 00569 public: 00570 ExtendLog_t(); 00571 ExtendLog_t(const Xml::XmlNode& it); 00572 virtual ~ExtendLog_t() {} 00573 00574 void FromXml(const Xml::XmlNode& it); 00575 00576 const std::string ToString(const std::string& name = "") const; 00577 00578 bool IsSet() const; 00579 00580 const std::string& GetAddress() const; 00581 void SetAddress(const std::string& address); 00582 00583 const std::string& GetCity() const; 00584 void SetCity(const std::string& city); 00585 00586 const std::string& GetCountry() const; 00587 void SetCountry(const std::string& country); 00588 00589 bool AddressIsSet() const { return _element_address_is_set; } 00590 bool CityIsSet() const { return _element_city_is_set; } 00591 bool CountryIsSet() const { return _element_country_is_set; } 00592 00593 private: 00594 std::string _element_address; 00595 std::string _element_city; 00596 std::string _element_country; 00597 bool _element_address_is_set; 00598 bool _element_city_is_set; 00599 bool _element_country_is_set; 00600 }; 00601 00602 public: 00603 Hosts(); 00604 Hosts(const Xml::XmlNode& it); 00605 virtual ~Hosts() {} 00606 00607 void FromXml(const Xml::XmlNode& it); 00608 00609 const std::string ToString(const std::string& name = "") const; 00610 00611 bool IsSet() const; 00612 00613 const net_alhem_1_0_server::Hosts::HostDefaults_t& GetHostDefaults() const; 00614 net_alhem_1_0_server::Hosts::HostDefaults_t& GetHostDefaults(); 00615 void SetHostDefaults(const net_alhem_1_0_server::Hosts::HostDefaults_t& hostDefaults); 00616 00617 const std::list<net_alhem_1_0_server::Hosts::Host_t>& GetHost() const; 00618 std::list<net_alhem_1_0_server::Hosts::Host_t>& GetHost(); 00619 void SetHost(const std::list<net_alhem_1_0_server::Hosts::Host_t>& host); 00620 00621 const net_alhem_1_0_server::Hosts::DefaultHost_t& GetDefaultHost() const; 00622 net_alhem_1_0_server::Hosts::DefaultHost_t& GetDefaultHost(); 00623 void SetDefaultHost(const net_alhem_1_0_server::Hosts::DefaultHost_t& defaultHost); 00624 00625 const net_alhem_1_0_server::Hosts::ExtendLog_t& GetExtendLog() const; 00626 net_alhem_1_0_server::Hosts::ExtendLog_t& GetExtendLog(); 00627 void SetExtendLog(const net_alhem_1_0_server::Hosts::ExtendLog_t& extendLog); 00628 00629 bool HostDefaultsIsSet() const; 00630 bool HostIsSet() const; 00631 bool DefaultHostIsSet() const; 00632 bool ExtendLogIsSet() const; 00633 00634 private: 00635 net_alhem_1_0_server::Hosts::HostDefaults_t _element_hostDefaults; 00636 std::list<net_alhem_1_0_server::Hosts::Host_t> _element_host; 00637 net_alhem_1_0_server::Hosts::DefaultHost_t _element_defaultHost; 00638 net_alhem_1_0_server::Hosts::ExtendLog_t _element_extendLog; 00639 }; 00640 00641 // ----------------------------------------------------------------------------- 00642 class Network 00643 { 00644 public: 00645 class Bind_t 00646 { 00647 public: 00648 Bind_t(); 00649 Bind_t(const Xml::XmlNode& it); 00650 virtual ~Bind_t() {} 00651 00652 void FromXml(const Xml::XmlNode& it); 00653 00654 const std::string ToString(const std::string& name = "") const; 00655 00656 bool IsSet() const; 00657 00658 const std::string& GetInterface() const; 00659 void SetInterface(const std::string& interface); 00660 int GetPort() const; 00661 void SetPort(int port); 00662 const std::string& GetProtocol() const; 00663 void SetProtocol(const std::string& protocol); 00664 const std::string& GetHost() const; 00665 void SetHost(const std::string& host); 00666 00667 bool InterfaceIsSet() const { return _attribute_interface_is_set; } 00668 bool PortIsSet() const { return _attribute_port_is_set; } 00669 bool ProtocolIsSet() const { return _attribute_protocol_is_set; } 00670 bool HostIsSet() const { return _attribute_host_is_set; } 00671 00672 private: 00673 std::string _attribute_interface; 00674 int _attribute_port; 00675 std::string _attribute_protocol; 00676 std::string _attribute_host; 00677 bool _attribute_interface_is_set; 00678 bool _attribute_port_is_set; 00679 bool _attribute_protocol_is_set; 00680 bool _attribute_host_is_set; 00681 }; 00682 00683 public: 00684 Network(); 00685 Network(const Xml::XmlNode& it); 00686 virtual ~Network() {} 00687 00688 void FromXml(const Xml::XmlNode& it); 00689 00690 const std::string ToString(const std::string& name = "") const; 00691 00692 bool IsSet() const; 00693 00694 const std::list<net_alhem_1_0_server::Network::Bind_t>& GetBind() const; 00695 std::list<net_alhem_1_0_server::Network::Bind_t>& GetBind(); 00696 void SetBind(const std::list<net_alhem_1_0_server::Network::Bind_t>& bind); 00697 00698 bool BindIsSet() const; 00699 00700 private: 00701 std::list<net_alhem_1_0_server::Network::Bind_t> _element_bind; 00702 }; 00703 00704 } // namespace net_alhem_1_0_server 00705 00707 namespace net_alhem_1_0_server_typ { 00708 00709 // ----------------------------------------------------------------------------- 00710 class LogTyp 00711 { 00712 public: 00713 LogTyp(); 00714 LogTyp(const Xml::XmlNode& it); 00715 virtual ~LogTyp() {} 00716 00717 void FromXml(const Xml::XmlNode& it); 00718 00719 const std::string ToString(const std::string& name = "") const; 00720 00721 bool IsSet() const; 00722 00723 const std::string& GetFilename() const; 00724 void SetFilename(const std::string& filename); 00725 const std::string& GetType() const; 00726 void SetType(const std::string& type); 00727 const std::string& GetFormat() const; 00728 void SetFormat(const std::string& format); 00729 00730 bool FilenameIsSet() const { return _attribute_filename_is_set; } 00731 bool TypeIsSet() const { return _attribute_type_is_set; } 00732 bool FormatIsSet() const { return _attribute_format_is_set; } 00733 00734 private: 00735 std::string _attribute_filename; 00736 std::string _attribute_type; 00737 std::string _attribute_format; 00738 bool _attribute_filename_is_set; 00739 bool _attribute_type_is_set; 00740 bool _attribute_format_is_set; 00741 }; 00742 00743 // ----------------------------------------------------------------------------- 00744 class NetworkTyp 00745 { 00746 public: 00747 class Bind_t 00748 { 00749 public: 00750 Bind_t(); 00751 Bind_t(const Xml::XmlNode& it); 00752 virtual ~Bind_t() {} 00753 00754 void FromXml(const Xml::XmlNode& it); 00755 00756 const std::string ToString(const std::string& name = "") const; 00757 00758 bool IsSet() const; 00759 00760 const std::string& GetInterface() const; 00761 void SetInterface(const std::string& interface); 00762 int GetPort() const; 00763 void SetPort(int port); 00764 const std::string& GetProtocol() const; 00765 void SetProtocol(const std::string& protocol); 00766 const std::string& GetHost() const; 00767 void SetHost(const std::string& host); 00768 00769 bool InterfaceIsSet() const { return _attribute_interface_is_set; } 00770 bool PortIsSet() const { return _attribute_port_is_set; } 00771 bool ProtocolIsSet() const { return _attribute_protocol_is_set; } 00772 bool HostIsSet() const { return _attribute_host_is_set; } 00773 00774 private: 00775 std::string _attribute_interface; 00776 int _attribute_port; 00777 std::string _attribute_protocol; 00778 std::string _attribute_host; 00779 bool _attribute_interface_is_set; 00780 bool _attribute_port_is_set; 00781 bool _attribute_protocol_is_set; 00782 bool _attribute_host_is_set; 00783 }; 00784 00785 public: 00786 NetworkTyp(); 00787 NetworkTyp(const Xml::XmlNode& it); 00788 virtual ~NetworkTyp() {} 00789 00790 void FromXml(const Xml::XmlNode& it); 00791 00792 const std::string ToString(const std::string& name = "") const; 00793 00794 bool IsSet() const; 00795 00796 const std::list<net_alhem_1_0_server_typ::NetworkTyp::Bind_t>& GetBind() const; 00797 std::list<net_alhem_1_0_server_typ::NetworkTyp::Bind_t>& GetBind(); 00798 void SetBind(const std::list<net_alhem_1_0_server_typ::NetworkTyp::Bind_t>& bind); 00799 00800 bool BindIsSet() const; 00801 00802 private: 00803 std::list<net_alhem_1_0_server_typ::NetworkTyp::Bind_t> _element_bind; 00804 }; 00805 00806 } // namespace net_alhem_1_0_server_typ 00807 00809 namespace net_alhem_1_0_typ0 { 00810 00811 // ----------------------------------------------------------------------------- 00812 class Log2 00813 { 00814 public: 00815 Log2(); 00816 Log2(const Xml::XmlNode& it); 00817 virtual ~Log2() {} 00818 00819 void FromXml(const Xml::XmlNode& it); 00820 00821 const std::string ToString(const std::string& name = "") const; 00822 00823 bool IsSet() const; 00824 00825 const std::string& GetFilename() const; 00826 void SetFilename(const std::string& filename); 00827 const std::string& GetType() const; 00828 void SetType(const std::string& type); 00829 const std::string& GetFormat() const; 00830 void SetFormat(const std::string& format); 00831 00832 bool FilenameIsSet() const { return _attribute_filename_is_set; } 00833 bool TypeIsSet() const { return _attribute_type_is_set; } 00834 bool FormatIsSet() const { return _attribute_format_is_set; } 00835 00836 private: 00837 std::string _attribute_filename; 00838 std::string _attribute_type; 00839 std::string _attribute_format; 00840 bool _attribute_filename_is_set; 00841 bool _attribute_type_is_set; 00842 bool _attribute_format_is_set; 00843 }; 00844 00845 // ----------------------------------------------------------------------------- 00846 class Network2 00847 { 00848 public: 00849 class Bind_t 00850 { 00851 public: 00852 Bind_t(); 00853 Bind_t(const Xml::XmlNode& it); 00854 virtual ~Bind_t() {} 00855 00856 void FromXml(const Xml::XmlNode& it); 00857 00858 const std::string ToString(const std::string& name = "") const; 00859 00860 bool IsSet() const; 00861 00862 const std::string& GetInterface() const; 00863 void SetInterface(const std::string& interface); 00864 int GetPort() const; 00865 void SetPort(int port); 00866 const std::string& GetProtocol() const; 00867 void SetProtocol(const std::string& protocol); 00868 const std::string& GetHost() const; 00869 void SetHost(const std::string& host); 00870 00871 bool InterfaceIsSet() const { return _attribute_interface_is_set; } 00872 bool PortIsSet() const { return _attribute_port_is_set; } 00873 bool ProtocolIsSet() const { return _attribute_protocol_is_set; } 00874 bool HostIsSet() const { return _attribute_host_is_set; } 00875 00876 private: 00877 std::string _attribute_interface; 00878 int _attribute_port; 00879 std::string _attribute_protocol; 00880 std::string _attribute_host; 00881 bool _attribute_interface_is_set; 00882 bool _attribute_port_is_set; 00883 bool _attribute_protocol_is_set; 00884 bool _attribute_host_is_set; 00885 }; 00886 00887 public: 00888 Network2(); 00889 Network2(const Xml::XmlNode& it); 00890 virtual ~Network2() {} 00891 00892 void FromXml(const Xml::XmlNode& it); 00893 00894 const std::string ToString(const std::string& name = "") const; 00895 00896 bool IsSet() const; 00897 00898 const std::list<net_alhem_1_0_typ0::Network2::Bind_t>& GetBind() const; 00899 std::list<net_alhem_1_0_typ0::Network2::Bind_t>& GetBind(); 00900 void SetBind(const std::list<net_alhem_1_0_typ0::Network2::Bind_t>& bind); 00901 00902 bool BindIsSet() const; 00903 00904 private: 00905 std::list<net_alhem_1_0_typ0::Network2::Bind_t> _element_bind; 00906 }; 00907 00908 } // namespace net_alhem_1_0_typ0 00909 00911 namespace net_alhem_1_0_server { 00912 00913 // ----------------------------------------------------------------------------- 00914 class Configuration_t 00915 { 00916 public: 00917 Configuration_t(); 00918 Configuration_t(const Xml::XmlNode& it); 00919 virtual ~Configuration_t() {} 00920 00921 void FromXml(const Xml::XmlNode& it); 00922 00923 const std::string ToString(const std::string& name = "") const; 00924 00925 bool IsSet() const; 00926 00927 const std::string& GetRootDir() const; 00928 void SetRootDir(const std::string& rootDir); 00929 00930 const net_alhem_1_0_server::Security& GetSecurity() const; 00931 net_alhem_1_0_server::Security& GetSecurity(); 00932 void SetSecurity(const net_alhem_1_0_server::Security& security); 00933 00934 const net_alhem_1_0_server::Hosts& GetHosts() const; 00935 net_alhem_1_0_server::Hosts& GetHosts(); 00936 void SetHosts(const net_alhem_1_0_server::Hosts& hosts); 00937 00938 const net_alhem_1_0_server::Network& GetNetwork() const; 00939 net_alhem_1_0_server::Network& GetNetwork(); 00940 void SetNetwork(const net_alhem_1_0_server::Network& network); 00941 00942 const net_alhem_1_0_server_typ::NetworkTyp& GetNetwork_typ() const; 00943 net_alhem_1_0_server_typ::NetworkTyp& GetNetwork_typ(); 00944 void SetNetwork_typ(const net_alhem_1_0_server_typ::NetworkTyp& network_typ); 00945 00946 bool RootDirIsSet() const { return _element_rootDir_is_set; } 00947 bool SecurityIsSet() const; 00948 bool HostsIsSet() const; 00949 bool NetworkIsSet() const; 00950 bool Network_typIsSet() const; 00951 00952 private: 00953 std::string _element_rootDir; 00954 net_alhem_1_0_server::Security _element_security; 00955 net_alhem_1_0_server::Hosts _element_hosts; 00956 net_alhem_1_0_server::Network _element_network; 00957 net_alhem_1_0_server_typ::NetworkTyp _element_network_typ; 00958 bool _element_rootDir_is_set; 00959 }; 00960 00961 } // namespace net_alhem_1_0_server 00962 00964 namespace net_alhem_1_0_server_typ { 00965 00966 } // namespace net_alhem_1_0_server_typ 00967 00969 namespace net_alhem_1_0_typ0 { 00970 00971 } // namespace net_alhem_1_0_typ0 00972 00973 00974 00975 } // namespace AJP13 00976