The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download | Blog | Stats
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

Version Class Reference

Holds a module's Version information. More...

#include <modules.h>

Inheritance diagram for Version:

Inheritance graph
[legend]
Collaboration diagram for Version:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Version (int major, int minor, int revision, int build, int flags, int api_ver)
 Initialize version class.

Public Attributes

const int Major
 Version numbers, build number, flags and API version.
const int Minor
const int Revision
const int Build
const int Flags
const int API

Detailed Description

Holds a module's Version information.

The four members (set by the constructor only) indicate details as to the version number of a module. A class of type Version is returned by the GetVersion method of the Module class. The flags and API values represent the module flags and API version of the module. The API version of a module must match the API version of the core exactly for the module to load successfully.

Definition at line 237 of file modules.h.


Constructor & Destructor Documentation

Version::Version int  major,
int  minor,
int  revision,
int  build,
int  flags,
int  api_ver
 

Initialize version class.

Definition at line 27 of file modules.cpp.

00028 : Major(major), Minor(minor), Revision(revision), Build(build), Flags(flags), API(api_ver)
00029 {
00030 }


Member Data Documentation

const int Version::API
 

Definition at line 242 of file modules.h.

Referenced by InspIRCd::LoadModule().

const int Version::Build
 

Definition at line 242 of file modules.h.

Referenced by cmd_modules::Handle(), InspIRCd::LoadModule(), and TreeSocket::Modules().

const int Version::Flags
 

Definition at line 242 of file modules.h.

Referenced by cmd_modules::Handle(), InspIRCd::LoadModule(), and TreeSocket::Modules().

const int Version::Major
 

Version numbers, build number, flags and API version.

Definition at line 242 of file modules.h.

Referenced by cmd_modules::Handle(), InspIRCd::LoadModule(), and TreeSocket::Modules().

const int Version::Minor
 

Definition at line 242 of file modules.h.

Referenced by cmd_modules::Handle(), InspIRCd::LoadModule(), and TreeSocket::Modules().

const int Version::Revision
 

Definition at line 242 of file modules.h.

Referenced by cmd_modules::Handle(), InspIRCd::LoadModule(), and TreeSocket::Modules().


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