GIRAFFE Pipeline Reference Manual

giresponse.c

00001 /* $Id: giresponse.c,v 1.1 2008/04/24 13:46:49 rpalsa Exp $
00002  *
00003  * This file is part of the GIRAFFE Pipeline
00004  * Copyright (C) 2002-2006 European Southern Observatory
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00019  */
00020 
00021 /*
00022  * $Author: rpalsa $
00023  * $Date: 2008/04/24 13:46:49 $
00024  * $Revision: 1.1 $
00025  * $Name: giraffe-2_8_8 $
00026  */
00027 
00028 #ifdef HAVE_CONFIG_H
00029 #  include <config.h>
00030 #endif
00031 
00032 #include <cxmemory.h>
00033 
00034 #include "giresponse.h"
00035 
00036 
00043 GiResponse*
00044 giraffe_response_new(void)
00045 {
00046 
00047     GiResponse* self = cx_calloc(1, sizeof *self);
00048 
00049     if (self != NULL) {
00050         self->response = NULL;
00051         self->efficiency = NULL;
00052     }
00053 
00054     return self;
00055 
00056 }
00057 
00058 
00059 void
00060 giraffe_response_delete(GiResponse* self)
00061 {
00062 
00063     if (self != NULL) {
00064         if (self->response != NULL) {
00065             giraffe_image_delete(self->response);
00066             self->response = NULL;
00067         }
00068 
00069         if (self->efficiency != NULL) {
00070             giraffe_table_delete(self->efficiency);
00071             self->efficiency = NULL;
00072         }
00073 
00074         cx_free(self);
00075 
00076     }
00077 
00078     return;
00079 
00080 }
00081 

This file is part of the GIRAFFE Pipeline Reference Manual 2.8.8.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Fri Mar 4 10:50:27 2011 by doxygen 1.6.3 written by Dimitri van Heesch, © 1997-2004