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

#include <modules.h>

Public Member Functions

 ModuleVersion (int major, int minor, int patch)
int GetMajor () const
int GetMinor () const
int GetPatch () const

Private Attributes

int version_major
int version_minor
int version_patch

Detailed Description

Returned by Module::GetVersion, used to see what version of Anope a module is compiled against.

Definition at line 179 of file modules.h.

Constructor & Destructor Documentation

◆ ModuleVersion()

ModuleVersion::ModuleVersion ( int  major,
int  minor,
int  patch 


majorThe major version number
minorThe minor version number
patchThe patch version number

Definition at line 104 of file module.cpp.

Member Function Documentation

◆ GetMajor()

int ModuleVersion::GetMajor ( ) const

Get the major version of Anope this was built against

The major version

Definition at line 108 of file module.cpp.

References version_major.

Referenced by ModuleManager::LoadModule().

◆ GetMinor()

int ModuleVersion::GetMinor ( ) const

Get the minor version of Anope this was built against

The minor version

Definition at line 113 of file module.cpp.

References version_minor.

Referenced by ModuleManager::LoadModule().

◆ GetPatch()

int ModuleVersion::GetPatch ( ) const

Get the patch version this was built against

The patch version

Definition at line 118 of file module.cpp.

References version_patch.

Referenced by ModuleManager::LoadModule().

Field Documentation

◆ version_major

int ModuleVersion::version_major

Definition at line 182 of file modules.h.

Referenced by GetMajor().

◆ version_minor

int ModuleVersion::version_minor

Definition at line 183 of file modules.h.

Referenced by GetMinor().

◆ version_patch

int ModuleVersion::version_patch

Definition at line 184 of file modules.h.

Referenced by GetPatch().

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