You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: INCHI-1-SRC/INCHI_BASE/src/mol_fmt.h
+150-2Lines changed: 150 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -853,50 +853,179 @@ int MolfileV3000ReadBondsBlock(MOL_FMT_CTAB *ctab,
853
853
INCHI_IOSTREAM*inp_file,
854
854
interr,
855
855
char*pStrErr);
856
+
857
+
/**
858
+
* @brief Read V3000 tail (haptic bonds, stereo collections, Sgroups, 3D constraints, collections, end line) in to the MOL file data structure from input file stream.
859
+
*
860
+
* @param ctab Pointer to the connection table data structure.
861
+
* @param inp_file Pointer to the input file stream.
862
+
* @param err Error code.
863
+
* @param pStrErr Pointer to the error string buffer.
864
+
* @return 0: Success (no error encountered, tail of CTAB read correctly)
865
+
* 1: Error (e.g., missing "END CTAB" marker, or other parsing errors)
866
+
* 7: Error in reading or interpreting V3000 collection lines
867
+
* 71, 77, etc.: Error codes from sub-blocks (e.g., SGroup, 3DBlock, Collection) plus 70, indicating which sub-block failed
868
+
* Other positive values: Error codes from called functions (e.g., MolfileV3000ReadSGroup, MolfileV3000Read3DBlock, MolfileV3000ReadCollections) plus 70
869
+
* Negative values: If an end-of-data marker ($$$$) is encountered during an error, the error code may be returned as a negative value (e.g., -1, -7, -71, etc.)
870
+
*/
856
871
intMolfileV3000ReadTailOfCTAB(MOL_FMT_CTAB*ctab,
857
872
INCHI_IOSTREAM*inp_file,
858
873
interr,
859
874
char*pStrErr);
875
+
876
+
/**
877
+
* @brief Read V3000 haptic bond information from the input line.
878
+
*
879
+
* @param ctab Pointer to the connection table data structure.
880
+
* @param line_ptr Pointer to the line buffer.
881
+
* @param num_list Pointer to the list of numbers.
882
+
* @param pStrErr Pointer to the error string buffer.
883
+
* @return Positive integer (nread > 0): Success; number of bytes/fields read from the haptic bond block.
884
+
* 0: No data read (rare, usually means nothing was parsed).
885
+
* -1: Error; parsing failed at any step (missing '(', invalid count, allocation failure, field read error, missing "ATTACH=ALL", etc.).
886
+
*/
860
887
intMolfileV3000ReadHapticBond(MOL_FMT_CTAB*ctab,
861
888
char**line_ptr,
862
889
int**num_list,
863
890
char*pStrErr);
891
+
892
+
/**
893
+
* @brief Read V3000 stereo collection information from the input line.
894
+
*
895
+
* @param ctab Pointer to the connection table data structure.
896
+
* @param line_ptr Pointer to the line buffer.
897
+
* @param num_list Pointer to the list of numbers.
898
+
* @param pStrErr Pointer to the error string buffer.
899
+
* @return Positive integer (nread > 0): Success; number of bytes/fields read from the stereo collection block.
900
+
* 0: No data read (rare, usually means nothing was parsed).
901
+
* -1: Error; parsing failed at any step (missing '(', invalid count, allocation failure, field read error, missing "ATTACH=ALL", etc.).
0 commit comments