Skip to content
Snippets Groups Projects
zmapUtils_P.h 5.24 KiB
Newer Older
/*  File: zmapUtils_P.h
 *  Author: Ed Griffiths (edgrif@sanger.ac.uk)
mh17's avatar
mh17 committed
 *  Copyright (c) 2006-2010: Genome Research Ltd.
 *-------------------------------------------------------------------
 * ZMap 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.
 * or see the on-line version at http://www.gnu.org/copyleft/gpl.txt
 *-------------------------------------------------------------------
 * This file is part of the ZMap genome database package
 * originated by
 * 	Ed Griffiths (Sanger Institute, UK) edgrif@sanger.ac.uk,
 *      Rob Clack (Sanger Institute, UK) rnc@sanger.ac.uk
 *
 * Description: 
 * HISTORY:
edgrif's avatar
edgrif committed
 * Last edited: Apr 23 15:49 2007 (edgrif)
 * Created: Wed Mar 31 11:53:45 2004 (edgrif)
 * CVS info:   $Id: zmapUtils_P.h,v 1.133 2010-05-06 12:27:24 zmap Exp $
 *-------------------------------------------------------------------
 */
#ifndef ZMAP_UTILS_P_H
#define ZMAP_UTILS_P_H

#include <ZMap/zmapUtils.h>


edgrif's avatar
edgrif committed
/* ZMap version stuff.... */
#define ZMAP_TITLE "ZMap"
#define ZMAP_DESCRIPTION "A multi-threaded genome browser and annotation tool."
rds's avatar
rds committed
#define ZMAP_VERSION 0
#define ZMAP_RELEASE 1
#define ZMAP_UPDATE 91
edgrif's avatar
edgrif committed


/* Make a single version number out of the version, release and update numbers. */
#define ZMAP_MAKE_VERSION_NUMBER(VERSION, RELEASE, UPDATE) \
((VERSION * 10000) + (RELEASE * 100) + UPDATE)

/* Make a single version string out of the version, release and update numbers. */
#define ZMAP_MAKE_VERSION_STRING(VERSION, RELEASE, UPDATE) \
ZMAP_MAKESTRING(VERSION) "." ZMAP_MAKESTRING(RELEASE) "." ZMAP_MAKESTRING(UPDATE)

/* Make a title string containing the title of the application/library and
 *    and the version, release and update numbers. */
#define ZMAP_MAKE_TITLE_STRING(TITLE, VERSION, RELEASE, UPDATE) \
TITLE " - " ZMAP_MAKE_VERSION_STRING(VERSION, RELEASE, UPDATE)




/* Create a copyright string for dialogs etc. */
#define ZMAP_COPYRIGHT_STRING()                                  \
edgrif's avatar
edgrif committed
"Copyright (c) 2007: Genome Research Ltd."
/* Create a website string for dialogs etc. */
#define ZMAP_WEBSITE_STRING()                                  \
"http://wwwdev.sanger.ac.uk/Software/analysis/ZMap/"


/* Create a comments string for dialogs etc. */
#define ZMAP_COMMENTS_STRING(TITLE, VERSION, RELEASE, UPDATE)                                  \
"("ZMAP_MAKE_TITLE_STRING(TITLE, VERSION, RELEASE, UPDATE)", "              \
"compiled on - "__DATE__" "__TIME__")\n"                                                  \
"\n"                                                  \
"This application is part of the ZMap genome viewer/annotation package originally written by\n"    \
"Ed Griffiths (Sanger Institute, UK) edgrif@sanger.ac.uk\n"                            \
"and Roy Storey (Sanger Institute, UK) rds@sanger.ac.uk)\n"


/* Create a copyright string for dialogs etc. */
#define ZMAP_LICENSE_STRING()                                  \
"ZMap is distributed under the GNU  Public License, see http://www.gnu.org/copyleft/gpl.txt"



edgrif's avatar
edgrif committed
/* Create a copyright string to insert in the compiled application, this will show
 * up if someone looks through the executable or does a "what" on the executable. */
#define ZMAP_OBJ_COPYRIGHT_STRING(TITLE, VERSION, RELEASE, UPDATE, DESCRIPTION_STRING)          \
edgrif's avatar
edgrif committed
"@(#) \n"                                                                                       \
"@(#) ------------------------------------------------------------------------------------------ \n"             \
"@(#) Title/Version:  "ZMAP_MAKE_TITLE_STRING(TITLE, VERSION, RELEASE, UPDATE)"\n"              \
"@(#)      Compiled:  "__DATE__" "__TIME__"\n"                                                  \
"@(#)   Description:  " DESCRIPTION_STRING"\n"                                                  \
"@(#) Copyright (c):   Sanger Institute, 2006\n"                                                   \
edgrif's avatar
edgrif committed
"@(#) \n"                                                                                       \
"@(#) This application is part of the ZMap genome viewer/annotation package originally written by \n"    \
edgrif's avatar
edgrif committed
"@(#) 	Ed Griffiths (Sanger Institute, UK) edgrif@sanger.ac.uk, \n"                            \
"@(#)   and Roy Storey (Sanger Institute, UK) rds@sanger.ac.uk \n"                                \
edgrif's avatar
edgrif committed
"@(#) \n"                                                                                       \
"@(#) ZMap is distributed under the GNU  Public License, see http://www.gnu.org/copyleft/gpl.txt \n" \
"@(#) ------------------------------------------------------------------------------------------ \n"             \
"@(#) \n"


#define ZMAP_SEPARATOR "/"				    /* WE SHOULD BE ABLE TO CALL A FUNC
							       FOR THIS..... */