Source code for DroneProject.save_load

# -*- coding: UTF-8 -*-


#Name:        James Hall
#Student No.: C00007006
#Institute:   Institute of Technology Carlow
#Project:     Drone Traffic Control System     
#Date:        April 2021 
#License:     GNU Affero General Public License v3.0

#save_load.py
"""
Used for functions relating to saving and loading Item Lists
"""
import pickle

[docs]def SaveDroneList(dronelist): """ Saves List of drones using pickle. """
#with open("database//config.dronelist", "wb") as config_dronelist_file: # pickle.dump(dronelist, config_dronelist_file)
[docs]def SaveLocationList(locationlist): """ Saves List of locations using pickle """
#with open("database//config.locationlist", "wb") as config_locationlist_file: # pickle.dump(locationlist, config_locationlist_file)
[docs]def SaveFlightList(flightlist): """ Save List of flights using pickle """
#with open("database//config.flightlist", "wb") as config_flightlist_file: # pickle.dump(flightlist, config_flightlist_file)
[docs]def LoadDroneList(): """ Loads list of drones using pickle """
#with open("database//config.dronelist", "rb") as drones: # dronelist = pickle.load(drones) # return dronelist
[docs]def LoadLocationList(): """ Loads list of locations using pickle """
#with open("database//config.locationlist", "rb") as locations: # locationlist = pickle.load(locations) # return locationlist
[docs]def LoadFlightList(): """ Loads list of flights using pickle """
#with open("database//config.flightlist", "rb") as flights: # flightlist = pickle.load(flights) # return flightlist