This file is indexed.

/usr/include/cat/TcsCatalog.h is in skycat 3.1.2+starlink1~b-8+b2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
// -*-c++-*-
#ifndef _TcsCatalog_h_
#define _TcsCatalog_h_

/*
 * E.S.O. - VLT project/ESO Archive
 * $Id: TcsCatalog.h,v 1.1.1.1 2009/03/31 14:11:52 cguirao Exp $
 *
 * TcsCatalog.h - class specialized for accessing GSC, PPM or similar catalogs 
 *                for use by the TCS (Telescope Control Software).
 *
 * See the man page for a complete description.
 *
 * who             when       what
 * --------------  --------   ----------------------------------------
 * Allan Brighton  13 Jun 96  Created
 */

#include "AstroCatalog.h"
#include "TcsQueryResult.h"

/*
 * Class TcsCatalog
 *
 * This class is like class AstroCatalog, except that it assumes a
 * catalog has fixed columns, such as those that are found in the GSC or
 * PPM catalogs.  This class restricts itself to these fixed columns and
 * ignores the rest.  Each row of a TcsCatalog can be represented by a
 * TcsCatalogObject.  Any missing column values are set to the appropriate 
 * null value.
 */
class TcsCatalog : public AstroCatalog {
private:

public:
    // Note: these two methods are inherited. We just need to redefine them here to avoid
    // compiler warnings about hiding the parent versions.
    
    // Get the values for the specified columns for the object given by "id"
    // in the catalog and return 0 if all is OK
    virtual int getObject(
	const char* id,		      // in  - object id in catalog 
	int numCols,		      // in  - number of columns to get
	char** colNames,              // in  - array of column names to read 
	QueryResult& result) {	      // out - ref to object managing result 
	return AstroCatalog::getObject(id, numCols, colNames, result);
    }

    // search for the star closest to the given position, with the magnitude in 
    // the given range and return (via the last 2 args) the columns requested
    // by "colNames"
    virtual int searchClosestStar(
	int numCols,		     // in  - number of columns to get
	char** colNames,             // in  - array of column names to read 
	const WorldOrImageCoords& pos,	     // in  - center position in world coordinates
	double mag0,		     // in  - min magnitude 
	double mag1,		     // in  - max magnitude 
	QueryResult& result) {	     // out - ref to object managing result 
	return AstroCatalog::searchClosestStar(numCols, colNames, pos, mag0, mag1, result);
    }


public:
    // constructor - create catalog class instance
    // note: public interface uses TcsCatalog::open().
    // The argument represents the entry in the catalog config file for this catalog
    TcsCatalog(CatalogInfoEntry* e)
	: AstroCatalog(e) {}

    // destructor - close catalog and free any resources
    virtual ~TcsCatalog() {}

    // open the named catalog and return a pointer to a new 
    // TcsCatalog object created for it or NULL if errors occur
    static TcsCatalog* open(const char* name);

    // return the number of columns in the catalog
    int numCols() {return TcsCatalogObject::numCols();}

    // return the column names
    char** colNames() {return TcsCatalogObject::colNames();}
    const char* colName(int col) {return TcsCatalogObject::colName(col);}

    // return the column index for the given column name
    int colIndex(const char* colName) {return TcsCatalogObject::colIndex(colName);}

    // return true if the catalog contains the given column 
    int hasCol(const char* name) {return (colIndex(name) >= 0);}

    // -- the interface for the next 2 methods is different for TCS --

    // Get the object given by "id" in the catalog and return 0 if all is OK
    virtual int getObject(
	const char* id,		      // in  - object id in catalog 
	TcsCatalogObject& obj);	      // out - object for row, if found
    
    // search for the star closest to the given position, with the magnitude in 
    // the given range 
    virtual int searchClosestStar(
	const WorldCoords& pos,	     // in  - center position in world coordinates
	double mag0,		     // in  - min magnitude 
	double mag1,		     // in  - max magnitude 
	TcsCatalogObject& obj);	     // out - object for row, if found

};

#endif /* _TcsCatalog_h_ */