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 147 of file modules.h.


Constructor & Destructor Documentation

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

Constructor

Parameters:
major The major version numbber
minor The minor version numbber
patch The patch version numbber

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

Returns:
The minor version

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

Returns:
The patch version

Definition at line 100 of file module.cpp.

References version_patch.

Referenced by ModuleManager::LoadModule().


Field Documentation

Definition at line 150 of file modules.h.

Referenced by GetMajor().

Definition at line 151 of file modules.h.

Referenced by GetMinor().

Definition at line 152 of file modules.h.

Referenced by GetPatch().


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