54 throw IOException(
"DarwinDon::write: fail to open stream.");
56 (out <<
"@DARwin 5.0 - DON").endLine();
62 vector<string> header;
63 header.push_back(
"N°");
64 header.push_back(
"Name");
65 (out << ind_nbr <<
"\t" << header.size() - 1).endLine();
71 for (
size_t j = 0; j < ind_nbr_ig; j++)
virtual void write(std::ostream &os, const DataSet &data_set) const =0
Write a DataSet on ostream.
void write(std::ostream &os, const DataSet &data_set) const
Write a DataSet on ostream.
size_t getNumberOfGroups() const
Get the number of Groups.
size_t getNumberOfIndividualsInGroup(size_t group_position) const
Get the number of Individuals in a Group.
const Individual * getIndividualAtPositionFromGroup(size_t group_position, size_t individual_position) const
Get an Individual from a Group.
const std::string & getId() const
Get the id of the Individual.