Anope IRC Services  Version 2.0
Public Types | Public Member Functions | Private Attributes
ListFormatter Class Reference

#include <lists.h>

Collaboration diagram for ListFormatter:
Collaboration graph
[legend]

Public Types

typedef std::map
< Anope::string, Anope::string
ListEntry
 

Public Member Functions

 ListFormatter (NickCore *nc)
 
ListFormatterAddColumn (const Anope::string &name)
 
void AddEntry (const ListEntry &entry)
 
bool IsEmpty () const
 
void Process (std::vector< Anope::string > &)
 

Private Attributes

NickCorenc
 
std::vector< Anope::stringcolumns
 
std::vector< ListEntryentries
 

Detailed Description

This class handles formatting LIST/VIEW replies.

Definition at line 65 of file lists.h.

Member Typedef Documentation

Definition at line 68 of file lists.h.

Constructor & Destructor Documentation

ListFormatter::ListFormatter ( NickCore nc)

Definition at line 124 of file misc.cpp.

Member Function Documentation

ListFormatter & ListFormatter::AddColumn ( const Anope::string name)
void ListFormatter::AddEntry ( const ListEntry entry)
bool ListFormatter::IsEmpty ( ) const
void ListFormatter::Process ( std::vector< Anope::string > &  buffer)

Field Documentation

std::vector<Anope::string> ListFormatter::columns
private

Definition at line 71 of file lists.h.

Referenced by AddColumn(), and Process().

std::vector<ListEntry> ListFormatter::entries
private

Definition at line 72 of file lists.h.

Referenced by AddEntry(), IsEmpty(), and Process().

NickCore* ListFormatter::nc
private

Definition at line 70 of file lists.h.

Referenced by Process().


The documentation for this class was generated from the following files: