The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download
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 (const std::string &sversion, int flags, int api_ver)
 Initialize version class.

Public Attributes

std::string version
 Version information.
const int Flags
 Flags and API version.
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 251 of file modules.h.


Constructor & Destructor Documentation

Version::Version const std::string sversion,
int  flags,
int  api_ver
 

Initialize version class.

Definition at line 29 of file modules.cpp.


Member Data Documentation

const int Version::API
 

Definition at line 260 of file modules.h.

Referenced by ModuleManager::Load().

const int Version::Flags
 

Flags and API version.

Definition at line 260 of file modules.h.

Referenced by ModuleManager::Load(), and TreeSocket::Modules().

std::string Version::version
 

Version information.

Definition at line 256 of file modules.h.

Referenced by ModuleManager::Load(), TreeSocket::Modules(), and ModuleHttpStats::OnEvent().


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