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 ( int  major,
int  minor,
int  patch 
)

Constructor

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

Definition at line 104 of file module.cpp.

Member Function Documentation

int ModuleVersion::GetMajor ( ) const

Get the major version of Anope this was built against

Returns
The major version

Definition at line 108 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

Returns
The minor version

Definition at line 113 of file module.cpp.

References version_minor.

Referenced by ModuleManager::LoadModule().

int ModuleVersion::GetPatch ( ) const

Get the patch version this was built against

Returns
The patch version

Definition at line 118 of file module.cpp.

References version_patch.

Referenced by ModuleManager::LoadModule().

Field Documentation

int ModuleVersion::version_major
private

Definition at line 182 of file modules.h.

Referenced by GetMajor().

int ModuleVersion::version_minor
private

Definition at line 183 of file modules.h.

Referenced by GetMinor().

int ModuleVersion::version_patch
private

Definition at line 184 of file modules.h.

Referenced by GetPatch().


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