Files
Extern/vroni/Include/ext_appl_defs.h
T
SaraP 7cb5ebab3f Extern :
- aggiornamento Vroni a 7.8.
2025-01-29 16:25:40 +01:00

191 lines
5.5 KiB
C++

/*****************************************************************************/
/* */
/* Copyright (C) 2002--2025 M. Held */
/* */
/* This code is not in the public domain. All rights reserved! Please make */
/* sure to read the full copyright statement contained in "README.txt" or in */
/* the "main" file of this code, such as "main.cc". */
/* */
/*****************************************************************************/
/* */
/* Written by: Martin Held */
/* */
/* E-Mail: held@cs.sbg.ac.at */
/* Fax Mail: (+43 662) 8044-611 */
/* Voice Mail: (+43 662) 8044-6304 */
/* Snail Mail: Martin Held */
/* FB Informatik */
/* Universitaet Salzburg */
/* A-5020 Salzburg, Austria */
/* */
/*****************************************************************************/
#ifndef VRONI_EXT_APPL_DEFS_H
#define VRONI_EXT_APPL_DEFS_H
#include "defs.h"
#include <utility>
/* */
/* the following data types are used for user-defined entities that are to */
/* be stored as part of my data structures. you are welcome to redefine them */
/* according to your needs. however, please note that it is your task to */
/* make sure that the functions and macros for I/O operations are modified */
/* accordingly in io_parse.c !! also, you'd need to redefine the constants */
/* eap_NIL, eas_NIL, ean_NIL, eae_NIL, eam_NIL, and eao_NIL in the file */
/* ext_appl_defs.c to whatever constant integral value or structure that can */
/* be used for initializing the exterior application structures. see the */
/* sample use for eap_... below. */
/* */
typedef std::pair<int,int> eap_type; /* ext. appl. hook for pnt */
typedef std::pair<int,int> eas_type; /* ext. appl. hook for seg and arc */
typedef int ean_type; /* ext. appl. hook for node */
typedef int eae_type; /* ext. appl. hook for edge */
typedef int eam_type; /* ext. appl. hook for wmat */
typedef int eao_type; /* ext. appl. hook for off_data */
typedef int eah_type; /* ext. appl. hook for path_data */
/*
* sample user-specific eap data:
*
* typedef struct {
* long id;
* char ch[10];
* } eap_type;
*/
extern const eap_type eap_NIL;
extern const eas_type eas_NIL;
extern const ean_type ean_NIL;
extern const eam_type eam_NIL;
extern const eao_type eao_NIL;
extern const eae_type eae_NIL;
extern const eah_type eah_NIL;
#define ExtApplFuncNewInput
#define ExtApplFuncRestart
#define ExtApplFuncFirstPnts
#define ExtApplFuncDonePnts
#define ExtApplFuncFirstSegs
#define ExtApplFuncDoneSegs
#define ExtApplFuncDoneSegs
#define ExtApplFuncDoneArcs
#define ExtApplFuncFirstArcs
#define ExtApplFuncDoneVD
#define ExtApplFuncReset
#define ExtApplFuncIsoOffset
#define ExtApplFuncIsoOffsetDone
#define ExtApplFuncOffsetInit
#define ExtApplFuncOffsetRepeat
#define ExtApplFuncOffLoops
#define ExtApplFuncOffDone
#define ExtApplFuncOffStart
#define ExtApplFuncOffSegment
#define ExtApplFuncOffsetEnd
#define ExtApplFuncWMATInit
#define ExtApplFuncWMATLoop
#define ExtApplFuncWMATComputed
#define ExtApplFuncWMATDone
#define ExtApplFuncMICInit
#define ExtApplFuncMICDone
#define ExtApplFuncMICNotFound
#define ExtApplFuncVD_Warning
#define ExtApplFuncVD_Dbg_Warning
#define ExtApplFuncVD_IO_Warning
#define ExtApplFuncVD_Info
#define ExtApplFuncArgEvalParse
#define ExtApplFuncArgEvalInit
#define ExtApplFuncArgEvalDone
#define ExtApplFuncEvalErrorOption
#define ExtApplFuncEvalErrorExplain
#define ExtApplFuncReadOptCoord
#define ExtApplFuncReadOptNumber
#define ExtApplFuncReadNumber
#define ExtApplFuncReadPntData
#define ExtApplFuncReadSiteData
#define ExtApplFuncReadVectorData
#define ExtApplFuncWritePntData
#define ExtApplIsCorrectSide
#define ExtApplInsertDummyNode
#define ExtApplResetGraphicsData
#define ExtApplInitializeEdgeData
#define ExtApplInitializeProgram
#define ExtApplRemoveSeg
#define ExtApplRemoveArc
#define ExtApplSetStepSize
#define ExtApplSegPntIntersection
#define ExtApplArcPntIntersection
#define ExtApplSegSegIntersection
#define ExtApplSegArcIntersection
#define ExtApplArcArcIntersection
#define ExtApplHandleSeg
#define ExtApplHandleArc
#define ExtApplComputeRestarts
#define ExtApplAddDummyCorners
#define ExtApplScanVDEdges
#define ExtApplFuncVRONI_HandleError
#endif