-
Notifications
You must be signed in to change notification settings - Fork 1
/
service_record.h
41 lines (36 loc) · 2.18 KB
/
service_record.h
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
31
32
33
34
35
36
37
38
39
40
41
//Service Record class overview
//Bennett Desmond
#ifndef SERVICE_RECORD_H
#define SERVICE_RECORD_H
#include <iostream>
#include <string>
#include <fstream>
#include <ctime>
#include <cstring>
class ServiceRecord {
public:
ServiceRecord(); //Dwefault contructor
ServiceRecord(std::string dateOfService, int providerNumber, int memberNumber, int serviceCode, std::string comments, std::string providerName, std::string memberName, std::string serviceName, float fees); //Parameterized constructor
~ServiceRecord(); //Destructor
bool generateProviderReport(std::ofstream &OutputFile,int &numOfConsultations, float &totalFees); //Writes the necessary information for a provider. This function returns false when a record is outside of a week and true otherwise.
bool generateMemberReport(std::ofstream &OutputFile); //Writed the necessary information for a meber report. This function returns false when a record is outside of a week and true otherwise.
bool EFTReport(float &totalFees); //This function accumulates the total fees for an EFT report. This function returns false if the record is outside of week and true otherwise.
bool weekVerification(); //This function verifies that the date passed to it is within seven days of the current date
void save(std::ofstream & write); //Saves a record to the file passed to it
bool load(std::ifstream & read); //Load a service record if one exists, otherwise returns false
float getFee();
bool weekVerificationWrapper(); //This fucntion is a wrapper function for the week verification function
bool accountingReport(int &numOfConsultations, float &totalFees); //This function accumulates the number of consulations and the fees for a specific provider. This function returns false when a record is reached that is outside of the week range and true otherwise.
private:
std::string recordDateAndTime;
std::string dateOfService;
int providerNumber;
int memberNumber;
int serviceCode;
std::string comments;
std::string providerName;
std::string memberName;
std::string serviceName;
float fees;
};
#endif