IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 28, 2005, 4:48:19 PM (21 years ago)
Author:
eugene
Message:

adding PhotPars and PhotParsOld to autocode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libautocode/generate

    r3515 r3536  
    103103        if ($type eq "short")  { $pt1 = "I"; }
    104104        if ($type eq "int")    { $pt1 = "J"; }
     105        if ($type eq "e_time") { $pt1 = "J"; }
    105106        if ($type eq "float")  { $pt1 = "E"; }
    106107        if ($type eq "double") { $pt1 = "D"; }
     
    125126        if ($type eq "short")  { $pt1 = sprintf "I%s", $length; }
    126127        if ($type eq "int")    { $pt1 = sprintf "I%s", $length; }
     128        if ($type eq "e_time") { $pt1 = sprintf "I%s", $length; }
    127129        if ($type eq "float")  { $pt1 = sprintf "F%s", $length; }
    128130        if ($type eq "double") { $pt1 = sprintf "F%s", $length; }
     
    181183            $n = 2;
    182184        }
    183         if ($type eq "float")  {
     185        if ($type eq "int")    {
    184186            $T = "WORD";
    185187            $n = 4;
    186188        }
    187         if ($type eq "int")    {
     189        if ($type eq "e_time")    {
     190            $T = "WORD";
     191            $n = 4;
     192        }
     193        if ($type eq "float")  {
    188194            $T = "WORD";
    189195            $n = 4;
     
    217223            }
    218224        }
     225        if ($type eq "byte")   { $Nbytes += 1; }
     226        if ($type eq "short")  { $Nbytes += 2; }
     227        if ($type eq "int")    { $Nbytes += 4; }
     228        if ($type eq "e_time") { $Nbytes += 4; }
     229        if ($type eq "float")  { $Nbytes += 4; }
    219230        if ($type eq "double") { $Nbytes += 8; }
    220         if ($type eq "int")    { $Nbytes += 4; }
    221         if ($type eq "short")  { $Nbytes += 2; }
    222         if ($type eq "float")  { $Nbytes += 4; }
    223231    }
    224232    return ($Nbytes);
Note: See TracChangeset for help on using the changeset viewer.