IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 10, 2007, 3:58:02 PM (19 years ago)
Author:
eugene
Message:

added extrule lookup (commented out for now)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-Config/lib/PS/IPP/Config.pm

    r12388 r12799  
    11# Copyright (c) 2006  Paul Price, Joshua Hoblitt
    22#
    3 # $Id: Config.pm,v 1.33 2007-03-09 22:31:15 price Exp $
     3# $Id: Config.pm,v 1.34 2007-04-11 01:58:02 eugene Exp $
    44
    55package PS::IPP::Config;
     
    377377}   
    378378
     379# Return an EXTNAME From the EXTNAME.RULE table in the camera configuration
     380##  sub extname_rule
     381##  {
     382##      my $self = shift;               # Configuration object
     383##      my $name = shift;               # Name of the EXTNAME to build
     384##      my $component = shift;  # For replacing {CHIP.NAME}
     385## 
     386##      unless (defined $self and defined $name) {
     387##      carp "Programming error";
     388##      exit($PS_EXIT_PROG_ERROR);
     389##      }
     390## 
     391##      my $camera = $self->{camera}; # Camera configuration
     392##      unless (defined $camera) {
     393##      carp "Camera has not yet been defined.\n";
     394##      return undef;
     395##      }
     396## 
     397##      my $extname_rules = _mdLookupMD($camera, 'EXTNAME.RULES');      # File rules
     398##      unless (defined $extname_fules) {
     399##      carp "Can't find EXTNAME.RULES in camera configuration.\n";
     400##      return undef;
     401##      }
     402## 
     403##      my $extname = _mdLookupStr($file, $name); # File name
     404##      unless (defined $extname) {
     405##      carp "Can't find $name within EXTNAME.RULES in camera configuration.\n";
     406##      return undef;
     407##      }
     408## 
     409##      if ($extname =~ /\{CHIP\.NAME\}/) {
     410##      unless (defined $component) {
     411##          carp "Programming error";
     412##          exit($PS_EXIT_PROG_ERROR);
     413##      }
     414##      $extname =~ s/\{CHIP\.NAME\}/$component/;
     415##      }
     416## 
     417##      return $extname;
     418##  }   
     419
    379420# Return the DVO.CAMERADIR in the camera configuration
    380421sub dvo_cameradir
Note: See TracChangeset for help on using the changeset viewer.