InChI
 
Loading...
Searching...
No Matches
inchi_dll_b.h
Go to the documentation of this file.
1/*
2 * International Chemical Identifier (InChI)
3 * Version 1
4 * Software version 1.07
5 * April 30, 2024
6 *
7 * MIT License
8 *
9 * Copyright (c) 2024 IUPAC and InChI Trust
10 *
11 * Permission is hereby granted, free of charge, to any person obtaining a copy
12 * of this software and associated documentation files (the "Software"), to deal
13 * in the Software without restriction, including without limitation the rights
14 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15 * copies of the Software, and to permit persons to whom the Software is
16 * furnished to do so, subject to the following conditions:
17 *
18 * The above copyright notice and this permission notice shall be included in all
19 * copies or substantial portions of the Software.
20 *
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27 * SOFTWARE.
28*
29* The InChI library and programs are free software developed under the
30 * auspices of the International Union of Pure and Applied Chemistry (IUPAC).
31 * Originally developed at NIST.
32 * Modifications and additions by IUPAC and the InChI Trust.
33 * Some portions of code were developed/changed by external contributors
34 * (either contractor or volunteer) which are listed in the file
35 * 'External-contributors' included in this distribution.
36 *
37 * info@inchi-trust.org
38 *
39*/
40
41
42#ifndef __INCHI_DLL_B_H__
43#define __INCHI_DLL_B_H__
44
45#ifndef AB_PARITY_UNKN
46#define AB_PARITY_UNKN 3 /* 3 => user marked as unknown parity */
47#endif
48#ifndef AB_PARITY_UNDF
49#define AB_PARITY_UNDF 4 /* 4 => parity cannot be defined because of symmetry or not well defined geometry */
50#endif
51
52
53#define MOL2INCHI_NO_RAM 1001
54#define MOL2INCHI_BAD_COMMAND_LINE 1002
55
56
57void FreeInchi_Stereo0D( inchi_Stereo0D **stereo0D );
58void FreeInchi_Atom( inchi_Atom **at );
59inchi_Atom *CreateInchiAtom( int num_atoms );
60inchi_Stereo0D *CreateInchi_Stereo0D( int num_stereo0D );
61void FreeInchi_Input( inchi_Input *inp_at_data );
62S_SHORT *is_in_the_slist( S_SHORT *pathAtom, S_SHORT nNextAtom, int nPathLen );
63int is_element_a_metal( char szEl[] );
64
65int InchiToInchiAtom( INCHI_IOSTREAM *inp_molfile,
66 inchi_Stereo0D **stereo0D,
67 int *num_stereo0D,
68 int bDoNotAddH,
69 int vABParityUnknown,
70 INPUT_TYPE nInputType,
71 inchi_Atom **at,
72 int max_num_at,
73 int *num_dimensions,
74 int *num_bonds,
75 char *pSdfLabel,
76 char *pSdfValue,
77 long *Id,
78 INCHI_MODE *pInpAtomFlags,
79 int *err,
80 char *pStrErr );
81
82
83#endif /* __INCHI_DLL_B_H__ */
enum tagInputType INPUT_TYPE
unsigned long INCHI_MODE
Definition ichisize.h:60
signed short S_SHORT
Definition inchi_api.h:119
inchi_Atom * CreateInchiAtom(int num_atoms)
Definition inchi_dll_b.c:117
int is_element_a_metal(char szEl[])
Definition inchi_dll_b.c:543
inchi_Stereo0D * CreateInchi_Stereo0D(int num_stereo0D)
Definition readinch.c:118
int InchiToInchiAtom(INCHI_IOSTREAM *inp_molfile, inchi_Stereo0D **stereo0D, int *num_stereo0D, int bDoNotAddH, int vABParityUnknown, INPUT_TYPE nInputType, inchi_Atom **at, int max_num_at, int *num_dimensions, int *num_bonds, char *pSdfLabel, char *pSdfValue, long *Id, INCHI_MODE *pInpAtomFlags, int *err, char *pStrErr)
Definition inchi_dll_b.c:582
void FreeInchi_Input(inchi_Input *inp_at_data)
Definition inchi_dll_b.c:439
void FreeInchi_Stereo0D(inchi_Stereo0D **stereo0D)
Definition readinch.c:125
void FreeInchi_Atom(inchi_Atom **at)
Definition inchi_dll_b.c:106
S_SHORT * is_in_the_slist(S_SHORT *pathAtom, S_SHORT nNextAtom, int nPathLen)
Definition inchi_dll_b.c:531
Definition inchi_api.h:434
Definition inchi_api.h:466
Definition inchi_api.h:134
Definition mode.h:1030