NAME
Meta::Baseline::Arch - library to provide utilities to handle architecture details.
COPYRIGHT
Copyright (C) 2001, 2002 Mark Veltzer; All rights reserved.
LICENSE
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
DETAILS
MANIFEST: Arch.pm
PROJECT: meta
VERSION: 0.33
SYNOPSIS
package foo;
use Meta::Baseline::Arch qw();
my($arch)=Meta::Baseline::Arch->new();
Meta::Baseline::Arch::get_cpu();
DESCRIPTION
This package will provide information about the current architecture on which you are running and will analyze architecture strings and return information from them.
FUNCTIONS
BEGIN()
init($)
analyze($$)
get_string($)
get_dire($)
get_obj_directory($)
get_lib_directory($)
get_dll_directory($)
get_bin_directory($)
TEST($)
FUNCTION DOCUMENTATION
- BEGIN()
-
This method will setup the accessor methods for this class. They are: cpu: id of the cpu that the compilation is for. cpu_version: version of the cpu that the compilation is for. os: id of the os that the compilation is for. os_version: version of the os that the compilation is for. compiler: compiler that did the compilation. compiler_version: version of the compiler that did the compilation. flagset_primary: which flag set was used (primary). flagset_secondary: which flag set was used (secondary).
- init($)
-
This method does initialization stuff. This is mostly internal.
- analyze($$)
-
This will get an architecture object and a string representing an architecture. This will check that the string is indeed an architecture (or will die) and if so will set the current object to that architecture.
- get_string($)
-
This will give you a description string for the architecture.
- get_dire($)
-
This will give you a directory name which uniquely identified this architecture.
- from_dire($$)
-
This will perform the reverse of analyze using the reverse hash.
- get_obj_directory($)
-
This will return the object directory for this architecture.
- get_lib_directory($)
-
This will return the library directory for this architecture.
- get_dll_directory($)
-
This will return the dynamic library directory for this architecture.
- get_bin_directory($)
-
This will return the binary directory for this architecture.
- TEST($)
-
Test suite for this module. It currently just creates an object, puts an architecture in it and checks the translation into directory names.
SUPER CLASSES
None.
BUGS
None.
AUTHOR
Name: Mark Veltzer
Email: mailto:veltzer@cpan.org
WWW: http://www.veltzer.org
CPAN id: VELTZER
HISTORY
0.00 MV bring databases on line
0.01 MV handle architectures better
0.02 MV adding an XML viewer/editor to work with the baseline
0.03 MV make quality checks on perl code
0.04 MV more perl checks
0.05 MV make Meta::Utils::Opts object oriented
0.06 MV check that all uses have qw
0.07 MV fix todo items look in pod documentation
0.08 MV more on tests/more checks to perl
0.09 MV change new methods to have prototypes
0.10 MV correct die usage
0.11 MV perl code quality
0.12 MV more perl quality
0.13 MV more perl quality
0.14 MV perl documentation
0.15 MV more perl quality
0.16 MV perl qulity code
0.17 MV more perl code quality
0.18 MV revision change
0.19 MV languages.pl test online
0.20 MV perl packaging
0.21 MV PDMT
0.22 MV md5 project
0.23 MV database
0.24 MV perl module versions in files
0.25 MV movies and small fixes
0.26 MV thumbnail project basics
0.27 MV thumbnail user interface
0.28 MV more thumbnail issues
0.29 MV website construction
0.30 MV web site development
0.31 MV web site automation
0.32 MV SEE ALSO section fix
0.33 MV teachers project
SEE ALSO
Meta::Baseline::Aegis(3), Meta::Class::MethodMaker(3), Meta::Ds::Dhash(3), Meta::Utils::Output(3), strict(3)
TODO
-add a collections for each component of the architecture so the class will know which are true architectures.
-make the class know which two architectures are compatible (compatibility is a one way graph...:)
-make all of the data above come from files.
-fix get_dire to give a directory name which is a little better than the clean concatenation (so it will be shorter...).
-add the cpu version component.
-make the version here be my faithful versiono.
-think more about if we really need the name "CPU" here or maybe just make this an array of components which are of interest ?
-move this out of this directory and into Development or something....