/* @(#)ptk.fc 17.1.1.1 (ES0-DMD) 01/25/02 17:35:36 */ /*=========================================================================== Copyright (C) 1995 European Southern Observatory (ESO) 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., 675 Massachusetss Ave, Cambridge, MA 02139, USA. Corresponding concerning ESO-MIDAS should be addressed as follows: Internet e-mail: midas@eso.org Postal address: European Southern Observatory Data Management Division Karl-Schwarzschild-Strasse 2 D 85748 Garching bei Muenchen GERMANY ===========================================================================*/ /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .COPYRIGHT (c) 1993 European Southern Observatory .IDENTifier PTK.FC .AUTHOR Rein H. Warmels, ESO-IPG .KEYWORDS High level graphics interface, Graphics keywords .LANGUAGE C .PURPOSE Fortran to C interface for PCK .COMMENTS Module contains interfaces for the keyword routines .ENVIRONMENT MIDAS FORTRAN and C standards .VERSION 1.0 13-Oct-1993 RHW -----------------------------------------------------------------------------*/ #include #include #include SUBROUTINE PTKRDC(cpar,maxvals,actvals,cval) CHARACTER cpar; /* IN : name of variable in PLCSTAT */ fint2c *maxvals; /* IN : no. of elements to get */ fint2c *actvals; /* OUT: actual no. of elements returned */ CHARACTER cval; /* OUT: values for the parameters */ { char mycval[80] ; PCKRDC(STRIPPED_STRING(cpar),*maxvals,actvals,mycval); STRFCOPY(cval,mycval); } SUBROUTINE PTKRDI(ipar,maxvals,actvals,ival) CHARACTER ipar; /* IN : name of variable in PLISTAT */ fint2c *maxvals; /* IN : no. of elements to get */ fint2c *actvals; /* OUT: actual no. of elements returned */ fint2c *ival; /* OUT: values for the parameters */ { PCKRDI(STRIPPED_STRING(ipar),*maxvals,actvals,ival); } SUBROUTINE PTKRDR(rpar,maxvals,actvals,rval) CHARACTER rpar; /* IN : name of variable in PLRSTAT */ fint2c *maxvals; /* IN : no. of elements to get */ fint2c *actvals; /* OUT: actual no. of elements returned */ float *rval; /* OUT: values for the parameters */ { PCKRDR(STRIPPED_STRING(rpar),*maxvals,actvals,rval); } SUBROUTINE PTKWRC(cpar,value) CHARACTER cpar; /* IN : name of variable in PLCSTAT */ CHARACTER value; /* IN : values for the parameters */ { PCKWRC(STRIPPED_STRING(cpar),STRIPPED_STRING(value)); } SUBROUTINE PTKWRI(ipar,nrval,ival) CHARACTER ipar; /* IN : name of variable in PLISTAT */ fint2c *nrval; /* IN : no. of elements to write */ fint2c *ival; /* IN : values for the parameters */ { PCKWRI(STRIPPED_STRING(ipar),*nrval,ival); } SUBROUTINE PTKWRR(rpar,nrval,rval) CHARACTER rpar; /* IN : name of variable in PLRSTAT */ fint2c *nrval; /* IN : no. of elements to write */ float *rval; /* IN : values for the parameters */ { PCKWRR(STRIPPED_STRING(rpar),*nrval,rval); } ROUTINE PTKDEF() { PCKDEF(); }