fam_member.cpp
/*
* Nathan Eloe 4/24/2013
* fam_member.cpp
* Implementation of a family member class
*/
#include <fstream>
#include "fam_member.h"
#include <cstdlib>
FMember::FMember(const Location l):m_loc(l)
{
int line = rand()%4;
ifstream fin(FNAME.c_str());
for (int i=0; i<=line; i++)
{
fin >> m_name >> m_sloppy;
}
fin.close();
}
ostream & operator << (ostream & o, const FMember & f)
{
o << f.m_name << " is at " << f.m_loc << " with sloppiness: "
<< f.m_sloppy;
return o;
}