1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| void CLigne::sauvegarderXML()
{
ofstream fichier("config.xml", ios_base::app);
fichier<<"<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n";
fichier<<"<!DOCTYPE config_ligne_dtd SYSTEM \"config_ligne_dtd.dtd\">\n";
fichier<<"\n";
fichier<<"<Ligne identification=\"\">\n";
fichier<<"\n";
fichier.close();
toto();
}
void CLigne::toto()
{
...
}
void CBoucle_Principale::sauvegarderXML( ofstream &rStream)
{
CLigne::sauvegarderXML(rStream);
// sauvegardes complementaires...
}
/* ou si tu ne veux faire que toto() */
void CBoucle_Principale::sauvegarderXML( ofstream &rStream)
{
toto();
} |
Partager