7#ifndef __STRATEGY_ISORTENTRIES_H__
8#define __STRATEGY_ISORTENTRIES_H__
64 virtual void Sort(std::vector<EntryInformation>&
entries) = 0;
static EntryInformation entries[]
List of individuals to play around with in the Strategy exercise.
The namespace containing all Design Pattern Examples implemented in C++.
SortOptions
Identifies the different sorting strategies available.
@ ByHeight
Sort numerically by height in ascending order.
@ ByAge
Sort numerically by age in ascending order.
@ ByName
Sort alphabetically name in ascending order.
Represents a sorting strategy.
std::shared_ptr< ISortEntries > shared_ptr_t
Alias to make it easier to work with a shared pointer.
virtual void Sort(std::vector< EntryInformation > &entries)=0
Sort the specified list of entries in place.
virtual ~ISortEntries()
Required virtual destructor for interfaces in C++.
virtual std::string ToString()=0
Return a string representation of the sorting strategy.
Represents an individual with a Name, Age, and Height.