eric's fork test

Dependencies:   mbed

Fork of Pacemaker by 3k04 team

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #pragma once
00002 #include "mbed.h"
00003 #include "chamberData.h"
00004 #include "genData.h"
00005 #include "pulse.h"
00006 #include "hardware.h"
00007 #include "interface.h"
00008 
00009 //comment testing
00010 //adding comments to test version control functionality
00011 
00012 int main(){
00013     hardware* io = new hardware();
00014     chamberData* atrium = new chamberData(io->getSerial(),'a');
00015     chamberData* ventricle = new chamberData(io->getSerial(), 'v');
00016     pulse* ventPulse = new pulse(ventricle,io);
00017     interface a(io->getSerial() , ventPulse , atrium , ventricle);    
00018     delete ventricle; //code never reaches here, since we're stuck in the while loops of the pacing, user interface, etc.
00019     delete atrium;
00020     delete ventPulse;
00021     delete io;
00022     
00023 return 0;
00024     }
00025     
00026 //added ending comments