Units of measurement for Ada 2.8 (Default branch)


 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements Software Releases - RSS News Units of measurement for Ada 2.8 (Default branch)
# 1  
Old 07-06-2008
Units of measurement for Ada 2.8 (Default branch)

ImageThe library provides an implementation of dimensioned values for Ada. Unit checks are made at run-time, if not optimized out by the compiler. SI and irregular measurement units are supported. Shifted units like degrees Celsius are supported too. Conversions from and back to strings are provided for all various irregular units. An extensive set of GTK widgets for dealing with dimensioned values is included, though use of GTK is not mandatory for the rest of the library.License: GNAT Modified GPL (GMGPL)Changes:
Conversion factors were verified and, whennecessary, corrected. The references to thesources are now provided in the documentation. Theirregular units dram, gill, and league were added.The SI derived unit katal (kat) was added. Theirregular unit candle was removed. Bq was moved toderived SI units. The Unicode ounce sign is nowsupported for ounces. A bug was fixed inGet_Value_As.Image

More...
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question
TEMPLATESPP1(1) 					   Templates Parser User's Guide					   TEMPLATESPP1(1)

NAME
templatespp - preprocessor based on templates parser SYNOPSIS
templatespp [-o file] file DESCRIPTION
templatespp is a pre-processor based on the template parser. It is generally used from scripts to process files and generate other files. One of the possible uses, for instance, is to write the CSS (style-sheet) of a web site as a template file (for instance `mycss.tcss'), and use template parser structures in there. This is a good way to share colors for instance, or to name constants, as is often done in Ada code. Here is a small example of such a CSS: @@SET@@ COLOR1=blue @@SET@@ COLOR2=red @@SET@@ LENGTH1=10 body {background:@_COLOR1_@} div {background:@_COLOR2_@} ul.class {background:@_COLOR1_@} /* same color as body */ ul {width:@_ADD(3):LENGTH1_@px} /* ul 3 pixels wider than li */ li {width:@_LENGTH1_@px} Such a file would be processed with the following command line: templatespp -o mycss.css mycss.tcss OPTIONS
-h Display a summary of options. -o file Write the output to file. SEE ALSO
templates2ada(1) The Template Parsers User's Guide in package libtemplates-parser-dev. AUTHOR
templatespp was written by Pascal Obry <p.obry@wanadoo.fr> as part of the Ada Web Server. This manual page was written by Ludovic Brenta <lbrenta@debian.org> for Debian GNU/Linux. GNU Ada Tools 2008-05-04 TEMPLATESPP1(1)