RDKit
Open-source cheminformatics and machine learning.
Loading...
Searching...
No Matches
MolCatalogParams.h
Go to the documentation of this file.
1//
2// Copyright (C) 2006 Greg Landrum
3//
4#include <RDGeneral/export.h>
5#ifndef _RD_MOL_CATALOG_PARAMS_H_
6#define _RD_MOL_CATALOG_PARAMS_H_
7
9#include <string>
10
11namespace RDKit {
12
13//! container for user parameters used to create a mol catalog
16 public:
17 MolCatalogParams() { d_typeStr = "MolCatalog Parameters"; }
18
20
21 //! copy constructor
23 d_typeStr = other.d_typeStr;
24 }
25 //! construct from a pickle string (serialized representation)
26 MolCatalogParams(const std::string &pickle);
27
28 //! serializes to the stream
29 void toStream(std::ostream &) const override;
30 //! returns a serialized (pickled) form
31 std::string Serialize() const override;
32 //! initialize from a stream containing a pickle
33 void initFromStream(std::istream &ss) override;
34 //! initialize from a string containing a pickle
35 void initFromString(const std::string &text) override;
36};
37} // namespace RDKit
38
39#endif
abstract base class for the container used to create a catalog
std::string d_typeStr
our type string
void initFromString(const std::string &text) override
initialize from a string containing a pickle
MolCatalogParams(const std::string &pickle)
construct from a pickle string (serialized representation)
void toStream(std::ostream &) const override
serializes to the stream
std::string Serialize() const override
returns a serialized (pickled) form
void initFromStream(std::istream &ss) override
initialize from a stream containing a pickle
MolCatalogParams(const MolCatalogParams &other)
copy constructor
~MolCatalogParams() override
#define RDKIT_MOLCATALOG_EXPORT
Definition export.h:297
Std stuff.