#include ; #include ; #include #include //function for file output //if switch variable WhatToSave // = 0 saving all patient // = 1 saving hart of patient only // = 2 saving breast of patient only // = 3 saving electrode set on patient only void Manager::Save(const Patient& patient, char *filename,char *format, int WhatToSave) { ofstream out(filename); if( (WhatToSave == 0) | (WhatToSave == 1) ) { out<<"3DMESH" <x )<<"," <<( ((LPoint*)pc)->y )<<"," <<( ((LPoint*)pc)->z )< Next() ); } } if( (WhatToSave == 0) | (WhatToSave == 2) ) { out<<"3DMESH" <x )<<"," <<( ((LPoint*)pc)->y )<<"," <<( ((LPoint*)pc)->z )< Next() ); } } if( (WhatToSave == 0) | (WhatToSave == 3) ) { const Link * pc = patient.ElectrodeSet::GetHead(); while ( pc != 0 ) { out<<"POINT"<x )<<"," <<( ((LElectrode*)pc)->y )<<"," <<( ((LElectrode*)pc)->z )< Next() ); } } }