//
//
//  Generated by StarUML(tm) C++ Add-In
//
//  @ Project : Untitled
//  @ File Name : Secrétaires.cpp
//  @ Date : 29/03/2010
//  @ Author :
//
//


#include "Secrétaires.h"
#include <fstream>


using namespace std;

void Secrétaires:: openDossier(string numSecu, long age, string maladie) {
    ifstream fichier("password.txt", ios::in);
    if(fichier)
    {
        do
        {
            getline(" ", string temp)
        }
        while( temp != NULL);
        cin << "ecriver votre password" << endl;
        cout >> string password;
        fichier << numSecu << " " << password;
        fichier.close();
    }

}

void Secrétaires:: closeDossier(string numSecu, long dateSortie) {
    ifstream fichier("password.txt", ios::in);
    if(fichier)
    {
        string dateSortie = dateDujour;

        fichier.close();
    }
}

void Secrétaires:: searchPatient(string numSecu) {
     ifstream fichier("password.txt", ios::in);
    if(fichier)
    {
        do
        {
            getline(" ", string temp)
        }
        while( temp != numSecu);

        fichier.close();
    }
}

