#include <Iconf.h>
Public Member Functions | |
Log () | |
Log (const Xml::XmlNode &it) | |
virtual | ~Log () |
void | FromXml (const Xml::XmlNode &it) |
const std::string | ToString (const std::string &name="") const |
bool | IsSet () const |
const std::string & | GetFilename () const |
void | SetFilename (const std::string &filename) |
const std::string & | GetType () const |
void | SetType (const std::string &type) |
const std::string & | GetFormat () const |
void | SetFormat (const std::string &format) |
bool | FilenameIsSet () const |
bool | TypeIsSet () const |
bool | FormatIsSet () const |
Private Attributes | |
std::string | _attribute_filename |
std::string | _attribute_type |
std::string | _attribute_format |
bool | _attribute_filename_is_set |
bool | _attribute_type_is_set |
bool | _attribute_format_is_set |
Definition at line 211 of file Iconf.h.
AJP13::net_alhem_1_0_server::Log::Log | ( | ) |
Definition at line 594 of file Iconf.cpp.
00595 : _attribute_filename_is_set(false) 00596 , _attribute_type_is_set(false) 00597 , _attribute_format_is_set(false) 00598 { 00599 }
AJP13::net_alhem_1_0_server::Log::Log | ( | const Xml::XmlNode & | it | ) |
Definition at line 603 of file Iconf.cpp.
References FromXml().
00604 : _attribute_filename_is_set(false) 00605 , _attribute_type_is_set(false) 00606 , _attribute_format_is_set(false) 00607 { 00608 FromXml(it); 00609 }
virtual AJP13::net_alhem_1_0_server::Log::~Log | ( | ) | [inline, virtual] |
void AJP13::net_alhem_1_0_server::Log::FromXml | ( | const Xml::XmlNode & | it | ) |
Reimplemented in AJP13::net_alhem_1_0_server::Hosts::ExtendLog_t.
Definition at line 613 of file Iconf.cpp.
References SetFilename(), SetFormat(), and SetType().
Referenced by AJP13::net_alhem_1_0_server::Hosts::ExtendLog_t::FromXml(), and Log().
00614 { 00615 SetFilename(it.GetProperty("filename")); 00616 SetType(it.GetProperty("type")); 00617 if (it.PropertyExists("format")) 00618 SetFormat(it.GetProperty("format")); 00619 }
const std::string AJP13::net_alhem_1_0_server::Log::ToString | ( | const std::string & | name = "" |
) | const |
Reimplemented in AJP13::net_alhem_1_0_server::Hosts::ExtendLog_t.
Definition at line 623 of file Iconf.cpp.
References FormatIsSet(), GetFilename(), GetFormat(), and GetType().
Referenced by AJP13::net_alhem_1_0_server::Hosts::ExtendLog_t::ToString(), AJP13::net_alhem_1_0_server::Hosts::Host_t::ToString(), and AJP13::net_alhem_1_0_server::Hosts::HostDefaults_t::ToString().
00624 { 00625 std::string r; 00626 if (!name.empty()) 00627 r += "<" + name; 00628 r += " filename='" + GetFilename() + "'"; 00629 r += " type='" + GetType() + "'"; 00630 if (FormatIsSet()) 00631 r += " format='" + GetFormat() + "'"; 00632 r += ">"; 00633 if (!name.empty()) 00634 r += "</" + name + ">"; 00635 return r; 00636 }
bool AJP13::net_alhem_1_0_server::Log::IsSet | ( | ) | const |
Reimplemented in AJP13::net_alhem_1_0_server::Hosts::ExtendLog_t.
Definition at line 640 of file Iconf.cpp.
References FilenameIsSet(), FormatIsSet(), and TypeIsSet().
00641 { 00642 return FilenameIsSet() || TypeIsSet() || FormatIsSet(); 00643 }
const std::string & AJP13::net_alhem_1_0_server::Log::GetFilename | ( | ) | const |
Definition at line 647 of file Iconf.cpp.
References _attribute_filename.
Referenced by ToString().
00648 { 00649 return _attribute_filename; 00650 }
void AJP13::net_alhem_1_0_server::Log::SetFilename | ( | const std::string & | filename | ) |
Definition at line 653 of file Iconf.cpp.
References _attribute_filename, and _attribute_filename_is_set.
Referenced by FromXml().
00654 { 00655 _attribute_filename = filename; 00656 _attribute_filename_is_set = true; 00657 }
const std::string & AJP13::net_alhem_1_0_server::Log::GetType | ( | ) | const |
Definition at line 661 of file Iconf.cpp.
References _attribute_type.
Referenced by ToString().
00662 { 00663 return _attribute_type; 00664 }
void AJP13::net_alhem_1_0_server::Log::SetType | ( | const std::string & | type | ) |
Definition at line 667 of file Iconf.cpp.
References _attribute_type, and _attribute_type_is_set.
Referenced by FromXml().
00668 { 00669 _attribute_type = type; 00670 _attribute_type_is_set = true; 00671 }
const std::string & AJP13::net_alhem_1_0_server::Log::GetFormat | ( | ) | const |
Definition at line 675 of file Iconf.cpp.
References _attribute_format.
Referenced by ToString().
00676 { 00677 return _attribute_format; 00678 }
void AJP13::net_alhem_1_0_server::Log::SetFormat | ( | const std::string & | format | ) |
Definition at line 681 of file Iconf.cpp.
References _attribute_format, and _attribute_format_is_set.
Referenced by FromXml().
00682 { 00683 _attribute_format = format; 00684 _attribute_format_is_set = true; 00685 }
bool AJP13::net_alhem_1_0_server::Log::FilenameIsSet | ( | ) | const [inline] |
Definition at line 231 of file Iconf.h.
References _attribute_filename_is_set.
Referenced by IsSet().
00231 { return _attribute_filename_is_set; }
bool AJP13::net_alhem_1_0_server::Log::TypeIsSet | ( | ) | const [inline] |
Definition at line 232 of file Iconf.h.
References _attribute_type_is_set.
Referenced by IsSet().
00232 { return _attribute_type_is_set; }
bool AJP13::net_alhem_1_0_server::Log::FormatIsSet | ( | ) | const [inline] |
Definition at line 233 of file Iconf.h.
References _attribute_format_is_set.
Referenced by IsSet(), and ToString().
00233 { return _attribute_format_is_set; }
std::string AJP13::net_alhem_1_0_server::Log::_attribute_filename [private] |
std::string AJP13::net_alhem_1_0_server::Log::_attribute_type [private] |
std::string AJP13::net_alhem_1_0_server::Log::_attribute_format [private] |
bool AJP13::net_alhem_1_0_server::Log::_attribute_filename_is_set [private] |
bool AJP13::net_alhem_1_0_server::Log::_attribute_type_is_set [private] |
bool AJP13::net_alhem_1_0_server::Log::_attribute_format_is_set [private] |