summaryrefslogtreecommitdiffstats
path: root/include/gtt.hrl
blob: 8af7dcd0733f84e3b97c4873973675737b00b160 (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
-type digit()		:: 0..9.
-type global_title()	:: non_neg_integer().
-type digit_list()	:: [digit()].
-type nature_of_addr()	:: 1..256.	% FIXME
-type numbering_plan()	:: 1..256.	% FIXME

% Record describing a GTT match
-record(gtt_match, {
	 gt_range_from	:: global_title(),	% integer(), GT range lower boundary, included
	 gt_range_to	:: global_title(),	% integer(), GT range upper boundary, included
	 numbering_plan :: numbering_plan(),
	 nature_of_addr_ind :: nature_of_addr(),
	 dpc		:: non_neg_integer(),
	 ssn		:: non_neg_integer()
 	}).

% GTT action for replacing some digits
-record(gtt_act_repl_digits, {
	 replace_digit_start	:: non_neg_integer(),	% digit from which we should replace
	 replace_digit_end	:: non_neg_integer(),
	 new_digits		:: digit_list()
	}).

% GTT action for replacing the numbering plan
-record(gtt_act_repl_num_plan, {
	numbering_plan		:: numbering_plan()
	}).

% GTT action for a generic apply/3 call
-record(gtt_act_apply, {
	 funct,
	 args			:: list()
	}).