Introduction
AvailHelper Class
Discussion
The AvailHelper class generates hash tables related
to availability macros.
Member Functions
- _initialize
Initializes an instance of an AvailHelper object.
- _initVersionHash
Initializes and returns a hash that maps availabity
tokens to version numbers.
- _initVersionStringHash
Initializes and returns a hash that maps version
numbers to human-readable availability strings.
- new
Creates a new AvailHelper object.
- parseString
Tears apart an availbility macro token string and
converts to a human-readable availability string.
- versionnum
Converts an availability token to a version number.
- versionstring
Converts a version number to a human-readable availability string.
Initializes an instance of an AvailHelper object.
Parameters
-
self
The object to initialize.
Initializes and returns a hash that maps availabity
tokens to version numbers.
Initializes and returns a hash that maps version
numbers to human-readable availability strings.
Creates a new AvailHelper object.
Parameters
-
param
A reference to the relevant package object (e.g.
HeaderDoc::AvailHelper->new() to allocate
a new instance of this class).
Tears apart an availbility macro token string and
converts to a human-readable availability string.
Parameters
-
self
An AvailHelper object.
-
string
A simple availability string (the ones without arguments).
-
fullpath
The path of the file where this string appears.
-
line
The line number in the file where this string appears.
Converts an availability token to a version number.
Parameters
-
self
An AvailHelper object.
-
string
The version token to convert into a version
number code.
Converts a version number to a human-readable availability string.
Parameters
-
self
An AvailHelper object.
-
num
The version number code to convert into a version string.
Member Data
- HeaderDoc::AvailHelper::VERSION
The revision control revision number for this module.
The revision control revision number for this module.
$HeaderDoc::AvailHelper::VERSION = '$Revision: 1298084577 $';
Discussion
In the git repository, contains the number of seconds since
January 1, 1970.
Last Updated: Saturday, August 06, 2016
|