mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-02-11 22:35:16 -05:00
34 lines
919 B
C++
34 lines
919 B
C++
#ifndef SOLVERMAP_H_
|
|
#define SOLVERMAP_H_
|
|
|
|
#include <stdio.h>
|
|
#include "include.h"
|
|
|
|
class BaseSolver;
|
|
|
|
//! Solver map
|
|
/*!
|
|
This class manages the map of all solvers. A solver is a class that inherits
|
|
from BaseSolver and that interfaces the external fluid property computation
|
|
code. Only one instance is created for each external library.
|
|
|
|
Ian Bell
|
|
2012-2013
|
|
University of Liege, Liege, Belgium
|
|
|
|
Francesco Casella, Christoph Richter, Roberto Bonifetto
|
|
2006-2012
|
|
Copyright Politecnico di Milano, TU Braunschweig, Politecnico di Torino
|
|
*/
|
|
class SolverMap{
|
|
public:
|
|
static BaseSolver *getSolver(const string &mediumName, const string &libraryName, const string &substanceName);
|
|
static string solverKey(const string &libraryName, const string &substanceName);
|
|
|
|
protected:
|
|
//! Map for all solver instances identified by the SolverKey
|
|
static map<string, BaseSolver*> _solvers;
|
|
};
|
|
|
|
#endif // SOLVERMAP_H_
|