text
stringlengths
0
234
is
begin
return Self.is_Public;
end is_Public;
procedure is_Public (Self : in out Item; Now : in Boolean := True)
is
begin
Self.is_Public := Now;
end is_Public;
----------
-- Streams
--
procedure View_write (Stream : not null access Ada.Streams.Root_Stream_Type'Class;
Self : in View)
is
use Ada.Tags;
begin
if Self = null
then
AdaM.Id'write (Stream, null_Id);
return;
end if;
AdaM.Id'write (Stream, Self.Id);
String 'output (Stream, external_Tag (Self.all'Tag));
end View_write;
procedure View_read (Stream : not null access Ada.Streams.Root_Stream_Type'Class;
Self : out View)
is
Id : AdaM.Id;
begin
AdaM.Id'read (Stream, Id);
if Id = null_Id
then
Self := null;
return;
end if;
declare
use Ada.Tags;
the_String : constant String := String'Input (Stream); -- Read tag as string from stream.
the_Tag : constant Tag := Descendant_Tag (the_String, Item'Tag); -- Convert to a tag.
begin
Self := View (AdaM.Factory.to_View (Id, the_Tag));
Function Definition: -- procedure Name_is (Self : in out Item; Now : in String)
Function Body: -- is
-- begin
-- Self.Name := +Now;
-- end Name_is;
function Context (Self : in Item) return AdaM.Context.view
is
begin
return Self.Context;
end Context;
-- procedure add (Self : in out Item; the_Declaration : in Source.Entity_View)
-- is
-- begin
-- Self.public_Entities.append (the_Declaration); -- Add the new attribute to current attributes.
-- end add;
--
--
-- procedure rid (Self : in out Item; the_Declaration : in Source.Entity_View)
-- is
-- begin
-- Self.public_Entities.delete (Self.public_Entities.find_Index (the_Declaration)); -- Remove the old attribute from current attributes.
-- end rid;
--
--
--
--
-- function public_Entities (Self : access Item) return access Source.Entities
-- is
-- begin
-- return Self.public_Entities'Access;
-- end public_Entities;
--
--
-- procedure public_Entities_are (Self : in out Item; Now : in Source.Entities)
-- is
-- begin
-- Self.public_Entities := Now;
-- end public_Entities_are;