Represents an individual with a Name, Age, and Height. More...
#include <Strategy_EntryInformation.h>

Public Types | |
| using | shared_ptr_t = std::shared_ptr< EntryInformation > |
| Alias to make it easier to work with a shared pointer. | |
Public Member Functions | |
| EntryInformation (std::string name, int age, int height) | |
| Constructor. | |
| std::string | ToString () |
| Convert the entry into a string. In this case, a formatted string where name, age, and height are confined to columns. | |
Public Attributes | |
| std::string | Name |
| Name of this individual. | |
| int | Age |
| Age of this individual, in years. | |
| int | Height |
| Height of this individual, in inches. | |
Represents an individual with a Name, Age, and Height.
Definition at line 21 of file Strategy_EntryInformation.h.
| using shared_ptr_t = std::shared_ptr<EntryInformation> |
Alias to make it easier to work with a shared pointer.
Definition at line 26 of file Strategy_EntryInformation.h.
|
inline |
Constructor.
| name | Name of the individual. |
| age | Age of the individual (in years). |
| height | Height of the individual (in inches). |
Definition at line 49 of file Strategy_EntryInformation.h.
|
inline |
Convert the entry into a string. In this case, a formatted string where name, age, and height are confined to columns.
Definition at line 62 of file Strategy_EntryInformation.h.
References EntryInformation::Age, Helpers::formatstring(), EntryInformation::Height, and EntryInformation::Name.
| int Age |
Age of this individual, in years.
Definition at line 36 of file Strategy_EntryInformation.h.
Referenced by Strategy_SortEntries_ByAge::Sort(), and EntryInformation::ToString().
| int Height |
Height of this individual, in inches.
Definition at line 41 of file Strategy_EntryInformation.h.
Referenced by Strategy_SortEntries_ByHeight::Sort(), and EntryInformation::ToString().
| std::string Name |
Name of this individual.
Definition at line 31 of file Strategy_EntryInformation.h.
Referenced by Visitor_Shop::PickupOrder(), Visitor_Shop::PlaceOrder(), Strategy_SortEntries_ByName::Sort(), and EntryInformation::ToString().