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

Public Types

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

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

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

◆ ListEntry

Definition at line 68 of file lists.h.

Constructor & Destructor Documentation

◆ ListFormatter()

ListFormatter::ListFormatter ( NickCore nc)

Definition at line 124 of file misc.cpp.

Member Function Documentation

◆ AddColumn()

ListFormatter & ListFormatter::AddColumn ( const Anope::string name)

◆ AddEntry()

void ListFormatter::AddEntry ( const ListEntry entry)

◆ IsEmpty()

bool ListFormatter::IsEmpty ( ) const

◆ Process()

void ListFormatter::Process ( std::vector< Anope::string > &  buffer)

Field Documentation

◆ columns

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

Definition at line 71 of file lists.h.

Referenced by AddColumn(), and Process().

◆ entries

std::vector<ListEntry> ListFormatter::entries

Definition at line 72 of file lists.h.

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

◆ nc

NickCore* ListFormatter::nc

Definition at line 70 of file lists.h.

Referenced by Process().

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