#include <iostream>
#include <string>
#include <fstream>
#include <vector>

#include "person.h"
#include "getclass.h" 


using namespace std;

int main(){

	/* Used if generating a report, you must comment out the code below

	ofstream fout("report.txt");
	fstream fin("test.html");
	Report(fin, fout);
	*/

	// Input Html File
	fstream sin("test.html");

	// The vector that will hold the results
	vector<Person> People;

	// Make an array of the functions that should be passed in
	void (Person::*f[3])(string *name);

	f[0] = &Person::setname;
    f[1] = &Person::setage;
	f[2] = &Person::setheight;

	Person Guy;
	
	People = GetRowTP(Guy, 1,3, f, sin, 3, 1, 1, 1);

	cout << endl;

	for ( int i = 0; i < People.size(); i++){
		
		cout << People[i].GetName() << " ";
		cout << People[i].GetAge() << " ";
		cout << People[i].GetHeight() << " ";
		cout << endl;
	}




	
	return 0;
}
	

	


			
