source: branches/alma/external/atnf/pks/pksmb_support.h@ 1683

Last change on this file since 1683 was 1325, checked in by mar637, 18 years ago

Changes to use casacore instead of casa_asap/aips++\nAdded atnf PKSIO library snapshot to external and linking against this local copy

File size: 3.0 KB
Line 
1//----------------------------------------------------------------------------
2//# pksmb_support.h: Support functions for Parkes glish clients.
3//----------------------------------------------------------------------------
4//# Copyright (C) 1994-2007
5//# Associated Universities, Inc. Washington DC, USA.
6//#
7//# This library is free software; you can redistribute it and/or modify it
8//# under the terms of the GNU Library General Public License as published by
9//# the Free Software Foundation; either version 2 of the License, or (at your
10//# option) any later version.
11//#
12//# This library is distributed in the hope that it will be useful, but WITHOUT
13//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
15//# License for more details.
16//#
17//# You should have received a copy of the GNU Library General Public License
18//# along with this library; if not, write to the Free Software Foundation,
19//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
20//#
21//# Correspondence concerning AIPS++ should be addressed as follows:
22//# Internet email: aips2-request@nrao.edu.
23//# Postal address: AIPS++ Project Office
24//# National Radio Astronomy Observatory
25//# 520 Edgemont Road
26//# Charlottesville, VA 22903-2475 USA
27//#
28//# Original: David Barnes, February 1997.
29//# $Id: pksmb_support.h,v 19.9 2007/02/07 06:44:05 cal103 Exp $
30//----------------------------------------------------------------------------
31#ifndef ATNF_PKSMB_SUPPORT_H
32#define ATNF_PKSMB_SUPPORT_H
33
34// AIPS++ includes.
35#include <casa/aips.h>
36#include <casa/Arrays/Array.h>
37#include <casa/BasicSL/String.h>
38
39// ATNF includes.
40#include <atnf/pksGlish/GlishSysEvent.h>
41#include <atnf/pksGlish/GlishRecord.h>
42
43#include <casa/namespace.h>
44#define NIGHTTIME_ELEVATION_LIMIT -5.0
45
46
47// Global generic Glish setup operations.
48void pksmbSetup(GlishSysEventSource &glishStream,
49 String clientName = String("Unknown client"));
50Bool shutdown_event(GlishSysEvent &event, void *);
51Bool unknown_event(GlishSysEvent &event, void *);
52
53
54// Global Glish parameter accessing routines.
55template<class T> Bool getParm(const GlishRecord &parms, const String &item,
56 const T &default_val, T &value);
57template<class T> Bool getParm(const GlishRecord &parms, const String &item,
58 const T &default_val, Array<T> &value);
59template<class T> Bool getParm(const GlishRecord &parms, const String &item,
60 const Array<T> &default_val, Array<T> &value);
61
62// Global message logging functions.
63void logMessage(String msg);
64void logMessage(String msg, uInt val, String suffix = "");
65void logMessage(String msg, Int val, String suffix = "");
66void logMessage(String msg, Double val, String suffix = "");
67void logWarning(String msg);
68void logError(String msg);
69
70#ifndef AIPS_NO_TEMPLATE_SRC
71#include <atnf/pks/pksmb_support.cc>
72#endif //# AIPS_NO_TEMPLATE_SRC
73#endif
Note: See TracBrowser for help on using the repository browser.