Click here to Skip to main content
15,886,137 members
Articles / Programming Languages / C++

ECG for Windows XP (Export data to TXT files)

Rate me:
Please Sign up or sign in to vote.
3.67/5 (13 votes)
1 Sep 20045 min read 95.4K   6.1K   40  
This is ECG_1.1 project version. Now the program can save medical records in to TXT files and can run on Windows XP.
// Person.cpp: implementation of the CPerson class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "Person.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
IMPLEMENT_SERIAL(CPerson,CObject,1);
CPerson::CPerson()
{
	//initialize variables to be empty before use
	sEGN = "";
	Birth_Date.SetDate(0000,00,00);
	sName_1 = "";
	sName_2 = "";
	sName_3 = "";
	Sex = "";
		
	sAddress = "";
	sPhone = "";

}

CPerson::~CPerson()
{

}

void CPerson::Serialize(CArchive& ar)
{
	CObject::Serialize(ar);
	if(ar.IsStoring())
		ar<<sEGN<<Birth_Date<<sName_1<<sName_2<<sName_3<<
		Sex<<sAddress<<sPhone;
	else
		ar>>sEGN>>Birth_Date>>sName_1>>sName_2>>sName_3>>
		Sex>>sAddress>>sPhone;
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Systems Engineer
Bulgaria Bulgaria
PhD, Cum Laude in digital automation systems
M.S. in Telemommunication management
B.S. in Telecommunication systems engineering
Programming: CUDA, C/C++, VHDL
Software and Hardware development and consulting:
data acquisition, image processing, medical instrumentation

Comments and Discussions