blob: 3701ffc8844e498857ddc1dba5486a31812d0808 (
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
|
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;
|