aboutsummaryrefslogtreecommitdiff
path: root/sgdfi/_db.py
blob: 03359a5e5ba6d46f18de4124a9b0759316d35916 (plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env python3
#******************************************************************************
# Copyright (C) 2018 Thomas "Cakeisalie5" Touhey <thomas@touhey.fr>
# This file is part of the sgdfi project, which is MIT-licensed.
#******************************************************************************
""" This submodule defines the local database (or data manager) for managing
	our knowledge of the intranet. """

__all__ = ["Database"]

class Database:
	""" The internal class to manage all data. """

	def __init__(self, cache_dir):
		self.__cache_dir = cache_dir

	# ---
	# Save and load the database.
	# ---

	def save(self):
		""" Save the database. """

		# TODO
		pass

	def load(self):
		""" Load the saved database. """

		# TODO
		pass

	# ---
	# Feed the database with fetched (and possibly incomplete) data.
	# ---

	def add_op(self, op):
		""" Add an operation. """

		# TODO
		pass

	def add_place(self, pl):
		""" Add a place. """

		# TODO
		pass

	def add_structure(self, st):
		""" Add a structure. """

		# TODO
		pass

	def add_adherent(self, ad):
		""" Add an adherent. """

		# TODO
		pass

# End of file.