6#ifndef FLOWDEVICE_FACTORY_H
7#define FLOWDEVICE_FACTORY_H
28 std::unique_lock<std::mutex> lock(flowDevice_mutex);
36 std::unique_lock<std::mutex> lock(flowDevice_mutex);
49 static std::mutex flowDevice_mutex;
57 return FlowDeviceFactory::factory()->newFlowDevice(model);
File contains the FactoryBase class declarations.
Factory class that supports registering functions to create objects.
Factory class to create FlowDevice objects.
virtual FlowDevice * newFlowDevice(const std::string &flowDeviceType)
Create a new flow device by type name.
virtual void deleteFactory()
Virtual abstract function that deletes the factory.
Base class for 'flow devices' (valves, pressure regulators, etc.) connecting reactors.
FlowDevice * newFlowDevice(const std::string &model)
Create a FlowDevice object of the specified type.
Namespace for the Cantera kernel.