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

#include <lists.h>

Collaboration diagram for InfoFormatter:
Collaboration graph
[legend]

Public Member Functions

 InfoFormatter (NickCore *nc)
 
void Process (std::vector< Anope::string > &)
 
Anope::stringoperator[] (const Anope::string &key)
 
void AddOption (const Anope::string &opt)
 

Private Attributes

NickCorenc
 
std::vector< std::pair
< Anope::string, Anope::string > > 
replies
 
unsigned longest
 

Detailed Description

This class handles formatting INFO replies

Definition at line 83 of file lists.h.

Constructor & Destructor Documentation

InfoFormatter::InfoFormatter ( NickCore nc)

Definition at line 218 of file misc.cpp.

Member Function Documentation

void InfoFormatter::AddOption ( const Anope::string opt)

Definition at line 246 of file misc.cpp.

References _, Anope::string::c_str(), Anope::string::empty(), nc, replies, and Language::Translate().

Referenced by Fantasy::OnBotInfo().

Anope::string & InfoFormatter::operator[] ( const Anope::string key)
void InfoFormatter::Process ( std::vector< Anope::string > &  buffer)

Definition at line 222 of file misc.cpp.

References longest, nc, replies, and Language::Translate().

Referenced by CommandNSInfo::Execute(), and CommandBSInfo::Execute().

Field Documentation

unsigned InfoFormatter::longest
private

Definition at line 87 of file lists.h.

Referenced by operator[](), and Process().

NickCore* InfoFormatter::nc
private

Definition at line 85 of file lists.h.

Referenced by AddOption(), operator[](), and Process().

std::vector<std::pair<Anope::string, Anope::string> > InfoFormatter::replies
private

Definition at line 86 of file lists.h.

Referenced by AddOption(), operator[](), and Process().


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