Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
abstract-factory/main.cpp File Reference

Main for Abstract Factory demo. More...

#include "constant-factory.h"
#include "employee.h"
#include "ptree-employee-factory.h"
#include "stdin-employee-factory.h"
#include <boost/property_tree/xml_parser.hpp>
#include <iostream>
Include dependency graph for abstract-factory/main.cpp:

Go to the source code of this file.

Functions

void printEmployee (const Employee &employee)
 Writes to standard output all information that pertains to the given employee. More...
 
void printEmployee (Factory< Employee > &factory)
 Instructs the given factory to create an Employee instance, and then writes all information pertaining to that instance to standard output. More...
 
boost::property_tree::ptree toPtree (const Employee &employee)
 Creates a Boost property tree that represents the given employee instance. More...
 
int main ()
 

Detailed Description

Main for Abstract Factory demo.

Definition in file abstract-factory/main.cpp.

Function Documentation

void printEmployee ( const Employee employee)

Writes to standard output all information that pertains to the given employee.

Definition at line 52 of file abstract-factory/main.cpp.

References AbstractFactory::Employee::DepartmentName, AbstractFactory::Employee::Name, and AbstractFactory::Employee::Salary.

Referenced by main(), and printEmployee().

Here is the caller graph for this function:

void printEmployee ( Factory< Employee > &  factory)

Instructs the given factory to create an Employee instance, and then writes all information pertaining to that instance to standard output.

Definition at line 63 of file abstract-factory/main.cpp.

References AbstractFactory::Factory< TResult, TArgs >::Create(), and printEmployee().

Here is the call graph for this function:

boost::property_tree::ptree toPtree ( const Employee employee)