Skip to content
Snippets Groups Projects
Commit e9121446 authored by schaaf's avatar schaaf
Browse files

%[ER: 146]%

parent faea2698
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
../../../autoconf_share/bootstrap ../../../autoconf_share
dnl
dnl Process this file with autoconf to produce a configure script.
dnl
AC_INIT(src/DFTServer.h)
dnl AC_CONFIG_AUX_DIR(config)
dnl AM_CONFIG_HEADER(config/config.h)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(DFTServer, 0.1)
dnl Initialize for LOFAR (may set compilers)
lofar_INIT
dnl Checks for programs.
AC_PROG_AWK
AC_PROG_YACC
AC_PROG_CC
AC_PROG_CXX
AM_PROG_LEX
AC_PROG_INSTALL
AC_PROG_LN_S
AC_DISABLE_SHARED
AC_PROG_LIBTOOL
dnl Checks for libraries.
dnl dnl Replace `main' with a function in -lfl:
dnl AC_CHECK_LIB(fl, main)
dnl dnl Replace `main' with a function in -lcosev_r:
dnl AC_CHECK_LIB(cosev_r, main)
dnl dnl Replace `main' with a function in -lcosnm_r:
dnl AC_CHECK_LIB(cosnm_r, main)
dnl dnl Replace `main' with a function in -lorb_r:
dnl AC_CHECK_LIB(orb_r, main)
dnl dnl Replace `main' with a function in -lpthread:
dnl AC_CHECK_LIB(pthread, main)
dnl dnl Replace `main' with a function in -lvport_r:
dnl AC_CHECK_LIB(vport_r, main)
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(unistd.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
dnl Checks for library functions.
AC_FUNC_VPRINTF
dnl
dnl Check for LOFAR specific things
dnl
lofar_DEBUG_OPTIMIZE
lofar_CORBA
lofar_AIPSPP(1)
lofar_MPI
lofar_QATOOLS
lofar_DOCXX
lofar_PACKAGE(CEP/CPA/PSS3/MNS)
lofar_PACKAGE(CEP/BB/PSS3)
lofar_PACKAGE(CEP/CEPFrame)
lofar_EXTERNAL(psql,0,libpq-fe.h,pq)
dnl
dnl Output Makefiles
dnl
AC_OUTPUT(
src/Makefile
Makefile
)
bin_PROGRAMS = DFTServer
DOCHDRS = \
WH_DFTServer.h \
DFTServer_ClientStub.h \
DFTServer_ServerStub.h \
DFTServer.h \
DFTServer_SOURCES = $(DOCHDRS) \
WH_DFTServer.cc \
DFTServer_ClientStub.cc \
DFTServer_ServerStub.cc \
DFTServer.cc \
DFTServer_Main.cc
DFTServer_DEPENDENCIES = $(LOFAR_DEPEND)
include $(lofar_sharedir)/Makefile.common
// WH_DFTServer.cc:
//
// Copyright (C) 2000, 2001
// ASTRON (Netherlands Foundation for Research in Astronomy)
// P.O.Box 2, 7990 AA Dwingeloo, The Netherlands, seg@astron.nl
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// $Id$
//
//
//////////////////////////////////////////////////////////////////////
#include "CEPFrame/WH_DFTServer.h"
namespace LOFAR
{
WH_DFTServer::WH_DFTServer (const string& name)
: WorkHolder (1, 1, name,"WH_DFTServer")
{
getDataManager().addInDataHolder(0, new DH_DFTIn("DFTServer_in"));
getDataManager().addOutDataHolder(0, new DH_DFTOut("DFTServer_out"));
}
WH_DFTServer::~WH_DFTServer()
{}
WorkHolder* WH_DFTServer::construct (const string& name, int, int,
const KeyValueMap&)
{
return new WH_DFTServer (name);
}
WH_DFTServer* WH_DFTServer::make (const string& name)
{
return new WH_DFTServer (name);
}
void WH_DFTServer::process()
{
}
void WH_DFTServer::dump()
{
// cout << "WH_DFTServer" << endl;
// cout << "Timestamp " << 0 << " = "
// << getDataManager().getOutHolder(0)->getTimeStamp() << endl;
// cout << "Counter " << 0 << " = "
// << ((DH_DFTServer*)getDataManager().getOutHolder(0))->getCounter() << endl;
// cout << "Buffer ";
// for (int ch=0; ch<10; ch++){
// cout << ((DH_DFTServer*)getDataManager().getInHolder(0))->getBuffer()[ch] << ' ';
// }
// cout << endl;
}
}
//# WH_DFTServer.h: WorkHolder for the DFTServer
//#
//# Copyright (C) 2000, 2001
//# ASTRON (Netherlands Foundation for Research in Astronomy)
//# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands, seg@astron.nl
//#
//# This program is free software; you can redistribute it and/or modify
//# it under the terms of the GNU General Public License as published by
//# the Free Software Foundation; either version 2 of the License, or
//# (at your option) any later version.
//#
//# This program is distributed in the hope that it will be useful,
//# but WITHOUT ANY WARRANTY; without even the implied warranty of
//# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//# GNU General Public License for more details.
//#
//# You should have received a copy of the GNU General Public License
//# along with this program; if not, write to the Free Software
//# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//#
//# $Id$
#ifndef DFTSERVER_WH_DFTSERVER_H
#define DFTSERVER_WH_DFTSERVER_H
#include <lofar_config.h>
#include "tinyCEP/WorkHolder.h"
#include "BB/PSS3/DH_DFTRequest.h"
#include "BB/PSS3/DH_DFTResult.h"
namespace LOFAR
{
/**
This is the work holder for the DFTServer program.
*/
class WH_DFTServer: public WorkHolder
{
public:
/// Construct the work holder.
explicit WH_DFTServer (const string& name = "WH_DFTServer");
virtual ~WH_DFTServer();
/// Static function to create an object.
static WorkHolder* construct (const string& name, int ninput, int noutput,
const KeyValueMap&);
/// Make a fresh copy of the WH object.
virtual WH_DFTServer* make (const string& name);
/// Do a process step.
virtual void process();
/// Show the work holder on stdout.
virtual void dump();
private:
/// Forbid copy constructor.
WH_DFTServer (const WH_DFTServer&);
/// Forbid assignment.
WH_DFTServer& operator= (const WH_DFTServer&);
};
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment