#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 |
Returned by Module::GetVersion, used to see what version of Anope a module is compiled against.
Definition at line 147 of file modules.h.
| ModuleVersion::ModuleVersion | ( | int | major, | |
| int | minor, | |||
| int | patch | |||
| ) |
Constructor
| major | The major version numbber | |
| minor | The minor version numbber | |
| patch | The patch version numbber |
Definition at line 86 of file module.cpp.
| int ModuleVersion::GetMajor | ( | ) | const |
Get the major version of Anope this was built against
Definition at line 90 of file module.cpp.
References version_major.
Referenced by ModuleManager::LoadModule().
| int ModuleVersion::GetMinor | ( | ) | const |
Get the minor version of Anope this was built against
Definition at line 95 of file module.cpp.
References version_minor.
Referenced by ModuleManager::LoadModule().
| int ModuleVersion::GetPatch | ( | ) | const |
Get the patch version this was built against
Definition at line 100 of file module.cpp.
References version_patch.
Referenced by ModuleManager::LoadModule().
int ModuleVersion::version_major [private] |
Definition at line 150 of file modules.h.
Referenced by GetMajor().
int ModuleVersion::version_minor [private] |
Definition at line 151 of file modules.h.
Referenced by GetMinor().
int ModuleVersion::version_patch [private] |
Definition at line 152 of file modules.h.
Referenced by GetPatch().
1.7.1