/*! \file PolygonList.h * \brief PolygonList Abstract Base Class - Top of Inheritance Hierarchy */ #ifndef POLYGONLIST_H #define POLYGONLIST_H #include #include using namespace std; /*! * \class PolygonList * \brief PolygonList Abstract Base Class -Specifies functions subclasses must implement * * The PolygonList is an abstract class, this class specifies the functions for the different * container classes to use * */ class PolygonList { public: /*! * \param filename filename is the name of the file that will be opened * * readIntoList opens a file and reads it into the different containers */ virtual void readIntoList(string filename)=0; /*! * The printIteratively function uses indexes (if available) to print the contents of the * array. */ virtual void printIteratively()=0; /*! * The printPtr function uses pointers to data in the array to display the information * to the user */ virtual void printPtr() {} /*! * averageArea computes the total area of all objects in the array and divides by the total number. */ virtual double averageArea()=0; }; #endif