23 #include <boost/property_tree/ptree.hpp>
25 namespace AbstractFactory {
PtreeEmployeeFactory(const boost::property_tree::ptree &ptree)
Creates a factory that analyzes the given property tree, and construct an employee instance...
static constexpr const char * EmployeeNameKey
The Boost property tree key for the employees' names.
A data structure that represents an employee's data.
boost::property_tree::ptree m_ptree
static constexpr const char * EmployeeDepartmentNameKey
The Boost property tree key for the employees' department names.
An employee factory implementation that uses Boost property trees to construct employee instances...
Employee Create() final
Instructs this factory to create a value.
static constexpr const char * EmployeeSalaryKey
The Boost property tree key for the employees' salaries.
A class template for abstract factories: objects that construct values based on their internal state...