summaryrefslogtreecommitdiff
path: root/src/candidates.adb
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2017-02-05 00:43:59 +1100
committerJed Barber <jjbarber@y7mail.com>2017-02-05 00:43:59 +1100
commit5a8a3749f46828f1db5cbd6bd55d22ea9e188ab1 (patch)
tree165e0c87d3cfaa2cc4565f7d8ea84fe6445b5657 /src/candidates.adb
parent464156f1baa38b6c6bd95b1d4d4e9f7c05e4294e (diff)
CSV package done, sketched out Candidates package
Diffstat (limited to 'src/candidates.adb')
-rw-r--r--src/candidates.adb45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/candidates.adb b/src/candidates.adb
new file mode 100644
index 0000000..3701ffc
--- /dev/null
+++ b/src/candidates.adb
@@ -0,0 +1,45 @@
+
+
+with Ada.Text_IO;
+use Ada.Text_IO;
+with CSV;
+
+
+package body Candidates is
+
+
+ procedure Read_Candidates
+ (Data_File, State : in String;
+ Above_Ballot : out Above_Line_Ballot;
+ Below_Ballot : out Below_Line_Ballot;
+ Candidate_List : out Candidate_Vectors.Vector)
+ is
+ begin
+ end Read_Candidate;
+
+
+
+
+ function Lookup
+ (Above_Ballot : in Above_Line_Ballot;
+ Index : in Natural)
+ return CandidateID_Vectors.Vector is
+ begin
+ return Above_Ballot.Element (Index);
+ end Lookup;
+
+
+
+
+ function Lookup
+ (Below_Ballot : in Below_Line_Ballot;
+ Index : in Natural)
+ return CandidateID is
+ begin
+ return Below_Ballot.Element (Index);
+ end Lookup;
+
+
+end Candidates;
+
+