#include <stdlib.h>#include <ctype.h>#include <string.h>#include <math.h>#include <float.h>#include <limits.h>#include "mode.h"#include "mol_fmt.h"#include "ichierr.h"#include "util.h"#include "ichi_io.h"#include "bcf_s.h"#include "stb_sprintf.h"
 Include dependency graph for mol_fmt3.c:Functions | |
| static int | get_actual_atom_number (int index, int n, int *orig, int *fin) | 
| int | MolfileV3000Init (MOL_FMT_CTAB *ctab, char *pStrErr) | 
| Initialize V3000 connection table in MOL file data structure.   | |
| int | DeleteMolfileV3000Info (MOL_FMT_v3000 *v3000) | 
| Free memory allocated for V3000 specific data in the MOL file data structure.   | |
| char * | inchi_fgetsLf_V3000 (char *line, INCHI_IOSTREAM *inp_stream) | 
| Read a line from the input file stream, handling V3000 line continuations: Extended version of inchi_fgetsLf which is able of reading concatenated lines (ending with '-') of V3000 Molfile. Also removes "M  V30 " prefix" and normalizes the rest of string.   | |
| int | MolfileV3000ReadField (void *data, int data_type, char **line_ptr) | 
| Extract the 'data' in specified mol file field at given text position 'line_ptr'.   | |
| int | MolfileV3000ReadKeyword (char *key, char **line_ptr) | 
| Read keyword from the specified line.   | |
| int | MolfileV3000ReadCTABBeginAndCountsLine (MOL_FMT_CTAB *ctab, INCHI_IOSTREAM *inp_file, char *pStrErr) | 
| Read V3000 head (begin and counts line) of in MOL file data structure from input file stream.   | |
| int | MolfileV3000ReadSGroup (MOL_FMT_CTAB *ctab, INCHI_IOSTREAM *inp_file, int err, char *pStrErr) | 
| Read V3000 Sgroup information from the input file stream into the MOL file data structure.   | |
| int | MolfileV3000Read3DBlock (MOL_FMT_CTAB *ctab, INCHI_IOSTREAM *inp_file, int err, char *pStrErr) | 
| Read V3000 3D constraints block in MOL file data structure from input file stream.   | |
| int | MolfileV3000ReadCollections (MOL_FMT_CTAB *ctab, INCHI_IOSTREAM *inp_file, int err, char *pStrErr) | 
| Read V3000 collections block in MOL file data structure from input file stream.   | |
| int | MolfileV3000ReadAtomsBlock (MOL_FMT_CTAB *ctab, INCHI_IOSTREAM *inp_file, int err, char *pStrErr) | 
| Read V3000 atoms block in MOL file data structure from input file stream.   | |
| int | MolfileV3000ReadBondsBlock (MOL_FMT_CTAB *ctab, INCHI_IOSTREAM *inp_file, int err, char *pStrErr) | 
| Read V3000 bonds block in MOL file data structure from input file stream.   | |
| int | MolfileV3000ReadTailOfCTAB (MOL_FMT_CTAB *ctab, INCHI_IOSTREAM *inp_file, int err, char *pStrErr) | 
| Read V3000 tail (haptic bonds, stereo collections, Sgroups, 3D constraints, collections, end line) in to the MOL file data structure from input file stream.   | |
| int | MolfileV3000ReadHapticBond (MOL_FMT_CTAB *ctab, char **line_ptr, int **num_list, char *pStrErr) | 
| Read V3000 haptic bond information from the input line.   | |
| int | MolfileV3000ReadStereoCollection (MOL_FMT_CTAB *ctab, char **line_ptr, int **num_list, char *pStrErr) | 
| Read V3000 stereo collection information from the input line.   | |
| int | get_V3000_input_line_to_strbuf (INCHI_IOS_STRING *buf, INCHI_IOSTREAM *inp_stream) | 
| Get a V3000 input line and store it in a string buffer.   | |
| int DeleteMolfileV3000Info | ( | MOL_FMT_v3000 * | v3000 | ) | 
Free memory allocated for V3000 specific data in the MOL file data structure.
| v3000 | Pointer to the V3000 specific data structure to free. | 
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  static | 
 Here is the caller graph for this function:| int get_V3000_input_line_to_strbuf | ( | INCHI_IOS_STRING * | buf, | 
| INCHI_IOSTREAM * | inp_stream | ||
| ) | 
Get a V3000 input line and store it in a string buffer.
| buf | Pointer to the string buffer to store the line. | 
| inp_stream | Pointer to the input file stream. | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| char * inchi_fgetsLf_V3000 | ( | char * | line, | 
| INCHI_IOSTREAM * | inp_stream | ||
| ) | 
Read a line from the input file stream, handling V3000 line continuations: Extended version of inchi_fgetsLf which is able of reading concatenated lines (ending with '-') of V3000 Molfile. Also removes "M V30 " prefix" and normalizes the rest of string.
| line | Pointer to the buffer to store the read line. | 
| inp_stream | Pointer to the input file stream. | 
 Here is the call graph for this function:| int MolfileV3000Init | ( | MOL_FMT_CTAB * | ctab, | 
| char * | pStrErr | ||
| ) | 
Initialize V3000 connection table in MOL file data structure.
| ctab | Pointer to the connection table data structure. | 
| pStrErr | Pointer to the error string buffer. | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| int MolfileV3000Read3DBlock | ( | MOL_FMT_CTAB * | ctab, | 
| INCHI_IOSTREAM * | inp_file, | ||
| int | err, | ||
| char * | pStrErr | ||
| ) | 
Read V3000 3D constraints block in MOL file data structure from input file stream.
| ctab | Pointer to the connection table data structure. | 
| inp_file | Pointer to the input file stream. | 
| err | Error code. | 
| pStrErr | Pointer to the error string buffer. | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| int MolfileV3000ReadAtomsBlock | ( | MOL_FMT_CTAB * | ctab, | 
| INCHI_IOSTREAM * | inp_file, | ||
| int | err, | ||
| char * | pStrErr | ||
| ) | 
Read V3000 atoms block in MOL file data structure from input file stream.
| ctab | Pointer to the connection table data structure. | 
| inp_file | Pointer to the input file stream. | 
| err | Error code. | 
| pStrErr | Pointer to the error string buffer. | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| int MolfileV3000ReadBondsBlock | ( | MOL_FMT_CTAB * | ctab, | 
| INCHI_IOSTREAM * | inp_file, | ||
| int | err, | ||
| char * | pStrErr | ||
| ) | 
Read V3000 bonds block in MOL file data structure from input file stream.
| ctab | Pointer to the connection table data structure. | 
| inp_file | Pointer to the input file stream. | 
| err | Error code. | 
| pStrErr | Pointer to the error string buffer. | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| int MolfileV3000ReadCollections | ( | MOL_FMT_CTAB * | ctab, | 
| INCHI_IOSTREAM * | inp_file, | ||
| int | err, | ||
| char * | pStrErr | ||
| ) | 
Read V3000 collections block in MOL file data structure from input file stream.
| ctab | Pointer to the connection table data structure. | 
| inp_file | Pointer to the input file stream. | 
| err | Error code. | 
| pStrErr | Pointer to the error string buffer. | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| int MolfileV3000ReadCTABBeginAndCountsLine | ( | MOL_FMT_CTAB * | ctab, | 
| INCHI_IOSTREAM * | inp_file, | ||
| char * | pStrErr | ||
| ) | 
Read V3000 head (begin and counts line) of in MOL file data structure from input file stream.
| ctab | Pointer to the connection table data structure. | 
| inp_file | Pointer to the input file stream. | 
| pStrErr | Pointer to the error string buffer. | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| int MolfileV3000ReadField | ( | void * | data, | 
| int | data_type, | ||
| char ** | line_ptr | ||
| ) | 
Extract the 'data' in specified mol file field at given text position 'line_ptr'.
| data | Pointer to the destination buffer. | 
| data_type | Type of the data to read. E.g. MOL_FMT_STRING_DATA, MOL_FMT_CHAR_INT_DATA, etc. | 
| line_ptr | Pointer to the line buffer. | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| int MolfileV3000ReadHapticBond | ( | MOL_FMT_CTAB * | ctab, | 
| char ** | line_ptr, | ||
| int ** | num_list, | ||
| char * | pStrErr | ||
| ) | 
Read V3000 haptic bond information from the input line.
| ctab | Pointer to the connection table data structure. | 
| line_ptr | Pointer to the line buffer. | 
| num_list | Pointer to the list of numbers. | 
| pStrErr | Pointer to the error string buffer. | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| int MolfileV3000ReadKeyword | ( | char * | key, | 
| char ** | line_ptr | ||
| ) | 
Read keyword from the specified line.
| key | Pointer to the buffer to store the keyword. | 
| line_ptr | Pointer to the line buffer. | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| int MolfileV3000ReadSGroup | ( | MOL_FMT_CTAB * | ctab, | 
| INCHI_IOSTREAM * | inp_file, | ||
| int | err, | ||
| char * | pStrErr | ||
| ) | 
Read V3000 Sgroup information from the input file stream into the MOL file data structure.
| ctab | Pointer to the connection table data structure. | 
| inp_file | Pointer to the input file stream. | 
| err | Error code. | 
| pStrErr | Pointer to the error string buffer. | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| int MolfileV3000ReadStereoCollection | ( | MOL_FMT_CTAB * | ctab, | 
| char ** | line_ptr, | ||
| int ** | num_list, | ||
| char * | pStrErr | ||
| ) | 
Read V3000 stereo collection information from the input line.
| ctab | Pointer to the connection table data structure. | 
| line_ptr | Pointer to the line buffer. | 
| num_list | Pointer to the list of numbers. | 
| pStrErr | Pointer to the error string buffer. | 
 Here is the call graph for this function:
 Here is the caller graph for this function:| int MolfileV3000ReadTailOfCTAB | ( | MOL_FMT_CTAB * | ctab, | 
| INCHI_IOSTREAM * | inp_file, | ||
| int | err, | ||
| char * | pStrErr | ||
| ) | 
Read V3000 tail (haptic bonds, stereo collections, Sgroups, 3D constraints, collections, end line) in to the MOL file data structure from input file stream.
| ctab | Pointer to the connection table data structure. | 
| inp_file | Pointer to the input file stream. | 
| err | Error code. | 
| pStrErr | Pointer to the error string buffer. | 
 Here is the call graph for this function:
 Here is the caller graph for this function: