OGS
CreateWaterVapourDensity.cpp
Go to the documentation of this file.
1 
13 
14 #include "BaseLib/ConfigTree.h"
16 #include "WaterVapourDensity.h"
17 
18 namespace MaterialPropertyLib
19 {
20 std::unique_ptr<Property> createWaterVapourDensity(
21  BaseLib::ConfigTree const& config)
22 {
24  config.checkConfigParameter("type", "WaterVapourDensity");
25  DBUG("Create WaterVapourDensity phase property");
26 
27  // Second access for storage.
29  auto property_name = config.peekConfigParameter<std::string>("name");
30 
32  return std::make_unique<WaterVapourDensity>(std::move(property_name));
33 }
34 } // namespace MaterialPropertyLib
void DBUG(char const *fmt, Args const &... args)
Definition: Logging.h:27
T peekConfigParameter(std::string const &param) const
void checkConfigParameter(std::string const &param, T const &value) const
std::unique_ptr< Property > createWaterVapourDensity(BaseLib::ConfigTree const &config)