Glud documentation
Help to the GLU record fields
Version: 1.06 - 8th, June 1998
NAME
%DataType.NRevconv (or %<@) - Multiple reverse data type conversion
SYNOPSIS
%DataType.NRevconv data_type_identifier [: resolver_treatement ]
DESCRIPTION
Specify an manner to convert a value in a data type
in another data type.
This field is used by multiple conversion ; one value
can return several results in target data type.
Its a reverse conversion.
(see %DataType.Revconv field for explanations)
The resolver treatement is specified by a set of functions working
as filters (pipe method - see examples)
The reserved parameter $1 will be replaced by the original value.
of the parameter
The GLU has the following internal functions:
.GetHttp(Url): HTTP call
.GluFilter(string with glu tags): Internal glu resolution
.Regex(pattern[,rewrite string]): Pattern matching by regular expr
.Echo(string): basic display
.Trim(string): Squeeze blanks before and after the parameter
.Astropos(syst_in,fmt_in,syst_out,fmt_out,coord): coordinate conversion
if the last parameter is missing, the std input of the function
is taken into account for it.
EXAMPLES
%DataType.NRevconv smbmgr'I : GetHttp("http://simbad/sim-id.pl?Ident=$1")\n | Trim
%DataType.NRevconv J2000 : Astropos("B1950","%Coo","J2000","%Coo",$1)
%DataType.NRevconv 'Prenom : GluFilter("<&StarHeads,rb $1>")\n | Regex("^[^ ]+ +([^ ]+)","\1")
%DataType.NRevconv CDS'bibmgr'R