Files
rdkit/Code/GraphMol/RGroupDecomposition/RGroupDecompJSONParsers.h
Paolo Tosco f66ad7e7c1 Replace awful enum reflection macros with Better Enums (#7913)
* - moved SMILES and RGroupDecomp JSON parsers to their own translation units
- added missing DLL export decorators that had been previously forgotten
- changed the signatures of MolToCXSmiles and updateCXSmilesFieldsFromJSON
to replace enum parameters with the underlying types
- updated ReleaseNotes.md

* make sure cxSmilesFields is only updated if the JSON string contains keys
belonging to the CXSmilesFields enum

* added missing copyright notices

---------

Co-authored-by: ptosco <paolo.tosco@novartis.com>
2024-10-25 08:17:07 +02:00

25 lines
720 B
C++

//
// Copyright (C) 2024 Novartis Biomedical Research and other RDKit contributors
//
// @@ All Rights Reserved @@
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of the RDKit source tree.
//
#pragma once
#include "RGroupDecompParams.h"
namespace RDKit {
RDKIT_RGROUPDECOMPOSITION_EXPORT void
updateRGroupDecompositionParametersFromJSON(
RGroupDecompositionParameters &params, const std::string &details_json);
RDKIT_RGROUPDECOMPOSITION_EXPORT void
updateRGroupDecompositionParametersFromJSON(
RGroupDecompositionParameters &params, const char *details_json);
} // end namespace RDKit