PhreeqcDatabase.hpp
The class used to store and retrieve data of chemical species.
Definition: Database.hpp:32
The class used to store and retrieve data of chemical species from PHREEQC databases.
Definition: PhreeqcDatabase.hpp:30
auto load(const String &database) -> PhreeqcDatabase &
Extend this PhreeqcDatabase object with contents in given database file.
static auto contents(const String &name) -> String
Return the contents of an embedded PHREEQC database as a string.
PhreeqcDatabase()
Construct a default PhreeqcDatabase object.
static auto fromContents(const String &contents) -> PhreeqcDatabase
Return a PhreeqcDatabase object constructed with given database text contents.
auto ptr() const -> SharedPtr< PHREEQC > const &
Return the underlying PHREEQC object.
static auto withName(const String &name) -> PhreeqcDatabase
Return a PhreeqcDatabase object constructed with an embedded database file.
static auto fromFile(const String &path) -> PhreeqcDatabase
Return a PhreeqcDatabase object constructed with a given local file.
static auto namesEmbeddedDatabases() -> Strings
Return the names of the currently supported embedded PHREEQC databases.
PhreeqcDatabase(const String &name)
Construct a PhreeqcDatabase object using an embedded PHREEQC database.
The namespace containing all components of the Reaktoro library.
Definition: Algorithms.hpp:29
std::vector< std::string > Strings
Convenient alias for std::vector<String>.
Definition: Types.hpp:55
std::shared_ptr< T > SharedPtr
Convenient alias for std::shared_ptr<T>.
Definition: Types.hpp:106