7#ifndef __STRATEGY_ENTRYINFORMATION_H__
8#define __STRATEGY_ENTRYINFORMATION_H__
13#include "helpers/formatstring.h"
The namespace containing all Design Pattern Examples implemented in C++.
std::string formatstring(const char *fmt,...)
Use the given string and arguments to return a buffer containing the formatted string....
Represents an individual with a Name, Age, and Height.
EntryInformation(std::string name, int age, int height)
Constructor.
int Age
Age of this individual, in years.
std::string ToString()
Convert the entry into a string. In this case, a formatted string where name, age,...
std::shared_ptr< EntryInformation > shared_ptr_t
Alias to make it easier to work with a shared pointer.
int Height
Height of this individual, in inches.
std::string Name
Name of this individual.