#include <lists.h>
Public Types | |
| typedef std::map < Anope::string, Anope::string > | ListEntry |
Public Member Functions | |
| ListFormatter & | AddColumn (const Anope::string &name) |
| void | AddEntry (const ListEntry &entry) |
| bool | IsEmpty () const |
| void | Process (std::vector< Anope::string > &) |
Private Attributes | |
| std::vector< Anope::string > | columns |
| std::vector< ListEntry > | entries |
This class handles formatting LIST/VIEW replies.
Definition at line 65 of file lists.h.
| typedef std::map<Anope::string, Anope::string> ListFormatter::ListEntry |
| ListFormatter & ListFormatter::AddColumn | ( | const Anope::string & | name | ) |
Definition at line 110 of file misc.cpp.
References columns.
Referenced by CommandOSDNS::DisplayPoolState(), CommandOSException::DoList(), CommandOSSession::DoList(), NewsBase::DoList(), CommandOSIgnore::DoList(), CommandOSAKill::DoList(), CommandNSCert::DoList(), CommandNSAJoin::DoList(), CommandHSWaiting::DoList(), XOPBase::DoList(), CommandCSFlags::DoList(), CommandEntryMessage::DoList(), CommandCSAKick::DoList(), CommandCSLevels::DoList(), CommandCSAccess::DoList(), CommandBSBadwords::DoList(), CommandCSMode::DoLock(), CommandNSCert::DoServAdminList(), CommandOSException::DoView(), CommandOSAKill::DoView(), CommandCSAKick::DoView(), CommandCSAccess::DoView(), CommandOSUserList::Execute(), CommandOSChanList::Execute(), CommandOSForbid::Execute(), CommandOSConfig::Execute(), CommandNSList::Execute(), CommandNSGList::Execute(), CommandNSAList::Execute(), CommandMSList::Execute(), CommandMSIgnore::Execute(), CommandHSList::Execute(), CommandCSLog::Execute(), CommandCSList::Execute(), CommandBSBotList::Execute(), CommandCSLevels::OnHelp(), CommandOSSXLineBase::OnList(), and CommandOSSXLineBase::OnView().
| void ListFormatter::AddEntry | ( | const ListEntry & | entry | ) |
Definition at line 116 of file misc.cpp.
References entries.
Referenced by CommandOSDNS::DisplayPoolState(), CommandOSSession::DoList(), NewsBase::DoList(), CommandOSIgnore::DoList(), CommandNSCert::DoList(), CommandNSAJoin::DoList(), CommandHSWaiting::DoList(), XOPBase::DoList(), CommandCSFlags::DoList(), CommandEntryMessage::DoList(), CommandCSLevels::DoList(), CommandBSBadwords::DoList(), CommandCSMode::DoLock(), CommandNSCert::DoServAdminList(), CommandOSUserList::Execute(), CommandOSChanList::Execute(), CommandOSForbid::Execute(), CommandOSConfig::Execute(), CommandNSList::Execute(), CommandNSGList::Execute(), CommandNSAList::Execute(), CommandMSList::Execute(), CommandMSIgnore::Execute(), CommandHSList::Execute(), CommandCSLog::Execute(), CommandCSList::Execute(), CommandBSBotList::Execute(), CommandCSLevels::OnHelp(), CommandOSSXLineBase::ProcessList(), CommandOSException::ProcessList(), CommandOSAKill::ProcessList(), CommandCSAKick::ProcessList(), and CommandCSAccess::ProcessList().
| bool ListFormatter::IsEmpty | ( | ) | const |
Definition at line 121 of file misc.cpp.
References entries.
Referenced by XOPBase::DoList(), CommandCSFlags::DoList(), CommandBSBadwords::DoList(), CommandOSSXLineBase::ProcessList(), CommandOSException::ProcessList(), CommandOSAKill::ProcessList(), CommandCSAKick::ProcessList(), and CommandCSAccess::ProcessList().
| void ListFormatter::Process | ( | std::vector< Anope::string > & | buffer | ) |
Definition at line 126 of file misc.cpp.
References columns, Anope::string::empty(), entries, and Anope::string::push_back().
Referenced by CommandOSDNS::DisplayPoolState(), CommandOSSession::DoList(), NewsBase::DoList(), CommandOSIgnore::DoList(), CommandNSCert::DoList(), CommandNSAJoin::DoList(), CommandHSWaiting::DoList(), XOPBase::DoList(), CommandCSFlags::DoList(), CommandEntryMessage::DoList(), CommandCSLevels::DoList(), CommandBSBadwords::DoList(), CommandCSMode::DoLock(), CommandNSCert::DoServAdminList(), CommandOSUserList::Execute(), CommandOSChanList::Execute(), CommandOSForbid::Execute(), CommandOSConfig::Execute(), CommandNSList::Execute(), CommandNSGList::Execute(), CommandNSAList::Execute(), CommandMSList::Execute(), CommandMSIgnore::Execute(), CommandHSList::Execute(), CommandCSLog::Execute(), CommandCSList::Execute(), CommandBSBotList::Execute(), CommandCSLevels::OnHelp(), CommandOSSXLineBase::ProcessList(), CommandOSException::ProcessList(), CommandOSAKill::ProcessList(), CommandCSAKick::ProcessList(), and CommandCSAccess::ProcessList().
std::vector<Anope::string> ListFormatter::columns [private] |
Definition at line 70 of file lists.h.
Referenced by AddColumn(), and Process().
std::vector<ListEntry> ListFormatter::entries [private] |
Definition at line 71 of file lists.h.
Referenced by AddEntry(), IsEmpty(), and Process().
1.7.1