lace_xml_0.1.0_b6aa904a/source/xml-writer.ads

 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
with
     ada.Strings.unbounded,
     ada.Text_IO;


package XML.Writer
is
   use ada.Strings.unbounded;


   procedure Start_Document (F :  in ada.Text_IO.File_Type);
   procedure End_Document   (F :  in ada.Text_IO.File_Type);

   procedure Start (F     : in ada.Text_IO.File_Type;
                    Name  : in String;
                    Atts  : in Attributes_view);

   procedure Start (F     : in ada.Text_IO.File_Type;
                    Name  : in unbounded_String;
                    Atts  : in Attributes_view);

   procedure Finish (F    : in ada.Text_IO.File_Type;
                     Name : in String);

   procedure Finish (F    : in ada.Text_IO.File_Type;
                     Name : in unbounded_String);

   procedure Empty (F     : in ada.Text_IO.File_Type;
                    Name  : in String;
                    Atts  : in Attributes_view);

   procedure Empty (F     : in ada.Text_IO.File_Type;
                    Name  : in unbounded_String;
                    Atts  : in Attributes_view);

   function "+"    (K, V : in String)                                  return Attribute_t;
   function "+"    (K, V : in String)                                  return Attributes_view;
   function "+"    (K    : in unbounded_String;
                    V    : in String)                                  return Attribute_t;
   function "+"    (K    : in unbounded_String;
                    V    : in String)                                  return Attributes_view;
   function "+"    (K    : in String;
                    V    : in unbounded_String)                        return Attribute_t;
   function "+"    (K    : in String;
                    V    : in unbounded_String)                        return Attributes_view;

   function MkAtt  (L, R : in Attribute_t)                             return Attributes_view;
   function "&"    (L, R : in Attribute_t)                             return Attributes_view;
   function "&"    (L    : in Attributes_view;   R:  in Attribute_t)   return Attributes_view;

end XML.Writer;