LCFG::Component - Perl module for LCFG Generic component
This documentation refers to LCFG::Component version 1.15.1
This module provides a superclass for creating LCFG components in Perl.
Components should subclass LCFG::Component, create a new instance of the class, and call the Dispatch method to execute the component method specified in the command line arguments. The LCFG component perlex shows how this is used in practice.
LCFG::Component attempts to provide an identical functionality to the shell generic component ngeneric.
Equivalent Perl functions are provided for all the method functions described in lcfg-ngeneric. A hash of resource values is passed as the first argument to each function, rather than passing the resources in the environment.
Returns a reference to an LCFG::SysInfo object. This object can be used to discover information about the current platform (e.g. os, architecture) and the location of standard LCFG paths. See LCFG::SysInfo documentation for full details.
See the documentation for the ngeneric component.
All the variables described for lcfg-ngeneric have equivalent instance variables in the LCFG::Component class.
Methods with names of the form Method_
methodname, will be automatically called by the Dispatch function. Ad-hoc methods should arrange to call the Lock function if appropriate to prevent simultaneous method calls.
The shell generic functions.
An example component.
The template processor.
The resource handling functions.
ScientificLinux6, EnterpriseLinux7, MacOSX
Paul Anderson <dcspaul@inf.ed.ac.uk>
Copyright (C) 2007-2013 by University of Edinburgh
This library is free software; you can redistribute it and/or modify it under the terms of the GPL, version 2 or later.