-- $Date: 2004/03/08 11:05:10 $
-- $Revision: 1.2 $
-- $Author: jcrocholl $
-- $Hash: 593a1edbedf99a8d1ac59ed41a49fb1d $

-- This file was automatically created with ado.php.
-- Manual changes will be lost when it is updated.

package body Identifications is

   -- Constructor for instances.
   function Create
     return Identification_Access -- The newly created identification.
   is
      Result : Identification_Access := new Identification;
   begin
      return Result;
   end Create;

   -- Accessor to read the creators of a identification.
   function Get_Creators
     (This : access Identification-- The identification to read from.
     return Hash_Table_Access is    -- The creators of that identification.
   begin
      return This.Creators;
   end Get_Creators;

   -- Mutator to update the rights of a identification.
   procedure Set_Rights
     (This   : access Identification-- The identification to be updated.
      Rights : in String) is          -- The new rights of that identification.
   begin
      To_String_Access(Rights, This.Rights);
   end Set_Rights;

   -- Accessor to read the rights of a identification.
   function Get_Rights
     (This : access Identification-- The identification to read from.
     return String is               -- The rights of that identification.
   begin
      return To_String(This.Rights);
   end Get_Rights;

   -- Mutator to update the encoding of a identification.
   procedure Set_Encoding
     (This     : access Identification-- The identification to be updated.
      Encoding : in Encoding_Access) is -- The new encoding of that identification.
   begin
      This.Encoding := Encoding;
   end Set_Encoding;

   -- Accessor to read the encoding of a identification.
   function Get_Encoding
     (This : access Identification-- The identification to read from.
     return Encoding_Access is      -- The encoding of that identification.
   begin
      return This.Encoding;
   end Get_Encoding;

   -- Mutator to update the source of a identification.
   procedure Set_Source
     (This   : access Identification-- The identification to be updated.
      Source : in String) is          -- The new source of that identification.
   begin
      To_String_Access(Source, This.Source);
   end Set_Source;

   -- Accessor to read the source of a identification.
   function Get_Source
     (This : access Identification-- The identification to read from.
     return String is               -- The source of that identification.
   begin
      return To_String(This.Source);
   end Get_Source;

   -- Add a creator to this identification.
   procedure Add_Creator
     (This         : access Identification-- The identification object instance.
      Creator_Type : in String;             -- composer / arranger / ...
      Creator_Name : in String) is          -- The name of the creator.
   begin
      Put(This.Creators, Creator_Type, Creator_Name);
   end Add_Creator;

end Identifications;