Example #1
0
ptree
unparse(const Employee& employee)
{
    ptree tree;
    tree.put("name",    employee.getName());
    tree.put("address", employee.getAddress());
    tree.put("salary",  employee.getSalary());
    return tree;
}