// deployer Services header // Copyright (C) 2024 Jean-Cloud // GNU General Public License v3 #if !defined(SERVICES_H) #define SERVICES_H #include #include #include #include #include "Service.h" using namespace std; class Services //extracts the list of uid|username|service from the services.csv file { public: Services(string servicesCSV="../src/services.csv"); vector getServices() const; const Service * findByUsername(string aUsername) const; const Service * findByID(int aUserID) const; list findByServer(string aServer) const; ~Services(); private: vector readServicesFromCSV (string CSV) const; vector services; }; #endif