/* -*-C-*- +====================================================================== | FILE: dt_convert.h | AUTHOR: Michael A. Kappler | DESCRIPTION: Declarations for the CONVERSION Toolkit (tm) | | Copyright (c) 2004-2005, Daylight Chemical Information Systems, Inc. +====================================================================== */ #ifndef DT_CONV_INCLUDED #define DT_CONV_INCLUDED 1 /* C language entry points */ #define dt_alloc_conversion dt_e_alloc_conversion #define dt_convert dt_e_convert #define dt_formattype dt_e_formattype #define dt_formatname dt_e_formatname /* Application Programmer Interface */ #ifdef __cplusplus extern "C" { #endif dt_Handle DX_API_PUBLIC dt_e_alloc_conversion(dt_Integer ifmt, dt_Integer ofmt); dt_Handle DX_API_PUBLIC dt_e_convert(dt_Handle conv, dt_Handle seq); dt_Integer DX_API_PUBLIC dt_e_formattype(dt_Handle conv, dt_Handle seq); dt_String DX_API_PUBLIC dt_e_formatname(dt_Integer *len, dt_Integer type); #ifdef __cplusplus } #endif /* Input/Output Definitions */ #define DX_CONV_IFMT "cnv_ifmt" #define DX_CONV_OFMT "cnv_ofmt" #define DX_CONV_FEED "cnv_feed" /* Options */ #define DX_CONV_BSTY "cnv_bsty" #define DX_CONV_ISOM "cnv_isom" #define DX_CONV_NAME "cnv_name" /* Information */ #define DX_CONV_INDEX "cnv_index" /* Format Types */ #define DX_CONV_FMT_ERR -1 #define DX_CONV_FMT_ANY 0 /* Daylight Languages */ #define DX_CONV_FMT_DAY 10 #define DX_CONV_FMT_SMI 11 #define DX_CONV_FMT_SMA 12 #define DX_CONV_FMT_SMR 13 #define DX_CONV_FMT_TDT 14 /* Daylight Objects */ #define DX_CONV_OBJ_DAY 20 #define DX_CONV_OBJ_SMI 21 #define DX_CONV_OBJ_SMA 22 #define DX_CONV_OBJ_SMR 23 #define DX_CONV_OBJ_DEP 24 #define DX_CONV_OBJ_CNF 25 /* MDL CTfile Formats */ #define DX_CONV_FMT_MDL 30 #define DX_CONV_FMT_MOL 31 #define DX_CONV_FMT_RGF 32 #define DX_CONV_FMT_SDF 33 #define DX_CONV_FMT_SDT 34 #define DX_CONV_FMT_RXN 35 #define DX_CONV_FMT_RDF 36 #define DX_CONV_FMT_V30 37 #define DX_CONV_FMT_V3R 38 #endif /* DT_CONV_INCLUDED */