/usr/include/cat/TclAstroCat.h is in skycat 3.1.2+starlink1~b+dfsg-5.
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 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | // -*-c++-*-
#ifndef _TclAstroCat_h_
#define _TclAstroCat_h_
/*
* E.S.O. - VLT project/ESO Archive
* $Id: TclAstroCat.h,v 1.1.1.1 2009/03/31 14:11:52 cguirao Exp $
*
* TclAstroCat.h - Tcl interface to the AstroCatalog C++ class for
* accessing astronomical catalogs
*
* See the man page for a complete description.
*
* who when what
* -------------- -------- ----------------------------------------
* Allan Brighton 26 Sep 95 Created
* Peter W. Draper 18 Mar 09 Added commentsCmd and various commands for
* VO support.
*/
using namespace std;
#include "TclCommand.h"
#include "AstroCatalog.h"
/*
* This class declares the methods used to implement the Tcl astrocat
* command for accessing astronomical catalogs.
*/
class TclAstroCat : public TclCommand {
protected:
AstroCatalog* cat_; // pointer to current open catalog
WorldOrImageCoords pos1_, pos2_; // saved positions from last query
char equinoxStr_[32]; // saved equinox option from last query
FILE* feedback_; // file ptr for feedback during xfer, if set
QueryResult* result_; // saved pointer to results of previous query
// call a member function by name
virtual int call(const char* name, int len, int argc, char* argv[]);
// convert tcl list to QueryResult given column headings
virtual int getQueryResult(int numCols, char** colNames, const char* list,
const char* equinoxStr, QueryResult& r);
// Save (or insert) query results to the given file.
virtual int saveQueryResult(const char* filename, int numCols, char** colNames,
char* info, int iflag, const char* equinoxStr = NULL);
// Remove query results from the given file.
virtual int removeQueryResult(const char* filename, int numCols, char** colNames,
char* info, const char* equinoxStr = NULL);
// append the given keyword/value pair to the list
virtual void appendKeyVal(const char* keyword, const char* value);
virtual int appendKeyListVal(const char* keyword, const char* value);
virtual int appendListVal(const char* value);
// convert tcl list cat entry to config file format
virtual int tclListToConfigStreamValue(const char* tclList, ostream& os);
virtual int tclListToConfigStreamLine(const char* tclList, ostream& os);
virtual int tclListToConfigStream(const char* tclList, ostream& os);
// Return the catalog directory entry for the given name or path
CatalogInfoEntry* lookupCatalogDirectoryEntry(const char* dirList);
public:
// constructor
TclAstroCat(Tcl_Interp*, const char* cmdname, const char* instname);
~TclAstroCat();
// entry point from Tcl
static int astroCatCmd(ClientData, Tcl_Interp* interp, int argc, char* argv[]);
// -- tcl subcommands --
virtual int authorizeCmd(int argc, char* argv[]);
virtual int checkCmd(int argc, char* argv[]);
virtual int checkrowCmd(int argc, char* argv[]);
virtual int closeCmd(int argc, char* argv[]);
virtual int copyrightCmd(int argc, char* argv[]);
virtual int dec_colCmd(int argc, char* argv[]);
virtual int entryCmd(int argc, char* argv[]);
virtual int feedbackCmd(int argc, char* argv[]);
virtual int getcolCmd(int argc, char* argv[]);
virtual int getidposCmd(int argc, char* argv[]);
virtual int getimageCmd(int argc, char* argv[]);
virtual int getpreviewCmd(int argc, char* argv[]);
virtual int hascolCmd(int argc, char* argv[]);
virtual int headingsCmd(int argc, char* argv[]);
virtual int helpCmd(int argc, char* argv[]);
virtual int id_colCmd(int argc, char* argv[]);
virtual int infoCmd(int argc, char* argv[]);
virtual int is_tcsCmd(int argc, char* argv[]);
virtual int ispixCmd(int argc, char* argv[]);
virtual int iswcsCmd(int argc, char* argv[]);
virtual int loadCmd(int argc, char* argv[]);
virtual int longnameCmd(int argc, char* argv[]);
virtual int moreCmd(int argc, char* argv[]);
virtual int openCmd(int argc, char* argv[]);
virtual int plotCmd(int argc, char* argv[]);
virtual int queryCmd(int argc, char* argv[]);
virtual int queryposCmd(int argc, char* argv[]);
virtual int ra_colCmd(int argc, char* argv[]);
virtual int reloadCmd(int argc, char* argv[]);
virtual int removeCmd(int argc, char* argv[]);
virtual int rootCmd(int argc, char* argv[]);
virtual int saveCmd(int argc, char* argv[]);
virtual int searchcolsCmd(int argc, char* argv[]);
virtual int servtypeCmd(int argc, char* argv[]);
virtual int shortnameCmd(int argc, char* argv[]);
virtual int showcolsCmd(int argc, char* argv[]);
virtual int sortcolsCmd(int argc, char* argv[]);
virtual int sortorderCmd(int argc, char* argv[]);
virtual int stc_colCmd(int argc, char* argv[]);
virtual int symbolCmd(int argc, char* argv[]);
virtual int urlCmd(int argc, char* argv[]);
virtual int x_colCmd(int argc, char* argv[]);
virtual int y_colCmd(int argc, char* argv[]);
// PWD: extras.
virtual int systemCmd(int argc, char* argv[]);
virtual int epochCmd(int argc, char* argv[]);
virtual int equinoxCmd(int argc, char* argv[]);
virtual int equinoxPrefixCmd(int argc, char* argv[]);
virtual int unitCmd(int argc, char* argv[]);
virtual int ucdCmd(int argc, char* argv[]);
virtual int utypeCmd(int argc, char* argv[]);
virtual int datatypeCmd(int argc, char* argv[]);
virtual int commentsCmd(int argc, char* argv[]);
};
#endif /* _TclAstroCat_h_ */
|