53 lines
968 B
C
53 lines
968 B
C
|
//
|
||
|
// Created by caleb on 4/8/24.
|
||
|
//
|
||
|
|
||
|
#ifndef MP4_CALEBFONTENOT_USERDATA_H
|
||
|
#define MP4_CALEBFONTENOT_USERDATA_H
|
||
|
|
||
|
#include <string>
|
||
|
#include <boost/serialization/vector.hpp>
|
||
|
|
||
|
struct userData {
|
||
|
std::string name;
|
||
|
std::string address;
|
||
|
|
||
|
std::string city;
|
||
|
std::string state;
|
||
|
std::string zip;
|
||
|
|
||
|
std::string phone;
|
||
|
|
||
|
double accountBal;
|
||
|
|
||
|
time_t dateOfLastPayment;
|
||
|
|
||
|
template<class Archive>
|
||
|
void serialize(Archive & ar, const unsigned int version){
|
||
|
ar & name;
|
||
|
ar & address;
|
||
|
ar & city;
|
||
|
ar & state;
|
||
|
ar & zip;
|
||
|
ar & phone;
|
||
|
ar & accountBal;
|
||
|
ar & dateOfLastPayment;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
void enterRecords(std::vector<userData> data);
|
||
|
|
||
|
userData findRecord(std::vector<userData> data);
|
||
|
|
||
|
void changeEntry(userData entry);
|
||
|
|
||
|
std::string displayData(std::vector<userData> data);
|
||
|
|
||
|
std::vector<userData> getData();
|
||
|
|
||
|
void updateData(std::vector<userData> data);
|
||
|
|
||
|
|
||
|
|
||
|
#endif //MP4_CALEBFONTENOT_USERDATA_H
|