Created
October 27, 2013 01:48
-
-
Save charlie5/7177028 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with System; | |
limited with DoXMLAda.Docs.Lists; | |
package DoXMLAda.Docs is | |
-- IDoc | |
type Base_Doc is abstract new Wrapper with private; | |
-- IDocPara - paragraphs? | |
type Doc_Para is new Base_Doc with private; | |
type List_access is access Lists.List'Class; | |
function Get_Contents_List (Self : in Doc_Para) return List_access; | |
private | |
type Base_Doc is abstract new Wrapper with null record; | |
type Doc_Para is new Base_Doc with null record; | |
end DoXMLAda.Docs; | |
with DoXMLAda.Docs.Lists; | |
package body DoXMLAda.Docs is | |
function Get_Contents_List (Self : in Doc_Para) return List_access is | |
begin | |
return L : List_access := new Lists.List | |
do | |
Set_Internal (L.all, Contents (Self.Internal)); | |
end return; | |
end Get_Contents_List; | |
end DoXMLAda.Docs; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment