// StudentRecord.h
// CSI 2131 Asst 2a by Naim R. El-Far (naim@discover.uottawa.ca)
// CSI 2131 - Winter 2006 - Prof. L.M. Moura

// File:	StudentRecord.h
// Desc:	Header file for class StudentRecord which will hold data for a single student extracted from the data file

#pragma once

#include <iostream>
#include <fstream>
using namespace std;

class StudentRecord {
public:
	long int	offsetInDataFile;
	string		lastName;
	string		firstName; //Can hold first name or first and second names
	string		studentNumber;
	string		unit;
	string		email;
	
	StudentRecord(); //Deafult constructor
	StudentRecord(long int, string); //Given a raw string and its offset in the data file, populate with student info
	StudentRecord(StudentRecord*); //Copy constructor
	~StudentRecord(); //Destructor
	void ParseAndFillFields(string); //Given a raw string, populate with student info
	void PrintFormatted(); //Print student record information
};
