ASDV-Cpp/Assignments/MP4_CalebFontenot/userData.h

58 lines
1.1 KiB
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>
const std::string DASHES = "------------";
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;
}
};
userData enterRecord();
userData *findRecord(const std::vector<userData>& data);
void changeEntry(std::vector<userData>& data);
void deleteEntry(std::vector<userData>& data);
std::string displayData(std::vector<userData> data);
std::string displayData(const userData& entry);
std::vector<userData> getData();
void updateData(std::vector<userData> data);
std::vector<std::string> structContents(const userData *entry);
#endif //MP4_CALEBFONTENOT_USERDATA_H