InspIRCd  3.0
Public Member Functions | List of all members
Numeric::Numeric Class Reference
Inheritance diagram for Numeric::Numeric:
Numerics::NoSuchNick

Public Member Functions

 Numeric (unsigned int num)
 
template<typename T >
Numericpush (const T &x)
 
void SetServer (Server *server)
 
ServerGetServer () const
 
unsigned int GetNumeric () const
 
const std::vector< std::string > & GetParams () const
 
std::vector< std::string > & GetParams ()
 

Constructor & Destructor Documentation

◆ Numeric()

Numeric::Numeric::Numeric ( unsigned int  num)
inline

Constructor

Parameters
numNumeric number (RPL_*, ERR_*)

Member Function Documentation

◆ GetNumeric()

unsigned int Numeric::Numeric::GetNumeric ( ) const
inline

Get the number of the numeric as an unsigned integer

Returns
Numeric number as an unsigned integer

◆ GetParams() [1/2]

const std::vector<std::string>& Numeric::Numeric::GetParams ( ) const
inline

Get the parameters of the numeric

Returns
Parameters of the numeric as a const vector of strings

◆ GetParams() [2/2]

std::vector<std::string>& Numeric::Numeric::GetParams ( )
inline

Get the parameters of the numeric

Returns
Parameters of the numeric as a vector of strings

◆ GetServer()

Server* Numeric::Numeric::GetServer ( ) const
inline

Get the source server of the numeric

Returns
Source server or NULL if the source is the local server

◆ push()

template<typename T >
Numeric& Numeric::Numeric::push ( const T &  x)
inline

Add a parameter to the numeric. The parameter will be converted to a string first with ConvToStr().

Parameters
xParameter to add

◆ SetServer()

void Numeric::Numeric::SetServer ( Server server)
inline

Set the source server of the numeric. The source server defaults to the local server.

Parameters
serverServer to set as source

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