#ifndef BOOK_H
#define BOOK_H

// User includes

#include "person.h"

#define BOOK_SIZE 200

typedef class book* bookPTR;

class book
{
public:

	book();
	void initBook();

	int getListingCount() { return(listingCount); }
	personField getSortType() { return(currentSort); }
	personField setSearchType();

	void displayBook();


	void addContact();
	int findContact();
	void editContact(int contactNum);
	void deleteContact(int contactNum);

	int readBook(char* filename = NULL);
	void writeBook(char* filename = NULL);

	void sortBook();



protected:

private:


	personField currentSort;

	person listing[BOOK_SIZE];
	int listingCount;


};

#endif

