InspIRCd  4.0
Public Member Functions | List of all members
Numeric::Numeric Class Reference
Inheritance diagram for Numeric::Numeric:
Numerics::CannotSendTo Numerics::InvalidModeParameter Numerics::NoSuchChannel Numerics::NoSuchNick

Public Member Functions

 Numeric (unsigned int num)
 
template<typename... Args>
Numericpush (const Args &... args)
 
void SetServer (Server *server)
 
ServerGetServer () const
 
unsigned int GetNumeric () const
 
const CommandBase::ParamsGetParams () const
 
CommandBase::ParamsGetParams ()
 

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]

CommandBase::Params& Numeric::Numeric::GetParams ( )
inline

Get the parameters of the numeric

Returns
Parameters of the numeric as a vector of strings

◆ GetParams() [2/2]

const CommandBase::Params& Numeric::Numeric::GetParams ( ) const
inline

Get the parameters of the numeric

Returns
Parameters of the numeric as a const 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... Args>
Numeric& Numeric::Numeric::push ( const Args &...  args)
inline

Converts the given arguments to a string and adds them to the numeric.

Parameters
argsOne or more arguments to the numeric.

◆ 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: