source: branches/polybatch/external/atnf/pks/pksmb_support.h@ 1939

Last change on this file since 1939 was 1720, checked in by Malte Marquarding, 15 years ago

Update from livedata CVS repository

File size: 3.2 KB
Line 
1//#---------------------------------------------------------------------------
2//# pksmb_support.h: Support functions for Parkes glish clients.
3//#---------------------------------------------------------------------------
4//# livedata - processing pipeline for single-dish, multibeam spectral data.
5//# Copyright (C) 1997-2009, Australia Telescope National Facility, CSIRO
6//#
7//# This file is part of livedata.
8//#
9//# livedata is free software: you can redistribute it and/or modify it under
10//# the terms of the GNU General Public License as published by the Free
11//# Software Foundation, either version 3 of the License, or (at your option)
12//# any later version.
13//#
14//# livedata is distributed in the hope that it will be useful, but WITHOUT
15//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
17//# more details.
18//#
19//# You should have received a copy of the GNU General Public License along
20//# with livedata. If not, see <http://www.gnu.org/licenses/>.
21//#
22//# Correspondence concerning livedata may be directed to:
23//# Internet email: mcalabre@atnf.csiro.au
24//# Postal address: Dr. Mark Calabretta
25//# Australia Telescope National Facility, CSIRO
26//# PO Box 76
27//# Epping NSW 1710
28//# AUSTRALIA
29//#
30//# http://www.atnf.csiro.au/computing/software/livedata.html
31//# $Id: pksmb_support.h,v 19.10 2009-09-29 07:45:02 cal103 Exp $
32//#---------------------------------------------------------------------------
33//# Original: David Barnes, February 1997.
34//#---------------------------------------------------------------------------
35#ifndef ATNF_PKSMB_SUPPORT_H
36#define ATNF_PKSMB_SUPPORT_H
37
38// AIPS++ includes.
39#include <casa/aips.h>
40#include <casa/Arrays/Array.h>
41#include <casa/BasicSL/String.h>
42
43// ATNF includes.
44#include <atnf/pksGlish/GlishSysEvent.h>
45#include <atnf/pksGlish/GlishRecord.h>
46
47#include <casa/namespace.h>
48#define NIGHTTIME_ELEVATION_LIMIT -5.0
49
50
51// Global generic Glish setup operations.
52void pksmbSetup(GlishSysEventSource &glishStream,
53 String clientName = String("Unknown client"));
54Bool shutdown_event(GlishSysEvent &event, void *);
55Bool unknown_event(GlishSysEvent &event, void *);
56
57
58// Global Glish parameter accessing routines.
59template<class T> Bool getParm(const GlishRecord &parms, const String &item,
60 const T &default_val, T &value);
61template<class T> Bool getParm(const GlishRecord &parms, const String &item,
62 const T &default_val, Array<T> &value);
63template<class T> Bool getParm(const GlishRecord &parms, const String &item,
64 const Array<T> &default_val, Array<T> &value);
65
66// Global message logging functions.
67void logMessage(String msg);
68void logMessage(String msg, uInt val, String suffix = "");
69void logMessage(String msg, Int val, String suffix = "");
70void logMessage(String msg, Double val, String suffix = "");
71void logWarning(String msg);
72void logError(String msg);
73
74#ifndef AIPS_NO_TEMPLATE_SRC
75#include <atnf/pks/pksmb_support.cc>
76#endif //# AIPS_NO_TEMPLATE_SRC
77#endif
Note: See TracBrowser for help on using the repository browser.