1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
/**************************************************************/
/* ********************************************************** */
/* * * */
/* * PROBLEM DESCRIPTION * */
/* * * */
/* ********************************************************** */
/**************************************************************/
#ifndef _DESC_
#define _DESC_
/* * This program is free software; you can redistribute * */
/* * it and/or modify it under the terms of the FreeBSD * */
/* * Licence. * */
/* * * */
/* * 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 LICENCE file * */
/* * for more details. * */
/**************************************************************/
/* Includes */
/**************************************************************/
#include <stdio.h>
#include "memory.h"
#include "strings.h"
/**************************************************************/
/* Structures */
/**************************************************************/
typedef enum { DFG_SATISFIABLE, DFG_UNSATISFIABLE, DFG_UNKNOWNSTATE } DFG_STATE;
/* Used for the texts from description section. */
typedef struct DFGDESCRIPTION_HELP {
char* name;
char* author;
char* version;
char* logic;
DFG_STATE status;
char* description;
char* date;
} DFGDESCRIPTION_NODE;
typedef DFGDESCRIPTION_NODE* DFGDESCRIPTION;
/**************************************************************/
/* Functions */
/**************************************************************/
DFGDESCRIPTION desc_Create(void);
void desc_Delete(DFGDESCRIPTION);
/* Functions for accessing description information */
const char* desc_Name(DFGDESCRIPTION);
const char* desc_Author(DFGDESCRIPTION);
const char* desc_Version(DFGDESCRIPTION);
const char* desc_Logic(DFGDESCRIPTION);
const char* desc_StatusString(DFGDESCRIPTION);
DFG_STATE desc_Status(DFGDESCRIPTION);
const char* desc_Description(DFGDESCRIPTION);
const char* desc_Date(DFGDESCRIPTION);
void desc_FPrintDescription(DFGDESCRIPTION, FILE*);
#endif
|