with GNATCOM.IInterface;

with GNATCOM.Errors;

package body MSHTML.ISVGAnimatedEnumeration_Interface is

   procedure Initialize (This : in out ISVGAnimatedEnumeration_Type) is
   begin
      Set_IID (This, IID_ISVGAnimatedEnumeration);
   end Initialize;

   function Pointer (This : ISVGAnimatedEnumeration_Type)
     return Pointer_To_ISVGAnimatedEnumeration
   is
   begin
      return To_Pointer_To_ISVGAnimatedEnumeration (Address (This));
   end Pointer;

   procedure Attach (This    : in out ISVGAnimatedEnumeration_Type;
                     Pointer : in     Pointer_To_ISVGAnimatedEnumeration)
   is
   begin
      Attach (This, GNATCOM.IInterface.To_Pointer_To_IUnknown
              (Pointer.all'Address));
   end Attach;

   procedure Put_baseVal
     (This : ISVGAnimatedEnumeration_Type;
      p    : Interfaces.C.unsigned_short)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Put_baseVal
         (Pointer (This),
          p));

   end Put_baseVal;

   function Get_baseVal
     (This : ISVGAnimatedEnumeration_Type)
     return Interfaces.C.unsigned_short
   is
       RetVal : aliased Interfaces.C.unsigned_short;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_baseVal
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_baseVal;

   procedure Put_animVal
     (This : ISVGAnimatedEnumeration_Type;
      p    : Interfaces.C.unsigned_short)
   is
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Put_animVal
         (Pointer (This),
          p));

   end Put_animVal;

   function Get_animVal
     (This : ISVGAnimatedEnumeration_Type)
     return Interfaces.C.unsigned_short
   is
       RetVal : aliased Interfaces.C.unsigned_short;
   begin
      GNATCOM.Errors.Error_Check
        (Pointer (This).Vtbl.Get_animVal
         (Pointer (This),
          RetVal'Unchecked_Access));

      return RetVal;
   end Get_animVal;

end MSHTML.ISVGAnimatedEnumeration_Interface;

