CoolProp  4.2.5
An open-source fluid property and humid air property database
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AllFluids.h
Go to the documentation of this file.
1 
2 #ifndef ALLFLUIDS_H
3 #define ALLFLUIDS_H
4 
5 #include "rapidjson_CoolProp.h"
6 
7 #include "FluidClass.h"
8 
12 {
13 private:
14  rapidjson::Document JSON, JSON_CAS;
15  std::map<std::string,long> fluid_index_map;
16  std::map<std::string,Fluid*> fluid_name_map;
17 
18 public:
19 
20  std::vector <Fluid*> FluidsList;
21 
25 
29 
32  Fluid * get_fluid(std::string name);
33 
36  Fluid * get_fluid(long iFluid);
37 
41  bool add_REFPROP_fluid(std::string FluidName, std::vector<double> xmol);
42 
45  long get_fluid_index(Fluid* pFluid);
46 
48  std::string FluidList();
49 };
50 
51 #endif
Fluid is the abstract base class that is employed by all the other fluids.
Definition: FluidClass.h:147
std::vector< Fluid * > FluidsList
A list of pointers to the instances of the fluids.
Definition: AllFluids.h:20
std::string FluidList()
Returns a std::string of a comma-separated list of the CoolProp names of all the fluids that are load...
Definition: AllFluids.cpp:313
A document for parsing JSON text as DOM.
Definition: document.h:691
Fluid * get_fluid(std::string name)
Definition: AllFluids.cpp:275
long get_fluid_index(Fluid *pFluid)
Definition: AllFluids.cpp:298
bool add_REFPROP_fluid(std::string FluidName, std::vector< double > xmol)
Definition: AllFluids.cpp:254