/******************************************************************************
*
*  NSSDC/CDF					Header file for CDFconvert.
*
*  Version 1.4a, 14-Sep-95, Hughes STX.
*
*  Modification history:
*
*   V1.0  17-May-92, J Love	Original version.
*   V1.1  25-Jun-92, J Love	CDF V2.3 (shareable/NeXT/zVar).
*   V1.2  26-Nov-93, J Love	CDF V2.4.
*   V1.3  13-Dec-94, J Love	CDF V2.5.
*   V1.4  28-Mar-95, J Love	POSIX.
*   V1.4a 14-Sep-95, J Love	CDFexport-related changes.
*
******************************************************************************/

#if !defined(CDFCVTh_INCLUDEd__)
#define CDFCVTh_INCLUDEd__

/******************************************************************************
* Include files.
******************************************************************************/

#include "cdftools.h"

#if defined(mac)
#include "cdfcvt.rh"
#endif

/******************************************************************************
* Parameter/qualifier constants.
******************************************************************************/

#define CDFSPEC1parm	0
#define CDFSPEC2parm	1

#define SINGLEqual	0
#define MULTIqual	1
#define ROWqual		2
#define COLqual		3
#define HOSTqual	4
#define NETqual		5
#define SKELqual	6
#define LOGqual		7
#define NOLOGqual	8
#define PCTqual		9
#define NOPCTqual	10
#define DELqual		11
#define NODELqual	12
#define ZMODEqual	13
#define NEG2POSqual	14
#define NONEG2POSqual	15
#define REPORTqual	16
#define PAGEqual	17
#define NOPAGEqual	18
#define CACHEqual	19
#define STATSqual	20
#define NOSTATSqual	21
#define ENCODINGqual	22

/******************************************************************************
* Macro constants.
******************************************************************************/

#define MAX_COL_TO_USE		70
#define INDENT_CDF_STATUS	6
#define MAX_OUTPUT_TEXT_LEN	200
#define MINnHYPERS		5


#define SOURCEformat		(long) (-1)
#define SOURCEmajority		(long) (-1)
#define SOURCEencoding		(long) (-1)

/******************************************************************************
* Function Prototypes.
******************************************************************************/

Logical ConvertCDFs PROTOARGs((int argC, char *argV[]));
Logical ConvertCDF PROTOARGs((char *, char *));
Logical ConvertAttributes PROTOARGs((void));
Logical ConvertEntry PROTOARGs((long, int));
Logical ConvertVariables PROTOARGs((long, long));
Logical ConvertVariable PROTOARGs((long, Logical, long, long));
Logical StatusHandler PROTOARGs((char *, CDFstatus));

#if defined(mac)
Logical ConvertQOPs PROTOARGs((int *argC, char **argV[]));
#endif

/*****************************************************************************/

#endif
