repo_name
stringlengths 9
74
| language
stringclasses 1
value | length_bytes
int64 11
9.34M
| extension
stringclasses 2
values | content
stringlengths 11
9.34M
|
---|---|---|---|---|
reznikmm/matreshka | Ada | 3,714 | ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Open Document Toolkit --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2014, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with XML.DOM.Elements;
package ODF.DOM.Presentation_Animations_Elements is
pragma Preelaborate;
type ODF_Presentation_Animations is limited interface
and XML.DOM.Elements.DOM_Element;
type ODF_Presentation_Animations_Access is
access all ODF_Presentation_Animations'Class
with Storage_Size => 0;
end ODF.DOM.Presentation_Animations_Elements;
|
persan/protobuf-ada | Ada | 1,267 | adb | pragma Ada_2012;
with Google.Protobuf.IO.Invalid_Protocol_Buffer_Exception;
package body Google.Protobuf.Wire_Format is
--------------
-- Make_Tag --
--------------
function Make_Tag
(Field_Number : in PB_Field_Type;
Wire_Type : in PB_Wire_Type)
return PB_UInt32
is
begin
return PB_UInt32 (Shift_Left (Field_Number, TAG_TYPE_BITS)) or
PB_UInt32 (PB_Wire_Type'Pos (Wire_Type));
end Make_Tag;
-----------------------
-- Get_Tag_Wire_Type --
-----------------------
function Get_Tag_Wire_Type
(Tag : in PB_UInt32)
return PB_Wire_Type
is
begin
declare
Result : constant PB_Wire_Type := PB_Wire_Type'Val (Tag and TAG_TYPE_MASK);
begin
return Result;
end;
exception
when Constraint_Error =>
Google.Protobuf.IO.Invalid_Protocol_Buffer_Exception.Invalid_Wire_Type;
return VARINT;
end Get_Tag_Wire_Type;
--------------------------
-- Get_Tag_Field_Number --
--------------------------
function Get_Tag_Field_Number
(Tag : in PB_UInt32)
return PB_Field_Type
is
begin
return PB_Field_Type (Shift_Right (Tag, TAG_TYPE_BITS));
end Get_Tag_Field_Number;
end Google.Protobuf.Wire_Format;
|
stcarrez/ada-util | Ada | 5,917 | ads | -----------------------------------------------------------------------
-- util-strings -- Various String Utility
-- Copyright (C) 2001, 2002, 2003, 2009, 2010, 2011, 2012, 2017, 2022 Stephane Carrez
-- Written by Stephane Carrez ([email protected])
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Ada.Strings;
with Ada.Strings.Unbounded;
with Ada.Containers;
with Ada.Containers.Hashed_Maps;
with Ada.Containers.Hashed_Sets;
private with Util.Concurrent.Counters;
package Util.Strings is
pragma Preelaborate;
-- Constant string access
type Name_Access is access constant String;
-- Compute the hash value of the string.
function Hash (Key : Name_Access) return Ada.Containers.Hash_Type;
-- Returns true if left and right strings are equivalent.
function Equivalent_Keys (Left, Right : Name_Access) return Boolean;
-- Search for the first occurrence of the character in the string
-- after the from index. This implementation is 3-times faster than
-- the Ada.Strings.Fixed version.
-- Returns the index of the first occurrence or 0.
function Index (Source : in String;
Char : in Character;
From : in Natural := 0) return Natural;
-- Search for the first occurrence of the character in the string
-- before the from index and going backward.
-- This implementation is 3-times faster than the Ada.Strings.Fixed version.
-- Returns the index of the first occurrence or 0.
function Rindex (Source : in String;
Ch : in Character;
From : in Natural := 0) return Natural;
-- Search for the first occurrence of the pattern in the string.
function Index (Source : in String;
Pattern : in String;
From : in Positive;
Going : in Ada.Strings.Direction := Ada.Strings.Forward) return Natural;
-- Returns True if the source string starts with the given prefix.
function Starts_With (Source : in String;
Prefix : in String) return Boolean;
-- Returns True if the source string ends with the given suffix.
function Ends_With (Source : in String;
Suffix : in String) return Boolean;
-- Returns True if the source contains the pattern.
function Contains (Source : in String;
Pattern : in String) return Boolean;
-- Simple string replacement within the source of the specified content
-- by another string. By default, replace only the first sequence.
function Replace (Source : in String;
Content : in String;
By : in String;
First : in Boolean := True) return String;
-- Returns Integer'Image (Value) with the possible space stripped.
function Image (Value : in Integer) return String;
-- Returns Integer'Image (Value) with the possible space stripped.
function Image (Value : in Long_Long_Integer) return String;
package String_Access_Map is new Ada.Containers.Hashed_Maps
(Key_Type => Name_Access,
Element_Type => Name_Access,
Hash => Hash,
Equivalent_Keys => Equivalent_Keys);
package String_Set is new Ada.Containers.Hashed_Sets
(Element_Type => Name_Access,
Hash => Hash,
Equivalent_Elements => Equivalent_Keys);
-- String reference
type String_Ref is private;
-- Create a string reference from a string.
function To_String_Ref (S : in String) return String_Ref;
-- Create a string reference from an unbounded string.
function To_String_Ref (S : in Ada.Strings.Unbounded.Unbounded_String) return String_Ref;
-- Get the string
function To_String (S : in String_Ref) return String;
-- Get the string as an unbounded string
function To_Unbounded_String (S : in String_Ref) return Ada.Strings.Unbounded.Unbounded_String;
-- Compute the hash value of the string reference.
function Hash (Key : in String_Ref) return Ada.Containers.Hash_Type;
-- Returns true if left and right string references are equivalent.
function Equivalent_Keys (Left, Right : in String_Ref) return Boolean;
overriding
function "=" (Left, Right : in String_Ref) return Boolean renames Equivalent_Keys;
function "=" (Left : in String_Ref;
Right : in String) return Boolean;
function "=" (Left : in String_Ref;
Right : in Ada.Strings.Unbounded.Unbounded_String) return Boolean;
-- Returns the string length.
function Length (S : in String_Ref) return Natural;
private
pragma Inline (To_String_Ref);
pragma Inline (To_String);
type String_Record (Len : Natural) is limited record
Counter : Util.Concurrent.Counters.Counter;
Str : String (1 .. Len);
end record;
type String_Record_Access is access all String_Record;
type String_Ref is new Ada.Finalization.Controlled with record
Str : String_Record_Access := null;
end record;
-- Increment the reference counter.
overriding
procedure Adjust (Object : in out String_Ref);
-- Decrement the reference counter and free the allocated string.
overriding
procedure Finalize (Object : in out String_Ref);
end Util.Strings;
|
DrenfongWong/tkm-rpc | Ada | 263 | ads | with Tkmrpc.Request;
with Tkmrpc.Response;
package Tkmrpc.Operation_Handlers.Ike.Dh_Create is
procedure Handle (Req : Request.Data_Type; Res : out Response.Data_Type);
-- Handler for the dh_create operation.
end Tkmrpc.Operation_Handlers.Ike.Dh_Create;
|
reznikmm/matreshka | Ada | 3,719 | ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Open Document Toolkit --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2014, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with XML.DOM.Elements;
package ODF.DOM.Text_Index_Source_Styles_Elements is
pragma Preelaborate;
type ODF_Text_Index_Source_Styles is limited interface
and XML.DOM.Elements.DOM_Element;
type ODF_Text_Index_Source_Styles_Access is
access all ODF_Text_Index_Source_Styles'Class
with Storage_Size => 0;
end ODF.DOM.Text_Index_Source_Styles_Elements;
|
johnperry-math/hac | Ada | 1,008 | ads | with HAC_Sys.Defs;
private package HAC_Sys.Parser.Calls is
use Defs;
procedure Push_and_Check_by_Value_Parameter (
CD : in out Compiler_Data;
Level : HAC_Sys.PCode.Nesting_level;
FSys : Symset;
Expected : Exact_Typ
);
procedure Push_by_Reference_Parameter (
CD : in out Compiler_Data;
Level : HAC_Sys.PCode.Nesting_level;
FSys : Symset;
Found : out Exact_Typ
);
procedure Entry_Call (
CD : in out Compiler_Data;
Level : HAC_Sys.PCode.Nesting_level;
FSys : Symset;
I : Integer;
CallType : HAC_Sys.PCode.Operand_1_Type
);
procedure Subprogram_or_Entry_Call (
CD : in out Compiler_Data;
Level : HAC_Sys.PCode.Nesting_level;
FSys : Symset;
I : Integer;
CallType : HAC_Sys.PCode.Operand_1_Type
);
end HAC_Sys.Parser.Calls;
|
reznikmm/matreshka | Ada | 14,120 | adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011-2012, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with AMF.Elements;
with AMF.Internals.Element_Collections;
with AMF.Internals.Helpers;
with AMF.Internals.Tables.UML_Attributes;
with AMF.Visitors.UML_Iterators;
with AMF.Visitors.UML_Visitors;
with League.Strings.Internals;
with Matreshka.Internals.Strings;
package body AMF.Internals.UML_Call_Events is
-------------------
-- Enter_Element --
-------------------
overriding procedure Enter_Element
(Self : not null access constant UML_Call_Event_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control) is
begin
if Visitor in AMF.Visitors.UML_Visitors.UML_Visitor'Class then
AMF.Visitors.UML_Visitors.UML_Visitor'Class
(Visitor).Enter_Call_Event
(AMF.UML.Call_Events.UML_Call_Event_Access (Self),
Control);
end if;
end Enter_Element;
-------------------
-- Leave_Element --
-------------------
overriding procedure Leave_Element
(Self : not null access constant UML_Call_Event_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control) is
begin
if Visitor in AMF.Visitors.UML_Visitors.UML_Visitor'Class then
AMF.Visitors.UML_Visitors.UML_Visitor'Class
(Visitor).Leave_Call_Event
(AMF.UML.Call_Events.UML_Call_Event_Access (Self),
Control);
end if;
end Leave_Element;
-------------------
-- Visit_Element --
-------------------
overriding procedure Visit_Element
(Self : not null access constant UML_Call_Event_Proxy;
Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control) is
begin
if Iterator in AMF.Visitors.UML_Iterators.UML_Iterator'Class then
AMF.Visitors.UML_Iterators.UML_Iterator'Class
(Iterator).Visit_Call_Event
(Visitor,
AMF.UML.Call_Events.UML_Call_Event_Access (Self),
Control);
end if;
end Visit_Element;
-------------------
-- Get_Operation --
-------------------
overriding function Get_Operation
(Self : not null access constant UML_Call_Event_Proxy)
return AMF.UML.Operations.UML_Operation_Access is
begin
return
AMF.UML.Operations.UML_Operation_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Operation
(Self.Element)));
end Get_Operation;
-------------------
-- Set_Operation --
-------------------
overriding procedure Set_Operation
(Self : not null access UML_Call_Event_Proxy;
To : AMF.UML.Operations.UML_Operation_Access) is
begin
AMF.Internals.Tables.UML_Attributes.Internal_Set_Operation
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_Operation;
---------------------------
-- Get_Client_Dependency --
---------------------------
overriding function Get_Client_Dependency
(Self : not null access constant UML_Call_Event_Proxy)
return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency is
begin
return
AMF.UML.Dependencies.Collections.Wrap
(AMF.Internals.Element_Collections.Wrap
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Client_Dependency
(Self.Element)));
end Get_Client_Dependency;
-------------------------
-- Get_Name_Expression --
-------------------------
overriding function Get_Name_Expression
(Self : not null access constant UML_Call_Event_Proxy)
return AMF.UML.String_Expressions.UML_String_Expression_Access is
begin
return
AMF.UML.String_Expressions.UML_String_Expression_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Name_Expression
(Self.Element)));
end Get_Name_Expression;
-------------------------
-- Set_Name_Expression --
-------------------------
overriding procedure Set_Name_Expression
(Self : not null access UML_Call_Event_Proxy;
To : AMF.UML.String_Expressions.UML_String_Expression_Access) is
begin
AMF.Internals.Tables.UML_Attributes.Internal_Set_Name_Expression
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_Name_Expression;
-------------------
-- Get_Namespace --
-------------------
overriding function Get_Namespace
(Self : not null access constant UML_Call_Event_Proxy)
return AMF.UML.Namespaces.UML_Namespace_Access is
begin
return
AMF.UML.Namespaces.UML_Namespace_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Namespace
(Self.Element)));
end Get_Namespace;
------------------------
-- Get_Qualified_Name --
------------------------
overriding function Get_Qualified_Name
(Self : not null access constant UML_Call_Event_Proxy)
return AMF.Optional_String is
begin
declare
use type Matreshka.Internals.Strings.Shared_String_Access;
Aux : constant Matreshka.Internals.Strings.Shared_String_Access
:= AMF.Internals.Tables.UML_Attributes.Internal_Get_Qualified_Name (Self.Element);
begin
if Aux = null then
return (Is_Empty => True);
else
return (False, League.Strings.Internals.Create (Aux));
end if;
end;
end Get_Qualified_Name;
-----------------------------------
-- Get_Owning_Template_Parameter --
-----------------------------------
overriding function Get_Owning_Template_Parameter
(Self : not null access constant UML_Call_Event_Proxy)
return AMF.UML.Template_Parameters.UML_Template_Parameter_Access is
begin
return
AMF.UML.Template_Parameters.UML_Template_Parameter_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Owning_Template_Parameter
(Self.Element)));
end Get_Owning_Template_Parameter;
-----------------------------------
-- Set_Owning_Template_Parameter --
-----------------------------------
overriding procedure Set_Owning_Template_Parameter
(Self : not null access UML_Call_Event_Proxy;
To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access) is
begin
AMF.Internals.Tables.UML_Attributes.Internal_Set_Owning_Template_Parameter
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_Owning_Template_Parameter;
----------------------------
-- Get_Template_Parameter --
----------------------------
overriding function Get_Template_Parameter
(Self : not null access constant UML_Call_Event_Proxy)
return AMF.UML.Template_Parameters.UML_Template_Parameter_Access is
begin
return
AMF.UML.Template_Parameters.UML_Template_Parameter_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.UML_Attributes.Internal_Get_Template_Parameter
(Self.Element)));
end Get_Template_Parameter;
----------------------------
-- Set_Template_Parameter --
----------------------------
overriding procedure Set_Template_Parameter
(Self : not null access UML_Call_Event_Proxy;
To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access) is
begin
AMF.Internals.Tables.UML_Attributes.Internal_Set_Template_Parameter
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_Template_Parameter;
-------------------------
-- All_Owning_Packages --
-------------------------
overriding function All_Owning_Packages
(Self : not null access constant UML_Call_Event_Proxy)
return AMF.UML.Packages.Collections.Set_Of_UML_Package is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "All_Owning_Packages unimplemented");
raise Program_Error with "Unimplemented procedure UML_Call_Event_Proxy.All_Owning_Packages";
return All_Owning_Packages (Self);
end All_Owning_Packages;
-----------------------------
-- Is_Distinguishable_From --
-----------------------------
overriding function Is_Distinguishable_From
(Self : not null access constant UML_Call_Event_Proxy;
N : AMF.UML.Named_Elements.UML_Named_Element_Access;
Ns : AMF.UML.Namespaces.UML_Namespace_Access)
return Boolean is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Is_Distinguishable_From unimplemented");
raise Program_Error with "Unimplemented procedure UML_Call_Event_Proxy.Is_Distinguishable_From";
return Is_Distinguishable_From (Self, N, Ns);
end Is_Distinguishable_From;
---------------
-- Namespace --
---------------
overriding function Namespace
(Self : not null access constant UML_Call_Event_Proxy)
return AMF.UML.Namespaces.UML_Namespace_Access is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Namespace unimplemented");
raise Program_Error with "Unimplemented procedure UML_Call_Event_Proxy.Namespace";
return Namespace (Self);
end Namespace;
------------------------
-- Is_Compatible_With --
------------------------
overriding function Is_Compatible_With
(Self : not null access constant UML_Call_Event_Proxy;
P : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access)
return Boolean is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Is_Compatible_With unimplemented");
raise Program_Error with "Unimplemented procedure UML_Call_Event_Proxy.Is_Compatible_With";
return Is_Compatible_With (Self, P);
end Is_Compatible_With;
---------------------------
-- Is_Template_Parameter --
---------------------------
overriding function Is_Template_Parameter
(Self : not null access constant UML_Call_Event_Proxy)
return Boolean is
begin
-- Generated stub: replace with real body!
pragma Compile_Time_Warning (Standard.True, "Is_Template_Parameter unimplemented");
raise Program_Error with "Unimplemented procedure UML_Call_Event_Proxy.Is_Template_Parameter";
return Is_Template_Parameter (Self);
end Is_Template_Parameter;
end AMF.Internals.UML_Call_Events;
|
reznikmm/gela | Ada | 894 | ads | -- This package provides Naming_Schema interface and its methods.
with League.Strings;
with Gela.Lexical_Types;
package Gela.Naming_Schemas is
pragma Preelaborate;
subtype File_Base_Name is League.Strings.Universal_String;
type Naming_Schema is limited interface;
-- Interface to get file name for given compilation unit.
type Naming_Schema_Access is access all Naming_Schema'Class;
for Naming_Schema_Access'Storage_Size use 0;
not overriding function Declaration_Name
(Self : Naming_Schema;
Symbol : Gela.Lexical_Types.Symbol)
return File_Base_Name is abstract;
-- Get file name for given library declaration unit.
not overriding function Body_Name
(Self : Naming_Schema;
Symbol : Gela.Lexical_Types.Symbol)
return File_Base_Name is abstract;
-- Get file name for given body or subunit.
end Gela.Naming_Schemas;
|
michalkonecny/polypaver | Ada | 1,527 | ads | package PP_LF_Exact is
-- Various SPARK functions for use in SPARK assertions.
-- These functions are then featured in VCs and PolyPaver will
-- understand their meaning. For each of these functions,
-- its semantics is the exact real interpretation of its name.
--
-- The LF in the package name stands for the Long_Float type.
--
-- Ideally all occurences of Long_Float in this package would be
-- replaced with Real and all floating point types would
-- be subtypes of Real.
-- Unfortunately, such type Real is not available in SPARK.
--# function Square (X : Long_Float) return Long_Float;
--# function Int_Power (X : Long_Float; N : Integer) return Long_Float;
--# function Sqrt (X : Long_Float) return Long_Float;
--# function Exp (X : Long_Float) return Long_Float;
--# function Pi return Long_Float;
--# function Integral (Lo,Hi,Integrand : Long_Float) return Long_Float;
--# function Integration_Variable return Long_Float;
--# function Interval(Low, High : Long_Float) return Long_Float;
--# function Contained_In(Inner, Outer : Long_Float) return Boolean;
--# function Is_Range(Variable : Long_Float; Min : Long_Float; Max : Long_Float) return Boolean;
--# function Eps_Abs(Prec : Integer) return Long_Float;
--# function Eps_Rel(Prec : Integer) return Long_Float;
--# function Plus_Minus_Eps_Abs(Prec : Integer) return Long_Float;
--# function Plus_Minus_Eps_Rel(Prec : Integer) return Long_Float;
end PP_LF_Exact;
|
AdaCore/Ada_Drivers_Library | Ada | 30,677 | adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2017, AdaCore --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- 3. Neither the name of the copyright holder nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- This packages provide a low level driver for the FAT file system
-- architecture. It is recommended to _not_ use this interface directly but to
-- access the file system using the File_IO package. For more info, see the
-- file system chapter of the documentation.
with Ada.Unchecked_Conversion;
with Filesystem.FAT.Directories;
with Filesystem.FAT.Files;
package body Filesystem.FAT is
The_File_Handles :
array (1 .. MAX_FILE_HANDLES) of aliased FAT_File_Handle;
Last_File_Handle : Natural := 0;
The_Dir_Handles :
array (1 .. MAX_DIR_HANDLES) of aliased FAT_Directory_Handle;
Last_Dir_Handle : Natural := 0;
function Find_Free_Dir_Handle return FAT_Directory_Handle_Access;
function Find_Free_File_Handle return FAT_File_Handle_Access;
procedure Initialize_FS
(FS : in out FAT_Filesystem;
Status : out Status_Code);
--------------------------
-- Find_Free_Dir_Handle --
--------------------------
function Find_Free_Dir_Handle return FAT_Directory_Handle_Access
is
Found : Boolean := False;
begin
for J in Last_Dir_Handle + 1 .. The_Dir_Handles'Last loop
if The_Dir_Handles (J).Is_Free then
The_Dir_Handles (J).Is_Free := False;
Last_Dir_Handle := J;
Found := True;
exit;
end if;
end loop;
if not Found then
for J in The_Dir_Handles'First .. Last_Dir_Handle loop
if The_Dir_Handles (J).Is_Free then
The_Dir_Handles (J).Is_Free := False;
Last_Dir_Handle := J;
Found := True;
exit;
end if;
end loop;
end if;
if not Found then
return null;
else
return The_Dir_Handles (Last_Dir_Handle)'Access;
end if;
end Find_Free_Dir_Handle;
---------------------------
-- Find_Free_File_Handle --
---------------------------
function Find_Free_File_Handle return FAT_File_Handle_Access
is
begin
for J in Last_File_Handle + 1 .. The_File_Handles'Last loop
if The_File_Handles (J).Is_Free then
The_File_Handles (J).Is_Free := False;
Last_File_Handle := J;
return The_File_Handles (Last_File_Handle)'Access;
end if;
end loop;
for J in The_File_Handles'First .. Last_File_Handle loop
if The_File_Handles (J).Is_Free then
The_File_Handles (J).Is_Free := False;
Last_File_Handle := J;
return The_File_Handles (Last_File_Handle)'Access;
end if;
end loop;
return null;
end Find_Free_File_Handle;
---------
-- "-" --
---------
function "-" (Name : FAT_Name) return String
is
begin
return Name.Name (1 .. Name.Len);
end "-";
---------
-- "-" --
---------
function "-" (Name : String) return FAT_Name
is
Ret : FAT_Name;
begin
for J in Name'Range loop
if Name (J) = '/' then
raise Constraint_Error;
end if;
end loop;
Ret.Len := Name'Length;
Ret.Name (1 .. Name'Length) := Name;
return Ret;
end "-";
---------
-- "=" --
---------
overriding function "=" (Name1, Name2 : FAT_Name) return Boolean
is
function To_Upper (C : Character) return Character
is (if C in 'a' .. 'z'
then Character'Val
(Character'Pos (C) - Character'Pos ('a') + Character'Pos ('A'))
else C);
begin
if Name1.Len /= Name2.Len then
return False;
end if;
for J in 1 .. Name1.Len loop
if To_Upper (Name1.Name (J)) /= To_Upper (Name2.Name (J)) then
return False;
end if;
end loop;
return True;
end "=";
-------------
-- Is_Root --
-------------
function Is_Root (Path : String) return Boolean
is
begin
return Path'Length = 0 or else
(Path'Length = 1 and then Path (Path'First) = '/');
end Is_Root;
--------------
-- Basename --
--------------
function Basename (Path : String) return String
is
Last : Natural := Path'Last;
begin
if Path'Length = 0 then
return "";
end if;
if Path (Last) = '/' then
Last := Last - 1;
end if;
for J in reverse 1 .. Last loop
if Path (J) = '/' then
return Path (J + 1 .. Last);
end if;
end loop;
return Path (Path'First .. Last);
end Basename;
------------
-- Parent --
------------
function Parent (Path : String) return String
is
Last : Natural;
begin
if Path'Length = 0 then
return "";
end if;
Last := (if Path (Path'Last) = '/' then Path'Last - 1 else Path'Last);
for J in reverse Path'First .. Last loop
if Path (J) = '/' then
return Path (Path'First .. J);
end if;
end loop;
return "";
end Parent;
---------------
-- Normalize --
---------------
function Normalize (Path : String;
Ensure_Dir : Boolean := False) return String
is
Idx : Integer;
Prev : Natural;
Token : FAT_Name;
Last : Natural;
Ret : String := Path;
begin
if Ret'Length = 0 then
return "/";
end if;
-- Preserve initial '/'
if Ret (Ret'First) = '/' then
Idx := Ret'First + 1;
else
Idx := Ret'First;
end if;
Last := Ret'Last;
-- Below: Idx always points to the first character of a path element.
while Idx <= Last loop
Token.Len := 0;
for J in Idx .. Last loop
exit when Ret (J) = '/';
Token.Len := Token.Len + 1;
Token.Name (Token.Len) := Ret (J);
end loop;
if -Token = "." then
-- Skip
if Idx + 2 > Last then
-- Ret ends with just a '.'
-- remove it:
Last := Last - 1;
else
Ret (Idx .. Last - 2) := Ret (Idx + 2 .. Last);
Last := Last - 2;
end if;
elsif -Token = ".." then
if Idx - 1 <= Ret'First then
-- We have "/../<subdirs>", or "../<subdirs>".
-- invalid but we keep as-is
Idx := Idx + 3;
else
Prev := 0;
-- Find the parent directory separator
for J in reverse Ret'First .. Idx - 2 loop
if Ret (J) = '/' then
Prev := J + 1;
exit;
else
Prev := J;
end if;
end loop;
Ret (Prev .. Last + Prev - Idx - 3) := Ret (Idx + 3 .. Last);
Last := Last + Prev - Idx - 3;
Idx := Prev;
end if;
elsif Token.Len = 0 then
-- We have two consecutive slashes
Ret (Idx .. Last - 1) := Ret (Idx + 1 .. Last);
Last := Last - 1;
else
Idx := Idx + Token.Len + 1;
end if;
end loop;
if Last = 0 then
if Ensure_Dir then
return "/";
else
return "";
end if;
else
if Ret (Ret'First) /= '/' then
if Ensure_Dir and then Ret (Last) /= '/' then
return "/" & Ret (Ret'First .. Last) & "/";
else
return "/" & Ret (Ret'First .. Last);
end if;
else
if Ensure_Dir and then Ret (Last) /= '/' then
return Ret (Ret'First .. Last) & "/";
else
return Ret (Ret'First .. Last);
end if;
end if;
end if;
end Normalize;
----------
-- Trim --
----------
function Trim (S : String) return String
is
begin
for J in reverse S'Range loop
if S (J) /= ' ' then
return S (S'First .. J);
end if;
end loop;
return "";
end Trim;
----------
-- Open --
----------
function Open
(Controller : HAL.Block_Drivers.Any_Block_Driver;
LBA : Block_Number;
FS : in out FAT_Filesystem) return Status_Code
is
Status : Status_Code;
begin
FS.Initialized := True;
FS.Controller := Controller;
FS.LBA := LBA;
Initialize_FS (FS, Status);
if Status /= OK then
FS.Initialized := False;
return Status;
end if;
return OK;
end Open;
-------------------
-- Initialize_FS --
-------------------
procedure Initialize_FS
(FS : in out FAT_Filesystem;
Status : out Status_Code)
is
subtype Disk_Parameter_Block is Block (0 .. 91);
function To_Disk_Parameter is new Ada.Unchecked_Conversion
(Disk_Parameter_Block, FAT_Disk_Parameter);
subtype FSInfo_Block is Block (0 .. 11);
function To_FSInfo is new Ada.Unchecked_Conversion
(FSInfo_Block, FAT_FS_Info);
begin
FS.Window_Block := 16#FFFF_FFFF#;
Status := FS.Ensure_Block (0);
if Status /= OK then
return;
end if;
if FS.Window (510 .. 511) /= (16#55#, 16#AA#) then
Status := No_Filesystem;
return;
end if;
FS.Disk_Parameters :=
To_Disk_Parameter (FS.Window (0 .. 91));
if FS.Version = FAT32 then
Status :=
FS.Ensure_Block (Block_Offset (FS.FSInfo_Block_Number));
if Status /= OK then
return;
end if;
-- Check the generic FAT block signature
if FS.Window (510 .. 511) /= (16#55#, 16#AA#) then
Status := No_Filesystem;
return;
end if;
FS.FSInfo :=
To_FSInfo (FS.Window (16#1E4# .. 16#1EF#));
FS.FSInfo_Changed := False;
end if;
declare
FAT_Size_In_Block : constant Unsigned_32 :=
FS.FAT_Table_Size_In_Blocks *
Unsigned_32 (FS.Number_Of_FATs);
Root_Dir_Size : Block_Offset;
begin
FS.FAT_Addr := Block_Offset (FS.Reserved_Blocks);
FS.Data_Area := FS.FAT_Addr + Block_Offset (FAT_Size_In_Block);
if FS.Version = FAT16 then
-- Add space for the root directory
FS.Root_Dir_Area := FS.Data_Area;
Root_Dir_Size :=
(Block_Offset (FS.FAT16_Root_Dir_Num_Entries) * 32 +
Block_Offset (FS.Block_Size) - 1) /
Block_Offset (FS.Block_Size);
-- Align on clusters
Root_Dir_Size :=
((Root_Dir_Size + FS.Blocks_Per_Cluster - 1) /
FS.Blocks_Per_Cluster) *
FS.Blocks_Per_Cluster;
FS.Data_Area := FS.Data_Area + Root_Dir_Size;
end if;
FS.Num_Clusters :=
Cluster_Type
((FS.Total_Number_Of_Blocks - Unsigned_32 (FS.Data_Area)) /
Unsigned_32 (FS.Blocks_Per_Cluster));
end;
FS.Root_Entry := Directories.Root_Entry (FS);
end Initialize_FS;
-----------
-- Close --
-----------
overriding procedure Close (FS : in out FAT_Filesystem)
is
begin
for J in The_File_Handles'Range loop
if not The_File_Handles (J).Is_Free
and then The_File_Handles (J).FS = FS'Unchecked_Access
then
The_File_Handles (J).Close;
end if;
end loop;
for J in The_Dir_Handles'Range loop
if not The_Dir_Handles (J).Is_Free
and then The_Dir_Handles (J).FS = FS'Unchecked_Access
then
The_Dir_Handles (J).Close;
end if;
end loop;
if FS.FSInfo_Changed then
FS.Write_FSInfo;
FS.FSInfo_Changed := False;
end if;
FS.Initialized := False;
end Close;
------------------
-- Ensure_Block --
------------------
function Ensure_Block
(FS : in out FAT_Filesystem;
Block : Block_Offset) return Status_Code
is
begin
if Block = FS.Window_Block then
return OK;
end if;
if not FS.Controller.Read
(FS.LBA + Block, FS.Window)
then
FS.Window_Block := 16#FFFF_FFFF#;
return Disk_Error;
end if;
FS.Window_Block := Block;
return OK;
end Ensure_Block;
----------------
-- Root_Entry --
----------------
overriding function Root_Node
(FS : in out FAT_Filesystem;
As : String;
Handle : out Any_Node_Handle)
return Status_Code
is
begin
FS.Root_Entry.L_Name := -As;
Handle := FS.Root_Entry'Unchecked_Access;
return OK;
end Root_Node;
----------
-- Open --
----------
overriding function Open
(FS : in out FAT_Filesystem;
Path : String;
Handle : out Any_Directory_Handle) return Status_Code
is
begin
return FAT_Open (FS, Path, FAT_Directory_Handle_Access (Handle));
end Open;
--------------
-- FAT_Open --
--------------
function FAT_Open
(FS : in out FAT_Filesystem;
Path : String;
Handle : out FAT_Directory_Handle_Access) return Status_Code
is
E : aliased FAT_Node;
Full : constant String := Normalize (Path);
Status : Status_Code;
begin
if not Is_Root (Full) then
Status := Directories.Find (FS, Full, E);
if Status /= OK then
return Status;
end if;
else
E := FS.Root_Entry;
end if;
Status := OK;
return E.FAT_Open (Handle);
end FAT_Open;
----------
-- Open --
----------
function FAT_Open
(D_Entry : FAT_Node;
Handle : out FAT_Directory_Handle_Access) return Status_Code
is
begin
Handle := null;
if not Is_Subdirectory (D_Entry) then
return No_Such_File;
end if;
Handle := Find_Free_Dir_Handle;
if Handle = null then
return Too_Many_Open_Files;
end if;
Handle.FS := D_Entry.FS;
Handle.Current_Index := 0;
if D_Entry.Is_Root then
if D_Entry.FS.Version = FAT16 then
Handle.Start_Cluster := 0;
Handle.Current_Block := D_Entry.FS.Root_Dir_Area;
else
Handle.Start_Cluster := D_Entry.FS.Root_Dir_Cluster;
Handle.Current_Block :=
D_Entry.FS.Cluster_To_Block (D_Entry.FS.Root_Dir_Cluster);
end if;
else
Handle.Start_Cluster := D_Entry.Start_Cluster;
Handle.Current_Block :=
D_Entry.FS.Cluster_To_Block (D_Entry.Start_Cluster);
end if;
Handle.Current_Cluster := Handle.Start_Cluster;
return OK;
end FAT_Open;
-----------
-- Reset --
-----------
overriding procedure Reset (Dir : in out FAT_Directory_Handle)
is
begin
Dir.Current_Block := Cluster_To_Block (Dir.FS.all, Dir.Start_Cluster);
Dir.Current_Cluster := Dir.Start_Cluster;
Dir.Current_Index := 0;
end Reset;
----------
-- Read --
----------
overriding function Read
(Dir : in out FAT_Directory_Handle;
Handle : out Any_Node_Handle) return Status_Code
is
Node : FAT_Node;
Status : Status_Code;
begin
Status := Directories.Read (Dir, Node);
Dir.Current_Node := Node;
Handle := Dir.Current_Node'Unchecked_Access;
return Status;
end Read;
-----------
-- Close --
-----------
overriding procedure Close (Dir : in out FAT_Directory_Handle)
is
begin
Dir.FS := null;
Dir.Current_Index := 0;
Dir.Start_Cluster := 0;
Dir.Current_Cluster := 0;
Dir.Current_Block := 0;
Dir.Is_Free := True;
end Close;
-----------------
-- Create_File --
-----------------
overriding
function Create_File (This : in out FAT_Filesystem;
Path : String)
return Status_Code
is
Parent_E : FAT_Node;
Node : FAT_Node;
Ret : Status_Code;
begin
if Directories.Find (This, Parent (Path), Parent_E) /= OK then
return No_Such_File;
end if;
Ret := Directories.Create_File_Node (Parent_E, -Basename (Path), Node);
return Ret;
end Create_File;
------------
-- Unlink --
------------
overriding
function Unlink (This : in out FAT_Filesystem;
Path : String)
return Status_Code
is
Parent_E : FAT_Node;
Node : FAT_Node;
begin
if Is_Root (Path) then
return No_Such_File;
end if;
if Directories.Find (This, Parent (Path), Parent_E) /= OK then
return No_Such_File;
end if;
if Directories.Find (Parent_E, -Basename (Path), Node) /= OK then
return No_Such_File;
end if;
return Directories.Delete_Entry (Dir => Parent_E,
Ent => Node);
end Unlink;
----------------------
-- Remove_Directory --
----------------------
overriding
function Remove_Directory (This : in out FAT_Filesystem;
Path : String)
return Status_Code
is
E : aliased FAT_Node;
Full : constant String := Normalize (Path);
Status : Status_Code;
begin
if not Is_Root (Full) then
Status := Directories.Find (This, Full, E);
if Status /= OK then
return Status;
end if;
else
return Invalid_Parameter;
end if;
return Directories.Delete_Subdir (E, False);
end Remove_Directory;
----------
-- Open --
----------
overriding function Open
(FS : in out FAT_Filesystem;
Path : String;
Mode : File_Mode;
Handle : out Any_File_Handle) return Status_Code
is
Parent_E : FAT_Node;
begin
Handle := null;
if Is_Root (Path) then
return No_Such_File;
end if;
if Directories.Find (FS, Parent (Path), Parent_E) /= OK then
return No_Such_File;
end if;
return Open (Parent => Parent_E,
Name => Basename (Path),
Mode => Mode,
Handle => Handle);
end Open;
----------
-- Open --
----------
overriding function Open
(Parent : FAT_Node;
Name : String;
Mode : File_Mode;
Handle : out Any_File_Handle) return Status_Code
is
FAT_Handle : FAT_File_Handle_Access;
Ret : Status_Code;
begin
FAT_Handle := Find_Free_File_Handle;
if FAT_Handle = null then
return Too_Many_Open_Files;
end if;
Ret := Files.Open (Parent, -Name, Mode, FAT_Handle);
Handle := Any_File_Handle (FAT_Handle);
return Ret;
end Open;
----------
-- Size --
----------
overriding function Size (File : FAT_File_Handle) return File_Size
is
begin
return File_Size (File.D_Entry.Size);
end Size;
----------
-- Mode --
----------
overriding function Mode (File : FAT_File_Handle) return File_Mode
is
begin
return File.Mode;
end Mode;
----------
-- Read --
----------
overriding function Read
(File : in out FAT_File_Handle;
Addr : System.Address;
Length : in out File_Size) return Status_Code
is
L : FAT_File_Size := FAT_File_Size (Length);
Ret : Status_Code;
begin
Ret := Files.Read (File, Addr, L);
Length := File_Size (L);
return Ret;
end Read;
-- ----------
-- -- Read --
-- ----------
--
-- procedure Generic_Read
-- (Handle : File_Handle;
-- Value : out T)
-- is
-- Ret : File_Size with Unreferenced;
-- begin
-- Ret := Files.Read (Handle, Value'Address, T'Size / 8);
-- end Generic_Read;
------------
-- Offset --
------------
overriding function Offset
(File : FAT_File_Handle) return File_Size
is (File_Size (File.File_Index));
----------------
-- File_Write --
----------------
overriding function Write
(File : in out FAT_File_Handle;
Addr : System.Address;
Length : File_Size) return Status_Code
is
begin
return Files.Write (File, Addr, FAT_File_Size (Length));
end Write;
----------------
-- File_Flush --
----------------
overriding function Flush
(File : in out FAT_File_Handle) return Status_Code
is
begin
return Files.Flush (File);
end Flush;
---------------
-- File_Seek --
---------------
overriding function Seek
(File : in out FAT_File_Handle;
Origin : Seek_Mode;
Amount : in out File_Size) return Status_Code
is
Num : FAT_File_Size := FAT_File_Size (Amount);
Ret : Status_Code;
begin
Ret := Files.Seek (File, Num, Origin);
Amount := File_Size (Num);
return Ret;
end Seek;
----------------
-- File_Close --
----------------
overriding procedure Close (File : in out FAT_File_Handle)
is
begin
Files.Close (File);
File.Is_Free := True;
end Close;
-------------
-- Get_FAT --
-------------
function Get_FAT
(FS : in out FAT_Filesystem;
Cluster : Cluster_Type) return Cluster_Type
is
Idx : Natural;
Block_Num : Block_Offset;
subtype B4 is Block (1 .. 4);
subtype B2 is Block (1 .. 2);
function To_Cluster is new Ada.Unchecked_Conversion
(B4, Cluster_Type);
function To_U16 is new Ada.Unchecked_Conversion
(B2, Unsigned_16);
begin
if Cluster < 2 or else Cluster > FS.Num_Clusters + 2 then
return 1;
end if;
if FS.Version = FAT32 then
Block_Num :=
FS.FAT_Addr +
Block_Offset (Cluster) * 4 / Block_Offset (FS.Block_Size);
else
Block_Num :=
FS.FAT_Addr +
Block_Offset (Cluster) * 2 / Block_Offset (FS.Block_Size);
end if;
if Block_Num /= FS.FAT_Block then
FS.FAT_Block := Block_Num;
if not FS.Controller.Read
(FS.LBA + FS.FAT_Block,
FS.FAT_Window)
then
FS.FAT_Block := 16#FFFF_FFFF#;
return INVALID_CLUSTER;
end if;
end if;
if FS.Version = FAT32 then
Idx :=
Natural (FAT_File_Size ((Cluster) * 4) mod FS.Block_Size);
return To_Cluster (FS.FAT_Window (Idx .. Idx + 3)) and 16#0FFF_FFFF#;
else
Idx :=
Natural (FAT_File_Size ((Cluster) * 2) mod FS.Block_Size);
return Cluster_Type (To_U16 (FS.FAT_Window (Idx .. Idx + 1)));
end if;
end Get_FAT;
-------------
-- Set_FAT --
-------------
function Set_FAT
(FS : in out FAT_Filesystem;
Cluster : Cluster_Type;
Value : Cluster_Type) return Status_Code
is
Idx : Natural;
Block_Num : Block_Offset;
Dead : Boolean with Unreferenced;
subtype B4 is Block (1 .. 4);
function From_Cluster is new Ada.Unchecked_Conversion
(Cluster_Type, B4);
begin
if Cluster < Valid_Cluster'First or else Cluster > FS.Num_Clusters then
return Internal_Error;
end if;
Block_Num :=
FS.FAT_Addr +
Block_Offset (Cluster) * 4 / Block_Offset (FS.Block_Size);
if Block_Num /= FS.FAT_Block then
FS.FAT_Block := Block_Num;
if not FS.Controller.Read (FS.LBA + FS.FAT_Block, FS.FAT_Window) then
FS.FAT_Block := 16#FFFF_FFFF#;
return Disk_Error;
end if;
end if;
Idx := Natural (FAT_File_Size (Cluster * 4) mod FS.Block_Size);
FS.FAT_Window (Idx .. Idx + 3) := From_Cluster (Value);
if not FS.Controller.Write (FS.LBA + FS.FAT_Block, FS.FAT_Window) then
return Disk_Error;
end if;
return OK;
end Set_FAT;
------------------
-- Write_FSInfo --
------------------
procedure Write_FSInfo
(FS : in out FAT_Filesystem)
is
subtype FSInfo_Block is Block (0 .. 11);
function From_FSInfo is new Ada.Unchecked_Conversion
(FAT_FS_Info, FSInfo_Block);
Status : Status_Code;
FAT_Begin_LBA : constant Block_Offset :=
Block_Offset (FS.FSInfo_Block_Number);
Ret : Status_Code with Unreferenced;
begin
Status := FS.Ensure_Block (FAT_Begin_LBA);
if Status /= OK then
return;
end if;
-- again, check the generic FAT block signature
if FS.Window (510 .. 511) /= (16#55#, 16#AA#) then
return;
end if;
-- good. now we got the entire FSinfo in our window.
-- modify that part of the window and writeback.
FS.Window (16#1E4# .. 16#1EF#) := From_FSInfo (FS.FSInfo);
Ret := FS.Write_Window;
end Write_FSInfo;
----------------------
-- Get_Free_Cluster --
----------------------
function Get_Free_Cluster
(FS : in out FAT_Filesystem;
Previous : Cluster_Type := INVALID_CLUSTER) return Cluster_Type
is
Candidate : Cluster_Type := Previous;
begin
-- First check for a cluster that is just after the previous one
-- allocated for the entry
if Candidate in Valid_Cluster'Range
and then Candidate < FS.Num_Clusters
then
Candidate := Candidate + 1;
if FS.Is_Free_Cluster (FS.Get_FAT (Candidate)) then
return Candidate;
end if;
end if;
-- Next check the most recently allocated cluster
Candidate := FS.Most_Recently_Allocated_Cluster + 1;
if Candidate not in Valid_Cluster'Range then
Candidate := Valid_Cluster'First;
end if;
while Candidate in Valid_Cluster'Range
and then Candidate < FS.Num_Clusters
loop
if FS.Is_Free_Cluster (FS.Get_FAT (Candidate)) then
return Candidate;
end if;
Candidate := Candidate + 1;
end loop;
Candidate := Valid_Cluster'First;
while Candidate <= FS.Most_Recently_Allocated_Cluster loop
if FS.Is_Free_Cluster (FS.Get_FAT (Candidate)) then
return Candidate;
end if;
Candidate := Candidate + 1;
end loop;
return INVALID_CLUSTER;
end Get_Free_Cluster;
-----------------
-- New_Cluster --
-----------------
function New_Cluster
(FS : in out FAT_Filesystem) return Cluster_Type
is
begin
return FS.New_Cluster (INVALID_CLUSTER);
end New_Cluster;
-----------------
-- New_Cluster --
-----------------
function New_Cluster
(FS : in out FAT_Filesystem;
Previous : Cluster_Type) return Cluster_Type
is
Ret : Cluster_Type;
begin
pragma Assert
(FS.Version = FAT32,
"FS write only supported on FAT32 for now");
Ret := FS.Get_Free_Cluster (Previous);
if Ret = INVALID_CLUSTER then
return Ret;
end if;
if Previous /= INVALID_CLUSTER then
if FS.Set_FAT (Previous, Ret) /= OK then
return INVALID_CLUSTER;
end if;
end if;
if FS.Set_FAT (Ret, LAST_CLUSTER_VALUE) /= OK then
return INVALID_CLUSTER;
end if;
FS.FSInfo.Free_Clusters := FS.FSInfo.Free_Clusters - 1;
FS.FSInfo.Last_Allocated_Cluster := Ret;
FS.FSInfo_Changed := True;
return Ret;
end New_Cluster;
------------------
-- Write_Window --
------------------
function Write_Window
(FS : in out FAT_Filesystem) return Status_Code
is
begin
if FS.Controller.Write (FS.LBA + FS.Window_Block, FS.Window) then
return OK;
else
return Disk_Error;
end if;
end Write_Window;
-----------
-- Close --
-----------
overriding procedure Close (E : in out FAT_Node) is
begin
null;
end Close;
----------
-- Size --
----------
overriding function Size (E : FAT_Node) return File_Size
is (File_Size (E.Size));
end Filesystem.FAT;
|
reznikmm/matreshka | Ada | 3,657 | ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Open Document Toolkit --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2013, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with XML.DOM.Elements;
package ODF.DOM.Elements.Style.Table_Properties is
type ODF_Style_Table_Properties is
new XML.DOM.Elements.DOM_Element with private;
private
type ODF_Style_Table_Properties is
new XML.DOM.Elements.DOM_Element with null record;
end ODF.DOM.Elements.Style.Table_Properties;
|
reznikmm/matreshka | Ada | 4,730 | ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with Qt4.Graphics_Items;
private with Qt4.Graphics_Items.Directors;
private with Qt4.Painters;
private with Qt4.Rect_Fs;
private with Qt4.Style_Option_Graphics_Items;
private with Qt4.Widgets;
with AMF.CMOF.Packages;
package Modeler.Package_Items is
type Package_Item is
limited new Qt4.Graphics_Items.Q_Graphics_Item with private;
type Package_Item_Access is access all Package_Item'Class;
package Constructors is
function Create
(Element : not null AMF.CMOF.Packages.CMOF_Package_Access;
Parent : access Qt4.Graphics_Items.Q_Graphics_Item'Class := null)
return not null Package_Item_Access;
end Constructors;
private
type Package_Item is
limited new Qt4.Graphics_Items.Directors.Q_Graphics_Item_Director with
record
Element : AMF.CMOF.Packages.CMOF_Package_Access;
end record;
--------------------------------
-- QGraphicsItem's operations --
--------------------------------
overriding function Bounding_Rect
(Self : not null access constant Package_Item) return Qt4.Rect_Fs.Q_Rect_F;
overriding procedure Paint
(Self : not null access Package_Item;
Painter : in out Qt4.Painters.Q_Painter'Class;
Option :
Qt4.Style_Option_Graphics_Items.Q_Style_Option_Graphics_Item'Class;
Widget : access Qt4.Widgets.Q_Widget'Class := null);
end Modeler.Package_Items;
|
reznikmm/matreshka | Ada | 4,107 | ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Open Document Toolkit --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2014, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with ODF.DOM.Table_Display_Filter_Buttons_Attributes;
package Matreshka.ODF_Table.Display_Filter_Buttons_Attributes is
type Table_Display_Filter_Buttons_Attribute_Node is
new Matreshka.ODF_Table.Abstract_Table_Attribute_Node
and ODF.DOM.Table_Display_Filter_Buttons_Attributes.ODF_Table_Display_Filter_Buttons_Attribute
with null record;
overriding function Create
(Parameters : not null access Matreshka.DOM_Attributes.Attribute_L2_Parameters)
return Table_Display_Filter_Buttons_Attribute_Node;
overriding function Get_Local_Name
(Self : not null access constant Table_Display_Filter_Buttons_Attribute_Node)
return League.Strings.Universal_String;
end Matreshka.ODF_Table.Display_Filter_Buttons_Attributes;
|
reznikmm/matreshka | Ada | 9,447 | adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011-2012, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
package body AMF.Internals.Tables.Standard_Profile_L3_Metamodel is
------------------------------------------------
-- MM_Standard_Profile_L3_Standard_Profile_L3 --
------------------------------------------------
function MM_Standard_Profile_L3_Standard_Profile_L3 return AMF.Internals.CMOF_Element is
begin
return Base + 10;
end MM_Standard_Profile_L3_Standard_Profile_L3;
--------------------------------------------
-- MC_Standard_Profile_L3_Build_Component --
--------------------------------------------
function MC_Standard_Profile_L3_Build_Component return AMF.Internals.CMOF_Element is
begin
return Base + 1;
end MC_Standard_Profile_L3_Build_Component;
--------------------------------------
-- MC_Standard_Profile_L3_Metamodel --
--------------------------------------
function MC_Standard_Profile_L3_Metamodel return AMF.Internals.CMOF_Element is
begin
return Base + 2;
end MC_Standard_Profile_L3_Metamodel;
-----------------------------------------
-- MC_Standard_Profile_L3_System_Model --
-----------------------------------------
function MC_Standard_Profile_L3_System_Model return AMF.Internals.CMOF_Element is
begin
return Base + 3;
end MC_Standard_Profile_L3_System_Model;
---------------------------------------------------------------------------------------
-- MP_Standard_Profile_L3_Build_Component_Base_Component_A_Extension_Build_Component --
---------------------------------------------------------------------------------------
function MP_Standard_Profile_L3_Build_Component_Base_Component_A_Extension_Build_Component return AMF.Internals.CMOF_Element is
begin
return Base + 4;
end MP_Standard_Profile_L3_Build_Component_Base_Component_A_Extension_Build_Component;
-----------------------------------------------------------------------
-- MP_Standard_Profile_L3_Metamodel_Base_Model_A_Extension_Metamodel --
-----------------------------------------------------------------------
function MP_Standard_Profile_L3_Metamodel_Base_Model_A_Extension_Metamodel return AMF.Internals.CMOF_Element is
begin
return Base + 5;
end MP_Standard_Profile_L3_Metamodel_Base_Model_A_Extension_Metamodel;
-----------------------------------------------------------------------------
-- MP_Standard_Profile_L3_System_Model_Base_Model_A_Extension_System_Model --
-----------------------------------------------------------------------------
function MP_Standard_Profile_L3_System_Model_Base_Model_A_Extension_System_Model return AMF.Internals.CMOF_Element is
begin
return Base + 6;
end MP_Standard_Profile_L3_System_Model_Base_Model_A_Extension_System_Model;
-----------------------------------------------------------------------------
-- MP_Standard_Profile_L3_A_Extension_System_Model_System_Model_Base_Model --
-----------------------------------------------------------------------------
function MP_Standard_Profile_L3_A_Extension_System_Model_System_Model_Base_Model return AMF.Internals.CMOF_Element is
begin
return Base + 14;
end MP_Standard_Profile_L3_A_Extension_System_Model_System_Model_Base_Model;
---------------------------------------------------------------------------------------
-- MP_Standard_Profile_L3_A_Extension_Build_Component_Build_Component_Base_Component --
---------------------------------------------------------------------------------------
function MP_Standard_Profile_L3_A_Extension_Build_Component_Build_Component_Base_Component return AMF.Internals.CMOF_Element is
begin
return Base + 12;
end MP_Standard_Profile_L3_A_Extension_Build_Component_Build_Component_Base_Component;
-----------------------------------------------------------------------
-- MP_Standard_Profile_L3_A_Extension_Metamodel_Metamodel_Base_Model --
-----------------------------------------------------------------------
function MP_Standard_Profile_L3_A_Extension_Metamodel_Metamodel_Base_Model return AMF.Internals.CMOF_Element is
begin
return Base + 13;
end MP_Standard_Profile_L3_A_Extension_Metamodel_Metamodel_Base_Model;
----------------------------------------------------------------
-- MA_Standard_Profile_L3_A_Extension_System_Model_Base_Model --
----------------------------------------------------------------
function MA_Standard_Profile_L3_A_Extension_System_Model_Base_Model return AMF.Internals.CMOF_Element is
begin
return Base + 7;
end MA_Standard_Profile_L3_A_Extension_System_Model_Base_Model;
-----------------------------------------------------------------------
-- MA_Standard_Profile_L3_A_Extension_Build_Component_Base_Component --
-----------------------------------------------------------------------
function MA_Standard_Profile_L3_A_Extension_Build_Component_Base_Component return AMF.Internals.CMOF_Element is
begin
return Base + 8;
end MA_Standard_Profile_L3_A_Extension_Build_Component_Base_Component;
-------------------------------------------------------------
-- MA_Standard_Profile_L3_A_Extension_Metamodel_Base_Model --
-------------------------------------------------------------
function MA_Standard_Profile_L3_A_Extension_Metamodel_Base_Model return AMF.Internals.CMOF_Element is
begin
return Base + 9;
end MA_Standard_Profile_L3_A_Extension_Metamodel_Base_Model;
----------------------------
-- MB_Standard_Profile_L3 --
----------------------------
function MB_Standard_Profile_L3 return AMF.Internals.AMF_Element is
begin
return Base;
end MB_Standard_Profile_L3;
----------------------------
-- MB_Standard_Profile_L3 --
----------------------------
function ML_Standard_Profile_L3 return AMF.Internals.AMF_Element is
begin
return Base + 15;
end ML_Standard_Profile_L3;
end AMF.Internals.Tables.Standard_Profile_L3_Metamodel;
|
zhmu/ananas | Ada | 6,728 | ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- B I N D E R R --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2022, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING3. If not, go to --
-- http://www.gnu.org/licenses for a complete copy of the license. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package contains the routines to output error messages for the binder
-- and also the routines for handling fatal error conditions in the binder.
with Namet; use Namet;
with Types; use Types;
package Binderr is
Errors_Detected : Nat;
-- Number of errors detected so far
Warnings_Detected : Nat;
-- Number of warnings detected
Info_Prefix_Suppress : Boolean := False;
-- If set to True, the normal "info: " header before messages generated
-- by Error_Msg_Info will be omitted.
---------------------------------------------------------
-- Error Message Text and Message Insertion Characters --
---------------------------------------------------------
-- Error message text strings are composed of letters, digits and the
-- special characters space, comma, period, colon and semicolon,
-- apostrophe and parentheses. Special insertion characters can also
-- appear which cause the error message circuit to modify the given
-- string as follows:
-- Insertion character { (Left brace: insert file name from Names table)
-- The character { is replaced by the text for the file name specified
-- by the File_Name_Type value stored in Error_Msg_File_1. The name is
-- always enclosed in quotes. A second { may appear in a single message
-- in which case it is similarly replaced by the name which is
-- specified by the File_Name_Type value stored in Error_Msg_File_2.
-- Insertion character $ (Dollar: insert unit name from Names table)
-- The character $ is replaced by the text for the unit name specified
-- by the Name_Id value stored in Error_Msg_Unit_1. The name is always
-- enclosed in quotes. A second $ may appear in a single message in
-- which case it is similarly replaced by the name which is specified
-- by the Name_Id value stored in Error_Msg_Unit_2.
-- Insertion character # (Pound: insert non-negative number in decimal)
-- The character # is replaced by the contents of Error_Msg_Nat_1
-- converted into an unsigned decimal string. A second # may appear
-- in a single message, in which case it is similarly replaced by
-- the value stored in Error_Msg_Nat_2.
-- Insertion character ? (Question mark: warning message)
-- The character ?, which must be the first character in the message
-- string, signals a warning message instead of an error message.
-----------------------------------------------------
-- Global Values Used for Error Message Insertions --
-----------------------------------------------------
-- The following global variables are essentially additional parameters
-- passed to the error message routine for insertion sequences described
-- above. The reason these are passed globally is that the insertion
-- mechanism is essentially an untyped one in which the appropriate
-- variables are set depending on the specific insertion characters used.
Error_Msg_Name_1 : Name_Id;
-- Name_Id value for % insertion characters in message
Error_Msg_File_1 : File_Name_Type;
Error_Msg_File_2 : File_Name_Type;
-- Name_Id values for { insertion characters in message
Error_Msg_Unit_1 : Unit_Name_Type;
Error_Msg_Unit_2 : Unit_Name_Type;
-- Name_Id values for $ insertion characters in message
Error_Msg_Nat_1 : Nat;
Error_Msg_Nat_2 : Nat;
-- Integer values for # insertion characters in message
------------------------------
-- Error Output Subprograms --
------------------------------
procedure Error_Msg (Msg : String);
-- Output specified error message to standard error or standard output
-- as governed by the brief and verbose switches, and update error
-- counts appropriately.
procedure Error_Msg_Info (Msg : String);
-- Output information line. Indentical in effect to Error_Msg, except
-- that the prefix is info: instead of error: and the error count is
-- not incremented. The prefix may be suppressed by setting the global
-- variable Info_Prefix_Suppress to True.
procedure Error_Msg_Output (Msg : String; Info : Boolean);
-- Output given message, with insertions, to current message output file.
-- The second argument is True for an info message, false for a normal
-- warning or error message. Normally this is not called directly, but
-- rather only by Error_Msg or Error_Msg_Info. It is called directly
-- when the caller must control whether the output goes to stderr or
-- stdout (Error_Msg_Output always goes to the current output file).
procedure Finalize_Binderr;
-- Finalize error output for one file
procedure Initialize_Binderr;
-- Initialize error output for one file
end Binderr;
|
reznikmm/matreshka | Ada | 3,704 | ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Open Document Toolkit --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2014, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with XML.DOM.Attributes;
package ODF.DOM.Table_Enabled_Attributes is
pragma Preelaborate;
type ODF_Table_Enabled_Attribute is limited interface
and XML.DOM.Attributes.DOM_Attribute;
type ODF_Table_Enabled_Attribute_Access is
access all ODF_Table_Enabled_Attribute'Class
with Storage_Size => 0;
end ODF.DOM.Table_Enabled_Attributes;
|
zhmu/ananas | Ada | 3,713 | adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- SYSTEM.TASK_PRIMITIVES.INTERRUPT_OPERATIONS --
-- --
-- B o d y --
-- --
-- Copyright (C) 1998-2022, Free Software Foundation, Inc. --
-- --
-- GNARL is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNARL was developed by the GNARL team at Florida State University. --
-- Extensive contributions were provided by Ada Core Technologies, Inc. --
-- --
------------------------------------------------------------------------------
package body System.Task_Primitives.Interrupt_Operations is
-- ??? The VxWorks version of System.Interrupt_Management needs to access
-- this array, but due to elaboration problems, it can't with this
-- package directly, so we export this variable for now.
Interrupt_ID_Map : array (IM.Interrupt_ID) of ST.Task_Id;
pragma Export (Ada, Interrupt_ID_Map,
"system__task_primitives__interrupt_operations__interrupt_id_map");
----------------------
-- Get_Interrupt_ID --
----------------------
function Get_Interrupt_ID (T : ST.Task_Id) return IM.Interrupt_ID is
use type ST.Task_Id;
begin
for Interrupt in IM.Interrupt_ID loop
if Interrupt_ID_Map (Interrupt) = T then
return Interrupt;
end if;
end loop;
raise Program_Error;
end Get_Interrupt_ID;
-----------------
-- Get_Task_Id --
-----------------
function Get_Task_Id (Interrupt : IM.Interrupt_ID) return ST.Task_Id is
begin
return Interrupt_ID_Map (Interrupt);
end Get_Task_Id;
----------------------
-- Set_Interrupt_ID --
----------------------
procedure Set_Interrupt_ID (Interrupt : IM.Interrupt_ID; T : ST.Task_Id) is
begin
Interrupt_ID_Map (Interrupt) := T;
end Set_Interrupt_ID;
end System.Task_Primitives.Interrupt_Operations;
|
onox/sdlada | Ada | 1,403 | adb | --------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2018 Luke A. Guest
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the use of this software.
--
-- Permission is granted to anyone to use this software for any purpose,
-- including commercial applications, and to alter it and redistribute it
-- freely, subject to the following restrictions:
--
-- 1. The origin of this software must not be misrepresented; you must not
-- claim that you wrote the original software. If you use this software
-- in a product, an acknowledgment in the product documentation would be
-- appreciated but is not required.
--
-- 2. Altered source versions must be plainly marked as such, and must not be
-- misrepresented as being the original software.
--
-- 3. This notice may not be removed or altered from any source
-- distribution.
--------------------------------------------------------------------------------------------------------------------
-- BSD implementation.
--------------------------------------------------------------------------------------------------------------------
separate (SDL.Platform)
function Get return Platforms is
begin
return BSD;
end Get;
|
zhmu/ananas | Ada | 156 | adb | -- { dg-do compile }
with Array38_Pkg; use Array38_Pkg;
procedure Array38 is
function My_F is new F (Index, Byte, Bytes, Integer);
begin
null;
end;
|
persan/A-gst | Ada | 3,741 | ads | pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with glib;
with glib.Values;
with System;
with System;
with GStreamer.GST_Low_Level.gstreamer_0_10_gst_fft_gstfft_h;
package GStreamer.GST_Low_Level.gstreamer_0_10_gst_fft_gstfftf64_h is
-- GStreamer
-- * Copyright (C) <2007> Sebastian Dröge <[email protected]>
-- *
-- * This library is free software; you can redistribute it and/or
-- * modify it under the terms of the GNU Library General Public
-- * License as published by the Free Software Foundation; either
-- * version 2 of the License, or (at your option) any later version.
-- *
-- * This library is distributed in the hope that it will be useful,
-- * but WITHOUT ANY WARRANTY; without even the implied warranty of
-- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-- * Library General Public License for more details.
-- *
-- * You should have received a copy of the GNU Library General Public
-- * License along with this library; if not, write to the
-- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-- * Boston, MA 02111-1307, USA.
--
type GstFFTF64;
type u_GstFFTF64_u_padding_array is array (0 .. 3) of System.Address;
--subtype GstFFTF64 is u_GstFFTF64; -- gst/fft/gstfftf64.h:30
type GstFFTF64Complex;
--subtype GstFFTF64Complex is u_GstFFTF64Complex; -- gst/fft/gstfftf64.h:31
-- FIXME 0.11: Move the struct definition to the sources,
-- * there's no reason to have it public.
--
--*
-- * GstFFTF64:
-- *
-- * Instance structure for #GstFFTF64.
-- *
--
-- <private>
type GstFFTF64 is record
cfg : System.Address; -- gst/fft/gstfftf64.h:44
inverse : aliased GLIB.gboolean; -- gst/fft/gstfftf64.h:45
len : aliased GLIB.gint; -- gst/fft/gstfftf64.h:46
u_padding : u_GstFFTF64_u_padding_array; -- gst/fft/gstfftf64.h:47
end record;
pragma Convention (C_Pass_By_Copy, GstFFTF64); -- gst/fft/gstfftf64.h:42
-- Copy of kiss_fft_f64_cpx for documentation reasons,
-- * do NOT change!
--*
-- * GstFFTF64Complex:
-- * @r: Real part
-- * @i: Imaginary part
-- *
-- * Data type for complex numbers composed of
-- * 64 bit float.
-- *
--
type GstFFTF64Complex is record
r : aliased GLIB.gdouble; -- gst/fft/gstfftf64.h:64
i : aliased GLIB.gdouble; -- gst/fft/gstfftf64.h:65
end record;
pragma Convention (C_Pass_By_Copy, GstFFTF64Complex); -- gst/fft/gstfftf64.h:62
-- Functions
function gst_fft_f64_new (len : GLIB.gint; inverse : GLIB.gboolean) return access GstFFTF64; -- gst/fft/gstfftf64.h:70
pragma Import (C, gst_fft_f64_new, "gst_fft_f64_new");
procedure gst_fft_f64_fft
(self : access GstFFTF64;
timedata : access GLIB.gdouble;
freqdata : access GstFFTF64Complex); -- gst/fft/gstfftf64.h:71
pragma Import (C, gst_fft_f64_fft, "gst_fft_f64_fft");
procedure gst_fft_f64_inverse_fft
(self : access GstFFTF64;
freqdata : access constant GstFFTF64Complex;
timedata : access GLIB.gdouble); -- gst/fft/gstfftf64.h:72
pragma Import (C, gst_fft_f64_inverse_fft, "gst_fft_f64_inverse_fft");
procedure gst_fft_f64_free (self : access GstFFTF64); -- gst/fft/gstfftf64.h:73
pragma Import (C, gst_fft_f64_free, "gst_fft_f64_free");
procedure gst_fft_f64_window
(self : access GstFFTF64;
timedata : access GLIB.gdouble;
window : GStreamer.GST_Low_Level.gstreamer_0_10_gst_fft_gstfft_h.GstFFTWindow); -- gst/fft/gstfftf64.h:75
pragma Import (C, gst_fft_f64_window, "gst_fft_f64_window");
end GStreamer.GST_Low_Level.gstreamer_0_10_gst_fft_gstfftf64_h;
|
reznikmm/matreshka | Ada | 3,604 | ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Tools Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2012, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- Loader of metamodels to generate code.
------------------------------------------------------------------------------
package Generator.Loader is
procedure Load_Metamodels;
-- Load all metamodels requested in the command line.
end Generator.Loader;
|
sungyeon/drake | Ada | 607 | ads | pragma License (Unrestricted);
-- implementation unit required by compiler
package System.Img_WChar is
pragma Pure;
-- required for Wide_Character'Image by compiler (s-imgwch.ads)
procedure Image_Wide_Character (
V : Wide_Character;
S : in out String;
P : out Natural;
Ada_2005 : Boolean);
-- required for Wide_Wide_Character'Image by compiler (s-imgwch.ads)
procedure Image_Wide_Wide_Character (
V : Wide_Wide_Character;
S : in out String;
P : out Natural);
-- helper
Image_ad : constant String := "SOFT_HYPHEN";
end System.Img_WChar;
|
reznikmm/matreshka | Ada | 3,679 | ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Open Document Toolkit --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2014, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with XML.DOM.Attributes;
package ODF.DOM.Fo_Width_Attributes is
pragma Preelaborate;
type ODF_Fo_Width_Attribute is limited interface
and XML.DOM.Attributes.DOM_Attribute;
type ODF_Fo_Width_Attribute_Access is
access all ODF_Fo_Width_Attribute'Class
with Storage_Size => 0;
end ODF.DOM.Fo_Width_Attributes;
|
reznikmm/matreshka | Ada | 329,800 | adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2012, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
with AMF.CMOF;
with AMF.Internals.Tables.CMOF_Attributes;
with AMF.Internals.Tables.CMOF_String_Data_00;
with AMF.Internals.Tables.CMOF_String_Data_01;
with AMF.Internals.Tables.CMOF_String_Data_02;
package body AMF.Internals.Tables.CMOF_Metamodel.Properties is
----------------
-- Initialize --
----------------
procedure Initialize is
begin
Initialize_1;
Initialize_2;
Initialize_3;
Initialize_4;
Initialize_5;
Initialize_6;
Initialize_7;
Initialize_8;
Initialize_9;
Initialize_10;
Initialize_11;
Initialize_12;
Initialize_13;
Initialize_14;
Initialize_15;
Initialize_16;
Initialize_17;
Initialize_18;
Initialize_19;
Initialize_20;
Initialize_21;
Initialize_22;
Initialize_23;
Initialize_24;
Initialize_25;
Initialize_26;
Initialize_27;
Initialize_28;
Initialize_29;
Initialize_30;
Initialize_31;
Initialize_32;
Initialize_33;
Initialize_34;
Initialize_35;
Initialize_36;
Initialize_37;
Initialize_38;
Initialize_39;
Initialize_40;
Initialize_41;
Initialize_42;
Initialize_43;
Initialize_44;
Initialize_45;
Initialize_46;
Initialize_47;
Initialize_48;
Initialize_49;
Initialize_50;
Initialize_51;
Initialize_52;
Initialize_53;
Initialize_54;
Initialize_55;
Initialize_56;
Initialize_57;
Initialize_58;
Initialize_59;
Initialize_60;
Initialize_61;
Initialize_62;
Initialize_63;
Initialize_64;
Initialize_65;
Initialize_66;
Initialize_67;
Initialize_68;
Initialize_69;
Initialize_70;
Initialize_71;
Initialize_72;
Initialize_73;
Initialize_74;
Initialize_75;
Initialize_76;
Initialize_77;
Initialize_78;
Initialize_79;
Initialize_80;
Initialize_81;
Initialize_82;
Initialize_83;
Initialize_84;
Initialize_85;
Initialize_86;
Initialize_87;
Initialize_88;
Initialize_89;
Initialize_90;
Initialize_91;
Initialize_92;
Initialize_93;
Initialize_94;
Initialize_95;
Initialize_96;
Initialize_97;
Initialize_98;
Initialize_99;
Initialize_100;
Initialize_101;
Initialize_102;
Initialize_103;
Initialize_104;
Initialize_105;
Initialize_106;
Initialize_107;
Initialize_108;
Initialize_109;
Initialize_110;
Initialize_111;
Initialize_112;
Initialize_113;
Initialize_114;
Initialize_115;
Initialize_116;
Initialize_117;
Initialize_118;
Initialize_119;
Initialize_120;
Initialize_121;
Initialize_122;
Initialize_123;
Initialize_124;
Initialize_125;
Initialize_126;
Initialize_127;
Initialize_128;
Initialize_129;
Initialize_130;
Initialize_131;
Initialize_132;
Initialize_133;
Initialize_134;
Initialize_135;
Initialize_136;
Initialize_137;
Initialize_138;
Initialize_139;
Initialize_140;
Initialize_141;
Initialize_142;
Initialize_143;
Initialize_144;
Initialize_145;
Initialize_146;
Initialize_147;
Initialize_148;
Initialize_149;
Initialize_150;
Initialize_151;
Initialize_152;
Initialize_153;
Initialize_154;
Initialize_155;
Initialize_156;
Initialize_157;
Initialize_158;
Initialize_159;
Initialize_160;
Initialize_161;
Initialize_162;
Initialize_163;
Initialize_164;
Initialize_165;
Initialize_166;
Initialize_167;
Initialize_168;
Initialize_169;
Initialize_170;
Initialize_171;
Initialize_172;
Initialize_173;
Initialize_174;
Initialize_175;
Initialize_176;
Initialize_177;
Initialize_178;
Initialize_179;
Initialize_180;
Initialize_181;
Initialize_182;
Initialize_183;
Initialize_184;
Initialize_185;
Initialize_186;
Initialize_187;
Initialize_188;
Initialize_189;
Initialize_190;
Initialize_191;
Initialize_192;
Initialize_193;
Initialize_194;
Initialize_195;
Initialize_196;
Initialize_197;
Initialize_198;
Initialize_199;
Initialize_200;
Initialize_201;
Initialize_202;
Initialize_203;
Initialize_204;
Initialize_205;
Initialize_206;
Initialize_207;
Initialize_208;
Initialize_209;
Initialize_210;
Initialize_211;
Initialize_212;
Initialize_213;
Initialize_214;
Initialize_215;
Initialize_216;
Initialize_217;
Initialize_218;
Initialize_219;
Initialize_220;
Initialize_221;
Initialize_222;
Initialize_223;
Initialize_224;
Initialize_225;
Initialize_226;
Initialize_227;
Initialize_228;
Initialize_229;
Initialize_230;
Initialize_231;
Initialize_232;
Initialize_233;
Initialize_234;
Initialize_235;
Initialize_236;
Initialize_237;
Initialize_238;
Initialize_239;
Initialize_240;
Initialize_241;
Initialize_242;
Initialize_243;
Initialize_244;
Initialize_245;
Initialize_246;
Initialize_247;
Initialize_248;
Initialize_249;
Initialize_250;
Initialize_251;
Initialize_252;
Initialize_253;
Initialize_254;
Initialize_255;
Initialize_256;
Initialize_257;
Initialize_258;
Initialize_259;
Initialize_260;
Initialize_261;
Initialize_262;
Initialize_263;
Initialize_264;
Initialize_265;
Initialize_266;
Initialize_267;
Initialize_268;
Initialize_269;
Initialize_270;
Initialize_271;
Initialize_272;
Initialize_273;
Initialize_274;
Initialize_275;
Initialize_276;
Initialize_277;
Initialize_278;
Initialize_279;
Initialize_280;
Initialize_281;
Initialize_282;
Initialize_283;
Initialize_284;
Initialize_285;
Initialize_286;
Initialize_287;
Initialize_288;
Initialize_289;
Initialize_290;
Initialize_291;
Initialize_292;
Initialize_293;
Initialize_294;
Initialize_295;
Initialize_296;
Initialize_297;
Initialize_298;
Initialize_299;
Initialize_300;
Initialize_301;
Initialize_302;
Initialize_303;
Initialize_304;
Initialize_305;
Initialize_306;
Initialize_307;
Initialize_308;
Initialize_309;
Initialize_310;
Initialize_311;
Initialize_312;
Initialize_313;
Initialize_314;
Initialize_315;
Initialize_316;
Initialize_317;
Initialize_318;
Initialize_319;
Initialize_320;
Initialize_321;
Initialize_322;
Initialize_323;
Initialize_324;
Initialize_325;
Initialize_326;
Initialize_327;
Initialize_328;
Initialize_329;
Initialize_330;
Initialize_331;
Initialize_332;
Initialize_333;
Initialize_334;
Initialize_335;
Initialize_336;
Initialize_337;
Initialize_338;
Initialize_339;
Initialize_340;
Initialize_341;
Initialize_342;
Initialize_343;
Initialize_344;
Initialize_345;
Initialize_346;
Initialize_347;
Initialize_348;
Initialize_349;
Initialize_350;
Initialize_351;
Initialize_352;
Initialize_353;
Initialize_354;
Initialize_355;
Initialize_356;
Initialize_357;
Initialize_358;
Initialize_359;
Initialize_360;
Initialize_361;
Initialize_362;
Initialize_363;
Initialize_364;
Initialize_365;
Initialize_366;
Initialize_367;
Initialize_368;
Initialize_369;
Initialize_370;
Initialize_371;
Initialize_372;
Initialize_373;
Initialize_374;
Initialize_375;
Initialize_376;
Initialize_377;
Initialize_378;
Initialize_379;
Initialize_380;
Initialize_381;
Initialize_382;
Initialize_383;
Initialize_384;
Initialize_385;
Initialize_386;
Initialize_387;
Initialize_388;
Initialize_389;
Initialize_390;
Initialize_391;
Initialize_392;
Initialize_393;
Initialize_394;
Initialize_395;
Initialize_396;
Initialize_397;
Initialize_398;
Initialize_399;
Initialize_400;
Initialize_401;
Initialize_402;
Initialize_403;
Initialize_404;
Initialize_405;
Initialize_406;
Initialize_407;
Initialize_408;
Initialize_409;
Initialize_410;
Initialize_411;
Initialize_412;
Initialize_413;
Initialize_414;
Initialize_415;
Initialize_416;
Initialize_417;
Initialize_418;
Initialize_419;
Initialize_420;
Initialize_421;
Initialize_422;
Initialize_423;
Initialize_424;
Initialize_425;
Initialize_426;
Initialize_427;
Initialize_428;
Initialize_429;
Initialize_430;
Initialize_431;
Initialize_432;
Initialize_433;
Initialize_434;
Initialize_435;
Initialize_436;
Initialize_437;
Initialize_438;
Initialize_439;
Initialize_440;
Initialize_441;
Initialize_442;
Initialize_443;
Initialize_444;
Initialize_445;
Initialize_446;
Initialize_447;
Initialize_448;
Initialize_449;
Initialize_450;
Initialize_451;
Initialize_452;
Initialize_453;
Initialize_454;
Initialize_455;
Initialize_456;
Initialize_457;
Initialize_458;
Initialize_459;
Initialize_460;
Initialize_461;
Initialize_462;
Initialize_463;
Initialize_464;
Initialize_465;
Initialize_466;
Initialize_467;
Initialize_468;
Initialize_469;
Initialize_470;
Initialize_471;
Initialize_472;
Initialize_473;
Initialize_474;
Initialize_475;
Initialize_476;
Initialize_477;
Initialize_478;
Initialize_479;
Initialize_480;
Initialize_481;
Initialize_482;
Initialize_483;
Initialize_484;
Initialize_485;
Initialize_486;
Initialize_487;
Initialize_488;
Initialize_489;
Initialize_490;
Initialize_491;
Initialize_492;
Initialize_493;
Initialize_494;
Initialize_495;
Initialize_496;
Initialize_497;
Initialize_498;
Initialize_499;
Initialize_500;
Initialize_501;
Initialize_502;
Initialize_503;
Initialize_504;
Initialize_505;
Initialize_506;
Initialize_507;
Initialize_508;
Initialize_509;
Initialize_510;
Initialize_511;
Initialize_512;
Initialize_513;
Initialize_514;
Initialize_515;
Initialize_516;
Initialize_517;
Initialize_518;
Initialize_519;
Initialize_520;
Initialize_521;
Initialize_522;
Initialize_523;
Initialize_524;
Initialize_525;
Initialize_526;
Initialize_527;
Initialize_528;
Initialize_529;
Initialize_530;
Initialize_531;
Initialize_532;
Initialize_533;
Initialize_534;
Initialize_535;
Initialize_536;
Initialize_537;
Initialize_538;
Initialize_539;
Initialize_540;
Initialize_541;
Initialize_542;
Initialize_543;
Initialize_544;
Initialize_545;
Initialize_546;
Initialize_547;
Initialize_548;
Initialize_549;
Initialize_550;
Initialize_551;
Initialize_552;
Initialize_553;
Initialize_554;
Initialize_555;
Initialize_556;
Initialize_557;
Initialize_558;
Initialize_559;
Initialize_560;
Initialize_561;
Initialize_562;
Initialize_563;
Initialize_564;
Initialize_565;
Initialize_566;
Initialize_567;
Initialize_568;
Initialize_569;
Initialize_570;
Initialize_571;
Initialize_572;
Initialize_573;
Initialize_574;
Initialize_575;
Initialize_576;
Initialize_577;
Initialize_578;
Initialize_579;
Initialize_580;
Initialize_581;
Initialize_582;
Initialize_583;
Initialize_584;
Initialize_585;
Initialize_586;
Initialize_587;
Initialize_588;
Initialize_589;
Initialize_590;
Initialize_591;
Initialize_592;
Initialize_593;
Initialize_594;
Initialize_595;
Initialize_596;
Initialize_597;
Initialize_598;
Initialize_599;
Initialize_600;
Initialize_601;
Initialize_602;
Initialize_603;
Initialize_604;
Initialize_605;
Initialize_606;
Initialize_607;
Initialize_608;
Initialize_609;
Initialize_610;
Initialize_611;
Initialize_612;
Initialize_613;
Initialize_614;
Initialize_615;
Initialize_616;
Initialize_617;
Initialize_618;
Initialize_619;
Initialize_620;
Initialize_621;
Initialize_622;
Initialize_623;
Initialize_624;
Initialize_625;
Initialize_626;
Initialize_627;
Initialize_628;
Initialize_629;
Initialize_630;
Initialize_631;
Initialize_632;
Initialize_633;
Initialize_634;
Initialize_635;
Initialize_636;
Initialize_637;
Initialize_638;
Initialize_639;
Initialize_640;
Initialize_641;
Initialize_642;
Initialize_643;
Initialize_644;
Initialize_645;
Initialize_646;
Initialize_647;
Initialize_648;
Initialize_649;
Initialize_650;
Initialize_651;
Initialize_652;
Initialize_653;
Initialize_654;
Initialize_655;
Initialize_656;
Initialize_657;
Initialize_658;
Initialize_659;
Initialize_660;
Initialize_661;
Initialize_662;
Initialize_663;
Initialize_664;
Initialize_665;
Initialize_666;
Initialize_667;
Initialize_668;
Initialize_669;
Initialize_670;
Initialize_671;
Initialize_672;
Initialize_673;
Initialize_674;
Initialize_675;
Initialize_676;
Initialize_677;
Initialize_678;
Initialize_679;
Initialize_680;
Initialize_681;
Initialize_682;
Initialize_683;
Initialize_684;
Initialize_685;
Initialize_686;
Initialize_687;
Initialize_688;
Initialize_689;
Initialize_690;
Initialize_691;
Initialize_692;
Initialize_693;
Initialize_694;
Initialize_695;
Initialize_696;
Initialize_697;
Initialize_698;
Initialize_699;
Initialize_700;
Initialize_701;
Initialize_702;
Initialize_703;
Initialize_704;
Initialize_705;
Initialize_706;
Initialize_707;
Initialize_708;
Initialize_709;
Initialize_710;
Initialize_711;
Initialize_712;
Initialize_713;
Initialize_714;
Initialize_715;
Initialize_716;
Initialize_717;
Initialize_718;
Initialize_719;
Initialize_720;
Initialize_721;
Initialize_722;
Initialize_723;
Initialize_724;
Initialize_725;
Initialize_726;
Initialize_727;
Initialize_728;
Initialize_729;
Initialize_730;
Initialize_731;
Initialize_732;
Initialize_733;
Initialize_734;
Initialize_735;
Initialize_736;
Initialize_737;
Initialize_738;
Initialize_739;
Initialize_740;
Initialize_741;
Initialize_742;
Initialize_743;
Initialize_744;
Initialize_745;
Initialize_746;
Initialize_747;
Initialize_748;
Initialize_749;
Initialize_750;
Initialize_751;
Initialize_752;
Initialize_753;
Initialize_754;
Initialize_755;
Initialize_756;
Initialize_757;
Initialize_758;
Initialize_759;
Initialize_760;
Initialize_761;
Initialize_762;
Initialize_763;
Initialize_764;
Initialize_765;
Initialize_766;
Initialize_767;
Initialize_768;
Initialize_769;
Initialize_770;
Initialize_771;
Initialize_772;
Initialize_773;
Initialize_774;
Initialize_775;
Initialize_776;
Initialize_777;
Initialize_778;
Initialize_779;
Initialize_780;
Initialize_781;
Initialize_782;
Initialize_783;
Initialize_784;
Initialize_785;
Initialize_786;
Initialize_787;
Initialize_788;
Initialize_789;
Initialize_790;
Initialize_791;
Initialize_792;
Initialize_793;
Initialize_794;
Initialize_795;
Initialize_796;
Initialize_797;
Initialize_798;
Initialize_799;
Initialize_800;
end Initialize;
------------------
-- Initialize_1 --
------------------
procedure Initialize_1 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 1,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0068'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 1, (Is_Empty => True));
end Initialize_1;
------------------
-- Initialize_2 --
------------------
procedure Initialize_2 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Abstract (Base + 2, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 2,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0022'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 2, (Is_Empty => True));
end Initialize_2;
------------------
-- Initialize_3 --
------------------
procedure Initialize_3 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 3,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01EF'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 3, (Is_Empty => True));
end Initialize_3;
------------------
-- Initialize_4 --
------------------
procedure Initialize_4 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Abstract (Base + 4, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 4,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0137'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 4, (Is_Empty => True));
end Initialize_4;
------------------
-- Initialize_5 --
------------------
procedure Initialize_5 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 5,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01C0'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 5, (Is_Empty => True));
end Initialize_5;
------------------
-- Initialize_6 --
------------------
procedure Initialize_6 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 6,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01F5'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 6, (Is_Empty => True));
end Initialize_6;
------------------
-- Initialize_7 --
------------------
procedure Initialize_7 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 7,
AMF.Internals.Tables.CMOF_String_Data_01.MS_012E'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 7, (Is_Empty => True));
end Initialize_7;
------------------
-- Initialize_8 --
------------------
procedure Initialize_8 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Abstract (Base + 8, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 8,
AMF.Internals.Tables.CMOF_String_Data_01.MS_012C'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 8, (Is_Empty => True));
end Initialize_8;
------------------
-- Initialize_9 --
------------------
procedure Initialize_9 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Abstract (Base + 9, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 9,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00D8'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 9, (Is_Empty => True));
end Initialize_9;
-------------------
-- Initialize_10 --
-------------------
procedure Initialize_10 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 10,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01FE'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 10, (Is_Empty => True));
end Initialize_10;
-------------------
-- Initialize_11 --
-------------------
procedure Initialize_11 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 11,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0020'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 11, (Is_Empty => True));
end Initialize_11;
-------------------
-- Initialize_12 --
-------------------
procedure Initialize_12 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 12,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0062'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 12, (Is_Empty => True));
end Initialize_12;
-------------------
-- Initialize_13 --
-------------------
procedure Initialize_13 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 13,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0198'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 13, (Is_Empty => True));
end Initialize_13;
-------------------
-- Initialize_14 --
-------------------
procedure Initialize_14 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Abstract (Base + 14, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 14,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01C6'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 14, (Is_Empty => True));
end Initialize_14;
-------------------
-- Initialize_15 --
-------------------
procedure Initialize_15 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Abstract (Base + 15, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 15,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0152'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 15, (Is_Empty => True));
end Initialize_15;
-------------------
-- Initialize_16 --
-------------------
procedure Initialize_16 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Abstract (Base + 16, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 16,
AMF.Internals.Tables.CMOF_String_Data_01.MS_015B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 16, (Is_Empty => True));
end Initialize_16;
-------------------
-- Initialize_17 --
-------------------
procedure Initialize_17 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Abstract (Base + 17, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 17,
AMF.Internals.Tables.CMOF_String_Data_01.MS_018A'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 17, (Is_Empty => True));
end Initialize_17;
-------------------
-- Initialize_18 --
-------------------
procedure Initialize_18 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 18,
AMF.Internals.Tables.CMOF_String_Data_01.MS_019C'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 18, (Is_Empty => True));
end Initialize_18;
-------------------
-- Initialize_19 --
-------------------
procedure Initialize_19 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 19,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0074'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 19, (Is_Empty => True));
end Initialize_19;
-------------------
-- Initialize_20 --
-------------------
procedure Initialize_20 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 20,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01AA'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 20, (Is_Empty => True));
end Initialize_20;
-------------------
-- Initialize_21 --
-------------------
procedure Initialize_21 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 21,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0051'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 21, (Is_Empty => True));
end Initialize_21;
-------------------
-- Initialize_22 --
-------------------
procedure Initialize_22 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 22,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01DC'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 22, (Is_Empty => True));
end Initialize_22;
-------------------
-- Initialize_23 --
-------------------
procedure Initialize_23 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Abstract (Base + 23, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 23,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0135'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 23, (Is_Empty => True));
end Initialize_23;
-------------------
-- Initialize_24 --
-------------------
procedure Initialize_24 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 24,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00A7'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 24, (Is_Empty => True));
end Initialize_24;
-------------------
-- Initialize_25 --
-------------------
procedure Initialize_25 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 25,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0179'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 25, (Is_Empty => True));
end Initialize_25;
-------------------
-- Initialize_26 --
-------------------
procedure Initialize_26 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 26,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0076'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 26, (Is_Empty => True));
end Initialize_26;
-------------------
-- Initialize_27 --
-------------------
procedure Initialize_27 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Abstract (Base + 27, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 27,
AMF.Internals.Tables.CMOF_String_Data_01.MS_018B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 27, (Is_Empty => True));
end Initialize_27;
-------------------
-- Initialize_28 --
-------------------
procedure Initialize_28 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Abstract (Base + 28, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 28,
AMF.Internals.Tables.CMOF_String_Data_00.MS_002B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 28, (Is_Empty => True));
end Initialize_28;
-------------------
-- Initialize_29 --
-------------------
procedure Initialize_29 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Abstract (Base + 29, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 29,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0185'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 29, (Is_Empty => True));
end Initialize_29;
-------------------
-- Initialize_30 --
-------------------
procedure Initialize_30 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 30,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01A1'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 30, (Is_Empty => True));
end Initialize_30;
-------------------
-- Initialize_31 --
-------------------
procedure Initialize_31 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Abstract (Base + 31, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 31,
AMF.Internals.Tables.CMOF_String_Data_00.MS_004B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 31, (Is_Empty => True));
end Initialize_31;
-------------------
-- Initialize_32 --
-------------------
procedure Initialize_32 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Abstract (Base + 32, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 32,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0158'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 32, (Is_Empty => True));
end Initialize_32;
-------------------
-- Initialize_33 --
-------------------
procedure Initialize_33 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Abstract (Base + 33, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 33,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01F9'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 33, (Is_Empty => True));
end Initialize_33;
-------------------
-- Initialize_34 --
-------------------
procedure Initialize_34 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived (Base + 34, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Read_Only (Base + 34, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 34,
AMF.Internals.Tables.CMOF_String_Data_01.MS_016B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 34, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 34, (Is_Empty => True));
end Initialize_34;
-------------------
-- Initialize_35 --
-------------------
procedure Initialize_35 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Ordered (Base + 35, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 35, (False, 2));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 35,
AMF.Internals.Tables.CMOF_String_Data_00.MS_006B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 35, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 35, (Is_Empty => True));
end Initialize_35;
-------------------
-- Initialize_36 --
-------------------
procedure Initialize_36 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 36, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 36,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0056'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 36, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 36, (Is_Empty => True));
end Initialize_36;
-------------------
-- Initialize_37 --
-------------------
procedure Initialize_37 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 37, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Ordered (Base + 37, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 37, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 37,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0172'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 37, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 37, (Is_Empty => True));
end Initialize_37;
-------------------
-- Initialize_38 --
-------------------
procedure Initialize_38 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 38, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Ordered (Base + 38, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 38, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 38,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01EA'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 38, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 38, (Is_Empty => True));
end Initialize_38;
-------------------
-- Initialize_39 --
-------------------
procedure Initialize_39 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 39, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 39,
AMF.Internals.Tables.CMOF_String_Data_01.MS_016C'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 39, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 39, (Is_Empty => True));
end Initialize_39;
-------------------
-- Initialize_40 --
-------------------
procedure Initialize_40 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 40, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Ordered (Base + 40, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 40, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 40,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0052'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 40, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 40, (Is_Empty => True));
end Initialize_40;
-------------------
-- Initialize_41 --
-------------------
procedure Initialize_41 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 41, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Ordered (Base + 41, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 41, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 41,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00B5'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 41, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 41, (Is_Empty => True));
end Initialize_41;
-------------------
-- Initialize_42 --
-------------------
procedure Initialize_42 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 42, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 42,
AMF.Internals.Tables.CMOF_String_Data_01.MS_017A'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 42, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 42, (Is_Empty => True));
end Initialize_42;
-------------------
-- Initialize_43 --
-------------------
procedure Initialize_43 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived (Base + 43, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived_Union (Base + 43, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Read_Only (Base + 43, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 43, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 43,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0138'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 43, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 43, (Is_Empty => True));
end Initialize_43;
-------------------
-- Initialize_44 --
-------------------
procedure Initialize_44 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived (Base + 44, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived_Union (Base + 44, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Read_Only (Base + 44, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 44, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 44,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00A3'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 44, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 44, (Is_Empty => True));
end Initialize_44;
-------------------
-- Initialize_45 --
-------------------
procedure Initialize_45 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 45, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 45,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0095'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 45, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 45, (Is_Empty => True));
end Initialize_45;
-------------------
-- Initialize_46 --
-------------------
procedure Initialize_46 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived (Base + 46, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Read_Only (Base + 46, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 46, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 46,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00A2'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 46, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 46, (Is_Empty => True));
end Initialize_46;
-------------------
-- Initialize_47 --
-------------------
procedure Initialize_47 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 47, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 47,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0170'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 47, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 47, (Is_Empty => True));
end Initialize_47;
-------------------
-- Initialize_48 --
-------------------
procedure Initialize_48 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Ordered (Base + 48, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 48, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 48,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00FC'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 48, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 48, (Is_Empty => True));
end Initialize_48;
-------------------
-- Initialize_49 --
-------------------
procedure Initialize_49 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 49, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Ordered (Base + 49, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 49, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 49,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0052'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 49, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 49, (Is_Empty => True));
end Initialize_49;
-------------------
-- Initialize_50 --
-------------------
procedure Initialize_50 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 50, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Ordered (Base + 50, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 50, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 50,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00B5'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 50, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 50, (Is_Empty => True));
end Initialize_50;
-------------------
-- Initialize_51 --
-------------------
procedure Initialize_51 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived (Base + 51, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived_Union (Base + 51, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Read_Only (Base + 51, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 51,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01AF'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 51, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 51, (Is_Empty => True));
end Initialize_51;
-------------------
-- Initialize_52 --
-------------------
procedure Initialize_52 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived (Base + 52, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived_Union (Base + 52, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Read_Only (Base + 52, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 52,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00E6'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 52, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 52, (Is_Empty => True));
end Initialize_52;
-------------------
-- Initialize_53 --
-------------------
procedure Initialize_53 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 53, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 53, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 53,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01C1'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 53, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 53, (Is_Empty => True));
end Initialize_53;
-------------------
-- Initialize_54 --
-------------------
procedure Initialize_54 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 54, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived (Base + 54, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived_Union (Base + 54, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Read_Only (Base + 54, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 54, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 54,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01A5'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 54, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 54, (Is_Empty => True));
end Initialize_54;
-------------------
-- Initialize_55 --
-------------------
procedure Initialize_55 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 55, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Ordered (Base + 55, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 55, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 55,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00E0'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 55, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 55, (Is_Empty => True));
end Initialize_55;
-------------------
-- Initialize_56 --
-------------------
procedure Initialize_56 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 56, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Ordered (Base + 56, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 56, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 56,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0194'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 56, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 56, (Is_Empty => True));
end Initialize_56;
-------------------
-- Initialize_57 --
-------------------
procedure Initialize_57 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived (Base + 57, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived_Union (Base + 57, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Read_Only (Base + 57, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 57, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 57,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01BA'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 57, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 57, (Is_Empty => True));
end Initialize_57;
-------------------
-- Initialize_58 --
-------------------
procedure Initialize_58 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 58, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 58, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 58,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00D0'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 58, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 58, (Is_Empty => True));
end Initialize_58;
-------------------
-- Initialize_59 --
-------------------
procedure Initialize_59 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived (Base + 59, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Read_Only (Base + 59, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 59, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 59,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01D8'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 59, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 59, (Is_Empty => True));
end Initialize_59;
-------------------
-- Initialize_60 --
-------------------
procedure Initialize_60 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived (Base + 60, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived_Union (Base + 60, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Read_Only (Base + 60, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 60, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 60,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01A3'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 60, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 60, (Is_Empty => True));
end Initialize_60;
-------------------
-- Initialize_61 --
-------------------
procedure Initialize_61 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 61, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived (Base + 61, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived_Union (Base + 61, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Read_Only (Base + 61, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 61, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 61,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0148'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 61, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 61, (Is_Empty => True));
end Initialize_61;
-------------------
-- Initialize_62 --
-------------------
procedure Initialize_62 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 62, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 62, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 62,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0147'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 62, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 62, (Is_Empty => True));
end Initialize_62;
-------------------
-- Initialize_63 --
-------------------
procedure Initialize_63 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 63, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 63, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 63,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0169'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 63, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 63, (Is_Empty => True));
end Initialize_63;
-------------------
-- Initialize_64 --
-------------------
procedure Initialize_64 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 64, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Ordered (Base + 64, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 64, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 64,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01EA'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 64, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 64, (Is_Empty => True));
end Initialize_64;
-------------------
-- Initialize_65 --
-------------------
procedure Initialize_65 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 65, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 65, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 65,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01FA'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 65, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 65, (Is_Empty => True));
end Initialize_65;
-------------------
-- Initialize_66 --
-------------------
procedure Initialize_66 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 66, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 66, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 66,
AMF.Internals.Tables.CMOF_String_Data_01.MS_010A'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 66, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 66, (Is_Empty => True));
end Initialize_66;
-------------------
-- Initialize_67 --
-------------------
procedure Initialize_67 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 67, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 67,
AMF.Internals.Tables.CMOF_String_Data_01.MS_016C'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 67, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 67, (Is_Empty => True));
end Initialize_67;
-------------------
-- Initialize_68 --
-------------------
procedure Initialize_68 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 68, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 68,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01AD'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 68, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 68, (Is_Empty => True));
end Initialize_68;
-------------------
-- Initialize_69 --
-------------------
procedure Initialize_69 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 69, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived (Base + 69, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 69, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 69,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0163'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 69, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 69, (Is_Empty => True));
end Initialize_69;
-------------------
-- Initialize_70 --
-------------------
procedure Initialize_70 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 70, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived (Base + 70, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 70, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 70,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0041'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 70, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 70, (Is_Empty => True));
end Initialize_70;
-------------------
-- Initialize_71 --
-------------------
procedure Initialize_71 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 71, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 71, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 71,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00B3'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 71, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 71, (Is_Empty => True));
end Initialize_71;
-------------------
-- Initialize_72 --
-------------------
procedure Initialize_72 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 72, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 72, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 72,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01E9'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 72, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 72, (Is_Empty => True));
end Initialize_72;
-------------------
-- Initialize_73 --
-------------------
procedure Initialize_73 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 73, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 73,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0164'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 73, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 73, (Is_Empty => True));
end Initialize_73;
-------------------
-- Initialize_74 --
-------------------
procedure Initialize_74 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 74, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 74,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01A7'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 74, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 74, (Is_Empty => True));
end Initialize_74;
-------------------
-- Initialize_75 --
-------------------
procedure Initialize_75 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived (Base + 75, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived_Union (Base + 75, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Read_Only (Base + 75, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 75, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 75,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01DE'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 75, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 75, (Is_Empty => True));
end Initialize_75;
-------------------
-- Initialize_76 --
-------------------
procedure Initialize_76 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived (Base + 76, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived_Union (Base + 76, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Read_Only (Base + 76, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 76, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 76,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00D5'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 76, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 76, (Is_Empty => True));
end Initialize_76;
-------------------
-- Initialize_77 --
-------------------
procedure Initialize_77 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived (Base + 77, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived_Union (Base + 77, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Read_Only (Base + 77, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 77,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0048'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 77, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 77, (Is_Empty => True));
end Initialize_77;
-------------------
-- Initialize_78 --
-------------------
procedure Initialize_78 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 78, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 78,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0104'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 78, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 78, (Is_Empty => True));
end Initialize_78;
-------------------
-- Initialize_79 --
-------------------
procedure Initialize_79 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 79,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0067'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 79,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01C4'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 79, (Is_Empty => True));
end Initialize_79;
-------------------
-- Initialize_80 --
-------------------
procedure Initialize_80 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 80,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0067'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 80,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00B9'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 80, (Is_Empty => True));
end Initialize_80;
-------------------
-- Initialize_81 --
-------------------
procedure Initialize_81 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 81,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0067'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 81,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00B8'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 81, (Is_Empty => True));
end Initialize_81;
-------------------
-- Initialize_82 --
-------------------
procedure Initialize_82 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 82, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 82,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0142'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 82, (Is_Empty => True));
end Initialize_82;
-------------------
-- Initialize_83 --
-------------------
procedure Initialize_83 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 83, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 83,
AMF.Internals.Tables.CMOF_String_Data_00.MS_006D'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 83, (Is_Empty => True));
end Initialize_83;
-------------------
-- Initialize_84 --
-------------------
procedure Initialize_84 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 84, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 84,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00FB'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 84, (Is_Empty => True));
end Initialize_84;
-------------------
-- Initialize_85 --
-------------------
procedure Initialize_85 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived (Base + 85, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived_Union (Base + 85, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Read_Only (Base + 85, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 85, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 85,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0154'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 85, (Is_Empty => True));
end Initialize_85;
-------------------
-- Initialize_86 --
-------------------
procedure Initialize_86 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 86, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 86,
AMF.Internals.Tables.CMOF_String_Data_01.MS_012B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 86, (Is_Empty => True));
end Initialize_86;
-------------------
-- Initialize_87 --
-------------------
procedure Initialize_87 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 87,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00FE'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 87, (Is_Empty => True));
end Initialize_87;
-------------------
-- Initialize_88 --
-------------------
procedure Initialize_88 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 88,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00FD'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 88, (Is_Empty => True));
end Initialize_88;
-------------------
-- Initialize_89 --
-------------------
procedure Initialize_89 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 89,
AMF.Internals.Tables.CMOF_String_Data_00.MS_003B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 89,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01EE'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 89, (Is_Empty => True));
end Initialize_89;
-------------------
-- Initialize_90 --
-------------------
procedure Initialize_90 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 90, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 90,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00DE'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 90, (Is_Empty => True));
end Initialize_90;
-------------------
-- Initialize_91 --
-------------------
procedure Initialize_91 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 91,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0067'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 91,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0113'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 91, (Is_Empty => True));
end Initialize_91;
-------------------
-- Initialize_92 --
-------------------
procedure Initialize_92 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 92,
AMF.Internals.Tables.CMOF_String_Data_00.MS_009E'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 92,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0178'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 92, (Is_Empty => True));
end Initialize_92;
-------------------
-- Initialize_93 --
-------------------
procedure Initialize_93 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 93,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0159'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 93, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 93,
AMF.Internals.Tables.CMOF_String_Data_00.MS_000F'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 93, (Is_Empty => True));
end Initialize_93;
-------------------
-- Initialize_94 --
-------------------
procedure Initialize_94 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 94,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0159'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 94, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 94,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00F1'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 94, (Is_Empty => True));
end Initialize_94;
-------------------
-- Initialize_95 --
-------------------
procedure Initialize_95 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 95, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 95,
AMF.Internals.Tables.CMOF_String_Data_00.MS_008A'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 95, (Is_Empty => True));
end Initialize_95;
-------------------
-- Initialize_96 --
-------------------
procedure Initialize_96 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived (Base + 96, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived_Union (Base + 96, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Read_Only (Base + 96, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 96, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 96,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01E8'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 96, (Is_Empty => True));
end Initialize_96;
-------------------
-- Initialize_97 --
-------------------
procedure Initialize_97 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived (Base + 97, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Read_Only (Base + 97, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 97, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 97,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0000'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 97, (Is_Empty => True));
end Initialize_97;
-------------------
-- Initialize_98 --
-------------------
procedure Initialize_98 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 98, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 98,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01EE'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 98, (Is_Empty => True));
end Initialize_98;
-------------------
-- Initialize_99 --
-------------------
procedure Initialize_99 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 99, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Ordered (Base + 99, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Unique (Base + 99, False);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 99, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 99,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0142'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 99, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 99, (Is_Empty => True));
end Initialize_99;
--------------------
-- Initialize_100 --
--------------------
procedure Initialize_100 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 100, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Ordered (Base + 100, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 100, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 100,
AMF.Internals.Tables.CMOF_String_Data_01.MS_019E'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 100, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 100, (Is_Empty => True));
end Initialize_100;
--------------------
-- Initialize_101 --
--------------------
procedure Initialize_101 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 101, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 101, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 101,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0077'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 101, (Is_Empty => True));
end Initialize_101;
--------------------
-- Initialize_102 --
--------------------
procedure Initialize_102 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 102, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 102,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0029'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 102, (Is_Empty => True));
end Initialize_102;
--------------------
-- Initialize_103 --
--------------------
procedure Initialize_103 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 103, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 103,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01CF'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 103, (Is_Empty => True));
end Initialize_103;
--------------------
-- Initialize_104 --
--------------------
procedure Initialize_104 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 104,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0067'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived (Base + 104, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 104,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0113'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 104, (Is_Empty => True));
end Initialize_104;
--------------------
-- Initialize_105 --
--------------------
procedure Initialize_105 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 105,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0067'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 105,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0021'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 105, (Is_Empty => True));
end Initialize_105;
--------------------
-- Initialize_106 --
--------------------
procedure Initialize_106 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 106,
AMF.Internals.Tables.CMOF_String_Data_00.MS_009E'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived (Base + 106, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 106,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0178'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 106, (Is_Empty => True));
end Initialize_106;
--------------------
-- Initialize_107 --
--------------------
procedure Initialize_107 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 107,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0159'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived (Base + 107, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 107, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 107,
AMF.Internals.Tables.CMOF_String_Data_00.MS_000F'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 107, (Is_Empty => True));
end Initialize_107;
--------------------
-- Initialize_108 --
--------------------
procedure Initialize_108 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived (Base + 108, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 108, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 108,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0196'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 108, (Is_Empty => True));
end Initialize_108;
--------------------
-- Initialize_109 --
--------------------
procedure Initialize_109 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 109,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0159'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived (Base + 109, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 109, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 109,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00F1'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 109, (Is_Empty => True));
end Initialize_109;
--------------------
-- Initialize_110 --
--------------------
procedure Initialize_110 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 110, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 110,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01C5'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 110, (Is_Empty => True));
end Initialize_110;
--------------------
-- Initialize_111 --
--------------------
procedure Initialize_111 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 111, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 111,
AMF.Internals.Tables.CMOF_String_Data_00.MS_000A'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 111, (Is_Empty => True));
end Initialize_111;
--------------------
-- Initialize_112 --
--------------------
procedure Initialize_112 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 112,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0049'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 112, (Is_Empty => True));
end Initialize_112;
--------------------
-- Initialize_113 --
--------------------
procedure Initialize_113 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 113,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00FD'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 113, (Is_Empty => True));
end Initialize_113;
--------------------
-- Initialize_114 --
--------------------
procedure Initialize_114 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 114,
AMF.Internals.Tables.CMOF_String_Data_00.MS_003B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 114,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01EE'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 114, (Is_Empty => True));
end Initialize_114;
--------------------
-- Initialize_115 --
--------------------
procedure Initialize_115 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 115,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01F3'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 115, (Is_Empty => True));
end Initialize_115;
--------------------
-- Initialize_116 --
--------------------
procedure Initialize_116 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 116,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0117'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 116, (Is_Empty => True));
end Initialize_116;
--------------------
-- Initialize_117 --
--------------------
procedure Initialize_117 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 117, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 117,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01D3'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 117, (Is_Empty => True));
end Initialize_117;
--------------------
-- Initialize_118 --
--------------------
procedure Initialize_118 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 118,
AMF.Internals.Tables.CMOF_String_Data_00.MS_000B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 118,
AMF.Internals.Tables.CMOF_String_Data_00.MS_008F'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 118, (Is_Empty => True));
end Initialize_118;
--------------------
-- Initialize_119 --
--------------------
procedure Initialize_119 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 119, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 119,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0054'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 119, (Is_Empty => True));
end Initialize_119;
--------------------
-- Initialize_120 --
--------------------
procedure Initialize_120 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 120, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 120,
AMF.Internals.Tables.CMOF_String_Data_02.MS_0200'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 120, (Is_Empty => True));
end Initialize_120;
--------------------
-- Initialize_121 --
--------------------
procedure Initialize_121 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 121, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 121,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0029'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 121, (Is_Empty => True));
end Initialize_121;
--------------------
-- Initialize_122 --
--------------------
procedure Initialize_122 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 122, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 122,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01CF'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 122, (Is_Empty => True));
end Initialize_122;
--------------------
-- Initialize_123 --
--------------------
procedure Initialize_123 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 123, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 123,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01D3'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 123, (Is_Empty => True));
end Initialize_123;
--------------------
-- Initialize_124 --
--------------------
procedure Initialize_124 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 124,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0067'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 124,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0111'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 124, (Is_Empty => True));
end Initialize_124;
--------------------
-- Initialize_125 --
--------------------
procedure Initialize_125 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 125,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0067'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 125,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01C4'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 125, (Is_Empty => True));
end Initialize_125;
--------------------
-- Initialize_126 --
--------------------
procedure Initialize_126 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 126,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0067'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 126,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0105'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 126, (Is_Empty => True));
end Initialize_126;
--------------------
-- Initialize_127 --
--------------------
procedure Initialize_127 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 127,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0067'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 127,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0060'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 127, (Is_Empty => True));
end Initialize_127;
--------------------
-- Initialize_128 --
--------------------
procedure Initialize_128 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Derived (Base + 128, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 128, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 128,
AMF.Internals.Tables.CMOF_String_Data_00.MS_009F'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 128, (Is_Empty => True));
end Initialize_128;
--------------------
-- Initialize_129 --
--------------------
procedure Initialize_129 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 129, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 129,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0174'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 129, (Is_Empty => True));
end Initialize_129;
--------------------
-- Initialize_130 --
--------------------
procedure Initialize_130 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Default
(Base + 130,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0067'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 130,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00A0'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 130, (Is_Empty => True));
end Initialize_130;
--------------------
-- Initialize_131 --
--------------------
procedure Initialize_131 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 131,
AMF.Internals.Tables.CMOF_String_Data_00.MS_008A'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 131, (Is_Empty => True));
end Initialize_131;
--------------------
-- Initialize_132 --
--------------------
procedure Initialize_132 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 132, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 132,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0050'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 132, (Is_Empty => True));
end Initialize_132;
--------------------
-- Initialize_133 --
--------------------
procedure Initialize_133 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 133,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0150'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 133, (Is_Empty => True));
end Initialize_133;
--------------------
-- Initialize_134 --
--------------------
procedure Initialize_134 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 134, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 134,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00F8'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 134, (Is_Empty => True));
end Initialize_134;
--------------------
-- Initialize_135 --
--------------------
procedure Initialize_135 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 135, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 135,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0196'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 135, (Is_Empty => True));
end Initialize_135;
--------------------
-- Initialize_136 --
--------------------
procedure Initialize_136 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 136,
AMF.Internals.Tables.CMOF_String_Data_01.MS_017F'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 136, (Is_Empty => True));
end Initialize_136;
--------------------
-- Initialize_137 --
--------------------
procedure Initialize_137 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 137,
AMF.Internals.Tables.CMOF_String_Data_01.MS_014F'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 137, (Is_Empty => True));
end Initialize_137;
--------------------
-- Initialize_138 --
--------------------
procedure Initialize_138 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 138,
AMF.Internals.Tables.CMOF_String_Data_01.MS_010B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 138, (Is_Empty => True));
end Initialize_138;
--------------------
-- Initialize_139 --
--------------------
procedure Initialize_139 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 139,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0197'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 139, (Is_Empty => True));
end Initialize_139;
--------------------
-- Initialize_140 --
--------------------
procedure Initialize_140 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 140,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00CE'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 140, (Is_Empty => True));
end Initialize_140;
--------------------
-- Initialize_141 --
--------------------
procedure Initialize_141 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 141,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01D7'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 141, (Is_Empty => True));
end Initialize_141;
--------------------
-- Initialize_142 --
--------------------
procedure Initialize_142 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 142,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0059'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 142, (Is_Empty => True));
end Initialize_142;
--------------------
-- Initialize_143 --
--------------------
procedure Initialize_143 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 143,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0072'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 143, (Is_Empty => True));
end Initialize_143;
--------------------
-- Initialize_144 --
--------------------
procedure Initialize_144 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 144,
AMF.Internals.Tables.CMOF_String_Data_00.MS_000D'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 144, (Is_Empty => True));
end Initialize_144;
--------------------
-- Initialize_145 --
--------------------
procedure Initialize_145 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 145,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00B7'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 145, (Is_Empty => True));
end Initialize_145;
--------------------
-- Initialize_146 --
--------------------
procedure Initialize_146 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 146,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01B4'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 146, (Is_Empty => True));
end Initialize_146;
--------------------
-- Initialize_147 --
--------------------
procedure Initialize_147 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 147,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0175'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 147, (Is_Empty => True));
end Initialize_147;
--------------------
-- Initialize_148 --
--------------------
procedure Initialize_148 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 148,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0144'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 148, (Is_Empty => True));
end Initialize_148;
--------------------
-- Initialize_149 --
--------------------
procedure Initialize_149 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 149,
AMF.Internals.Tables.CMOF_String_Data_00.MS_007D'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 149, (Is_Empty => True));
end Initialize_149;
--------------------
-- Initialize_150 --
--------------------
procedure Initialize_150 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 150,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00A5'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 150, (Is_Empty => True));
end Initialize_150;
--------------------
-- Initialize_151 --
--------------------
procedure Initialize_151 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 151,
AMF.Internals.Tables.CMOF_String_Data_01.MS_018F'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 151, (Is_Empty => True));
end Initialize_151;
--------------------
-- Initialize_152 --
--------------------
procedure Initialize_152 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 152,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00C2'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 152, (Is_Empty => True));
end Initialize_152;
--------------------
-- Initialize_153 --
--------------------
procedure Initialize_153 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 153,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01FD'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 153, (Is_Empty => True));
end Initialize_153;
--------------------
-- Initialize_154 --
--------------------
procedure Initialize_154 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 154,
AMF.Internals.Tables.CMOF_String_Data_01.MS_015A'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 154, (Is_Empty => True));
end Initialize_154;
--------------------
-- Initialize_155 --
--------------------
procedure Initialize_155 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 155,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00C4'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 155, (Is_Empty => True));
end Initialize_155;
--------------------
-- Initialize_156 --
--------------------
procedure Initialize_156 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 156,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00DA'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 156, (Is_Empty => True));
end Initialize_156;
--------------------
-- Initialize_157 --
--------------------
procedure Initialize_157 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 157,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0108'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 157, (Is_Empty => True));
end Initialize_157;
--------------------
-- Initialize_158 --
--------------------
procedure Initialize_158 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 158,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0006'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 158, (Is_Empty => True));
end Initialize_158;
--------------------
-- Initialize_159 --
--------------------
procedure Initialize_159 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 159,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00A1'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 159, (Is_Empty => True));
end Initialize_159;
--------------------
-- Initialize_160 --
--------------------
procedure Initialize_160 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 160,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00E2'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 160, (Is_Empty => True));
end Initialize_160;
--------------------
-- Initialize_161 --
--------------------
procedure Initialize_161 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 161,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01D9'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 161, (Is_Empty => True));
end Initialize_161;
--------------------
-- Initialize_162 --
--------------------
procedure Initialize_162 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 162,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01F7'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 162, (Is_Empty => True));
end Initialize_162;
--------------------
-- Initialize_163 --
--------------------
procedure Initialize_163 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 163,
AMF.Internals.Tables.CMOF_String_Data_01.MS_010E'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 163, (Is_Empty => True));
end Initialize_163;
--------------------
-- Initialize_164 --
--------------------
procedure Initialize_164 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 164,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0061'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 164, (Is_Empty => True));
end Initialize_164;
--------------------
-- Initialize_165 --
--------------------
procedure Initialize_165 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 165,
AMF.Internals.Tables.CMOF_String_Data_00.MS_002C'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 165, (Is_Empty => True));
end Initialize_165;
--------------------
-- Initialize_166 --
--------------------
procedure Initialize_166 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 166,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01C7'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 166, (Is_Empty => True));
end Initialize_166;
--------------------
-- Initialize_167 --
--------------------
procedure Initialize_167 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 167,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0055'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 167, (Is_Empty => True));
end Initialize_167;
--------------------
-- Initialize_168 --
--------------------
procedure Initialize_168 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 168,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0106'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 168, (Is_Empty => True));
end Initialize_168;
--------------------
-- Initialize_169 --
--------------------
procedure Initialize_169 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 169,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0033'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 169, (Is_Empty => True));
end Initialize_169;
--------------------
-- Initialize_170 --
--------------------
procedure Initialize_170 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 170,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00ED'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 170, (Is_Empty => True));
end Initialize_170;
--------------------
-- Initialize_171 --
--------------------
procedure Initialize_171 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 171,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0003'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 171, (Is_Empty => True));
end Initialize_171;
--------------------
-- Initialize_172 --
--------------------
procedure Initialize_172 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 172,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0161'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 172, (Is_Empty => True));
end Initialize_172;
--------------------
-- Initialize_173 --
--------------------
procedure Initialize_173 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 173,
AMF.Internals.Tables.CMOF_String_Data_00.MS_002F'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 173, (Is_Empty => True));
end Initialize_173;
--------------------
-- Initialize_174 --
--------------------
procedure Initialize_174 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 174,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01DB'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 174, (Is_Empty => True));
end Initialize_174;
--------------------
-- Initialize_175 --
--------------------
procedure Initialize_175 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 175,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00A6'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 175, (Is_Empty => True));
end Initialize_175;
--------------------
-- Initialize_176 --
--------------------
procedure Initialize_176 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 176,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00BE'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 176, (Is_Empty => True));
end Initialize_176;
--------------------
-- Initialize_177 --
--------------------
procedure Initialize_177 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 177,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01CB'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 177, (Is_Empty => True));
end Initialize_177;
--------------------
-- Initialize_178 --
--------------------
procedure Initialize_178 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 178,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0065'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 178, (Is_Empty => True));
end Initialize_178;
--------------------
-- Initialize_179 --
--------------------
procedure Initialize_179 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 179,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00FA'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 179, (Is_Empty => True));
end Initialize_179;
--------------------
-- Initialize_180 --
--------------------
procedure Initialize_180 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 180,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0034'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 180, (Is_Empty => True));
end Initialize_180;
--------------------
-- Initialize_181 --
--------------------
procedure Initialize_181 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 181,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00C1'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 181, (Is_Empty => True));
end Initialize_181;
--------------------
-- Initialize_182 --
--------------------
procedure Initialize_182 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 182,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0008'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 182, (Is_Empty => True));
end Initialize_182;
--------------------
-- Initialize_183 --
--------------------
procedure Initialize_183 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 183,
AMF.Internals.Tables.CMOF_String_Data_00.MS_005F'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 183, (Is_Empty => True));
end Initialize_183;
--------------------
-- Initialize_184 --
--------------------
procedure Initialize_184 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 184,
AMF.Internals.Tables.CMOF_String_Data_00.MS_007B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 184, (Is_Empty => True));
end Initialize_184;
--------------------
-- Initialize_185 --
--------------------
procedure Initialize_185 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 185,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0130'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 185, (Is_Empty => True));
end Initialize_185;
--------------------
-- Initialize_186 --
--------------------
procedure Initialize_186 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 186,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0182'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 186, (Is_Empty => True));
end Initialize_186;
--------------------
-- Initialize_187 --
--------------------
procedure Initialize_187 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 187,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0035'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 187, (Is_Empty => True));
end Initialize_187;
--------------------
-- Initialize_188 --
--------------------
procedure Initialize_188 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 188,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00BA'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 188, (Is_Empty => True));
end Initialize_188;
--------------------
-- Initialize_189 --
--------------------
procedure Initialize_189 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 189,
AMF.Internals.Tables.CMOF_String_Data_01.MS_014C'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Uri
(Base + 189,
AMF.Internals.Tables.CMOF_String_Data_00.MS_006F'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 189, (Is_Empty => True));
end Initialize_189;
--------------------
-- Initialize_190 --
--------------------
procedure Initialize_190 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 190,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0173'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 190, (Is_Empty => True));
end Initialize_190;
--------------------
-- Initialize_191 --
--------------------
procedure Initialize_191 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 191,
AMF.Internals.Tables.CMOF_String_Data_01.MS_014D'Access);
end Initialize_191;
--------------------
-- Initialize_192 --
--------------------
procedure Initialize_192 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 192,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0165'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 192, (Is_Empty => True));
end Initialize_192;
--------------------
-- Initialize_193 --
--------------------
procedure Initialize_193 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 193,
AMF.Internals.Tables.CMOF_String_Data_00.MS_008C'Access);
end Initialize_193;
--------------------
-- Initialize_194 --
--------------------
procedure Initialize_194 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 194,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0040'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 194, (Is_Empty => True));
end Initialize_194;
--------------------
-- Initialize_195 --
--------------------
procedure Initialize_195 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 195,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00CC'Access);
end Initialize_195;
--------------------
-- Initialize_196 --
--------------------
procedure Initialize_196 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 196,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01D5'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 196, (Is_Empty => True));
end Initialize_196;
--------------------
-- Initialize_197 --
--------------------
procedure Initialize_197 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 197,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0116'Access);
end Initialize_197;
--------------------
-- Initialize_198 --
--------------------
procedure Initialize_198 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 198,
AMF.Internals.Tables.CMOF_String_Data_00.MS_009A'Access);
end Initialize_198;
--------------------
-- Initialize_199 --
--------------------
procedure Initialize_199 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 199,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01FF'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 199, (Is_Empty => True));
end Initialize_199;
--------------------
-- Initialize_200 --
--------------------
procedure Initialize_200 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 200,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0188'Access);
end Initialize_200;
--------------------
-- Initialize_201 --
--------------------
procedure Initialize_201 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 201, (Is_Empty => True));
end Initialize_201;
--------------------
-- Initialize_202 --
--------------------
procedure Initialize_202 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 202,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0100'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 202, (Is_Empty => True));
end Initialize_202;
--------------------
-- Initialize_203 --
--------------------
procedure Initialize_203 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 203,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01D6'Access);
end Initialize_203;
--------------------
-- Initialize_204 --
--------------------
procedure Initialize_204 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 204, (Is_Empty => True));
end Initialize_204;
--------------------
-- Initialize_205 --
--------------------
procedure Initialize_205 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 205,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01EC'Access);
end Initialize_205;
--------------------
-- Initialize_206 --
--------------------
procedure Initialize_206 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 206,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0131'Access);
end Initialize_206;
--------------------
-- Initialize_207 --
--------------------
procedure Initialize_207 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 207,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0018'Access);
end Initialize_207;
--------------------
-- Initialize_208 --
--------------------
procedure Initialize_208 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 208,
AMF.Internals.Tables.CMOF_String_Data_00.MS_003A'Access);
end Initialize_208;
--------------------
-- Initialize_209 --
--------------------
procedure Initialize_209 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 209,
AMF.Internals.Tables.CMOF_String_Data_01.MS_013A'Access);
end Initialize_209;
--------------------
-- Initialize_210 --
--------------------
procedure Initialize_210 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 210, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 210,
AMF.Internals.Tables.CMOF_String_Data_01.MS_014B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 210, (Is_Empty => True));
end Initialize_210;
--------------------
-- Initialize_211 --
--------------------
procedure Initialize_211 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 211,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01F8'Access);
end Initialize_211;
--------------------
-- Initialize_212 --
--------------------
procedure Initialize_212 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 212,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 212, (Is_Empty => True));
end Initialize_212;
--------------------
-- Initialize_213 --
--------------------
procedure Initialize_213 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 213, (Is_Empty => True));
end Initialize_213;
--------------------
-- Initialize_214 --
--------------------
procedure Initialize_214 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 214, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 214, (Is_Empty => True));
end Initialize_214;
--------------------
-- Initialize_215 --
--------------------
procedure Initialize_215 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 215, AMF.CMOF.In_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 215,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0112'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 215, (Is_Empty => True));
end Initialize_215;
--------------------
-- Initialize_216 --
--------------------
procedure Initialize_216 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 216, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 216,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00DC'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 216, (Is_Empty => True));
end Initialize_216;
--------------------
-- Initialize_217 --
--------------------
procedure Initialize_217 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 217,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0070'Access);
end Initialize_217;
--------------------
-- Initialize_218 --
--------------------
procedure Initialize_218 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 218,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 218, (Is_Empty => True));
end Initialize_218;
--------------------
-- Initialize_219 --
--------------------
procedure Initialize_219 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 219, (Is_Empty => True));
end Initialize_219;
--------------------
-- Initialize_220 --
--------------------
procedure Initialize_220 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 220, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 220, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 220, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 220, (Is_Empty => True));
end Initialize_220;
--------------------
-- Initialize_221 --
--------------------
procedure Initialize_221 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 221, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 221,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0095'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 221, (Is_Empty => True));
end Initialize_221;
--------------------
-- Initialize_222 --
--------------------
procedure Initialize_222 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 222,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0005'Access);
end Initialize_222;
--------------------
-- Initialize_223 --
--------------------
procedure Initialize_223 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 223,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 223, (Is_Empty => True));
end Initialize_223;
--------------------
-- Initialize_224 --
--------------------
procedure Initialize_224 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 224, (Is_Empty => True));
end Initialize_224;
--------------------
-- Initialize_225 --
--------------------
procedure Initialize_225 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 225, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 225, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 225, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 225, (Is_Empty => True));
end Initialize_225;
--------------------
-- Initialize_226 --
--------------------
procedure Initialize_226 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 226, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 226,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01E3'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 226, (Is_Empty => True));
end Initialize_226;
--------------------
-- Initialize_227 --
--------------------
procedure Initialize_227 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 227,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00D6'Access);
end Initialize_227;
--------------------
-- Initialize_228 --
--------------------
procedure Initialize_228 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 228,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 228, (Is_Empty => True));
end Initialize_228;
--------------------
-- Initialize_229 --
--------------------
procedure Initialize_229 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 229, (Is_Empty => True));
end Initialize_229;
--------------------
-- Initialize_230 --
--------------------
procedure Initialize_230 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 230, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 230, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 230, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 230, (Is_Empty => True));
end Initialize_230;
--------------------
-- Initialize_231 --
--------------------
procedure Initialize_231 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 231, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 231,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00A2'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 231, (Is_Empty => True));
end Initialize_231;
--------------------
-- Initialize_232 --
--------------------
procedure Initialize_232 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 232,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01AB'Access);
end Initialize_232;
--------------------
-- Initialize_233 --
--------------------
procedure Initialize_233 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 233,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 233, (Is_Empty => True));
end Initialize_233;
--------------------
-- Initialize_234 --
--------------------
procedure Initialize_234 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 234, (Is_Empty => True));
end Initialize_234;
--------------------
-- Initialize_235 --
--------------------
procedure Initialize_235 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 235, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 235, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 235, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 235, (Is_Empty => True));
end Initialize_235;
--------------------
-- Initialize_236 --
--------------------
procedure Initialize_236 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 236, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 236,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0176'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 236, (Is_Empty => True));
end Initialize_236;
--------------------
-- Initialize_237 --
--------------------
procedure Initialize_237 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 237,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0089'Access);
end Initialize_237;
--------------------
-- Initialize_238 --
--------------------
procedure Initialize_238 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 238,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 238, (Is_Empty => True));
end Initialize_238;
--------------------
-- Initialize_239 --
--------------------
procedure Initialize_239 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 239, (Is_Empty => True));
end Initialize_239;
--------------------
-- Initialize_240 --
--------------------
procedure Initialize_240 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 240, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 240, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 240, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 240, (Is_Empty => True));
end Initialize_240;
--------------------
-- Initialize_241 --
--------------------
procedure Initialize_241 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 241, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 241,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0090'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 241, (Is_Empty => True));
end Initialize_241;
--------------------
-- Initialize_242 --
--------------------
procedure Initialize_242 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 242,
AMF.Internals.Tables.CMOF_String_Data_00.MS_007C'Access);
end Initialize_242;
--------------------
-- Initialize_243 --
--------------------
procedure Initialize_243 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 243, (Is_Empty => True));
end Initialize_243;
--------------------
-- Initialize_244 --
--------------------
procedure Initialize_244 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 244, (Is_Empty => True));
end Initialize_244;
--------------------
-- Initialize_245 --
--------------------
procedure Initialize_245 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 245,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 245, (Is_Empty => True));
end Initialize_245;
--------------------
-- Initialize_246 --
--------------------
procedure Initialize_246 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 246, (Is_Empty => True));
end Initialize_246;
--------------------
-- Initialize_247 --
--------------------
procedure Initialize_247 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 247, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 247, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 247, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 247, (Is_Empty => True));
end Initialize_247;
--------------------
-- Initialize_248 --
--------------------
procedure Initialize_248 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 248, AMF.CMOF.In_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 248,
AMF.Internals.Tables.CMOF_String_Data_01.MS_011D'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 248, (Is_Empty => True));
end Initialize_248;
--------------------
-- Initialize_249 --
--------------------
procedure Initialize_249 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 249, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 249,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0093'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 249, (Is_Empty => True));
end Initialize_249;
--------------------
-- Initialize_250 --
--------------------
procedure Initialize_250 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 250,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0160'Access);
end Initialize_250;
--------------------
-- Initialize_251 --
--------------------
procedure Initialize_251 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 251, (Is_Empty => True));
end Initialize_251;
--------------------
-- Initialize_252 --
--------------------
procedure Initialize_252 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 252, (Is_Empty => True));
end Initialize_252;
--------------------
-- Initialize_253 --
--------------------
procedure Initialize_253 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 253,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 253, (Is_Empty => True));
end Initialize_253;
--------------------
-- Initialize_254 --
--------------------
procedure Initialize_254 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 254, (Is_Empty => True));
end Initialize_254;
--------------------
-- Initialize_255 --
--------------------
procedure Initialize_255 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 255, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 255, (Is_Empty => True));
end Initialize_255;
--------------------
-- Initialize_256 --
--------------------
procedure Initialize_256 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 256, AMF.CMOF.In_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 256,
AMF.Internals.Tables.CMOF_String_Data_00.MS_001E'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 256, (Is_Empty => True));
end Initialize_256;
--------------------
-- Initialize_257 --
--------------------
procedure Initialize_257 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 257, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 257,
AMF.Internals.Tables.CMOF_String_Data_01.MS_014E'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 257, (Is_Empty => True));
end Initialize_257;
--------------------
-- Initialize_258 --
--------------------
procedure Initialize_258 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 258,
AMF.Internals.Tables.CMOF_String_Data_01.MS_016E'Access);
end Initialize_258;
--------------------
-- Initialize_259 --
--------------------
procedure Initialize_259 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 259,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 259, (Is_Empty => True));
end Initialize_259;
--------------------
-- Initialize_260 --
--------------------
procedure Initialize_260 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 260, (Is_Empty => True));
end Initialize_260;
--------------------
-- Initialize_261 --
--------------------
procedure Initialize_261 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 261, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 261, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 261, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 261, (Is_Empty => True));
end Initialize_261;
--------------------
-- Initialize_262 --
--------------------
procedure Initialize_262 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 262, AMF.CMOF.In_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 262, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 262,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01CA'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 262, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 262, (Is_Empty => True));
end Initialize_262;
--------------------
-- Initialize_263 --
--------------------
procedure Initialize_263 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 263, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 263,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0140'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 263, (Is_Empty => True));
end Initialize_263;
--------------------
-- Initialize_264 --
--------------------
procedure Initialize_264 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 264,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0181'Access);
end Initialize_264;
--------------------
-- Initialize_265 --
--------------------
procedure Initialize_265 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 265,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 265, (Is_Empty => True));
end Initialize_265;
--------------------
-- Initialize_266 --
--------------------
procedure Initialize_266 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 266, (Is_Empty => True));
end Initialize_266;
--------------------
-- Initialize_267 --
--------------------
procedure Initialize_267 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 267, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 267, (Is_Empty => True));
end Initialize_267;
--------------------
-- Initialize_268 --
--------------------
procedure Initialize_268 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 268, AMF.CMOF.In_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 268,
AMF.Internals.Tables.CMOF_String_Data_01.MS_011D'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 268, (Is_Empty => True));
end Initialize_268;
--------------------
-- Initialize_269 --
--------------------
procedure Initialize_269 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 269,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0139'Access);
end Initialize_269;
--------------------
-- Initialize_270 --
--------------------
procedure Initialize_270 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 270,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0141'Access);
end Initialize_270;
--------------------
-- Initialize_271 --
--------------------
procedure Initialize_271 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 271,
AMF.Internals.Tables.CMOF_String_Data_00.MS_008B'Access);
end Initialize_271;
--------------------
-- Initialize_272 --
--------------------
procedure Initialize_272 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 272,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00D9'Access);
end Initialize_272;
--------------------
-- Initialize_273 --
--------------------
procedure Initialize_273 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 273,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00F9'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 273, (Is_Empty => True));
end Initialize_273;
--------------------
-- Initialize_274 --
--------------------
procedure Initialize_274 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 274,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01C8'Access);
end Initialize_274;
--------------------
-- Initialize_275 --
--------------------
procedure Initialize_275 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 275, (Is_Empty => True));
end Initialize_275;
--------------------
-- Initialize_276 --
--------------------
procedure Initialize_276 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 276,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0083'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 276, (Is_Empty => True));
end Initialize_276;
--------------------
-- Initialize_277 --
--------------------
procedure Initialize_277 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 277,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01B3'Access);
end Initialize_277;
--------------------
-- Initialize_278 --
--------------------
procedure Initialize_278 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 278, (Is_Empty => True));
end Initialize_278;
--------------------
-- Initialize_279 --
--------------------
procedure Initialize_279 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 279,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0153'Access);
end Initialize_279;
--------------------
-- Initialize_280 --
--------------------
procedure Initialize_280 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 280,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0038'Access);
end Initialize_280;
--------------------
-- Initialize_281 --
--------------------
procedure Initialize_281 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 281,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01BB'Access);
end Initialize_281;
--------------------
-- Initialize_282 --
--------------------
procedure Initialize_282 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 282, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 282,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0058'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 282, (Is_Empty => True));
end Initialize_282;
--------------------
-- Initialize_283 --
--------------------
procedure Initialize_283 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 283,
AMF.Internals.Tables.CMOF_String_Data_00.MS_007A'Access);
end Initialize_283;
--------------------
-- Initialize_284 --
--------------------
procedure Initialize_284 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 284,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 284, (Is_Empty => True));
end Initialize_284;
--------------------
-- Initialize_285 --
--------------------
procedure Initialize_285 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 285, (Is_Empty => True));
end Initialize_285;
--------------------
-- Initialize_286 --
--------------------
procedure Initialize_286 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 286, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 286, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 286, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 286, (Is_Empty => True));
end Initialize_286;
--------------------
-- Initialize_287 --
--------------------
procedure Initialize_287 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 287, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 287,
AMF.Internals.Tables.CMOF_String_Data_00.MS_003C'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 287, (Is_Empty => True));
end Initialize_287;
--------------------
-- Initialize_288 --
--------------------
procedure Initialize_288 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 288,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0013'Access);
end Initialize_288;
--------------------
-- Initialize_289 --
--------------------
procedure Initialize_289 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 289,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 289, (Is_Empty => True));
end Initialize_289;
--------------------
-- Initialize_290 --
--------------------
procedure Initialize_290 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 290, (Is_Empty => True));
end Initialize_290;
--------------------
-- Initialize_291 --
--------------------
procedure Initialize_291 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 291, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 291, (Is_Empty => True));
end Initialize_291;
--------------------
-- Initialize_292 --
--------------------
procedure Initialize_292 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 292,
AMF.Internals.Tables.CMOF_String_Data_01.MS_019F'Access);
end Initialize_292;
--------------------
-- Initialize_293 --
--------------------
procedure Initialize_293 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 293,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00AD'Access);
end Initialize_293;
--------------------
-- Initialize_294 --
--------------------
procedure Initialize_294 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 294,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0109'Access);
end Initialize_294;
--------------------
-- Initialize_295 --
--------------------
procedure Initialize_295 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 295,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0115'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 295, (Is_Empty => True));
end Initialize_295;
--------------------
-- Initialize_296 --
--------------------
procedure Initialize_296 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 296,
AMF.Internals.Tables.CMOF_String_Data_00.MS_001C'Access);
end Initialize_296;
--------------------
-- Initialize_297 --
--------------------
procedure Initialize_297 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 297, (Is_Empty => True));
end Initialize_297;
--------------------
-- Initialize_298 --
--------------------
procedure Initialize_298 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 298,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0042'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 298, (Is_Empty => True));
end Initialize_298;
--------------------
-- Initialize_299 --
--------------------
procedure Initialize_299 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 299,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00D7'Access);
end Initialize_299;
--------------------
-- Initialize_300 --
--------------------
procedure Initialize_300 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 300, (Is_Empty => True));
end Initialize_300;
--------------------
-- Initialize_301 --
--------------------
procedure Initialize_301 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 301,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0124'Access);
end Initialize_301;
--------------------
-- Initialize_302 --
--------------------
procedure Initialize_302 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 302,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00E9'Access);
end Initialize_302;
--------------------
-- Initialize_303 --
--------------------
procedure Initialize_303 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 303,
AMF.Internals.Tables.CMOF_String_Data_00.MS_003E'Access);
end Initialize_303;
--------------------
-- Initialize_304 --
--------------------
procedure Initialize_304 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 304,
AMF.Internals.Tables.CMOF_String_Data_01.MS_017D'Access);
end Initialize_304;
--------------------
-- Initialize_305 --
--------------------
procedure Initialize_305 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 305, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 305,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0101'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 305, (Is_Empty => True));
end Initialize_305;
--------------------
-- Initialize_306 --
--------------------
procedure Initialize_306 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 306,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0011'Access);
end Initialize_306;
--------------------
-- Initialize_307 --
--------------------
procedure Initialize_307 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 307, (Is_Empty => True));
end Initialize_307;
--------------------
-- Initialize_308 --
--------------------
procedure Initialize_308 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 308, (Is_Empty => True));
end Initialize_308;
--------------------
-- Initialize_309 --
--------------------
procedure Initialize_309 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 309,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 309, (Is_Empty => True));
end Initialize_309;
--------------------
-- Initialize_310 --
--------------------
procedure Initialize_310 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 310, (Is_Empty => True));
end Initialize_310;
--------------------
-- Initialize_311 --
--------------------
procedure Initialize_311 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 311, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 311, (Is_Empty => True));
end Initialize_311;
--------------------
-- Initialize_312 --
--------------------
procedure Initialize_312 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 312, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 312,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0002'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 312, (Is_Empty => True));
end Initialize_312;
--------------------
-- Initialize_313 --
--------------------
procedure Initialize_313 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 313,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01F1'Access);
end Initialize_313;
--------------------
-- Initialize_314 --
--------------------
procedure Initialize_314 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 314, (Is_Empty => True));
end Initialize_314;
--------------------
-- Initialize_315 --
--------------------
procedure Initialize_315 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 315, (Is_Empty => True));
end Initialize_315;
--------------------
-- Initialize_316 --
--------------------
procedure Initialize_316 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 316,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 316, (Is_Empty => True));
end Initialize_316;
--------------------
-- Initialize_317 --
--------------------
procedure Initialize_317 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 317, (Is_Empty => True));
end Initialize_317;
--------------------
-- Initialize_318 --
--------------------
procedure Initialize_318 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 318, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 318, (Is_Empty => True));
end Initialize_318;
--------------------
-- Initialize_319 --
--------------------
procedure Initialize_319 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 319, AMF.CMOF.In_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 319,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01B5'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 319, (Is_Empty => True));
end Initialize_319;
--------------------
-- Initialize_320 --
--------------------
procedure Initialize_320 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 320, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 320,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0126'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 320, (Is_Empty => True));
end Initialize_320;
--------------------
-- Initialize_321 --
--------------------
procedure Initialize_321 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 321,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0156'Access);
end Initialize_321;
--------------------
-- Initialize_322 --
--------------------
procedure Initialize_322 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 322, (Is_Empty => True));
end Initialize_322;
--------------------
-- Initialize_323 --
--------------------
procedure Initialize_323 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 323, (Is_Empty => True));
end Initialize_323;
--------------------
-- Initialize_324 --
--------------------
procedure Initialize_324 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 324,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 324, (Is_Empty => True));
end Initialize_324;
--------------------
-- Initialize_325 --
--------------------
procedure Initialize_325 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 325, (Is_Empty => True));
end Initialize_325;
--------------------
-- Initialize_326 --
--------------------
procedure Initialize_326 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 326, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 326, (Is_Empty => True));
end Initialize_326;
--------------------
-- Initialize_327 --
--------------------
procedure Initialize_327 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 327, AMF.CMOF.In_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 327,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00C8'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 327, (Is_Empty => True));
end Initialize_327;
--------------------
-- Initialize_328 --
--------------------
procedure Initialize_328 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 328, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 328,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00F3'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 328, (Is_Empty => True));
end Initialize_328;
--------------------
-- Initialize_329 --
--------------------
procedure Initialize_329 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 329,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00BF'Access);
end Initialize_329;
--------------------
-- Initialize_330 --
--------------------
procedure Initialize_330 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 330,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 330, (Is_Empty => True));
end Initialize_330;
--------------------
-- Initialize_331 --
--------------------
procedure Initialize_331 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 331, (Is_Empty => True));
end Initialize_331;
--------------------
-- Initialize_332 --
--------------------
procedure Initialize_332 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 332, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 332, (Is_Empty => True));
end Initialize_332;
--------------------
-- Initialize_333 --
--------------------
procedure Initialize_333 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 333, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 333,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0136'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 333, (Is_Empty => True));
end Initialize_333;
--------------------
-- Initialize_334 --
--------------------
procedure Initialize_334 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 334,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00BC'Access);
end Initialize_334;
--------------------
-- Initialize_335 --
--------------------
procedure Initialize_335 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 335,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 335, (Is_Empty => True));
end Initialize_335;
--------------------
-- Initialize_336 --
--------------------
procedure Initialize_336 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 336, (Is_Empty => True));
end Initialize_336;
--------------------
-- Initialize_337 --
--------------------
procedure Initialize_337 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 337, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 337, (Is_Empty => True));
end Initialize_337;
--------------------
-- Initialize_338 --
--------------------
procedure Initialize_338 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 338,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0129'Access);
end Initialize_338;
--------------------
-- Initialize_339 --
--------------------
procedure Initialize_339 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 339,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0189'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 339, (Is_Empty => True));
end Initialize_339;
--------------------
-- Initialize_340 --
--------------------
procedure Initialize_340 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 340,
AMF.Internals.Tables.CMOF_String_Data_01.MS_014A'Access);
end Initialize_340;
--------------------
-- Initialize_341 --
--------------------
procedure Initialize_341 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 341, (Is_Empty => True));
end Initialize_341;
--------------------
-- Initialize_342 --
--------------------
procedure Initialize_342 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 342,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0103'Access);
end Initialize_342;
--------------------
-- Initialize_343 --
--------------------
procedure Initialize_343 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 343,
AMF.Internals.Tables.CMOF_String_Data_01.MS_013D'Access);
end Initialize_343;
--------------------
-- Initialize_344 --
--------------------
procedure Initialize_344 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 344,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00F6'Access);
end Initialize_344;
--------------------
-- Initialize_345 --
--------------------
procedure Initialize_345 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 345,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00F0'Access);
end Initialize_345;
--------------------
-- Initialize_346 --
--------------------
procedure Initialize_346 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 346,
AMF.Internals.Tables.CMOF_String_Data_01.MS_017E'Access);
end Initialize_346;
--------------------
-- Initialize_347 --
--------------------
procedure Initialize_347 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 347, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 347,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01D8'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 347, (Is_Empty => True));
end Initialize_347;
--------------------
-- Initialize_348 --
--------------------
procedure Initialize_348 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 348,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01B0'Access);
end Initialize_348;
--------------------
-- Initialize_349 --
--------------------
procedure Initialize_349 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 349,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 349, (Is_Empty => True));
end Initialize_349;
--------------------
-- Initialize_350 --
--------------------
procedure Initialize_350 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 350, (Is_Empty => True));
end Initialize_350;
--------------------
-- Initialize_351 --
--------------------
procedure Initialize_351 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 351, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 351, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 351, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 351, (Is_Empty => True));
end Initialize_351;
--------------------
-- Initialize_352 --
--------------------
procedure Initialize_352 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 352, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 352,
AMF.Internals.Tables.CMOF_String_Data_01.MS_015C'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 352, (Is_Empty => True));
end Initialize_352;
--------------------
-- Initialize_353 --
--------------------
procedure Initialize_353 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 353,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01E5'Access);
end Initialize_353;
--------------------
-- Initialize_354 --
--------------------
procedure Initialize_354 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 354,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 354, (Is_Empty => True));
end Initialize_354;
--------------------
-- Initialize_355 --
--------------------
procedure Initialize_355 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 355, (Is_Empty => True));
end Initialize_355;
--------------------
-- Initialize_356 --
--------------------
procedure Initialize_356 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 356, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 356, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 356, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 356, (Is_Empty => True));
end Initialize_356;
--------------------
-- Initialize_357 --
--------------------
procedure Initialize_357 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 357, AMF.CMOF.In_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 357,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0104'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 357, (Is_Empty => True));
end Initialize_357;
--------------------
-- Initialize_358 --
--------------------
procedure Initialize_358 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 358, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 358,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0167'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 358, (Is_Empty => True));
end Initialize_358;
--------------------
-- Initialize_359 --
--------------------
procedure Initialize_359 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 359,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0096'Access);
end Initialize_359;
--------------------
-- Initialize_360 --
--------------------
procedure Initialize_360 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 360,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 360, (Is_Empty => True));
end Initialize_360;
--------------------
-- Initialize_361 --
--------------------
procedure Initialize_361 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 361, (Is_Empty => True));
end Initialize_361;
--------------------
-- Initialize_362 --
--------------------
procedure Initialize_362 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 362, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 362, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 362, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 362, (Is_Empty => True));
end Initialize_362;
--------------------
-- Initialize_363 --
--------------------
procedure Initialize_363 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 363, AMF.CMOF.In_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 363, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 363,
AMF.Internals.Tables.CMOF_String_Data_01.MS_012A'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 363, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 363, (Is_Empty => True));
end Initialize_363;
--------------------
-- Initialize_364 --
--------------------
procedure Initialize_364 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 364, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 364,
AMF.Internals.Tables.CMOF_String_Data_01.MS_011F'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 364, (Is_Empty => True));
end Initialize_364;
--------------------
-- Initialize_365 --
--------------------
procedure Initialize_365 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 365,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01E1'Access);
end Initialize_365;
--------------------
-- Initialize_366 --
--------------------
procedure Initialize_366 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 366,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 366, (Is_Empty => True));
end Initialize_366;
--------------------
-- Initialize_367 --
--------------------
procedure Initialize_367 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 367, (Is_Empty => True));
end Initialize_367;
--------------------
-- Initialize_368 --
--------------------
procedure Initialize_368 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 368, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 368, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 368, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 368, (Is_Empty => True));
end Initialize_368;
--------------------
-- Initialize_369 --
--------------------
procedure Initialize_369 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 369, AMF.CMOF.In_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 369, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 369,
AMF.Internals.Tables.CMOF_String_Data_01.MS_012A'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 369, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 369, (Is_Empty => True));
end Initialize_369;
--------------------
-- Initialize_370 --
--------------------
procedure Initialize_370 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 370, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 370,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01E6'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 370, (Is_Empty => True));
end Initialize_370;
--------------------
-- Initialize_371 --
--------------------
procedure Initialize_371 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 371,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01A2'Access);
end Initialize_371;
--------------------
-- Initialize_372 --
--------------------
procedure Initialize_372 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 372,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 372, (Is_Empty => True));
end Initialize_372;
--------------------
-- Initialize_373 --
--------------------
procedure Initialize_373 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 373, (Is_Empty => True));
end Initialize_373;
--------------------
-- Initialize_374 --
--------------------
procedure Initialize_374 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 374, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 374, (Is_Empty => True));
end Initialize_374;
--------------------
-- Initialize_375 --
--------------------
procedure Initialize_375 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 375,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0057'Access);
end Initialize_375;
--------------------
-- Initialize_376 --
--------------------
procedure Initialize_376 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 376,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0151'Access);
end Initialize_376;
--------------------
-- Initialize_377 --
--------------------
procedure Initialize_377 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 377,
AMF.Internals.Tables.CMOF_String_Data_00.MS_005B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 377, (Is_Empty => True));
end Initialize_377;
--------------------
-- Initialize_378 --
--------------------
procedure Initialize_378 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 378,
AMF.Internals.Tables.CMOF_String_Data_01.MS_010D'Access);
end Initialize_378;
--------------------
-- Initialize_379 --
--------------------
procedure Initialize_379 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 379, (Is_Empty => True));
end Initialize_379;
--------------------
-- Initialize_380 --
--------------------
procedure Initialize_380 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 380,
AMF.Internals.Tables.CMOF_String_Data_00.MS_007E'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 380, (Is_Empty => True));
end Initialize_380;
--------------------
-- Initialize_381 --
--------------------
procedure Initialize_381 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 381,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01B9'Access);
end Initialize_381;
--------------------
-- Initialize_382 --
--------------------
procedure Initialize_382 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 382, (Is_Empty => True));
end Initialize_382;
--------------------
-- Initialize_383 --
--------------------
procedure Initialize_383 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 383,
AMF.Internals.Tables.CMOF_String_Data_01.MS_015E'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 383, (Is_Empty => True));
end Initialize_383;
--------------------
-- Initialize_384 --
--------------------
procedure Initialize_384 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 384,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00D4'Access);
end Initialize_384;
--------------------
-- Initialize_385 --
--------------------
procedure Initialize_385 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 385, (Is_Empty => True));
end Initialize_385;
--------------------
-- Initialize_386 --
--------------------
procedure Initialize_386 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 386,
AMF.Internals.Tables.CMOF_String_Data_00.MS_005A'Access);
end Initialize_386;
--------------------
-- Initialize_387 --
--------------------
procedure Initialize_387 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 387,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0118'Access);
end Initialize_387;
--------------------
-- Initialize_388 --
--------------------
procedure Initialize_388 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 388,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0134'Access);
end Initialize_388;
--------------------
-- Initialize_389 --
--------------------
procedure Initialize_389 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 389, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 389,
AMF.Internals.Tables.CMOF_String_Data_00.MS_001A'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 389, (Is_Empty => True));
end Initialize_389;
--------------------
-- Initialize_390 --
--------------------
procedure Initialize_390 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 390,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01C3'Access);
end Initialize_390;
--------------------
-- Initialize_391 --
--------------------
procedure Initialize_391 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 391,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 391, (Is_Empty => True));
end Initialize_391;
--------------------
-- Initialize_392 --
--------------------
procedure Initialize_392 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 392, (Is_Empty => True));
end Initialize_392;
--------------------
-- Initialize_393 --
--------------------
procedure Initialize_393 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 393, (Is_Empty => True));
end Initialize_393;
--------------------
-- Initialize_394 --
--------------------
procedure Initialize_394 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 394, (Is_Empty => True));
end Initialize_394;
--------------------
-- Initialize_395 --
--------------------
procedure Initialize_395 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 395, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 395, (Is_Empty => True));
end Initialize_395;
--------------------
-- Initialize_396 --
--------------------
procedure Initialize_396 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 396, AMF.CMOF.In_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 396,
AMF.Internals.Tables.CMOF_String_Data_00.MS_000E'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 396, (Is_Empty => True));
end Initialize_396;
--------------------
-- Initialize_397 --
--------------------
procedure Initialize_397 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 397, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 397,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01BD'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 397, (Is_Empty => True));
end Initialize_397;
--------------------
-- Initialize_398 --
--------------------
procedure Initialize_398 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 398,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01B8'Access);
end Initialize_398;
--------------------
-- Initialize_399 --
--------------------
procedure Initialize_399 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 399,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 399, (Is_Empty => True));
end Initialize_399;
--------------------
-- Initialize_400 --
--------------------
procedure Initialize_400 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 400, (Is_Empty => True));
end Initialize_400;
--------------------
-- Initialize_401 --
--------------------
procedure Initialize_401 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 401, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 401, (Is_Empty => True));
end Initialize_401;
--------------------
-- Initialize_402 --
--------------------
procedure Initialize_402 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 402, AMF.CMOF.In_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 402,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0099'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 402, (Is_Empty => True));
end Initialize_402;
--------------------
-- Initialize_403 --
--------------------
procedure Initialize_403 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 403,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01C2'Access);
end Initialize_403;
--------------------
-- Initialize_404 --
--------------------
procedure Initialize_404 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 404,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0066'Access);
end Initialize_404;
--------------------
-- Initialize_405 --
--------------------
procedure Initialize_405 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 405,
AMF.Internals.Tables.CMOF_String_Data_01.MS_012F'Access);
end Initialize_405;
--------------------
-- Initialize_406 --
--------------------
procedure Initialize_406 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 406,
AMF.Internals.Tables.CMOF_String_Data_01.MS_018E'Access);
end Initialize_406;
--------------------
-- Initialize_407 --
--------------------
procedure Initialize_407 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 407,
AMF.Internals.Tables.CMOF_String_Data_00.MS_008E'Access);
end Initialize_407;
--------------------
-- Initialize_408 --
--------------------
procedure Initialize_408 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 408,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0078'Access);
end Initialize_408;
--------------------
-- Initialize_409 --
--------------------
procedure Initialize_409 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 409, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 409,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00B4'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 409, (Is_Empty => True));
end Initialize_409;
--------------------
-- Initialize_410 --
--------------------
procedure Initialize_410 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 410,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00C3'Access);
end Initialize_410;
--------------------
-- Initialize_411 --
--------------------
procedure Initialize_411 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 411,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 411, (Is_Empty => True));
end Initialize_411;
--------------------
-- Initialize_412 --
--------------------
procedure Initialize_412 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 412, (Is_Empty => True));
end Initialize_412;
--------------------
-- Initialize_413 --
--------------------
procedure Initialize_413 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 413, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 413, (Is_Empty => True));
end Initialize_413;
--------------------
-- Initialize_414 --
--------------------
procedure Initialize_414 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 414, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 414,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0145'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 414, (Is_Empty => True));
end Initialize_414;
--------------------
-- Initialize_415 --
--------------------
procedure Initialize_415 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 415,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0064'Access);
end Initialize_415;
--------------------
-- Initialize_416 --
--------------------
procedure Initialize_416 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 416,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 416, (Is_Empty => True));
end Initialize_416;
--------------------
-- Initialize_417 --
--------------------
procedure Initialize_417 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 417, (Is_Empty => True));
end Initialize_417;
--------------------
-- Initialize_418 --
--------------------
procedure Initialize_418 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 418, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 418, (Is_Empty => True));
end Initialize_418;
--------------------
-- Initialize_419 --
--------------------
procedure Initialize_419 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 419, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 419,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0092'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 419, (Is_Empty => True));
end Initialize_419;
--------------------
-- Initialize_420 --
--------------------
procedure Initialize_420 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 420,
AMF.Internals.Tables.CMOF_String_Data_01.MS_013E'Access);
end Initialize_420;
--------------------
-- Initialize_421 --
--------------------
procedure Initialize_421 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 421,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 421, (Is_Empty => True));
end Initialize_421;
--------------------
-- Initialize_422 --
--------------------
procedure Initialize_422 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 422, (Is_Empty => True));
end Initialize_422;
--------------------
-- Initialize_423 --
--------------------
procedure Initialize_423 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 423, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 423, (Is_Empty => True));
end Initialize_423;
--------------------
-- Initialize_424 --
--------------------
procedure Initialize_424 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 424, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 424,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00B6'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 424, (Is_Empty => True));
end Initialize_424;
--------------------
-- Initialize_425 --
--------------------
procedure Initialize_425 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 425,
AMF.Internals.Tables.CMOF_String_Data_00.MS_005D'Access);
end Initialize_425;
--------------------
-- Initialize_426 --
--------------------
procedure Initialize_426 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 426,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 426, (Is_Empty => True));
end Initialize_426;
--------------------
-- Initialize_427 --
--------------------
procedure Initialize_427 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 427, (Is_Empty => True));
end Initialize_427;
--------------------
-- Initialize_428 --
--------------------
procedure Initialize_428 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 428, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 428, (Is_Empty => True));
end Initialize_428;
--------------------
-- Initialize_429 --
--------------------
procedure Initialize_429 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 429, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 429,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0030'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 429, (Is_Empty => True));
end Initialize_429;
--------------------
-- Initialize_430 --
--------------------
procedure Initialize_430 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 430,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0043'Access);
end Initialize_430;
--------------------
-- Initialize_431 --
--------------------
procedure Initialize_431 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 431,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 431, (Is_Empty => True));
end Initialize_431;
--------------------
-- Initialize_432 --
--------------------
procedure Initialize_432 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 432, (Is_Empty => True));
end Initialize_432;
--------------------
-- Initialize_433 --
--------------------
procedure Initialize_433 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 433, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 433, (Is_Empty => True));
end Initialize_433;
--------------------
-- Initialize_434 --
--------------------
procedure Initialize_434 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 434, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 434,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0184'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 434, (Is_Empty => True));
end Initialize_434;
--------------------
-- Initialize_435 --
--------------------
procedure Initialize_435 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 435,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0094'Access);
end Initialize_435;
--------------------
-- Initialize_436 --
--------------------
procedure Initialize_436 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 436,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 436, (Is_Empty => True));
end Initialize_436;
--------------------
-- Initialize_437 --
--------------------
procedure Initialize_437 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 437, (Is_Empty => True));
end Initialize_437;
--------------------
-- Initialize_438 --
--------------------
procedure Initialize_438 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 438, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 438, (Is_Empty => True));
end Initialize_438;
--------------------
-- Initialize_439 --
--------------------
procedure Initialize_439 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 439,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0046'Access);
end Initialize_439;
--------------------
-- Initialize_440 --
--------------------
procedure Initialize_440 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 440,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0004'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 440, (Is_Empty => True));
end Initialize_440;
--------------------
-- Initialize_441 --
--------------------
procedure Initialize_441 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 441,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01B7'Access);
end Initialize_441;
--------------------
-- Initialize_442 --
--------------------
procedure Initialize_442 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 442, (Is_Empty => True));
end Initialize_442;
--------------------
-- Initialize_443 --
--------------------
procedure Initialize_443 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 443,
AMF.Internals.Tables.CMOF_String_Data_00.MS_002E'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 443, (Is_Empty => True));
end Initialize_443;
--------------------
-- Initialize_444 --
--------------------
procedure Initialize_444 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 444,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01BF'Access);
end Initialize_444;
--------------------
-- Initialize_445 --
--------------------
procedure Initialize_445 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 445, (Is_Empty => True));
end Initialize_445;
--------------------
-- Initialize_446 --
--------------------
procedure Initialize_446 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 446,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0017'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 446, (Is_Empty => True));
end Initialize_446;
--------------------
-- Initialize_447 --
--------------------
procedure Initialize_447 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 447,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00C7'Access);
end Initialize_447;
--------------------
-- Initialize_448 --
--------------------
procedure Initialize_448 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 448, (Is_Empty => True));
end Initialize_448;
--------------------
-- Initialize_449 --
--------------------
procedure Initialize_449 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 449,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01F6'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 449, (Is_Empty => True));
end Initialize_449;
--------------------
-- Initialize_450 --
--------------------
procedure Initialize_450 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 450,
AMF.Internals.Tables.CMOF_String_Data_01.MS_019A'Access);
end Initialize_450;
--------------------
-- Initialize_451 --
--------------------
procedure Initialize_451 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 451, (Is_Empty => True));
end Initialize_451;
--------------------
-- Initialize_452 --
--------------------
procedure Initialize_452 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 452,
AMF.Internals.Tables.CMOF_String_Data_00.MS_001D'Access);
end Initialize_452;
--------------------
-- Initialize_453 --
--------------------
procedure Initialize_453 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 453,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0133'Access);
end Initialize_453;
--------------------
-- Initialize_454 --
--------------------
procedure Initialize_454 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 454,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00EA'Access);
end Initialize_454;
--------------------
-- Initialize_455 --
--------------------
procedure Initialize_455 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 455,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01F2'Access);
end Initialize_455;
--------------------
-- Initialize_456 --
--------------------
procedure Initialize_456 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 456,
AMF.Internals.Tables.CMOF_String_Data_01.MS_016F'Access);
end Initialize_456;
--------------------
-- Initialize_457 --
--------------------
procedure Initialize_457 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 457, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 457,
AMF.Internals.Tables.CMOF_String_Data_01.MS_016B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 457, (Is_Empty => True));
end Initialize_457;
--------------------
-- Initialize_458 --
--------------------
procedure Initialize_458 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 458,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0193'Access);
end Initialize_458;
--------------------
-- Initialize_459 --
--------------------
procedure Initialize_459 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 459,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 459, (Is_Empty => True));
end Initialize_459;
--------------------
-- Initialize_460 --
--------------------
procedure Initialize_460 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 460, (Is_Empty => True));
end Initialize_460;
--------------------
-- Initialize_461 --
--------------------
procedure Initialize_461 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 461, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Ordered (Base + 461, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 461, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 461, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 461, (Is_Empty => True));
end Initialize_461;
--------------------
-- Initialize_462 --
--------------------
procedure Initialize_462 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 462,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01AE'Access);
end Initialize_462;
--------------------
-- Initialize_463 --
--------------------
procedure Initialize_463 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 463,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0044'Access);
end Initialize_463;
--------------------
-- Initialize_464 --
--------------------
procedure Initialize_464 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 464,
AMF.Internals.Tables.CMOF_String_Data_01.MS_019B'Access);
end Initialize_464;
--------------------
-- Initialize_465 --
--------------------
procedure Initialize_465 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 465,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01DA'Access);
end Initialize_465;
--------------------
-- Initialize_466 --
--------------------
procedure Initialize_466 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 466,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0073'Access);
end Initialize_466;
--------------------
-- Initialize_467 --
--------------------
procedure Initialize_467 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 467, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 467,
AMF.Internals.Tables.CMOF_String_Data_01.MS_014E'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 467, (Is_Empty => True));
end Initialize_467;
--------------------
-- Initialize_468 --
--------------------
procedure Initialize_468 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 468,
AMF.Internals.Tables.CMOF_String_Data_01.MS_016E'Access);
end Initialize_468;
--------------------
-- Initialize_469 --
--------------------
procedure Initialize_469 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 469,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 469, (Is_Empty => True));
end Initialize_469;
--------------------
-- Initialize_470 --
--------------------
procedure Initialize_470 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 470, (Is_Empty => True));
end Initialize_470;
--------------------
-- Initialize_471 --
--------------------
procedure Initialize_471 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 471, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 471, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 471, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 471, (Is_Empty => True));
end Initialize_471;
--------------------
-- Initialize_472 --
--------------------
procedure Initialize_472 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 472, AMF.CMOF.In_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 472, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 472,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01CA'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 472, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 472, (Is_Empty => True));
end Initialize_472;
--------------------
-- Initialize_473 --
--------------------
procedure Initialize_473 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 473,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0069'Access);
end Initialize_473;
--------------------
-- Initialize_474 --
--------------------
procedure Initialize_474 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 474,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0128'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 474, (Is_Empty => True));
end Initialize_474;
--------------------
-- Initialize_475 --
--------------------
procedure Initialize_475 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 475,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0146'Access);
end Initialize_475;
--------------------
-- Initialize_476 --
--------------------
procedure Initialize_476 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 476, (Is_Empty => True));
end Initialize_476;
--------------------
-- Initialize_477 --
--------------------
procedure Initialize_477 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 477,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00A4'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 477, (Is_Empty => True));
end Initialize_477;
--------------------
-- Initialize_478 --
--------------------
procedure Initialize_478 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 478,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0025'Access);
end Initialize_478;
--------------------
-- Initialize_479 --
--------------------
procedure Initialize_479 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 479, (Is_Empty => True));
end Initialize_479;
--------------------
-- Initialize_480 --
--------------------
procedure Initialize_480 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 480,
AMF.Internals.Tables.CMOF_String_Data_00.MS_006E'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 480, (Is_Empty => True));
end Initialize_480;
--------------------
-- Initialize_481 --
--------------------
procedure Initialize_481 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 481,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00EF'Access);
end Initialize_481;
--------------------
-- Initialize_482 --
--------------------
procedure Initialize_482 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 482, (Is_Empty => True));
end Initialize_482;
--------------------
-- Initialize_483 --
--------------------
procedure Initialize_483 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 483,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00EC'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 483, (Is_Empty => True));
end Initialize_483;
--------------------
-- Initialize_484 --
--------------------
procedure Initialize_484 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 484,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0023'Access);
end Initialize_484;
--------------------
-- Initialize_485 --
--------------------
procedure Initialize_485 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 485, (Is_Empty => True));
end Initialize_485;
--------------------
-- Initialize_486 --
--------------------
procedure Initialize_486 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 486,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00AC'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 486, (Is_Empty => True));
end Initialize_486;
--------------------
-- Initialize_487 --
--------------------
procedure Initialize_487 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 487,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01AC'Access);
end Initialize_487;
--------------------
-- Initialize_488 --
--------------------
procedure Initialize_488 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 488, (Is_Empty => True));
end Initialize_488;
--------------------
-- Initialize_489 --
--------------------
procedure Initialize_489 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 489,
AMF.Internals.Tables.CMOF_String_Data_00.MS_006C'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 489, (Is_Empty => True));
end Initialize_489;
--------------------
-- Initialize_490 --
--------------------
procedure Initialize_490 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 490,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0125'Access);
end Initialize_490;
--------------------
-- Initialize_491 --
--------------------
procedure Initialize_491 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 491, (Is_Empty => True));
end Initialize_491;
--------------------
-- Initialize_492 --
--------------------
procedure Initialize_492 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 492,
AMF.Internals.Tables.CMOF_String_Data_00.MS_009B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 492, (Is_Empty => True));
end Initialize_492;
--------------------
-- Initialize_493 --
--------------------
procedure Initialize_493 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 493,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0091'Access);
end Initialize_493;
--------------------
-- Initialize_494 --
--------------------
procedure Initialize_494 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 494, (Is_Empty => True));
end Initialize_494;
--------------------
-- Initialize_495 --
--------------------
procedure Initialize_495 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 495,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0157'Access);
end Initialize_495;
--------------------
-- Initialize_496 --
--------------------
procedure Initialize_496 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 496,
AMF.Internals.Tables.CMOF_String_Data_00.MS_000C'Access);
end Initialize_496;
--------------------
-- Initialize_497 --
--------------------
procedure Initialize_497 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 497,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00DD'Access);
end Initialize_497;
--------------------
-- Initialize_498 --
--------------------
procedure Initialize_498 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 498,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00B2'Access);
end Initialize_498;
--------------------
-- Initialize_499 --
--------------------
procedure Initialize_499 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 499,
AMF.Internals.Tables.CMOF_String_Data_00.MS_005C'Access);
end Initialize_499;
--------------------
-- Initialize_500 --
--------------------
procedure Initialize_500 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 500,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00F2'Access);
end Initialize_500;
--------------------
-- Initialize_501 --
--------------------
procedure Initialize_501 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 501,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01EB'Access);
end Initialize_501;
--------------------
-- Initialize_502 --
--------------------
procedure Initialize_502 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 502,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00B0'Access);
end Initialize_502;
--------------------
-- Initialize_503 --
--------------------
procedure Initialize_503 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 503,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0186'Access);
end Initialize_503;
--------------------
-- Initialize_504 --
--------------------
procedure Initialize_504 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 504,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01F0'Access);
end Initialize_504;
--------------------
-- Initialize_505 --
--------------------
procedure Initialize_505 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 505,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00C9'Access);
end Initialize_505;
--------------------
-- Initialize_506 --
--------------------
procedure Initialize_506 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 506,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01E2'Access);
end Initialize_506;
--------------------
-- Initialize_507 --
--------------------
procedure Initialize_507 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 507, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 507,
AMF.Internals.Tables.CMOF_String_Data_00.MS_009F'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 507, (Is_Empty => True));
end Initialize_507;
--------------------
-- Initialize_508 --
--------------------
procedure Initialize_508 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 508,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0014'Access);
end Initialize_508;
--------------------
-- Initialize_509 --
--------------------
procedure Initialize_509 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 509,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 509, (Is_Empty => True));
end Initialize_509;
--------------------
-- Initialize_510 --
--------------------
procedure Initialize_510 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 510, (Is_Empty => True));
end Initialize_510;
--------------------
-- Initialize_511 --
--------------------
procedure Initialize_511 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 511, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 511, (Is_Empty => True));
end Initialize_511;
--------------------
-- Initialize_512 --
--------------------
procedure Initialize_512 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 512, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 512,
AMF.Internals.Tables.CMOF_String_Data_00.MS_001A'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 512, (Is_Empty => True));
end Initialize_512;
--------------------
-- Initialize_513 --
--------------------
procedure Initialize_513 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 513,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0119'Access);
end Initialize_513;
--------------------
-- Initialize_514 --
--------------------
procedure Initialize_514 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 514, (Is_Empty => True));
end Initialize_514;
--------------------
-- Initialize_515 --
--------------------
procedure Initialize_515 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 515, (Is_Empty => True));
end Initialize_515;
--------------------
-- Initialize_516 --
--------------------
procedure Initialize_516 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 516,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 516, (Is_Empty => True));
end Initialize_516;
--------------------
-- Initialize_517 --
--------------------
procedure Initialize_517 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 517, (Is_Empty => True));
end Initialize_517;
--------------------
-- Initialize_518 --
--------------------
procedure Initialize_518 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 518, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 518, (Is_Empty => True));
end Initialize_518;
--------------------
-- Initialize_519 --
--------------------
procedure Initialize_519 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 519, AMF.CMOF.In_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 519,
AMF.Internals.Tables.CMOF_String_Data_00.MS_000E'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 519, (Is_Empty => True));
end Initialize_519;
--------------------
-- Initialize_520 --
--------------------
procedure Initialize_520 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 520, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 520,
AMF.Internals.Tables.CMOF_String_Data_01.MS_016A'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 520, (Is_Empty => True));
end Initialize_520;
--------------------
-- Initialize_521 --
--------------------
procedure Initialize_521 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 521,
AMF.Internals.Tables.CMOF_String_Data_01.MS_015D'Access);
end Initialize_521;
--------------------
-- Initialize_522 --
--------------------
procedure Initialize_522 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 522,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 522, (Is_Empty => True));
end Initialize_522;
--------------------
-- Initialize_523 --
--------------------
procedure Initialize_523 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 523, (Is_Empty => True));
end Initialize_523;
--------------------
-- Initialize_524 --
--------------------
procedure Initialize_524 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 524, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 524, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 524, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 524, (Is_Empty => True));
end Initialize_524;
--------------------
-- Initialize_525 --
--------------------
procedure Initialize_525 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 525, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 525,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0123'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 525, (Is_Empty => True));
end Initialize_525;
--------------------
-- Initialize_526 --
--------------------
procedure Initialize_526 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 526,
AMF.Internals.Tables.CMOF_String_Data_00.MS_004E'Access);
end Initialize_526;
--------------------
-- Initialize_527 --
--------------------
procedure Initialize_527 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 527,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 527, (Is_Empty => True));
end Initialize_527;
--------------------
-- Initialize_528 --
--------------------
procedure Initialize_528 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 528, (Is_Empty => True));
end Initialize_528;
--------------------
-- Initialize_529 --
--------------------
procedure Initialize_529 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 529, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 529, (Is_Empty => True));
end Initialize_529;
--------------------
-- Initialize_530 --
--------------------
procedure Initialize_530 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 530, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 530,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0143'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 530, (Is_Empty => True));
end Initialize_530;
--------------------
-- Initialize_531 --
--------------------
procedure Initialize_531 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 531,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0107'Access);
end Initialize_531;
--------------------
-- Initialize_532 --
--------------------
procedure Initialize_532 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 532,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 532, (Is_Empty => True));
end Initialize_532;
--------------------
-- Initialize_533 --
--------------------
procedure Initialize_533 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 533, (Is_Empty => True));
end Initialize_533;
--------------------
-- Initialize_534 --
--------------------
procedure Initialize_534 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 534, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 534, (Is_Empty => True));
end Initialize_534;
--------------------
-- Initialize_535 --
--------------------
procedure Initialize_535 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 535, AMF.CMOF.In_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 535,
AMF.Internals.Tables.CMOF_String_Data_00.MS_004C'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 535, (Is_Empty => True));
end Initialize_535;
--------------------
-- Initialize_536 --
--------------------
procedure Initialize_536 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 536,
AMF.Internals.Tables.CMOF_String_Data_00.MS_003D'Access);
end Initialize_536;
--------------------
-- Initialize_537 --
--------------------
procedure Initialize_537 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 537,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0016'Access);
end Initialize_537;
--------------------
-- Initialize_538 --
--------------------
procedure Initialize_538 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 538,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0039'Access);
end Initialize_538;
--------------------
-- Initialize_539 --
--------------------
procedure Initialize_539 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 539, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 539,
AMF.Internals.Tables.CMOF_String_Data_01.MS_014E'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 539, (Is_Empty => True));
end Initialize_539;
--------------------
-- Initialize_540 --
--------------------
procedure Initialize_540 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 540,
AMF.Internals.Tables.CMOF_String_Data_01.MS_016E'Access);
end Initialize_540;
--------------------
-- Initialize_541 --
--------------------
procedure Initialize_541 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 541,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 541, (Is_Empty => True));
end Initialize_541;
--------------------
-- Initialize_542 --
--------------------
procedure Initialize_542 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 542, (Is_Empty => True));
end Initialize_542;
--------------------
-- Initialize_543 --
--------------------
procedure Initialize_543 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 543, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 543, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 543, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 543, (Is_Empty => True));
end Initialize_543;
--------------------
-- Initialize_544 --
--------------------
procedure Initialize_544 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 544, AMF.CMOF.In_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 544, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 544,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01CA'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 544, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 544, (Is_Empty => True));
end Initialize_544;
--------------------
-- Initialize_545 --
--------------------
procedure Initialize_545 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 545,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01C9'Access);
end Initialize_545;
--------------------
-- Initialize_546 --
--------------------
procedure Initialize_546 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 546,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0086'Access);
end Initialize_546;
--------------------
-- Initialize_547 --
--------------------
procedure Initialize_547 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 547,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00F7'Access);
end Initialize_547;
--------------------
-- Initialize_548 --
--------------------
procedure Initialize_548 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 548,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0191'Access);
end Initialize_548;
--------------------
-- Initialize_549 --
--------------------
procedure Initialize_549 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 549,
AMF.Internals.Tables.CMOF_String_Data_00.MS_004F'Access);
end Initialize_549;
--------------------
-- Initialize_550 --
--------------------
procedure Initialize_550 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 550,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0080'Access);
end Initialize_550;
--------------------
-- Initialize_551 --
--------------------
procedure Initialize_551 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 551,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00CB'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 551, (Is_Empty => True));
end Initialize_551;
--------------------
-- Initialize_552 --
--------------------
procedure Initialize_552 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 552,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0127'Access);
end Initialize_552;
--------------------
-- Initialize_553 --
--------------------
procedure Initialize_553 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 553, (Is_Empty => True));
end Initialize_553;
--------------------
-- Initialize_554 --
--------------------
procedure Initialize_554 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 554,
AMF.Internals.Tables.CMOF_String_Data_00.MS_001B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 554, (Is_Empty => True));
end Initialize_554;
--------------------
-- Initialize_555 --
--------------------
procedure Initialize_555 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 555,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01ED'Access);
end Initialize_555;
--------------------
-- Initialize_556 --
--------------------
procedure Initialize_556 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 556, (Is_Empty => True));
end Initialize_556;
--------------------
-- Initialize_557 --
--------------------
procedure Initialize_557 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 557,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0063'Access);
end Initialize_557;
--------------------
-- Initialize_558 --
--------------------
procedure Initialize_558 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 558,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00FF'Access);
end Initialize_558;
--------------------
-- Initialize_559 --
--------------------
procedure Initialize_559 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 559,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00E7'Access);
end Initialize_559;
--------------------
-- Initialize_560 --
--------------------
procedure Initialize_560 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 560,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00C6'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 560, (Is_Empty => True));
end Initialize_560;
--------------------
-- Initialize_561 --
--------------------
procedure Initialize_561 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 561,
AMF.Internals.Tables.CMOF_String_Data_00.MS_003F'Access);
end Initialize_561;
--------------------
-- Initialize_562 --
--------------------
procedure Initialize_562 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 562, (Is_Empty => True));
end Initialize_562;
--------------------
-- Initialize_563 --
--------------------
procedure Initialize_563 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 563,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0155'Access);
end Initialize_563;
--------------------
-- Initialize_564 --
--------------------
procedure Initialize_564 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 564,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01FC'Access);
end Initialize_564;
--------------------
-- Initialize_565 --
--------------------
procedure Initialize_565 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 565,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01CE'Access);
end Initialize_565;
--------------------
-- Initialize_566 --
--------------------
procedure Initialize_566 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 566,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01B6'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 566, (Is_Empty => True));
end Initialize_566;
--------------------
-- Initialize_567 --
--------------------
procedure Initialize_567 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 567,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00F4'Access);
end Initialize_567;
--------------------
-- Initialize_568 --
--------------------
procedure Initialize_568 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 568, (Is_Empty => True));
end Initialize_568;
--------------------
-- Initialize_569 --
--------------------
procedure Initialize_569 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 569,
AMF.Internals.Tables.CMOF_String_Data_01.MS_018D'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 569, (Is_Empty => True));
end Initialize_569;
--------------------
-- Initialize_570 --
--------------------
procedure Initialize_570 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 570,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0031'Access);
end Initialize_570;
--------------------
-- Initialize_571 --
--------------------
procedure Initialize_571 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 571, (Is_Empty => True));
end Initialize_571;
--------------------
-- Initialize_572 --
--------------------
procedure Initialize_572 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 572,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0036'Access);
end Initialize_572;
--------------------
-- Initialize_573 --
--------------------
procedure Initialize_573 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 573,
AMF.Internals.Tables.CMOF_String_Data_00.MS_008E'Access);
end Initialize_573;
--------------------
-- Initialize_574 --
--------------------
procedure Initialize_574 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 574,
AMF.Internals.Tables.CMOF_String_Data_00.MS_008E'Access);
end Initialize_574;
--------------------
-- Initialize_575 --
--------------------
procedure Initialize_575 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 575,
AMF.Internals.Tables.CMOF_String_Data_00.MS_008E'Access);
end Initialize_575;
--------------------
-- Initialize_576 --
--------------------
procedure Initialize_576 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 576,
AMF.Internals.Tables.CMOF_String_Data_00.MS_008E'Access);
end Initialize_576;
--------------------
-- Initialize_577 --
--------------------
procedure Initialize_577 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 577,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0037'Access);
end Initialize_577;
--------------------
-- Initialize_578 --
--------------------
procedure Initialize_578 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 578,
AMF.Internals.Tables.CMOF_String_Data_00.MS_001F'Access);
end Initialize_578;
--------------------
-- Initialize_579 --
--------------------
procedure Initialize_579 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 579,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0081'Access);
end Initialize_579;
--------------------
-- Initialize_580 --
--------------------
procedure Initialize_580 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 580,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0053'Access);
end Initialize_580;
--------------------
-- Initialize_581 --
--------------------
procedure Initialize_581 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 581,
AMF.Internals.Tables.CMOF_String_Data_00.MS_008E'Access);
end Initialize_581;
--------------------
-- Initialize_582 --
--------------------
procedure Initialize_582 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 582,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00F5'Access);
end Initialize_582;
--------------------
-- Initialize_583 --
--------------------
procedure Initialize_583 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 583, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 583,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0113'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 583, (Is_Empty => True));
end Initialize_583;
--------------------
-- Initialize_584 --
--------------------
procedure Initialize_584 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 584,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0012'Access);
end Initialize_584;
--------------------
-- Initialize_585 --
--------------------
procedure Initialize_585 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 585,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 585, (Is_Empty => True));
end Initialize_585;
--------------------
-- Initialize_586 --
--------------------
procedure Initialize_586 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 586, (Is_Empty => True));
end Initialize_586;
--------------------
-- Initialize_587 --
--------------------
procedure Initialize_587 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 587, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 587, (Is_Empty => True));
end Initialize_587;
--------------------
-- Initialize_588 --
--------------------
procedure Initialize_588 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 588, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 588,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0178'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 588, (Is_Empty => True));
end Initialize_588;
--------------------
-- Initialize_589 --
--------------------
procedure Initialize_589 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 589,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00A9'Access);
end Initialize_589;
--------------------
-- Initialize_590 --
--------------------
procedure Initialize_590 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 590,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 590, (Is_Empty => True));
end Initialize_590;
--------------------
-- Initialize_591 --
--------------------
procedure Initialize_591 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 591, (Is_Empty => True));
end Initialize_591;
--------------------
-- Initialize_592 --
--------------------
procedure Initialize_592 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 592, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 592, (Is_Empty => True));
end Initialize_592;
--------------------
-- Initialize_593 --
--------------------
procedure Initialize_593 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 593, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 593,
AMF.Internals.Tables.CMOF_String_Data_00.MS_000F'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 593, (Is_Empty => True));
end Initialize_593;
--------------------
-- Initialize_594 --
--------------------
procedure Initialize_594 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 594,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00D1'Access);
end Initialize_594;
--------------------
-- Initialize_595 --
--------------------
procedure Initialize_595 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 595,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 595, (Is_Empty => True));
end Initialize_595;
--------------------
-- Initialize_596 --
--------------------
procedure Initialize_596 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 596, (Is_Empty => True));
end Initialize_596;
--------------------
-- Initialize_597 --
--------------------
procedure Initialize_597 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 597, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 597, (Is_Empty => True));
end Initialize_597;
--------------------
-- Initialize_598 --
--------------------
procedure Initialize_598 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 598, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 598,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00F1'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 598, (Is_Empty => True));
end Initialize_598;
--------------------
-- Initialize_599 --
--------------------
procedure Initialize_599 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 599,
AMF.Internals.Tables.CMOF_String_Data_01.MS_015F'Access);
end Initialize_599;
--------------------
-- Initialize_600 --
--------------------
procedure Initialize_600 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 600,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 600, (Is_Empty => True));
end Initialize_600;
--------------------
-- Initialize_601 --
--------------------
procedure Initialize_601 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 601, (Is_Empty => True));
end Initialize_601;
--------------------
-- Initialize_602 --
--------------------
procedure Initialize_602 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 602, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 602, (Is_Empty => True));
end Initialize_602;
--------------------
-- Initialize_603 --
--------------------
procedure Initialize_603 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 603, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 603,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0196'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 603, (Is_Empty => True));
end Initialize_603;
--------------------
-- Initialize_604 --
--------------------
procedure Initialize_604 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 604,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01E0'Access);
end Initialize_604;
--------------------
-- Initialize_605 --
--------------------
procedure Initialize_605 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 605,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 605, (Is_Empty => True));
end Initialize_605;
--------------------
-- Initialize_606 --
--------------------
procedure Initialize_606 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 606, (Is_Empty => True));
end Initialize_606;
--------------------
-- Initialize_607 --
--------------------
procedure Initialize_607 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 607, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 607, (Is_Empty => True));
end Initialize_607;
--------------------
-- Initialize_608 --
--------------------
procedure Initialize_608 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 608, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 608,
AMF.Internals.Tables.CMOF_String_Data_00.MS_001A'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 608, (Is_Empty => True));
end Initialize_608;
--------------------
-- Initialize_609 --
--------------------
procedure Initialize_609 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 609,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00D2'Access);
end Initialize_609;
--------------------
-- Initialize_610 --
--------------------
procedure Initialize_610 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 610, (Is_Empty => True));
end Initialize_610;
--------------------
-- Initialize_611 --
--------------------
procedure Initialize_611 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 611, (Is_Empty => True));
end Initialize_611;
--------------------
-- Initialize_612 --
--------------------
procedure Initialize_612 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 612,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 612, (Is_Empty => True));
end Initialize_612;
--------------------
-- Initialize_613 --
--------------------
procedure Initialize_613 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 613, (Is_Empty => True));
end Initialize_613;
--------------------
-- Initialize_614 --
--------------------
procedure Initialize_614 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 614, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 614, (Is_Empty => True));
end Initialize_614;
--------------------
-- Initialize_615 --
--------------------
procedure Initialize_615 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 615, AMF.CMOF.In_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 615,
AMF.Internals.Tables.CMOF_String_Data_00.MS_000E'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 615, (Is_Empty => True));
end Initialize_615;
--------------------
-- Initialize_616 --
--------------------
procedure Initialize_616 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 616, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 616,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01B2'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 616, (Is_Empty => True));
end Initialize_616;
--------------------
-- Initialize_617 --
--------------------
procedure Initialize_617 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 617,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 617, (Is_Empty => True));
end Initialize_617;
--------------------
-- Initialize_618 --
--------------------
procedure Initialize_618 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 618, (Is_Empty => True));
end Initialize_618;
--------------------
-- Initialize_619 --
--------------------
procedure Initialize_619 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 619, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 619, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 619, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 619, (Is_Empty => True));
end Initialize_619;
--------------------
-- Initialize_620 --
--------------------
procedure Initialize_620 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 620,
AMF.Internals.Tables.CMOF_String_Data_01.MS_017B'Access);
end Initialize_620;
--------------------
-- Initialize_621 --
--------------------
procedure Initialize_621 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 621,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00BB'Access);
end Initialize_621;
--------------------
-- Initialize_622 --
--------------------
procedure Initialize_622 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 622,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0026'Access);
end Initialize_622;
--------------------
-- Initialize_623 --
--------------------
procedure Initialize_623 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 623,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0097'Access);
end Initialize_623;
--------------------
-- Initialize_624 --
--------------------
procedure Initialize_624 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 624,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00B1'Access);
end Initialize_624;
--------------------
-- Initialize_625 --
--------------------
procedure Initialize_625 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 625,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00F5'Access);
end Initialize_625;
--------------------
-- Initialize_626 --
--------------------
procedure Initialize_626 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 626,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01E4'Access);
end Initialize_626;
--------------------
-- Initialize_627 --
--------------------
procedure Initialize_627 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 627, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 627,
AMF.Internals.Tables.CMOF_String_Data_00.MS_002A'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 627, (Is_Empty => True));
end Initialize_627;
--------------------
-- Initialize_628 --
--------------------
procedure Initialize_628 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 628,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0024'Access);
end Initialize_628;
--------------------
-- Initialize_629 --
--------------------
procedure Initialize_629 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 629,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 629, (Is_Empty => True));
end Initialize_629;
--------------------
-- Initialize_630 --
--------------------
procedure Initialize_630 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 630, (Is_Empty => True));
end Initialize_630;
--------------------
-- Initialize_631 --
--------------------
procedure Initialize_631 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 631, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 631, (Is_Empty => True));
end Initialize_631;
--------------------
-- Initialize_632 --
--------------------
procedure Initialize_632 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 632, AMF.CMOF.In_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 632,
AMF.Internals.Tables.CMOF_String_Data_00.MS_001E'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 632, (Is_Empty => True));
end Initialize_632;
--------------------
-- Initialize_633 --
--------------------
procedure Initialize_633 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 633, AMF.CMOF.In_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 633,
AMF.Internals.Tables.CMOF_String_Data_00.MS_004D'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 633, (Is_Empty => True));
end Initialize_633;
--------------------
-- Initialize_634 --
--------------------
procedure Initialize_634 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 634,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00AF'Access);
end Initialize_634;
--------------------
-- Initialize_635 --
--------------------
procedure Initialize_635 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 635,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0045'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 635, (Is_Empty => True));
end Initialize_635;
--------------------
-- Initialize_636 --
--------------------
procedure Initialize_636 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 636,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00DB'Access);
end Initialize_636;
--------------------
-- Initialize_637 --
--------------------
procedure Initialize_637 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 637, (Is_Empty => True));
end Initialize_637;
--------------------
-- Initialize_638 --
--------------------
procedure Initialize_638 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 638,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01D2'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 638, (Is_Empty => True));
end Initialize_638;
--------------------
-- Initialize_639 --
--------------------
procedure Initialize_639 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 639,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01A6'Access);
end Initialize_639;
--------------------
-- Initialize_640 --
--------------------
procedure Initialize_640 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 640, (Is_Empty => True));
end Initialize_640;
--------------------
-- Initialize_641 --
--------------------
procedure Initialize_641 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 641,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01D1'Access);
end Initialize_641;
--------------------
-- Initialize_642 --
--------------------
procedure Initialize_642 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 642,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00CA'Access);
end Initialize_642;
--------------------
-- Initialize_643 --
--------------------
procedure Initialize_643 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 643,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0007'Access);
end Initialize_643;
--------------------
-- Initialize_644 --
--------------------
procedure Initialize_644 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 644,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01B1'Access);
end Initialize_644;
--------------------
-- Initialize_645 --
--------------------
procedure Initialize_645 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 645, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 645,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00D3'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 645, (Is_Empty => True));
end Initialize_645;
--------------------
-- Initialize_646 --
--------------------
procedure Initialize_646 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 646,
AMF.Internals.Tables.CMOF_String_Data_01.MS_018C'Access);
end Initialize_646;
--------------------
-- Initialize_647 --
--------------------
procedure Initialize_647 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 647,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 647, (Is_Empty => True));
end Initialize_647;
--------------------
-- Initialize_648 --
--------------------
procedure Initialize_648 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 648, (Is_Empty => True));
end Initialize_648;
--------------------
-- Initialize_649 --
--------------------
procedure Initialize_649 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 649, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 649, (Is_Empty => True));
end Initialize_649;
--------------------
-- Initialize_650 --
--------------------
procedure Initialize_650 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 650,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0132'Access);
end Initialize_650;
--------------------
-- Initialize_651 --
--------------------
procedure Initialize_651 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 651,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00A8'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 651, (Is_Empty => True));
end Initialize_651;
--------------------
-- Initialize_652 --
--------------------
procedure Initialize_652 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 652,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0177'Access);
end Initialize_652;
--------------------
-- Initialize_653 --
--------------------
procedure Initialize_653 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 653, (Is_Empty => True));
end Initialize_653;
--------------------
-- Initialize_654 --
--------------------
procedure Initialize_654 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 654,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00E1'Access);
end Initialize_654;
--------------------
-- Initialize_655 --
--------------------
procedure Initialize_655 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 655,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01D4'Access);
end Initialize_655;
--------------------
-- Initialize_656 --
--------------------
procedure Initialize_656 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 656,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00E5'Access);
end Initialize_656;
--------------------
-- Initialize_657 --
--------------------
procedure Initialize_657 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 657,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0183'Access);
end Initialize_657;
--------------------
-- Initialize_658 --
--------------------
procedure Initialize_658 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 658,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00AB'Access);
end Initialize_658;
--------------------
-- Initialize_659 --
--------------------
procedure Initialize_659 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 659,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0171'Access);
end Initialize_659;
--------------------
-- Initialize_660 --
--------------------
procedure Initialize_660 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 660, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 660,
AMF.Internals.Tables.CMOF_String_Data_00.MS_003C'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 660, (Is_Empty => True));
end Initialize_660;
--------------------
-- Initialize_661 --
--------------------
procedure Initialize_661 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 661,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0047'Access);
end Initialize_661;
--------------------
-- Initialize_662 --
--------------------
procedure Initialize_662 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 662,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 662, (Is_Empty => True));
end Initialize_662;
--------------------
-- Initialize_663 --
--------------------
procedure Initialize_663 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 663, (Is_Empty => True));
end Initialize_663;
--------------------
-- Initialize_664 --
--------------------
procedure Initialize_664 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 664, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 664, (Is_Empty => True));
end Initialize_664;
--------------------
-- Initialize_665 --
--------------------
procedure Initialize_665 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 665, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 665,
AMF.Internals.Tables.CMOF_String_Data_01.MS_011B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 665, (Is_Empty => True));
end Initialize_665;
--------------------
-- Initialize_666 --
--------------------
procedure Initialize_666 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 666,
AMF.Internals.Tables.CMOF_String_Data_01.MS_013C'Access);
end Initialize_666;
--------------------
-- Initialize_667 --
--------------------
procedure Initialize_667 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 667,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 667, (Is_Empty => True));
end Initialize_667;
--------------------
-- Initialize_668 --
--------------------
procedure Initialize_668 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 668, (Is_Empty => True));
end Initialize_668;
--------------------
-- Initialize_669 --
--------------------
procedure Initialize_669 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 669, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 669, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 669, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 669, (Is_Empty => True));
end Initialize_669;
--------------------
-- Initialize_670 --
--------------------
procedure Initialize_670 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 670, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 670,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01A0'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 670, (Is_Empty => True));
end Initialize_670;
--------------------
-- Initialize_671 --
--------------------
procedure Initialize_671 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 671,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01F4'Access);
end Initialize_671;
--------------------
-- Initialize_672 --
--------------------
procedure Initialize_672 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 672, (Is_Empty => True));
end Initialize_672;
--------------------
-- Initialize_673 --
--------------------
procedure Initialize_673 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 673, (Is_Empty => True));
end Initialize_673;
--------------------
-- Initialize_674 --
--------------------
procedure Initialize_674 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 674,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 674, (Is_Empty => True));
end Initialize_674;
--------------------
-- Initialize_675 --
--------------------
procedure Initialize_675 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 675, (Is_Empty => True));
end Initialize_675;
--------------------
-- Initialize_676 --
--------------------
procedure Initialize_676 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 676, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 676, (Is_Empty => True));
end Initialize_676;
--------------------
-- Initialize_677 --
--------------------
procedure Initialize_677 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 677, AMF.CMOF.In_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 677,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00E3'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 677, (Is_Empty => True));
end Initialize_677;
--------------------
-- Initialize_678 --
--------------------
procedure Initialize_678 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 678,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01A4'Access);
end Initialize_678;
--------------------
-- Initialize_679 --
--------------------
procedure Initialize_679 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 679,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01BC'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 679, (Is_Empty => True));
end Initialize_679;
--------------------
-- Initialize_680 --
--------------------
procedure Initialize_680 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 680,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0190'Access);
end Initialize_680;
--------------------
-- Initialize_681 --
--------------------
procedure Initialize_681 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 681, (Is_Empty => True));
end Initialize_681;
--------------------
-- Initialize_682 --
--------------------
procedure Initialize_682 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 682,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01A9'Access);
end Initialize_682;
--------------------
-- Initialize_683 --
--------------------
procedure Initialize_683 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 683,
AMF.Internals.Tables.CMOF_String_Data_01.MS_012D'Access);
end Initialize_683;
--------------------
-- Initialize_684 --
--------------------
procedure Initialize_684 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 684,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00EB'Access);
end Initialize_684;
--------------------
-- Initialize_685 --
--------------------
procedure Initialize_685 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 685,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00AE'Access);
end Initialize_685;
--------------------
-- Initialize_686 --
--------------------
procedure Initialize_686 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 686,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00C0'Access);
end Initialize_686;
--------------------
-- Initialize_687 --
--------------------
procedure Initialize_687 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 687,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01DD'Access);
end Initialize_687;
--------------------
-- Initialize_688 --
--------------------
procedure Initialize_688 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 688,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01A8'Access);
end Initialize_688;
--------------------
-- Initialize_689 --
--------------------
procedure Initialize_689 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 689,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0121'Access);
end Initialize_689;
--------------------
-- Initialize_690 --
--------------------
procedure Initialize_690 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 690, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 690,
AMF.Internals.Tables.CMOF_String_Data_01.MS_014B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 690, (Is_Empty => True));
end Initialize_690;
--------------------
-- Initialize_691 --
--------------------
procedure Initialize_691 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 691,
AMF.Internals.Tables.CMOF_String_Data_00.MS_009D'Access);
end Initialize_691;
--------------------
-- Initialize_692 --
--------------------
procedure Initialize_692 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 692,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 692, (Is_Empty => True));
end Initialize_692;
--------------------
-- Initialize_693 --
--------------------
procedure Initialize_693 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 693, (Is_Empty => True));
end Initialize_693;
--------------------
-- Initialize_694 --
--------------------
procedure Initialize_694 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 694, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 694, (Is_Empty => True));
end Initialize_694;
--------------------
-- Initialize_695 --
--------------------
procedure Initialize_695 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 695, AMF.CMOF.In_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 695,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0112'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 695, (Is_Empty => True));
end Initialize_695;
--------------------
-- Initialize_696 --
--------------------
procedure Initialize_696 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 696,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0079'Access);
end Initialize_696;
--------------------
-- Initialize_697 --
--------------------
procedure Initialize_697 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 697,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0122'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 697, (Is_Empty => True));
end Initialize_697;
--------------------
-- Initialize_698 --
--------------------
procedure Initialize_698 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 698,
AMF.Internals.Tables.CMOF_String_Data_01.MS_011A'Access);
end Initialize_698;
--------------------
-- Initialize_699 --
--------------------
procedure Initialize_699 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 699, (Is_Empty => True));
end Initialize_699;
--------------------
-- Initialize_700 --
--------------------
procedure Initialize_700 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 700,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00E8'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 700, (Is_Empty => True));
end Initialize_700;
--------------------
-- Initialize_701 --
--------------------
procedure Initialize_701 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 701,
AMF.Internals.Tables.CMOF_String_Data_00.MS_007F'Access);
end Initialize_701;
--------------------
-- Initialize_702 --
--------------------
procedure Initialize_702 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 702, (Is_Empty => True));
end Initialize_702;
--------------------
-- Initialize_703 --
--------------------
procedure Initialize_703 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 703,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01D0'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 703, (Is_Empty => True));
end Initialize_703;
--------------------
-- Initialize_704 --
--------------------
procedure Initialize_704 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 704,
AMF.Internals.Tables.CMOF_String_Data_01.MS_011E'Access);
end Initialize_704;
--------------------
-- Initialize_705 --
--------------------
procedure Initialize_705 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 705, (Is_Empty => True));
end Initialize_705;
--------------------
-- Initialize_706 --
--------------------
procedure Initialize_706 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 706,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0199'Access);
end Initialize_706;
--------------------
-- Initialize_707 --
--------------------
procedure Initialize_707 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 707,
AMF.Internals.Tables.CMOF_String_Data_00.MS_005E'Access);
end Initialize_707;
--------------------
-- Initialize_708 --
--------------------
procedure Initialize_708 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 708,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0195'Access);
end Initialize_708;
--------------------
-- Initialize_709 --
--------------------
procedure Initialize_709 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 709,
AMF.Internals.Tables.CMOF_String_Data_01.MS_017C'Access);
end Initialize_709;
--------------------
-- Initialize_710 --
--------------------
procedure Initialize_710 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 710, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 710,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01FB'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 710, (Is_Empty => True));
end Initialize_710;
--------------------
-- Initialize_711 --
--------------------
procedure Initialize_711 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 711,
AMF.Internals.Tables.CMOF_String_Data_00.MS_004A'Access);
end Initialize_711;
--------------------
-- Initialize_712 --
--------------------
procedure Initialize_712 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 712,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 712, (Is_Empty => True));
end Initialize_712;
--------------------
-- Initialize_713 --
--------------------
procedure Initialize_713 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 713, (Is_Empty => True));
end Initialize_713;
--------------------
-- Initialize_714 --
--------------------
procedure Initialize_714 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 714, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Ordered (Base + 714, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 714, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 714, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 714, (Is_Empty => True));
end Initialize_714;
--------------------
-- Initialize_715 --
--------------------
procedure Initialize_715 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 715, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 715,
AMF.Internals.Tables.CMOF_String_Data_00.MS_002A'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 715, (Is_Empty => True));
end Initialize_715;
--------------------
-- Initialize_716 --
--------------------
procedure Initialize_716 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 716,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01CC'Access);
end Initialize_716;
--------------------
-- Initialize_717 --
--------------------
procedure Initialize_717 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 717,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 717, (Is_Empty => True));
end Initialize_717;
--------------------
-- Initialize_718 --
--------------------
procedure Initialize_718 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 718, (Is_Empty => True));
end Initialize_718;
--------------------
-- Initialize_719 --
--------------------
procedure Initialize_719 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 719, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 719, (Is_Empty => True));
end Initialize_719;
--------------------
-- Initialize_720 --
--------------------
procedure Initialize_720 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 720, AMF.CMOF.In_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 720,
AMF.Internals.Tables.CMOF_String_Data_00.MS_001E'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 720, (Is_Empty => True));
end Initialize_720;
--------------------
-- Initialize_721 --
--------------------
procedure Initialize_721 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 721, AMF.CMOF.In_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 721,
AMF.Internals.Tables.CMOF_String_Data_00.MS_004D'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 721, (Is_Empty => True));
end Initialize_721;
--------------------
-- Initialize_722 --
--------------------
procedure Initialize_722 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 722, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 722,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0084'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 722, (Is_Empty => True));
end Initialize_722;
--------------------
-- Initialize_723 --
--------------------
procedure Initialize_723 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 723,
AMF.Internals.Tables.CMOF_String_Data_00.MS_006A'Access);
end Initialize_723;
--------------------
-- Initialize_724 --
--------------------
procedure Initialize_724 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 724,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 724, (Is_Empty => True));
end Initialize_724;
--------------------
-- Initialize_725 --
--------------------
procedure Initialize_725 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 725, (Is_Empty => True));
end Initialize_725;
--------------------
-- Initialize_726 --
--------------------
procedure Initialize_726 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 726, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 726, (Is_Empty => True));
end Initialize_726;
--------------------
-- Initialize_727 --
--------------------
procedure Initialize_727 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 727, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 727,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0000'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 727, (Is_Empty => True));
end Initialize_727;
--------------------
-- Initialize_728 --
--------------------
procedure Initialize_728 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 728,
AMF.Internals.Tables.CMOF_String_Data_00.MS_007F'Access);
end Initialize_728;
--------------------
-- Initialize_729 --
--------------------
procedure Initialize_729 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 729,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 729, (Is_Empty => True));
end Initialize_729;
--------------------
-- Initialize_730 --
--------------------
procedure Initialize_730 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 730, (Is_Empty => True));
end Initialize_730;
--------------------
-- Initialize_731 --
--------------------
procedure Initialize_731 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 731, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 731, (Is_Empty => True));
end Initialize_731;
--------------------
-- Initialize_732 --
--------------------
procedure Initialize_732 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 732,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0120'Access);
end Initialize_732;
--------------------
-- Initialize_733 --
--------------------
procedure Initialize_733 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 733,
AMF.Internals.Tables.CMOF_String_Data_01.MS_010C'Access);
end Initialize_733;
--------------------
-- Initialize_734 --
--------------------
procedure Initialize_734 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 734,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0027'Access);
end Initialize_734;
--------------------
-- Initialize_735 --
--------------------
procedure Initialize_735 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 735,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01DF'Access);
end Initialize_735;
--------------------
-- Initialize_736 --
--------------------
procedure Initialize_736 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 736,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0087'Access);
end Initialize_736;
--------------------
-- Initialize_737 --
--------------------
procedure Initialize_737 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 737,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0015'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 737, (Is_Empty => True));
end Initialize_737;
--------------------
-- Initialize_738 --
--------------------
procedure Initialize_738 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 738,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0149'Access);
end Initialize_738;
--------------------
-- Initialize_739 --
--------------------
procedure Initialize_739 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 739,
AMF.Internals.Tables.CMOF_String_Data_00.MS_000B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 739, (Is_Empty => True));
end Initialize_739;
--------------------
-- Initialize_740 --
--------------------
procedure Initialize_740 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 740,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0019'Access);
end Initialize_740;
--------------------
-- Initialize_741 --
--------------------
procedure Initialize_741 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 741,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00DF'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 741, (Is_Empty => True));
end Initialize_741;
--------------------
-- Initialize_742 --
--------------------
procedure Initialize_742 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 742,
AMF.Internals.Tables.CMOF_String_Data_00.MS_009C'Access);
end Initialize_742;
--------------------
-- Initialize_743 --
--------------------
procedure Initialize_743 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 743,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00C5'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 743, (Is_Empty => True));
end Initialize_743;
--------------------
-- Initialize_744 --
--------------------
procedure Initialize_744 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 744,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00EE'Access);
end Initialize_744;
--------------------
-- Initialize_745 --
--------------------
procedure Initialize_745 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 745,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01BE'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 745, (Is_Empty => True));
end Initialize_745;
--------------------
-- Initialize_746 --
--------------------
procedure Initialize_746 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 746,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0098'Access);
end Initialize_746;
--------------------
-- Initialize_747 --
--------------------
procedure Initialize_747 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 747,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0192'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 747, (Is_Empty => True));
end Initialize_747;
--------------------
-- Initialize_748 --
--------------------
procedure Initialize_748 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 748,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01E7'Access);
end Initialize_748;
--------------------
-- Initialize_749 --
--------------------
procedure Initialize_749 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Query (Base + 749, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 749,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00AA'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 749, (Is_Empty => True));
end Initialize_749;
--------------------
-- Initialize_750 --
--------------------
procedure Initialize_750 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 750,
AMF.Internals.Tables.CMOF_String_Data_00.MS_002D'Access);
end Initialize_750;
--------------------
-- Initialize_751 --
--------------------
procedure Initialize_751 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 751,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0085'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 751, (Is_Empty => True));
end Initialize_751;
--------------------
-- Initialize_752 --
--------------------
procedure Initialize_752 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 752, (Is_Empty => True));
end Initialize_752;
--------------------
-- Initialize_753 --
--------------------
procedure Initialize_753 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 753, AMF.CMOF.Return_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 753, (Is_Empty => True));
end Initialize_753;
--------------------
-- Initialize_754 --
--------------------
procedure Initialize_754 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Direction (Base + 754, AMF.CMOF.In_Parameter);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 754, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 754,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00CF'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 754, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 754, (Is_Empty => True));
end Initialize_754;
--------------------
-- Initialize_755 --
--------------------
procedure Initialize_755 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 755,
AMF.Internals.Tables.CMOF_String_Data_00.MS_003B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 755, (Is_Empty => True));
end Initialize_755;
--------------------
-- Initialize_756 --
--------------------
procedure Initialize_756 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 756,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0028'Access);
end Initialize_756;
--------------------
-- Initialize_757 --
--------------------
procedure Initialize_757 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 757,
AMF.Internals.Tables.CMOF_String_Data_01.MS_013F'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 757, (Is_Empty => True));
end Initialize_757;
--------------------
-- Initialize_758 --
--------------------
procedure Initialize_758 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 758,
AMF.Internals.Tables.CMOF_String_Data_00.MS_008D'Access);
end Initialize_758;
--------------------
-- Initialize_759 --
--------------------
procedure Initialize_759 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 759,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0114'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 759, (Is_Empty => True));
end Initialize_759;
--------------------
-- Initialize_760 --
--------------------
procedure Initialize_760 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 760,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0071'Access);
end Initialize_760;
--------------------
-- Initialize_761 --
--------------------
procedure Initialize_761 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 761,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00F8'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 761, (Is_Empty => True));
end Initialize_761;
--------------------
-- Initialize_762 --
--------------------
procedure Initialize_762 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Body
(Base + 762,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0166'Access);
end Initialize_762;
--------------------
-- Initialize_763 --
--------------------
procedure Initialize_763 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 763, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 763,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01CD'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 763, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 763, (Is_Empty => True));
end Initialize_763;
--------------------
-- Initialize_764 --
--------------------
procedure Initialize_764 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 764, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 764,
AMF.Internals.Tables.CMOF_String_Data_01.MS_010F'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 764, (Is_Empty => True));
end Initialize_764;
--------------------
-- Initialize_765 --
--------------------
procedure Initialize_765 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 765, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 765,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0075'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 765, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 765, (Is_Empty => True));
end Initialize_765;
--------------------
-- Initialize_766 --
--------------------
procedure Initialize_766 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 766, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 766,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0075'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 766, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 766, (Is_Empty => True));
end Initialize_766;
--------------------
-- Initialize_767 --
--------------------
procedure Initialize_767 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 767, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 767,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0075'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 767, (Is_Empty => True));
end Initialize_767;
--------------------
-- Initialize_768 --
--------------------
procedure Initialize_768 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 768, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 768,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0029'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 768, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 768, (Is_Empty => True));
end Initialize_768;
--------------------
-- Initialize_769 --
--------------------
procedure Initialize_769 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 769, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 769,
AMF.Internals.Tables.CMOF_String_Data_02.MS_0200'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 769, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 769, (Is_Empty => True));
end Initialize_769;
--------------------
-- Initialize_770 --
--------------------
procedure Initialize_770 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 770, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 770,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0054'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 770, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 770, (Is_Empty => True));
end Initialize_770;
--------------------
-- Initialize_771 --
--------------------
procedure Initialize_771 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 771, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 771,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0054'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 771, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 771, (Is_Empty => True));
end Initialize_771;
--------------------
-- Initialize_772 --
--------------------
procedure Initialize_772 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 772, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 772,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00BD'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 772, (Is_Empty => True));
end Initialize_772;
--------------------
-- Initialize_773 --
--------------------
procedure Initialize_773 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 773, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 773,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00CD'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 773, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 773, (Is_Empty => True));
end Initialize_773;
--------------------
-- Initialize_774 --
--------------------
procedure Initialize_774 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 774, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 774,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01E8'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 774, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 774, (Is_Empty => True));
end Initialize_774;
--------------------
-- Initialize_775 --
--------------------
procedure Initialize_775 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 775, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 775,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0169'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 775, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 775, (Is_Empty => True));
end Initialize_775;
--------------------
-- Initialize_776 --
--------------------
procedure Initialize_776 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 776, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 776,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00D0'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 776, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 776, (Is_Empty => True));
end Initialize_776;
--------------------
-- Initialize_777 --
--------------------
procedure Initialize_777 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 777, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 777,
AMF.Internals.Tables.CMOF_String_Data_01.MS_013B'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 777, (Is_Empty => True));
end Initialize_777;
--------------------
-- Initialize_778 --
--------------------
procedure Initialize_778 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 778, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 778,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0054'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 778, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 778, (Is_Empty => True));
end Initialize_778;
--------------------
-- Initialize_779 --
--------------------
procedure Initialize_779 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 779, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 779,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00B3'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 779, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 779, (Is_Empty => True));
end Initialize_779;
--------------------
-- Initialize_780 --
--------------------
procedure Initialize_780 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 780, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 780,
AMF.Internals.Tables.CMOF_String_Data_01.MS_016D'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 780, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 780, (Is_Empty => True));
end Initialize_780;
--------------------
-- Initialize_781 --
--------------------
procedure Initialize_781 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 781, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 781,
AMF.Internals.Tables.CMOF_String_Data_00.MS_00E4'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 781, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 781, (Is_Empty => True));
end Initialize_781;
--------------------
-- Initialize_782 --
--------------------
procedure Initialize_782 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 782, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 782,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0001'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 782, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 782, (Is_Empty => True));
end Initialize_782;
--------------------
-- Initialize_783 --
--------------------
procedure Initialize_783 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 783, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 783,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0001'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 783, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 783, (Is_Empty => True));
end Initialize_783;
--------------------
-- Initialize_784 --
--------------------
procedure Initialize_784 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 784, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 784,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0102'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 784, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 784, (Is_Empty => True));
end Initialize_784;
--------------------
-- Initialize_785 --
--------------------
procedure Initialize_785 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 785, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 785,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0102'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 785, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 785, (Is_Empty => True));
end Initialize_785;
--------------------
-- Initialize_786 --
--------------------
procedure Initialize_786 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 786, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 786,
AMF.Internals.Tables.CMOF_String_Data_01.MS_019D'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 786, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 786, (Is_Empty => True));
end Initialize_786;
--------------------
-- Initialize_787 --
--------------------
procedure Initialize_787 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 787, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 787,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0009'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 787, (Is_Empty => True));
end Initialize_787;
--------------------
-- Initialize_788 --
--------------------
procedure Initialize_788 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 788, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 788,
AMF.Internals.Tables.CMOF_String_Data_01.MS_010F'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 788, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 788, (Is_Empty => True));
end Initialize_788;
--------------------
-- Initialize_789 --
--------------------
procedure Initialize_789 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 789, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 789,
AMF.Internals.Tables.CMOF_String_Data_01.MS_01E8'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 789, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 789, (Is_Empty => True));
end Initialize_789;
--------------------
-- Initialize_790 --
--------------------
procedure Initialize_790 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 790, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 790,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0082'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 790, (Is_Empty => True));
end Initialize_790;
--------------------
-- Initialize_791 --
--------------------
procedure Initialize_791 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 791, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 791,
AMF.Internals.Tables.CMOF_String_Data_02.MS_0200'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 791, (Is_Empty => True));
end Initialize_791;
--------------------
-- Initialize_792 --
--------------------
procedure Initialize_792 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 792, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 792,
AMF.Internals.Tables.CMOF_String_Data_01.MS_011C'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 792, (Is_Empty => True));
end Initialize_792;
--------------------
-- Initialize_793 --
--------------------
procedure Initialize_793 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 793, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 793,
AMF.Internals.Tables.CMOF_String_Data_01.MS_010F'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 793, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 793, (Is_Empty => True));
end Initialize_793;
--------------------
-- Initialize_794 --
--------------------
procedure Initialize_794 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 794, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 794,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0180'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 794, (Is_Empty => True));
end Initialize_794;
--------------------
-- Initialize_795 --
--------------------
procedure Initialize_795 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 795, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 795,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0168'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 795, (Is_Empty => True));
end Initialize_795;
--------------------
-- Initialize_796 --
--------------------
procedure Initialize_796 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 796, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 796,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0187'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 796, (Is_Empty => True));
end Initialize_796;
--------------------
-- Initialize_797 --
--------------------
procedure Initialize_797 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 797,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0032'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 797, (Is_Empty => True));
end Initialize_797;
--------------------
-- Initialize_798 --
--------------------
procedure Initialize_798 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Is_Composite (Base + 798, True);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Lower (Base + 798, (False, 0));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 798,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0088'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Upper (Base + 798, (False, (Unlimited => True)));
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Visibility (Base + 798, (Is_Empty => True));
end Initialize_798;
--------------------
-- Initialize_799 --
--------------------
procedure Initialize_799 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 799,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0110'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Value
(Base + 799,
AMF.Internals.Tables.CMOF_String_Data_01.MS_0162'Access);
end Initialize_799;
--------------------
-- Initialize_800 --
--------------------
procedure Initialize_800 is
begin
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Name
(Base + 800,
AMF.Internals.Tables.CMOF_String_Data_00.MS_0010'Access);
AMF.Internals.Tables.CMOF_Attributes.Internal_Set_Value
(Base + 800,
AMF.Internals.Tables.CMOF_String_Data_00.MS_006F'Access);
end Initialize_800;
end AMF.Internals.Tables.CMOF_Metamodel.Properties;
|
reznikmm/matreshka | Ada | 1,061 | ads | with League.Strings;
package Types.Parameter_Specifications is
pragma Preelaborate;
type Parameter_Specification is limited interface;
type Parameter_Specification_Access is
access all Parameter_Specification'Class
with Storage_Size => 0;
type Parameter_Specification_Access_Array is
array (Positive range <>) of Parameter_Specification_Access;
not overriding function Name
(Self : Parameter_Specification) return League.Strings.Universal_String
is abstract;
not overriding function Is_Aliased
(Self : Parameter_Specification) return Boolean
is abstract;
type Parameter_Mode is (In_Mode, In_Out_Mode, Out_Mode);
not overriding function Mode
(Self : Parameter_Specification) return Parameter_Mode
is abstract;
not overriding function Parameter_Type
(Self : Parameter_Specification) return Types.Type_Access
is abstract;
not overriding function Has_Default
(Self : Parameter_Specification) return Boolean
is abstract;
end Types.Parameter_Specifications;
|
Lyanf/pok | Ada | 2,794 | ads | -- ---------------------------------------------------------------------------
-- --
-- SAMPLING PORT constant and type definitions and management services --
-- --
-- ---------------------------------------------------------------------------
package APEX.Sampling_Ports is
Max_Number_Of_Sampling_Ports : constant :=
System_Limit_Number_Of_Sampling_Ports;
subtype Sampling_Port_Name_Type is Name_Type;
type Sampling_Port_Id_Type is private;
Null_Sampling_Port_Id : constant Sampling_Port_Id_Type;
type Validity_Type is (Invalid, Valid);
type Sampling_Port_Status_Type is record
Refresh_Period : System_Time_Type;
Max_Message_Size : Message_Size_Type;
Port_Direction : Port_Direction_Type;
Last_Msg_Validity : Validity_Type;
end record;
procedure Create_Sampling_Port
(Sampling_Port_Name : in Sampling_Port_Name_Type;
Max_Message_Size : in Message_Size_Type;
Port_Direction : in Port_Direction_Type;
Refresh_Period : in System_Time_Type;
Sampling_Port_Id : out Sampling_Port_Id_Type;
Return_Code : out Return_Code_Type);
procedure Write_Sampling_Message
(Sampling_Port_Id : in Sampling_Port_Id_Type;
Message_Addr : in Message_Addr_Type;
Length : in Message_Size_Type;
Return_Code : out Return_Code_Type);
procedure Read_Sampling_Message
(Sampling_Port_Id : in Sampling_Port_Id_Type;
Message_Addr : in Message_Addr_Type;
-- The message address is passed IN, although the respective message is
-- passed OUT
Length : out Message_Size_Type;
Validity : out Validity_Type;
Return_Code : out Return_Code_Type);
procedure Get_Sampling_Port_Id
(Sampling_Port_Name : in Sampling_Port_Name_Type;
Sampling_Port_Id : out Sampling_Port_Id_Type;
Return_Code : out Return_Code_Type);
procedure Get_Sampling_Port_Status
(Sampling_Port_Id : in Sampling_Port_Id_Type;
Sampling_Port_Status : out Sampling_Port_Status_Type;
Return_Code : out Return_Code_Type);
private
type Sampling_Port_Id_Type is new APEX_Integer;
Null_Sampling_Port_Id : constant Sampling_Port_Id_Type := 0;
pragma Convention (C, Validity_Type);
pragma Convention (C, Sampling_Port_Status_Type);
-- POK BINDINGS
pragma Import (C, Create_Sampling_Port, "CREATE_SAMPLING_PORT");
pragma Import (C, Write_Sampling_Message, "WRITE_SAMPLING_MESSAGE");
pragma Import (C, Read_Sampling_Message, "READ_SAMPLING_MESSAGE");
pragma Import (C, Get_Sampling_Port_Id, "GET_SAMPLING_PORT_ID");
pragma Import (C, Get_Sampling_Port_Status, "GET_SAMPLING_PORT_STATUS");
-- END OF POK BINDINGS
end APEX.Sampling_Ports;
|
iyan22/AprendeAda | Ada | 913 | adb |
with vectores; use vectores;
procedure insertar_elemento_en_pos (num, pos: in Integer; V: in out Vector_de_enteros) is
-- pre: la posicion de insercion sera menor o igual
-- que el numero de elementos que contenga la lista +1
-- post: el elemento quedara insertado en la posicion de insercion
-- y el resto de los elementos quedaran desplazados hacia la derecha
I, Aux: Integer;
begin
Aux:= V(pos); -- Guardamos el valor de V(pos), donde vamos a sustituir por nuestro número para no perderlo
V(pos):=num; -- Defino el número que hay que insertar en la posicion correspondiente
I:=V'Last; -- Guardamos la última posición en I
while I/=pos loop
V(I):=V(I-1);
I:=I-1;
end loop;
V(pos+1):=Aux; -- Para finalizar al siguiente valor de pos le asignamos el Aux que hemos guardado,
-- que era el valor donde hemos colocado el nuevo número
end insertar_elemento_en_pos;
|
charlie5/aIDE | Ada | 10,576 | adb | with
aIDE.GUI,
aIDE.Palette.of_packages,
AdaM.Entity,
AdaM.parse,
AdaM.Assist,
AdaM.compilation,
AdaM.library_Item,
AdaM.library_Unit,
AdaM.library_Unit.a_body,
AdaM.Partition,
AdaM.Program,
AdaM.program_Library,
AdaM.program_Unit,
AdaM.task_Unit,
AdaM.protected_Unit,
AdaM.protected_Entry,
AdaM.generic_Unit,
AdaM.Declaration.of_package,
AdaM.Declaration.of_exception,
AdaM.Declaration.of_generic,
AdaM.Declaration.of_instantiation,
AdaM.Declaration.of_type,
AdaM.Declaration.of_subtype,
AdaM.Declaration.of_object,
AdaM.Declaration.of_subprogram,
AdaM.Declaration.of_number,
AdaM.Declaration.of_null_procedure,
AdaM.Declaration.of_expression_function,
AdaM.Declaration.of_renaming.a_generic,
AdaM.Declaration.of_renaming.a_package,
AdaM.Declaration.of_renaming.a_subprogram,
AdaM. package_Body,
AdaM.subprogram_Body,
AdaM.with_Clause,
AdaM. use_Clause,
AdaM. use_Clause.for_package,
AdaM. use_Clause.for_type,
AdaM.context_Clause,
AdaM.context_Item,
AdaM.body_Stub,
Shell,
ada.Directories,
ada.Characters.handling,
ada.Strings.unbounded,
ada.Streams.Stream_IO,
ada.Text_IO;
package body aIDE
is
-- Applet State
--
first_Run : Boolean := False;
pragma Unreferenced (first_Run);
procedure define_standard_Ada_Types
is
use Shell,
ada.Text_IO;
begin
-- Build the standard ada tree file.
--
-- put_Line ("rm *.adt: " & command_Output (to_Command ("rm ./*.adt")));
-- put_Line ("gnatmake output: " & Command_Output (to_Command ("gnatmake -c -gnatc -gnatt ./assets/asis/all_standard_ada.adb")));
-- the_Environ := AdaM.Assist.known_Environment;
-- the_Environ.print;
-- the_entity_Environ := AdaM.Assist.known_Entities;
-- the_entity_Environ := AdaM.parse;
the_entity_Environ.add_package_Standard;
-- for Each of ada_Family
-- loop
-- declare
-- Prefix : constant String := "/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/adainclude/";
-- Arg : constant String := Each.all;
-- begin
-- AdaM.parse (Prefix & Arg, into => the_entity_Environ);
-- end;
-- end loop;
declare
Prefix : constant String := "/eden/forge/applet/tool/aIDE/applet/aide/test/";
Arg : constant String := "test_package.ads";
begin
AdaM.parse (Prefix & Arg, into => the_entity_Environ);
end;
the_entity_Environ.print_Entities;
end define_standard_Ada_Types;
procedure define
is
use ada.Directories;
begin
-- Restore the aIDE applets persistent state.
--
declare
use AdaM,
ada.Streams.Stream_IO;
the_File : File_Type;
the_Stream : Stream_Access;
begin
open (the_File, in_File, ".adam-store/aide.stream");
the_Stream := Stream (the_File);
-- AdaM.Environment.item'read (the_Stream, the_Environ);
AdaM.Environment.item'read (the_Stream, the_entity_Environ);
Subprogram.view 'read (the_Stream, the_selected_App);
Subprogram.Vector 'read (the_Stream, all_Apps);
Palette.of_packages.recent_Packages.read (the_Stream);
a_Package .view 'read (the_Stream, the_applet_Package);
close (the_File);
exception
when ada.Streams.Stream_IO.Name_Error =>
first_Run := True;
Ada.Text_IO.put_Line ("define_standard_Ada_Types **************************************");
define_standard_Ada_Types;
the_selected_App := Subprogram.new_Subprogram (Name => anonymous_Procedure); -- Create initial test precedure..
all_Apps.append (the_selected_App);
the_applet_Package := the_entity_Environ.standard_Package;
-- the_applet_Package := the_entity_Environ.find ("Ada.Strings");
end;
end define;
procedure destruct
is
begin
-- Store the aIDE applets persistent state.
--
declare
use AdaM,
ada.Streams.Stream_IO;
the_File : File_Type;
the_Stream : Stream_Access;
begin
create (the_File, out_File, ".adam-store/aide.stream");
the_Stream := Stream (the_File);
-- AdaM.Environment.item'write (the_Stream, the_Environ);
AdaM.Environment.item'write (the_Stream, the_entity_Environ);
Subprogram.view 'write (the_Stream, the_selected_App);
Subprogram.vector 'write (the_Stream, all_Apps);
Palette.of_packages.recent_Packages.write (the_Stream);
a_Package.view 'write (the_Stream, the_applet_Package);
close (the_File);
end;
end destruct;
procedure start
is
begin
aIDE.define;
aIDE.GUI.open;
end start;
procedure stop
is
begin
aIDE.destruct;
end stop;
-- Apps
--
function fetch_App (Named : in AdaM.Identifier) return adam.Subprogram.view
is
use AdaM;
begin
for Each of all_Apps
loop
if Each.Name = Named
then
return Each;
end if;
end loop;
return null;
end fetch_App;
procedure build_Project
is
use aIDE.GUI,
Shell,
ada.Directories;
project_Name : constant String := "hello";
generated_source_Path : constant String := "generated-source";
begin
clear_Log;
log ("========================");
log ("=== Building Project ===");
log ("=== ===");
if Exists (generated_source_Path)
then
delete_Tree (generated_source_Path); -- Clear the generated source folder.
end if;
create_Path (generated_source_Path);
generate_Apps:
begin
log ("", 2);
log ("Generating apps ... ");
log;
for Each of all_Apps
loop
declare
use AdaM;
the_App : constant AdaM.Subprogram.view := Each;
begin
log (" ... " & (+the_App.Name));
-- Generate the app body source.
--
declare
use ada.Characters.handling,
ada.Strings.unbounded,
ada.Text_IO;
the_File : File_type;
the_Filename : constant String := generated_source_Path
& "/"
& to_Lower (String (the_App.Name)) & ".adb";
the_Source : constant AdaM.Text_Vectors.Vector := the_App.to_Source;
begin
create (the_File, out_File, the_Filename);
for Each of the_Source
loop
put_Line (the_File,
to_String (Each));
end loop;
close (the_File);
end;
end;
end loop;
end generate_Apps;
-- Generate the main project file.
--
declare
use ada.Characters.handling,
ada.Strings.unbounded,
ada.Text_IO;
use type AdaM.Subprogram.view;
the_File : File_type;
the_Filename : constant String := to_Lower (project_Name) & ".gpr";
procedure add (the_Line : in String)
is
begin
put_Line (the_File, the_Line);
end add;
begin
create (the_File, out_File, the_Filename);
add ("project " & project_Name & " is");
add ("");
add (" for Source_Dirs use (""" & generated_source_Path & """);");
add (" for Main use (");
for Each of all_Apps
loop
add (" """ & to_Lower (String (Each.Name)) & ".adb""");
if Each /= all_Apps.last_Element
then
add (",");
end if;
end loop;
add (" );");
add ("");
add (" for Object_Dir use ""build"";");
add (" for Exec_Dir use ""."";");
add ("");
add (" package Builder is");
add (" for Default_Switches (""ada"") use (""-g"", ""-j5"");");
add (" end Builder;");
add ("");
add ("end " & project_Name & ";");
close (the_File);
end;
-- Build the applet.
--
declare
use ada.Characters.Handling,
ada.Strings.Unbounded,
ada.Text_IO;
the_Filename : constant String := to_Lower (project_Name) & ".gpr";
begin
log ("", 2);
log ("Cleaning ...");
log;
log (command_Output (to_Command ("gnatclean -P " & the_Filename)));
if Exists ("./build")
then
delete_Tree ("./build"); -- Clear the build folder.
end if;
create_Path ("./build");
log ("", 2);
log ("Compiling ...");
log;
declare
the_Command : constant Shell.Command := to_Command ("gprbuild -P " & the_Filename);
Results : constant Shell.Command_Results := Results_of (the_Command);
begin
log (Output_of (Results));
log (Errors_of (Results));
end;
end;
-- Launch the applets.
--
for Each of all_Apps
loop
declare
use AdaM,
Ada.Characters.handling;
app_Filename : constant String := to_Lower ("./" & String (Each.Name));
begin
if Exists (app_Filename)
then
log ("", 2);
log ("Launching '" & (+Each.Name) & "' ...");
log;
declare
Output : constant String := command_Output (to_Command (app_Filename));
begin
if Output = ""
then
log ("<null output>");
else
log (Output);
end if;
end;
end if;
end;
end loop;
log ("", 2);
log ("=== ===");
log ("=== Project Built ===");
log ("=====================");
end build_Project;
end aIDE;
|
Heziode/lsystem-editor | Ada | 24,799 | adb | -------------------------------------------------------------------------------
-- LSE -- L-System Editor
-- Author: Heziode
--
-- License:
-- MIT License
--
-- Copyright (c) 2018 Quentin Dauprat (Heziode) <[email protected]>
--
-- Permission is hereby granted, free of charge, to any person obtaining a
-- copy of this software and associated documentation files (the "Software"),
-- to deal in the Software without restriction, including without limitation
-- the rights to use, copy, modify, merge, publish, distribute, sublicense,
-- and/or sell copies of the Software, and to permit persons to whom the
-- Software is furnished to do so, subject to the following conditions:
--
-- The above copyright notice and this permission notice shall be included in
-- all copies or substantial portions of the Software.
--
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-- DEALINGS IN THE SOFTWARE.
-------------------------------------------------------------------------------
with Ada.Text_IO;
with Gdk.Cairo;
with Gdk.Color;
with Glib.Convert;
with GNAT.Directory_Operations;
with GNAT.Strings;
with Gtk.About_Dialog;
with Gtk.Button;
with Gtk.Check_Button;
with Gtk.Color_Chooser_Dialog;
with Gtk.Dialog;
with Gtk.Enums;
with Gtk.File_Chooser;
with Gtk.File_Chooser_Dialog;
with Gtk.Image;
with Gtk.Image_Menu_Item;
with Gtk.Main;
with Gtk.Message_Dialog;
with Gtk.Text_Iter;
with Gtk.Tool_Button;
with Gtk.Style_Context;
with LSE.IO.Drawing_Area;
with LSE.Model.IO.Drawing_Area.Drawing_Area_Ptr;
with LSE.Model.IO.Text_File;
with LSE.View.Callbacks;
package body LSE.View.View is
procedure Initialize (This : in out Instance; Builder : Gtk_Builder;
Presenter : access LSE.Presenter.Presenter.Instance)
is
pragma Unreferenced (Presenter);
use Ada.Text_IO;
use Gtk.Image_Menu_Item;
use Gtk.Tool_Button;
use LSE.View.Callbacks;
Bar_Menu_Item : Gtk_Image_Menu_Item;
Icon_Menu_Item : Gtk_Tool_Button;
begin
This.Window := Gtk_Window (Builder.Get_Object ("main_window"));
This.Level_Selector := Gtk_Spin_Button (Builder.Get_Object ("ls_level"));
This.Text_Error :=
Gtk_Text_Buffer (Builder.Get_Object ("text_error"));
This.Text_Editor :=
Gtk_Text_Buffer (Builder.Get_Object ("text_editor"));
This.Render_Area := Gtk_Drawing_Area
(Builder.Get_Object ("render_area"));
Connect (This.Window, "destroy", Stop_Program'Access);
Connect (This.Level_Selector, "value-changed", LS_Level_Cb'Access);
if not This.Window.Set_Icon_From_File (App_Icon_Location) then
raise ICON_NOT_LOADED;
end if;
This.Window.Set_Title (App_Name);
-------------------------
-- Configure bar menu --
-------------------------
Bar_Menu_Item := Gtk_Image_Menu_Item
(Builder.Get_Object ("menu_item_new"));
Connect (Bar_Menu_Item, "activate", New_File_Cb'Access);
Bar_Menu_Item := Gtk_Image_Menu_Item
(Builder.Get_Object ("menu_item_open"));
Connect (Bar_Menu_Item, "activate", Open_File_Cb'Access);
Bar_Menu_Item := Gtk_Image_Menu_Item
(Builder.Get_Object ("menu_item_save"));
Connect (Bar_Menu_Item, "activate", Save_File_Cb'Access);
Bar_Menu_Item := Gtk_Image_Menu_Item
(Builder.Get_Object ("menu_item_save_as"));
Connect (Bar_Menu_Item, "activate", Save_As_File_Cb'Access);
Bar_Menu_Item := Gtk_Image_Menu_Item
(Builder.Get_Object ("menu_item_quit"));
Connect (Bar_Menu_Item, "activate", Stop_Program'Access);
Bar_Menu_Item := Gtk_Image_Menu_Item
(Builder.Get_Object ("menu_item_validate"));
Connect (Bar_Menu_Item, "activate", Validate_Cb'Access);
Bar_Menu_Item := Gtk_Image_Menu_Item
(Builder.Get_Object ("menu_item_bg_color"));
Connect (Bar_Menu_Item, "activate", Bg_Color_Cb'Access);
Bar_Menu_Item := Gtk_Image_Menu_Item
(Builder.Get_Object ("menu_item_fg_color"));
Connect (Bar_Menu_Item, "activate", Fg_Color_Cb'Access);
Bar_Menu_Item := Gtk_Image_Menu_Item
(Builder.Get_Object ("menu_item_export_ps"));
Connect (Bar_Menu_Item, "activate", Export_Cb'Access, "PS");
Bar_Menu_Item := Gtk_Image_Menu_Item
(Builder.Get_Object ("menu_item_about"));
Connect (Bar_Menu_Item, "activate", About_Cb'Access);
--------------------------
-- Configure icon menu --
--------------------------
Icon_Menu_Item := Gtk_Tool_Button
(Builder.Get_Object ("menu_icon_new"));
Connect (Icon_Menu_Item, "clicked", New_File_Cb'Access);
Icon_Menu_Item := Gtk_Tool_Button
(Builder.Get_Object ("menu_icon_open"));
Connect (Icon_Menu_Item, "clicked", Open_File_Cb'Access);
Icon_Menu_Item := Gtk_Tool_Button
(Builder.Get_Object ("menu_icon_save"));
Connect (Icon_Menu_Item, "clicked", Save_File_Cb'Access);
Icon_Menu_Item := Gtk_Tool_Button
(Builder.Get_Object ("menu_icon_save_as"));
Connect (Icon_Menu_Item, "clicked", Save_As_File_Cb'Access);
Icon_Menu_Item := Gtk_Tool_Button
(Builder.Get_Object ("menu_icon_quit"));
Connect (Icon_Menu_Item, "clicked", Stop_Program'Access);
Icon_Menu_Item := Gtk_Tool_Button
(Builder.Get_Object ("menu_icon_validate"));
Connect (Icon_Menu_Item, "clicked", Validate_Cb'Access);
Icon_Menu_Item := Gtk_Tool_Button
(Builder.Get_Object ("menu_icon_bg_color"));
Connect (Icon_Menu_Item, "clicked", Bg_Color_Cb'Access);
Icon_Menu_Item := Gtk_Tool_Button
(Builder.Get_Object ("menu_icon_fg_color"));
Connect (Icon_Menu_Item, "clicked", Fg_Color_Cb'Access);
Icon_Menu_Item := Gtk_Tool_Button
(Builder.Get_Object ("menu_icon_about"));
Connect (Icon_Menu_Item, "clicked", About_Cb'Access);
---------------------------
-- Set default L-System --
---------------------------
This.Text_Editor.Set_Text (Default_LSystem);
This.Render_Area.On_Draw (Draw_Cb'Access);
This.Render_Area.On_Size_Allocate (Size_Allocate_Cb'Access);
exception
when ICON_NOT_LOADED => Put_Line ("App icon cannot be loaded");
end Initialize;
function Initialize (Builder : Gtk_Builder;
Presenter : access LSE.Presenter.Presenter.Instance)
return Instance
is
This : Instance;
begin
This.Initialize (Builder, Presenter);
return This;
end Initialize;
procedure Start (This : Instance)
is
begin
This.Validate;
end Start;
procedure Set_Presenter (This : in out Instance;
Value : LSE.Presenter.Presenter.Instance)
is
begin
This.Presenter := new LSE.Presenter.Presenter.Instance '(Value);
LSE.View.Callbacks.View := This;
end Set_Presenter;
procedure Stop_Program (This : Instance)
is
pragma Unreferenced (This);
use Gtk.Dialog;
use Gtk.Main;
use Gtk.Message_Dialog;
Dialog : Gtk_Message_Dialog;
begin
Gtk_New (Dialog, null, 0, Message_Error, Buttons_Ok_Cancel,
"Are you sure to want to quit the app ?");
Dialog.Set_Title ("Confirmation exit the application");
Dialog.Show_All;
if Dialog.Run = Gtk_Response_OK then
Dialog.Close;
Main_Quit;
else
Dialog.Close;
end if;
end Stop_Program;
procedure New_File (This : Instance)
is
use Gtk.Dialog;
use Gtk.Message_Dialog;
Dialog : Gtk_Message_Dialog;
begin
if File_Path.Element = "" then
This.Text_Editor.Set_Text ("");
else
Gtk_New (Dialog, null, 0, Message_Error, Buttons_Ok_Cancel,
"Are you sure to want create a new file ?");
Dialog.Set_Title ("Confirmation create a new file");
Dialog.Show_All;
if Dialog.Run = Gtk_Response_OK then
Dialog.Close;
This.Text_Editor.Set_Text ("");
File_Path.Reference := To_Unbounded_String ("");
This.Window.Set_Title (App_Name);
else
Dialog.Close;
end if;
end if;
end New_File;
procedure Save (This : Instance; Save_As : Boolean := False)
is
use Gtk.Button;
use Gtk.Dialog;
use Gtk.File_Chooser;
use Gtk.File_Chooser_Dialog;
use LSE.Model.IO.Text_File;
Dialog : Gtk_File_Chooser_Dialog;
Btn_Ok : Gtk_Button;
Btn_Ko : Gtk_Button;
Save : Boolean := False;
begin
if File_Path.Element = "" or Save_As then
Btn_Ko := Gtk_Button_New_With_Mnemonic ("_Cancel");
Btn_Ok := Gtk_Button_New_With_Mnemonic ("_Save");
Dialog := Gtk_File_Chooser_Dialog_New
("Save File", This.Window, Action_Save);
Dialog.Set_Do_Overwrite_Confirmation (True);
Dialog.Add_Action_Widget (Btn_Ko, Gtk.Dialog.Gtk_Response_Cancel);
Dialog.Add_Action_Widget (Btn_Ok, Gtk.Dialog.Gtk_Response_Accept);
Dialog.Set_Extra_Widget (Btn_Ok);
Dialog.Set_Extra_Widget (Btn_Ko);
Dialog.Set_Current_Name (Default_File_Name & Default_LS_Extension);
if Dialog.Run = Gtk.Dialog.Gtk_Response_Accept then
Save := True;
File_Path.Reference :=
To_Unbounded_String (Dialog.Get_Filename);
This.Window.Set_Title (App_Name & " - " & Dialog.Get_Filename);
Dialog.Destroy;
else
Dialog.Destroy;
end if;
else
Save := True;
end if;
if Save then
Save_To_File (To_String (File_Path.Element),
This.Get_Text_Editor_Content);
end if;
end Save;
procedure Validate (This : Instance)
is
begin
if This.Presenter.Validate
(This.Get_Text_Editor_Content)
then
This.Text_Error.Set_Text ("");
This.Level_Selector.Set_Value (0.0);
This.Render;
else
This.Text_Error.Set_Text (This.Presenter.Get_Error);
end if;
end Validate;
procedure Open (This : Instance)
is
use Gtk.Button;
use Gtk.Dialog;
use Gtk.File_Chooser;
use Gtk.File_Chooser_Dialog;
use LSE.Model.IO.Text_File;
Dialog : Gtk_File_Chooser_Dialog;
Btn_Ok : Gtk_Button;
Btn_Ko : Gtk_Button;
begin
Btn_Ko := Gtk_Button_New_With_Mnemonic ("_Cancel");
Btn_Ok := Gtk_Button_New_With_Mnemonic ("_Open");
Dialog := Gtk_File_Chooser_Dialog_New
("Open File", This.Window, Action_Open);
Dialog.Set_Do_Overwrite_Confirmation (True);
Dialog.Add_Action_Widget (Btn_Ko, Gtk.Dialog.Gtk_Response_Cancel);
Dialog.Add_Action_Widget (Btn_Ok, Gtk.Dialog.Gtk_Response_Accept);
Dialog.Set_Extra_Widget (Btn_Ok);
Dialog.Set_Extra_Widget (Btn_Ko);
if Dialog.Run = Gtk.Dialog.Gtk_Response_Accept then
File_Path.Reference :=
To_Unbounded_String (Dialog.Get_Filename);
This.Window.Set_Title (App_Name & " - " & Dialog.Get_Filename);
This.Text_Editor.Set_Text (Read_From_File (Dialog.Get_Filename));
Dialog.Destroy;
else
Dialog.Destroy;
end if;
end Open;
procedure About (This : Instance)
is
use GNAT.Strings;
use Gtk.About_Dialog;
use Gtk.Dialog;
use Gtk.Image;
pragma Unreferenced (This);
Dialog : Gtk_About_Dialog;
List1 : GNAT.Strings.String_List (1 .. 1);
Image : Gtk_Image;
begin
List1 (1) := new String '("Quentin Dauprat (Heziode)");
-- Create about dialog
Gtk_New (Dialog);
Gtk_New (Image, App_Icon_Location);
Dialog.Set_Logo (Image.Get);
Dialog.Set_Program_Name ("Lindenmayer system editor");
Dialog.Set_Comments ("This program is an editor of L-System");
Dialog.Set_License_Type (License_Mit_X11);
Dialog.Set_Version ("1.0.0");
Dialog.Set_Website ("https://github.com/Heziode/lsystem-editor");
Dialog.Set_Website_Label ("Source-code");
Dialog.Set_Authors (List1);
-- Dialog.Show_All;
if Dialog.Run = Gtk.Dialog.Gtk_Response_Close then
Dialog.Destroy;
else
Dialog.Destroy;
end if;
end About;
procedure LS_Level (This : Instance; Value : Integer)
is
begin
This.Presenter.LS_Level (Value);
This.Render;
end LS_Level;
procedure Background_Color (This : Instance)
is
use Gdk.RGBA;
use Gtk.Color_Chooser_Dialog;
use Gtk.Dialog;
Dialog : Gtk_Color_Chooser_Dialog;
Rgba : Gdk_RGBA;
begin
Dialog := Gtk_Color_Chooser_Dialog_New ("Background Color", This.Window);
if Dialog.Run = Gtk.Dialog.Gtk_Response_OK then
Dialog.Get_Rgba (Rgba);
This.Presenter.Set_Background_Color (Rgba);
This.Render_Area.Queue_Draw;
Dialog.Destroy;
else
Dialog.Destroy;
end if;
end Background_Color;
procedure Foreground_Color (This : Instance)
is
use Gdk.RGBA;
use Gtk.Color_Chooser_Dialog;
use Gtk.Dialog;
Dialog : Gtk_Color_Chooser_Dialog;
Rgba : Gdk_RGBA;
begin
Dialog := Gtk_Color_Chooser_Dialog_New ("Foreground Color", This.Window);
if Dialog.Run = Gtk.Dialog.Gtk_Response_OK then
Dialog.Get_Rgba (Rgba);
This.Presenter.Set_Foreground_Color (Rgba);
This.Render_Area.Queue_Draw;
Dialog.Destroy;
else
Dialog.Destroy;
end if;
end Foreground_Color;
procedure Export (This : Instance;
Format : String)
is
use Glib;
use GNAT.Directory_Operations;
use Gtk.Button;
use Gtk.Dialog;
use Gtk.File_Chooser;
use Gtk.File_Chooser_Dialog;
Unknown_Color : exception;
Dialog : Gtk_File_Chooser_Dialog;
Btn_Ok : Gtk_Button;
Btn_Ko : Gtk_Button;
Path : Unbounded_String;
Width : Gint := Gint (This.Presenter.Get_Width);
Height : Gint := Gint (This.Presenter.Get_Height);
Margin_Top : Gint := Gint (This.Presenter.Get_Margin_Top);
Margin_Right : Gint := Gint (This.Presenter.Get_Margin_Right);
Margin_Bottom : Gint := Gint (This.Presenter.Get_Margin_Bottom);
Margin_Left : Gint := Gint (This.Presenter.Get_Margin_Left);
Bg_Rgba : Gdk_RGBA;
Fg_Rgba : Gdk_RGBA;
Export : Boolean;
Success : Boolean;
Have_Bg : Boolean := This.Presenter.Get_Background_Color /= "";
File_Choose : Boolean := False;
begin
-- While user give bad file
Choose : while not File_Choose loop
Btn_Ko := Gtk_Button_New_With_Mnemonic ("_Cancel");
Btn_Ok := Gtk_Button_New_With_Mnemonic ("_Save");
Dialog := Gtk_File_Chooser_Dialog_New
("Export File", This.Window, Action_Save);
Dialog.Set_Do_Overwrite_Confirmation (True);
Dialog.Add_Action_Widget (Btn_Ko, Gtk.Dialog.Gtk_Response_Cancel);
Dialog.Add_Action_Widget (Btn_Ok, Gtk.Dialog.Gtk_Response_Accept);
Dialog.Set_Extra_Widget (Btn_Ok);
Dialog.Set_Extra_Widget (Btn_Ko);
Dialog.Set_Current_Name (Default_File_Name);
if Dialog.Run = Gtk.Dialog.Gtk_Response_Accept then
Path := To_Unbounded_String (Dialog.Get_Filename);
Dialog.Destroy;
-- Check if file is valid
Check_File : declare
Name : constant String := Base_Name (To_String (Path));
File_Format : constant String :=
This.Presenter.Get_Extension (Format);
begin
if Name'Length < File_Format'Length then
File_Choose := True;
Path := Path & File_Format;
elsif Name'Length = 0 then
File_Choose := False;
elsif Name (Name'Last - File_Format'Length + 1 .. Name'Last)
/= File_Format
then
File_Choose := True;
Path := Path & File_Format;
else
File_Choose := True;
end if;
end Check_File;
else
Dialog.Destroy;
exit Choose;
end if;
end loop Choose;
if File_Choose then
-- Configure export
Parse (Bg_Rgba, This.Presenter.Get_Background_Color, Success);
if This.Presenter.Get_Background_Color /= "" and then not Success then
raise Unknown_Color;
end if;
Parse (Fg_Rgba, This.Presenter.Get_Foreground_Color, Success);
if not Success then
raise Unknown_Color;
end if;
This.Get_Export_Param (Width => Width,
Height => Height,
Margin_Top => Margin_Top,
Margin_Right => Margin_Right,
Margin_Bottom => Margin_Bottom,
Margin_Left => Margin_Left,
Bg_Rgba => Bg_Rgba,
Fg_Rgba => Fg_Rgba,
Have_Bg => Have_Bg,
Export => Export);
if Export then
This.Presenter.Export (Format,
To_String (Path),
Width,
Height,
Margin_Top,
Margin_Right,
Margin_Bottom,
Margin_Left,
Bg_Rgba,
Fg_Rgba,
Have_Bg);
end if;
end if;
end Export;
function Get_Text_Editor_Content (This : Instance) return String
is
use Gtk.Text_Iter;
Start, The_End : Gtk_Text_Iter;
begin
Get_Bounds (This.Text_Editor, Start, The_End);
return Get_Text (This.Text_Editor, Start, The_End);
end Get_Text_Editor_Content;
procedure Render (This : Instance)
is
begin
This.Presenter.Develop;
This.Presenter.Interpret;
This.Render_Area.Queue_Draw;
end Render;
procedure Get_Export_Param (This : Instance;
Width, Height,
Margin_Top,
Margin_Right,
Margin_Bottom,
Margin_Left : in out Gint;
Bg_Rgba,
Fg_Rgba : in out Gdk_RGBA;
Have_Bg : in out Boolean;
Export : out Boolean)
is
pragma Unreferenced (This);
use Glib.Convert;
use Gtk.Builder;
use Gtk.Button;
use Gtk.Check_Button;
use Gtk.Dialog;
use LSE.View.Callbacks;
Builder : Gtk_Builder;
Dialog : Gtk_Dialog := Gtk_Dialog_New;
Btn_Ok : Gtk_Button;
Btn_Ko : Gtk_Button;
Check : Gtk_Check_Button;
Spin : Gtk_Spin_Button;
Color : Gtk_Color_Button;
begin
Gtk_New_From_File (Builder, Locale_To_UTF8
("ressources/dialog_export.glade"));
Dialog := Gtk_Dialog (Builder.Get_Object ("dialog_export"));
Btn_Ko := Gtk_Button (Builder.Get_Object ("btn_cancel"));
Btn_Ok := Gtk_Button (Builder.Get_Object ("btn_export"));
Dialog.Add_Action_Widget (Btn_Ko, Gtk.Dialog.Gtk_Response_Cancel);
Dialog.Add_Action_Widget (Btn_Ok, Gtk.Dialog.Gtk_Response_Accept);
-- Set background color
Color := Gtk_Color_Button (Builder.Get_Object ("bg_color"));
if Have_Bg then
Color.Set_Rgba (Bg_Rgba);
end if;
-- Toggle checkbox for background color
Check := Gtk_Check_Button (Builder.Get_Object ("checkbox_bg"));
Check.Set_Active (Have_Bg);
Color.Set_Sensitive (Have_Bg);
Connect (Check, "toggled", Export_Bg_Color_Cb'Access, Color);
-- Set foreground color
Color := Gtk_Color_Button (Builder.Get_Object ("fg_color"));
Color.Set_Rgba (Fg_Rgba);
-- Set Width
Spin := Gtk_Spin_Button (Builder.Get_Object ("spin_width"));
Spin.Set_Value (Gdouble (Width));
-- Set Height
Spin := Gtk_Spin_Button (Builder.Get_Object ("spin_height"));
Spin.Set_Value (Gdouble (Height));
-- Set margin top
Spin := Gtk_Spin_Button (Builder.Get_Object ("spin_margin_top"));
Spin.Set_Value (Gdouble (Margin_Top));
-- Set margin right
Spin := Gtk_Spin_Button (Builder.Get_Object ("spin_margin_right"));
Spin.Set_Value (Gdouble (Margin_Right));
-- Set margin bottom
Spin := Gtk_Spin_Button (Builder.Get_Object ("spin_margin_bottom"));
Spin.Set_Value (Gdouble (Margin_Bottom));
-- Set margin left
Spin := Gtk_Spin_Button (Builder.Get_Object ("spin_margin_left"));
Spin.Set_Value (Gdouble (Margin_Left));
if Dialog.Run = Gtk.Dialog.Gtk_Response_Accept then
-- Set background color
if Check.Get_Active then
Color := Gtk_Color_Button (Builder.Get_Object ("bg_color"));
Color.Get_Rgba (Bg_Rgba);
Have_Bg := True;
else
Have_Bg := False;
end if;
-- Set foreground color
Color := Gtk_Color_Button (Builder.Get_Object ("fg_color"));
Color.Get_Rgba (Fg_Rgba);
-- Set Width
Spin := Gtk_Spin_Button (Builder.Get_Object ("spin_width"));
Width := Spin.Get_Value_As_Int;
-- Set Height
Spin := Gtk_Spin_Button (Builder.Get_Object ("spin_height"));
Height := Spin.Get_Value_As_Int;
-- Set margin top
Spin := Gtk_Spin_Button (Builder.Get_Object ("spin_margin_top"));
Margin_Top := Spin.Get_Value_As_Int;
-- Set margin right
Spin := Gtk_Spin_Button (Builder.Get_Object ("spin_margin_right"));
Margin_Right := Spin.Get_Value_As_Int;
-- Set margin bottom
Spin := Gtk_Spin_Button (Builder.Get_Object ("spin_margin_bottom"));
Margin_Bottom := Spin.Get_Value_As_Int;
-- Set margin left
Spin := Gtk_Spin_Button (Builder.Get_Object ("spin_margin_left"));
Margin_Left := Spin.Get_Value_As_Int;
Dialog.Destroy;
Export := True;
else
Dialog.Destroy;
Export := False;
end if;
end Get_Export_Param;
procedure Draw (This : Instance; Cr : Cairo.Cairo_Context)
is
use Gdk.Cairo;
use Gdk.Color;
use Gtk.Enums;
use Gtk.Style_Context;
use LSE.IO.Drawing_Area;
use LSE.Model.IO.Drawing_Area.Drawing_Area_Ptr;
Context : constant Gtk_Style_Context :=
Get_Style_Context (This.Render_Area);
Fg_Color : constant Gdk_Color :=
Parse (This.Presenter.Get_Foreground_Color);
Bg_Color : Gdk_Color := Null_Color;
begin
This.Presenter.Set_Medium (To_Holder (Initialize (Cr)));
Render_Background (Context, Cr, 0.0, 0.0,
Gdouble (This.Render_Area.Get_Allocated_Width),
Gdouble (This.Render_Area.Get_Allocated_Height));
-- Set foreground
if This.Presenter.Get_Background_Color /= "" then
Bg_Color := Parse (This.Presenter.Get_Background_Color);
end if;
Set_Source_Color (Cr, Fg_Color);
-- Set background
This.Render_Area.Modify_Bg (State_Normal, Bg_Color);
if First_Run then
This.Presenter.Set_Width (This.Render_Area.Get_Allocated_Width);
This.Presenter.Set_Height (This.Render_Area.Get_Allocated_Height);
This.Presenter.Develop;
First_Run := False;
end if;
This.Presenter.Interpret;
end Draw;
procedure Size_Allocate (This : Instance)
is
begin
This.Presenter.Set_Width (This.Render_Area.Get_Allocated_Width);
This.Presenter.Set_Height (This.Render_Area.Get_Allocated_Height);
This.Render;
end Size_Allocate;
end LSE.View.View;
|
zhmu/ananas | Ada | 13,041 | ads | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- A D A . C O N T A I N E R S . B O U N D E D _ O R D E R E D _ M A P S --
-- --
-- S p e c --
-- --
-- Copyright (C) 2004-2022, Free Software Foundation, Inc. --
-- --
-- This specification is derived from the Ada Reference Manual for use with --
-- GNAT. The copyright notice above, and the license provisions that follow --
-- apply solely to the contents of the part following the private keyword. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- This unit was originally developed by Matthew J Heaney. --
------------------------------------------------------------------------------
with Ada.Iterator_Interfaces;
private with Ada.Containers.Red_Black_Trees;
private with Ada.Streams;
private with Ada.Finalization;
private with Ada.Strings.Text_Buffers;
generic
type Key_Type is private;
type Element_Type is private;
with function "<" (Left, Right : Key_Type) return Boolean is <>;
with function "=" (Left, Right : Element_Type) return Boolean is <>;
package Ada.Containers.Bounded_Ordered_Maps with
SPARK_Mode => Off
is
pragma Annotate (CodePeer, Skip_Analysis);
pragma Pure;
pragma Remote_Types;
function Equivalent_Keys (Left, Right : Key_Type) return Boolean;
type Map (Capacity : Count_Type) is tagged private with
Constant_Indexing => Constant_Reference,
Variable_Indexing => Reference,
Default_Iterator => Iterate,
Iterator_Element => Element_Type,
Aggregate => (Empty => Empty,
Add_Named => Insert),
Preelaborable_Initialization
=> Element_Type'Preelaborable_Initialization
and
Key_Type'Preelaborable_Initialization;
type Cursor is private with Preelaborable_Initialization;
Empty_Map : constant Map;
function Empty (Capacity : Count_Type := 10) return Map;
No_Element : constant Cursor;
function Has_Element (Position : Cursor) return Boolean;
package Map_Iterator_Interfaces is new
Ada.Iterator_Interfaces (Cursor, Has_Element);
function "=" (Left, Right : Map) return Boolean;
function Length (Container : Map) return Count_Type;
function Is_Empty (Container : Map) return Boolean;
procedure Clear (Container : in out Map);
function Key (Position : Cursor) return Key_Type;
function Element (Position : Cursor) return Element_Type;
procedure Replace_Element
(Container : in out Map;
Position : Cursor;
New_Item : Element_Type);
procedure Query_Element
(Position : Cursor;
Process : not null access
procedure (Key : Key_Type; Element : Element_Type));
procedure Update_Element
(Container : in out Map;
Position : Cursor;
Process : not null access
procedure (Key : Key_Type; Element : in out Element_Type));
type Constant_Reference_Type
(Element : not null access constant Element_Type) is private
with
Implicit_Dereference => Element;
type Reference_Type (Element : not null access Element_Type) is private
with
Implicit_Dereference => Element;
function Constant_Reference
(Container : aliased Map;
Position : Cursor) return Constant_Reference_Type;
function Reference
(Container : aliased in out Map;
Position : Cursor) return Reference_Type;
function Constant_Reference
(Container : aliased Map;
Key : Key_Type) return Constant_Reference_Type;
function Reference
(Container : aliased in out Map;
Key : Key_Type) return Reference_Type;
procedure Assign (Target : in out Map; Source : Map);
function Copy (Source : Map; Capacity : Count_Type := 0) return Map;
procedure Move (Target : in out Map; Source : in out Map);
procedure Insert
(Container : in out Map;
Key : Key_Type;
New_Item : Element_Type;
Position : out Cursor;
Inserted : out Boolean);
procedure Insert
(Container : in out Map;
Key : Key_Type;
Position : out Cursor;
Inserted : out Boolean);
procedure Insert
(Container : in out Map;
Key : Key_Type;
New_Item : Element_Type);
procedure Include
(Container : in out Map;
Key : Key_Type;
New_Item : Element_Type);
procedure Replace
(Container : in out Map;
Key : Key_Type;
New_Item : Element_Type);
procedure Exclude (Container : in out Map; Key : Key_Type);
procedure Delete (Container : in out Map; Key : Key_Type);
procedure Delete (Container : in out Map; Position : in out Cursor);
procedure Delete_First (Container : in out Map);
procedure Delete_Last (Container : in out Map);
function First (Container : Map) return Cursor;
function First_Element (Container : Map) return Element_Type;
function First_Key (Container : Map) return Key_Type;
function Last (Container : Map) return Cursor;
function Last_Element (Container : Map) return Element_Type;
function Last_Key (Container : Map) return Key_Type;
function Next (Position : Cursor) return Cursor;
procedure Next (Position : in out Cursor);
function Previous (Position : Cursor) return Cursor;
procedure Previous (Position : in out Cursor);
function Find (Container : Map; Key : Key_Type) return Cursor;
function Element (Container : Map; Key : Key_Type) return Element_Type;
function Floor (Container : Map; Key : Key_Type) return Cursor;
function Ceiling (Container : Map; Key : Key_Type) return Cursor;
function Contains (Container : Map; Key : Key_Type) return Boolean;
function "<" (Left, Right : Cursor) return Boolean;
function ">" (Left, Right : Cursor) return Boolean;
function "<" (Left : Cursor; Right : Key_Type) return Boolean;
function ">" (Left : Cursor; Right : Key_Type) return Boolean;
function "<" (Left : Key_Type; Right : Cursor) return Boolean;
function ">" (Left : Key_Type; Right : Cursor) return Boolean;
procedure Iterate
(Container : Map;
Process : not null access procedure (Position : Cursor));
procedure Reverse_Iterate
(Container : Map;
Process : not null access procedure (Position : Cursor));
function Iterate
(Container : Map)
return Map_Iterator_Interfaces.Reversible_Iterator'Class;
function Iterate
(Container : Map;
Start : Cursor)
return Map_Iterator_Interfaces.Reversible_Iterator'Class;
private
use Ada.Finalization;
pragma Inline (Next);
pragma Inline (Previous);
type Node_Type is record
Parent : Count_Type;
Left : Count_Type;
Right : Count_Type;
Color : Red_Black_Trees.Color_Type := Red_Black_Trees.Red;
Key : Key_Type;
Element : aliased Element_Type;
end record;
package Tree_Types is
new Red_Black_Trees.Generic_Bounded_Tree_Types (Node_Type);
type Map (Capacity : Count_Type) is
new Tree_Types.Tree_Type (Capacity)
with null record with Put_Image => Put_Image;
procedure Put_Image
(S : in out Ada.Strings.Text_Buffers.Root_Buffer_Type'Class; V : Map);
use Red_Black_Trees;
use Tree_Types, Tree_Types.Implementation;
use Ada.Streams;
procedure Write
(Stream : not null access Root_Stream_Type'Class;
Container : Map);
for Map'Write use Write;
procedure Read
(Stream : not null access Root_Stream_Type'Class;
Container : out Map);
for Map'Read use Read;
type Map_Access is access all Map;
for Map_Access'Storage_Size use 0;
type Cursor is record
Container : Map_Access;
Node : Count_Type := 0;
end record;
procedure Write
(Stream : not null access Root_Stream_Type'Class;
Item : Cursor);
for Cursor'Write use Write;
procedure Read
(Stream : not null access Root_Stream_Type'Class;
Item : out Cursor);
for Cursor'Read use Read;
subtype Reference_Control_Type is Implementation.Reference_Control_Type;
-- It is necessary to rename this here, so that the compiler can find it
type Constant_Reference_Type
(Element : not null access constant Element_Type) is
record
Control : Reference_Control_Type :=
raise Program_Error with "uninitialized reference";
-- The RM says, "The default initialization of an object of
-- type Constant_Reference_Type or Reference_Type propagates
-- Program_Error."
end record;
procedure Read
(Stream : not null access Root_Stream_Type'Class;
Item : out Constant_Reference_Type);
for Constant_Reference_Type'Read use Read;
procedure Write
(Stream : not null access Root_Stream_Type'Class;
Item : Constant_Reference_Type);
for Constant_Reference_Type'Write use Write;
type Reference_Type (Element : not null access Element_Type) is record
Control : Reference_Control_Type :=
raise Program_Error with "uninitialized reference";
-- The RM says, "The default initialization of an object of
-- type Constant_Reference_Type or Reference_Type propagates
-- Program_Error."
end record;
procedure Read
(Stream : not null access Root_Stream_Type'Class;
Item : out Reference_Type);
for Reference_Type'Read use Read;
procedure Write
(Stream : not null access Root_Stream_Type'Class;
Item : Reference_Type);
for Reference_Type'Write use Write;
-- Three operations are used to optimize in the expansion of "for ... of"
-- loops: the Next(Cursor) procedure in the visible part, and the following
-- Pseudo_Reference and Get_Element_Access functions. See Sem_Ch5 for
-- details.
function Pseudo_Reference
(Container : aliased Map'Class) return Reference_Control_Type;
pragma Inline (Pseudo_Reference);
-- Creates an object of type Reference_Control_Type pointing to the
-- container, and increments the Lock. Finalization of this object will
-- decrement the Lock.
type Element_Access is access all Element_Type with
Storage_Size => 0;
function Get_Element_Access
(Position : Cursor) return not null Element_Access;
-- Returns a pointer to the element designated by Position.
Empty_Map : constant Map := Map'(Tree_Type with Capacity => 0);
No_Element : constant Cursor := Cursor'(null, 0);
type Iterator is new Limited_Controlled and
Map_Iterator_Interfaces.Reversible_Iterator with
record
Container : Map_Access;
Node : Count_Type;
end record
with Disable_Controlled => not T_Check;
overriding procedure Finalize (Object : in out Iterator);
overriding function First (Object : Iterator) return Cursor;
overriding function Last (Object : Iterator) return Cursor;
overriding function Next
(Object : Iterator;
Position : Cursor) return Cursor;
overriding function Previous
(Object : Iterator;
Position : Cursor) return Cursor;
end Ada.Containers.Bounded_Ordered_Maps;
|
reznikmm/matreshka | Ada | 3,655 | ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Open Document Toolkit --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2013, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with XML.DOM.Attributes;
package ODF.DOM.Attributes.Table.Border_Model is
type ODF_Table_Border_Model is
new XML.DOM.Attributes.DOM_Attribute with private;
private
type ODF_Table_Border_Model is
new XML.DOM.Attributes.DOM_Attribute with null record;
end ODF.DOM.Attributes.Table.Border_Model;
|
thierr26/ada-keystore | Ada | 9,497 | adb | -----------------------------------------------------------------------
-- keystore-ios -- IO low level operation for the keystore
-- Copyright (C) 2019 Stephane Carrez
-- Written by Stephane Carrez ([email protected])
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Util.Log.Loggers;
with Util.Encoders.SHA256;
with Util.Encoders.HMAC.SHA256;
with Keystore.Logs;
-- Generic Block header
-- +------------------+
-- | Block type | 2b
-- | Encrypt 1 size | 2b
-- | Wallet id | 4b
-- | PAD 0 | 4b
-- | PAD 0 | 4b
-- +------------------+
-- | ...AES-CTR... | B
-- +------------------+
-- | Block HMAC-256 | 32b
-- +------------------+
--
-- Free block
-- +------------------+
-- | 00 00 00 00 | 4b
-- | 00 00 00 00 | 4b
-- | Next free block | 4b
-- | PAD 0 | 4b
-- +------------------+
-- | Free block ID | 4b
-- +------------------+
-- | ... |
-- +------------------+
-- | PAD 0 |
-- +------------------+
-- | PAD 0 | 32b
-- +------------------+
--
package body Keystore.IO is
use Interfaces;
Log : constant Util.Log.Loggers.Logger := Util.Log.Loggers.Create ("Keystore.IO");
procedure Put_Encrypt_Size (Into : in out Block_Type;
Value : in Block_Index);
function Get_Decrypt_Size (From : in IO_Block_Type) return Interfaces.Unsigned_16;
procedure Put_Encrypt_Size (Into : in out Block_Type;
Value : in Block_Index) is
V : constant Interfaces.Unsigned_16 := Interfaces.Unsigned_16 (Value);
begin
Into (BT_HEADER_START + 2) := Stream_Element (Shift_Right (V, 8));
Into (BT_HEADER_START + 3) := Stream_Element (V and 16#0ff#);
end Put_Encrypt_Size;
function Get_Decrypt_Size (From : in IO_Block_Type) return Interfaces.Unsigned_16 is
begin
return Shift_Left (Unsigned_16 (From (BT_HEADER_START + 2)), 8) or
Unsigned_16 (From (BT_HEADER_START + 3));
end Get_Decrypt_Size;
-- ------------------------------
-- Read the block from the wallet IO stream and decrypt the block content using
-- the decipher object. The decrypted content is stored in the marshaller which
-- is ready to read the start of the block header.
-- ------------------------------
procedure Read (Stream : in out Wallet_Stream'Class;
Decipher : in out Util.Encoders.AES.Decoder;
Sign : in Secret_Key;
Decrypt_Size : out Block_Index;
Into : in out Buffers.Storage_Buffer) is
procedure Read (Data : in IO_Block_Type);
procedure Read (Data : in IO_Block_Type) is
Last : Stream_Element_Offset;
Encoded : Stream_Element_Offset;
Hash : Util.Encoders.SHA256.Hash_Array;
Last_Pos : Stream_Element_Offset;
Context : Util.Encoders.HMAC.SHA256.Context;
Size : Interfaces.Unsigned_16;
Buf : constant Buffers.Buffer_Accessor := Into.Data.Value;
begin
Size := Get_Decrypt_Size (Data);
-- Check that the decrypt size looks correct.
if Size = 0 or else Size > Data'Length or else (Size mod 16) /= 0 then
Keystore.Logs.Warn (Log, "Bloc{0} has invalid size", Into.Block);
raise Invalid_Block;
end if;
Decrypt_Size := Block_Index (Size);
Last_Pos := BT_DATA_START + Stream_Element_Offset (Decrypt_Size) - 1;
Buf.Data (Buf.Data'First .. BT_DATA_START - 1)
:= Data (Data'First .. BT_DATA_START - 1);
if Log.Get_Level >= Util.Log.INFO_LEVEL then
Log.Info ("Read block{0} decrypt {1} .. {2}",
Buffers.To_String (Into.Block),
Stream_Element_Offset'Image (BT_DATA_START),
Stream_Element_Offset'Image (Last_Pos));
end if;
-- Decrypt the Size bytes
Decipher.Transform (Data => Data (BT_DATA_START .. Last_Pos),
Into => Buf.Data (BT_DATA_START .. Last_Pos),
Last => Last,
Encoded => Encoded);
Decipher.Finish (Into => Buf.Data (Last + 1 .. Last_Pos),
Last => Last);
if Encoded - 1 /= Last_Pos or Last /= Last_Pos then
Keystore.Logs.Warn (Log, "Bloc{0} decryption failed", Into.Block);
raise Invalid_Block;
end if;
if Last_Pos < Buf.Data'Last then
Buf.Data (Last_Pos + 1 .. Buf.Data'Last) := Data (Last_Pos + 1 .. Buf.Data'Last);
end if;
Keystore.Logs.Debug (Log, "Dump block{0} before AES decrypt", Into.Block);
Keystore.Logs.Dump (Log, Data (BT_DATA_START .. BT_DATA_START + 95));
-- Keystore.Logs.Debug (Log, "...", 1);
Keystore.Logs.Dump (Log, Data (Buf.Data'Last - 100 .. Buf.Data'Last));
Keystore.Logs.Debug (Log, "Dump block{0} after AES decrypt", Into.Block);
Keystore.Logs.Dump (Log, Buf.Data (BT_DATA_START .. BT_DATA_START + 95));
-- Keystore.Logs.Debug (Log, "...", 1);
Keystore.Logs.Dump (Log, Buf.Data (Buf.Data'Last - 100 .. Buf.Data'Last));
-- Make HMAC-SHA256 signature of the block excluding the block hash mac.
Util.Encoders.HMAC.SHA256.Set_Key (Context, Sign);
Util.Encoders.HMAC.SHA256.Update (Context, Buf.Data);
Util.Encoders.HMAC.SHA256.Finish (Context, Hash);
-- Check that the block hash mac matches our hash.
if Hash /= Data (BT_HMAC_HEADER_POS .. Data'Last) then
Keystore.Logs.Warn (Log, "Block{0} HMAC-256 is invalid", Into.Block);
raise Invalid_Signature;
end if;
end Read;
begin
Stream.Read (Into.Block, Read'Access);
end Read;
-- ------------------------------
-- Write the block in the wallet IO stream. Encrypt the block data using the
-- cipher object. Sign the header and encrypted data using HMAC-256 and the
-- given signature.
-- ------------------------------
procedure Write (Stream : in out Wallet_Stream'Class;
Encrypt_Size : in Block_Index := BT_DATA_LENGTH;
Cipher : in out Util.Encoders.AES.Encoder;
Sign : in Secret_Key;
From : in out Buffers.Storage_Buffer) is
procedure Write (Data : out IO_Block_Type);
procedure Write (Data : out IO_Block_Type) is
Last : Stream_Element_Offset;
Encoded : Stream_Element_Offset;
Last_Pos : constant Stream_Element_Offset := BT_DATA_START + Encrypt_Size - 1;
Buf : constant Buffers.Buffer_Accessor := From.Data.Value;
begin
if Log.Get_Level >= Util.Log.INFO_LEVEL then
Log.Info ("Write block{0} encrypt {1} .. {2}",
Buffers.To_String (From.Block),
Stream_Element_Offset'Image (BT_DATA_START),
Stream_Element_Offset'Image (Last_Pos));
end if;
Put_Encrypt_Size (Buf.Data, Encrypt_Size);
Data (BT_HEADER_START .. BT_DATA_START - 1)
:= Buf.Data (BT_HEADER_START .. BT_DATA_START - 1);
Cipher.Transform (Data => Buf.Data (BT_DATA_START .. Last_Pos),
Into => Data (BT_DATA_START .. Last_Pos),
Last => Last,
Encoded => Encoded);
Log.Info ("Last={0} Encoded={0}",
Stream_Element_Offset'Image (Last),
Stream_Element_Offset'Image (Encoded));
if Last_Pos < Buf.Data'Last then
Data (Last_Pos + 1 .. Buf.Data'Last) := Buf.Data (Last_Pos + 1 .. Buf.Data'Last);
end if;
Keystore.Logs.Debug (Log, "Dump data block{0} before AES and write", From.Block);
Keystore.Logs.Dump (Log, Buf.Data (BT_DATA_START .. BT_DATA_START + 95));
-- Keystore.Logs.Debug (Log, "...", 1);
Keystore.Logs.Dump (Log, Buf.Data (Buf.Data'Last - 100 .. Buf.Data'Last));
Keystore.Logs.Debug (Log, "Dump data block{0} after AES and write", From.Block);
Keystore.Logs.Dump (Log, Data (BT_DATA_START .. BT_DATA_START + 95));
-- Keystore.Logs.Debug (Log, "...", 1);
Keystore.Logs.Dump (Log, Data (Buf.Data'Last - 100 .. Buf.Data'Last));
-- Make HMAC-SHA256 signature of the block excluding the block hash mac.
Util.Encoders.HMAC.SHA256.Sign (Key => Sign,
Data => Buf.Data,
Result => Data (BT_HMAC_HEADER_POS .. Data'Last));
end Write;
begin
Stream.Write (From.Block, Write'Access);
end Write;
end Keystore.IO;
|
leo-brewin/adm-bssn-numerical | Ada | 896 | ads | package BSSNBase.Text_IO is
procedure write_results;
procedure write_history;
procedure write_summary;
procedure write_summary_header;
procedure write_summary_trailer;
procedure create_text_io_lists;
xy_index_list_ptr : GridIndexList_ptr := new GridIndexList (1..max_num_x*max_num_y);
xz_index_list_ptr : GridIndexList_ptr := new GridIndexList (1..max_num_x*max_num_z);
yz_index_list_ptr : GridIndexList_ptr := new GridIndexList (1..max_num_y*max_num_z);
xy_index_list : GridIndexList renames xy_index_list_ptr.all;
xz_index_list : GridIndexList renames xz_index_list_ptr.all;
yz_index_list : GridIndexList renames yz_index_list_ptr.all;
xy_index_num : Integer := 0;
xz_index_num : Integer := 0;
yz_index_num : Integer := 0;
sample_point : GridPoint; -- the grid point used by write_history
end BSSNBase.Text_IO;
|
godunko/adawebpack | Ada | 267 | ads |
with Interfaces;
package Demo is
function Calculate_Square_Root
(Value : Interfaces.IEEE_Float_64) return Interfaces.IEEE_Float_64
with Export => True,
Convention => C,
Link_Name => "Calculate_Square_Root";
end Demo;
|
johnperry-math/hac | Ada | 4,897 | adb | package body HAC_Sys.PCode.Interpreter.In_Defs is
procedure Allocate_Text_File (
ND : in out Interpreter_Data;
R : in out General_Register
)
is
use Defs;
begin
if R.Special /= Text_Files then
R := GR_Abstract_Console;
end if;
if R.Txt = null then
R.Txt := new Ada.Text_IO.File_Type;
ND.Files.Append (R.Txt);
end if;
end Allocate_Text_File;
procedure Free_Allocated_Contents (
ND : in out Interpreter_Data
)
is
procedure Free is new Ada.Unchecked_Deallocation (Ada.Text_IO.File_Type, File_Ptr);
begin
for F of ND.Files loop
if F /= null then
if Ada.Text_IO.Is_Open (F.all) then
Ada.Text_IO.Close (F.all);
end if;
Free (F);
end if;
end loop;
end Free_Allocated_Contents;
function Get_String_from_Stack (ND : Interpreter_Data; Idx, Size : Integer) return String is
Res : String (1 .. Size);
begin
for i in Res'Range loop
Res (i) := Character'Val (ND.S (Idx + i - 1).I);
end loop;
return Res;
end Get_String_from_Stack;
function GR_Real (R : Defs.HAC_Float) return General_Register is
begin
return (Special => Defs.Floats, I => 0, R => R);
end GR_Real;
function GR_Time (T : Ada.Calendar.Time) return General_Register is
begin
return (Special => Defs.Times, I => 0, Tim => T);
end GR_Time;
function GR_Duration (D : Duration) return General_Register is
begin
return (Special => Defs.Durations, I => 0, Dur => D);
end GR_Duration;
function GR_VString (S : String) return General_Register is
begin
return (Special => Defs.VStrings, I => 0, V => Defs.To_VString (S));
end GR_VString;
function GR_VString (V : Defs.VString) return General_Register is
begin
return (Special => Defs.VStrings, I => 0, V => V);
end GR_VString;
procedure Pop (ND : in out Interpreter_Data; Amount : Positive := 1) is
Curr_TCB_Top : Integer renames ND.TCB (ND.CurTask).T;
begin
Curr_TCB_Top := Curr_TCB_Top - Amount;
if Curr_TCB_Top < ND.S'First then
raise VM_Stack_Underflow;
end if;
end Pop;
procedure Push (ND : in out Interpreter_Data; Amount : Positive := 1) is
Curr_TCB : Task_Control_Block renames ND.TCB (ND.CurTask);
begin
Curr_TCB.T := Curr_TCB.T + Amount;
if Curr_TCB.T > Curr_TCB.STACKSIZE then
raise VM_Stack_Overflow;
end if;
end Push;
procedure Post_Mortem_Dump (CD : Compiler_Data; ND : In_Defs.Interpreter_Data) is
use Ada.Text_IO, Defs.IIO, Defs.RIO;
BLKCNT : Integer;
H1, H2, H3 : Integer;
-- !! Should use a file for dump !!
begin
New_Line;
Put_Line ("HAC - PCode - Post Mortem Dump");
New_Line;
Put_Line ("Processor state: " & Processor_State'Image (ND.PS));
New_Line;
Put_Line (
"Stack Variables of Task " &
Defs.To_String (CD.IdTab (CD.Tasks_Definitions_Table (ND.CurTask)).Name)
);
H1 := ND.TCB (ND.CurTask).B; -- current bottom of stack
BLKCNT := 10;
loop
New_Line;
BLKCNT := BLKCNT - 1;
if BLKCNT = 0 then
H1 := 0;
end if;
H2 := Integer (ND.S (H1 + 4).I); -- index into HAC.Data.IdTab for this process
if H1 /= 0 then
Put (Defs.To_String (CD.IdTab (H2).Name));
Put (" CALLED AT");
Put (ND.S (H1 + 1).I, 5);
New_Line;
else
Put_Line ("Task Variables");
end if;
H2 := CD.Blocks_Table (CD.IdTab (H2).Block_Ref).Last_Id_Idx;
while H2 /= 0 loop
-- [P2Ada]: WITH instruction
declare
P2Ada_Var_7 : IdTabEntry renames CD.IdTab (H2);
use Defs;
begin
if P2Ada_Var_7.Obj = Variable then
if Defs.Standard_or_Enum_Typ (P2Ada_Var_7.xTyp.TYP) then
if P2Ada_Var_7.Normal then
H3 := H1 + P2Ada_Var_7.Adr_or_Sz;
else
H3 := Integer (ND.S (H1 + P2Ada_Var_7.Adr_or_Sz).I);
end if;
Put (" " & To_String (P2Ada_Var_7.Name) & " = ");
case P2Ada_Var_7.xTyp.TYP is
when Defs.Enums | Defs.Ints =>
Put (ND.S (H3).I);
New_Line;
when Defs.Bools =>
BIO.Put (Boolean'Val (ND.S (H3).I));
New_Line;
when Defs.Floats =>
Put (ND.S (H3).R);
New_Line;
when Defs.Chars =>
Put (ND.S (H3).I);
Put_Line (" (ASCII)");
when others =>
null; -- [P2Ada]: no otherwise / else in Pascal
end case;
end if;
end if;
H2 := P2Ada_Var_7.Link;
end; -- [P2Ada]: end of WITH
end loop;
H1 := Integer (ND.S (H1 + 3).I);
exit when H1 < 0;
end loop;
end Post_Mortem_Dump;
end HAC_Sys.PCode.Interpreter.In_Defs;
|
MinimSecure/unum-sdk | Ada | 882 | adb | -- Copyright 2007-2019 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
package body Defs is
function F1 (S : Struct1) return Integer is
begin
return s.x; -- Set breakpoint marker here.
end F1;
end Defs;
|
gitter-badger/libAnne | Ada | 1,971 | adb | with Ada.Strings.Unbounded, Ada.Strings.Wide_Unbounded, Ada.Strings.Wide_Wide_Unbounded;
use Ada.Strings.Unbounded, Ada.Strings.Wide_Unbounded, Ada.Strings.Wide_Wide_Unbounded;
package body Containers.Buffers.Ring.IO is
function Image(Self : Buffer) return String is
Result : Unbounded_String;
begin
Result := Result & "(";
for I in Self.Backing'Range loop
if I = Self.Take_Index then
Result := Result & "[" & Image(Self.Backing(I));
elsif I = Self.Stock_Index then
Result := Result & Image(Self.Backing(I)) & "]";
else
Result := Result & Image(Self.Backing(I));
end if;
if I /= Buffer_Length then
Result := Result & "->";
end if;
end loop;
Result := Result & ")";
return To_String(Result);
end Image;
function Wide_Image(Self : Buffer) return Wide_String is
Result : Unbounded_Wide_String;
begin
Result := Result & "(";
for I in Self.Backing'Range loop
if I = Self.Take_Index then
Result := Result & "[" & Wide_Image(Self.Backing(I));
elsif I = Self.Stock_Index then
Result := Result & Wide_Image(Self.Backing(I)) & "]";
else
Result := Result & Wide_Image(Self.Backing(I));
end if;
if I /= Buffer_Length then
Result := Result & "→";
end if;
end loop;
Result := Result & ")";
return To_Wide_String(Result);
end Wide_Image;
function Wide_Wide_Image(Self : Buffer) return Wide_Wide_String is
Result : Unbounded_Wide_Wide_String;
begin
Result := Result & "(";
for I in Self.Backing'Range loop
if I = Self.Take_Index then
Result := Result & "[" & Wide_Wide_Image(Self.Backing(I));
elsif I = Self.Stock_Index then
Result := Result & Wide_Wide_Image(Self.Backing(I)) & "]";
else
Result := Result & Wide_Wide_Image(Self.Backing(I));
end if;
if I /= Buffer_Length then
Result := Result & "→";
end if;
end loop;
Result := Result & ")";
return To_Wide_Wide_String(Result);
end Wide_Wide_Image;
end Containers.Buffers.Ring.IO; |
vpodzime/ada-util | Ada | 7,838 | adb | -----------------------------------------------------------------------
-- util-encoders-hmac-sha1 -- Compute HMAC-SHA256 authentication code
-- Copyright (C) 2017 Stephane Carrez
-- Written by Stephane Carrez ([email protected])
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Util.Encoders.Base16;
with Util.Encoders.Base64;
package body Util.Encoders.HMAC.SHA256 is
-- ------------------------------
-- Sign the data string with the key and return the HMAC-SHA256 code in binary.
-- ------------------------------
function Sign (Key : in String;
Data : in String) return Util.Encoders.SHA256.Hash_Array is
Ctx : Context;
Result : Util.Encoders.SHA256.Hash_Array;
begin
Set_Key (Ctx, Key);
Update (Ctx, Data);
Finish (Ctx, Result);
return Result;
end Sign;
-- ------------------------------
-- Sign the data string with the key and return the HMAC-SHA256 code as hexadecimal string.
-- ------------------------------
function Sign (Key : in String;
Data : in String) return Util.Encoders.SHA256.Digest is
Ctx : Context;
Result : Util.Encoders.SHA256.Digest;
begin
Set_Key (Ctx, Key);
Update (Ctx, Data);
Finish (Ctx, Result);
return Result;
end Sign;
-- ------------------------------
-- Sign the data string with the key and return the HMAC-SHA256 code as base64 string.
-- When <b>URL</b> is True, use the base64 URL alphabet to encode in base64.
-- ------------------------------
function Sign_Base64 (Key : in String;
Data : in String;
URL : in Boolean := False) return Util.Encoders.SHA256.Base64_Digest is
Ctx : Context;
Result : Util.Encoders.SHA256.Base64_Digest;
begin
Set_Key (Ctx, Key);
Update (Ctx, Data);
Finish_Base64 (Ctx, Result, URL);
return Result;
end Sign_Base64;
-- ------------------------------
-- Set the hmac private key. The key must be set before calling any <b>Update</b>
-- procedure.
-- ------------------------------
procedure Set_Key (E : in out Context;
Key : in String) is
Buf : Ada.Streams.Stream_Element_Array (1 .. Key'Length);
for Buf'Address use Key'Address;
pragma Import (Ada, Buf);
begin
Set_Key (E, Buf);
end Set_Key;
IPAD : constant Ada.Streams.Stream_Element := 16#36#;
OPAD : constant Ada.Streams.Stream_Element := 16#5c#;
-- ------------------------------
-- Set the hmac private key. The key must be set before calling any <b>Update</b>
-- procedure.
-- ------------------------------
procedure Set_Key (E : in out Context;
Key : in Ada.Streams.Stream_Element_Array) is
use type Ada.Streams.Stream_Element_Offset;
use type Ada.Streams.Stream_Element;
begin
-- Reduce the key
if Key'Length > 64 then
Util.Encoders.SHA256.Update (E.SHA, Key);
Util.Encoders.SHA256.Finish (E.SHA, E.Key (0 .. 31));
E.Key_Len := 31;
else
E.Key_Len := Key'Length - 1;
E.Key (0 .. E.Key_Len) := Key;
end if;
-- Hash the key in the SHA256 context.
declare
Block : Ada.Streams.Stream_Element_Array (0 .. 63);
begin
for I in 0 .. E.Key_Len loop
Block (I) := IPAD xor E.Key (I);
end loop;
for I in E.Key_Len + 1 .. 63 loop
Block (I) := IPAD;
end loop;
Util.Encoders.SHA256.Update (E.SHA, Block);
end;
end Set_Key;
-- ------------------------------
-- Update the hash with the string.
-- ------------------------------
procedure Update (E : in out Context;
S : in String) is
begin
Util.Encoders.SHA256.Update (E.SHA, S);
end Update;
-- ------------------------------
-- Update the hash with the string.
-- ------------------------------
procedure Update (E : in out Context;
S : in Ada.Streams.Stream_Element_Array) is
begin
Util.Encoders.SHA256.Update (E.SHA, S);
end Update;
-- ------------------------------
-- Computes the HMAC-SHA256 with the private key and the data collected by
-- the <b>Update</b> procedures. Returns the raw binary hash in <b>Hash</b>.
-- ------------------------------
procedure Finish (E : in out Context;
Hash : out Util.Encoders.SHA256.Hash_Array) is
use type Ada.Streams.Stream_Element;
use type Ada.Streams.Stream_Element_Offset;
begin
Util.Encoders.SHA256.Finish (E.SHA, Hash);
-- Hash the key in the SHA256 context.
declare
Block : Ada.Streams.Stream_Element_Array (0 .. 63);
begin
for I in 0 .. E.Key_Len loop
Block (I) := OPAD xor E.Key (I);
end loop;
if E.Key_Len < 63 then
for I in E.Key_Len + 1 .. 63 loop
Block (I) := OPAD;
end loop;
end if;
Util.Encoders.SHA256.Update (E.SHA, Block);
end;
Util.Encoders.SHA256.Update (E.SHA, Hash);
Util.Encoders.SHA256.Finish (E.SHA, Hash);
end Finish;
-- ------------------------------
-- Computes the HMAC-SHA256 with the private key and the data collected by
-- the <b>Update</b> procedures. Returns the hexadecimal hash in <b>Hash</b>.
-- ------------------------------
procedure Finish (E : in out Context;
Hash : out Util.Encoders.SHA256.Digest) is
Buf : Ada.Streams.Stream_Element_Array (1 .. Hash'Length);
for Buf'Address use Hash'Address;
pragma Import (Ada, Buf);
H : Util.Encoders.SHA256.Hash_Array;
B : Util.Encoders.Base16.Encoder;
Last : Ada.Streams.Stream_Element_Offset;
Encoded : Ada.Streams.Stream_Element_Offset;
begin
Finish (E, H);
B.Transform (Data => H, Into => Buf, Last => Last, Encoded => Encoded);
end Finish;
-- ------------------------------
-- Computes the HMAC-SHA256 with the private key and the data collected by
-- the <b>Update</b> procedures. Returns the base64 hash in <b>Hash</b>.
-- When <b>URL</b> is True, use the base64 URL alphabet to encode in base64.
-- ------------------------------
procedure Finish_Base64 (E : in out Context;
Hash : out Util.Encoders.SHA256.Base64_Digest;
URL : in Boolean := False) is
Buf : Ada.Streams.Stream_Element_Array (1 .. Hash'Length);
for Buf'Address use Hash'Address;
pragma Import (Ada, Buf);
H : Util.Encoders.SHA256.Hash_Array;
B : Util.Encoders.Base64.Encoder;
Last : Ada.Streams.Stream_Element_Offset;
Encoded : Ada.Streams.Stream_Element_Offset;
begin
Finish (E, H);
B.Set_URL_Mode (URL);
B.Transform (Data => H, Into => Buf, Last => Last, Encoded => Encoded);
end Finish_Base64;
-- Initialize the SHA-1 context.
overriding
procedure Initialize (E : in out Context) is
begin
null;
end Initialize;
end Util.Encoders.HMAC.SHA256;
|
dan76/Amass | Ada | 1,324 | ads | -- Copyright © by Jeff Foley 2017-2023. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
-- SPDX-License-Identifier: Apache-2.0
local json = require("json")
name = "Greynoise"
type = "api"
function start()
set_rate_limit(1)
end
function vertical(ctx, domain)
local resp, err = request(ctx, {['url']=build_url(domain)})
if (err ~= nil and err ~= "") then
log(ctx, "vertical request to service failed: " .. err)
return
elseif (resp.status_code < 200 or resp.status_code >= 400) then
log(ctx, "vertical request to service returned with status: " .. resp.status)
return
end
local d = json.decode(resp.body)
if (d == nil) then
log(ctx, "failed to decode the JSON response")
return
elseif (d.data == nil or d.count == 0) then
return
end
for _, d in pairs(d.data) do
if (d.rdns ~= nil and d.rdns ~= "" and in_scope(ctx, d.rdns)) then
new_name(ctx, d.rdns)
if (d.ip ~= nil and d.ip ~= "") then
new_addr(ctx, d.ip, d.rdns)
end
end
end
end
function build_url(domain)
return "https://www.greynoise.io/api/enterprise/v2/experimental/gnql?size=1000&query=metadata.rdns:*." .. domain
end
|
GPUWorks/lumen2 | Ada | 2,846 | ads |
-- Lumen.Binary.Endian.Words -- Byte re-ordering routines for "word"
-- (32-bit) values
--
--
-- Chip Richards, NiEstu, Phoenix AZ, Summer 2010
-- This code is covered by the ISC License:
--
-- Copyright © 2010, NiEstu
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
--
-- The software is provided "as is" and the author disclaims all warranties
-- with regard to this software including all implied warranties of
-- merchantability and fitness. In no event shall the author be liable for any
-- special, direct, indirect, or consequential damages or any damages
-- whatsoever resulting from loss of use, data or profits, whether in an
-- action of contract, negligence or other tortious action, arising out of or
-- in connection with the use or performance of this software.
generic
type Word_Type is (<>);
package Lumen.Binary.Endian.Words is
---------------------------------------------------------------------------
-- Swap the bytes, no matter the host ordering
function Swap_Bytes (Value : Word_Type) return Word_Type;
-- Swap bytes if host is little-endian, or no-op if it's big-endian
function To_Big (Value : Word_Type) return Word_Type;
-- Swap bytes if host is big-endian, or no-op if it's little-endian
function To_Little (Value : Word_Type) return Word_Type;
-- Swap bytes if host is little-endian, or no-op if it's big-endian
function From_Big (Value : Word_Type) return Word_Type renames To_Big;
-- Swap bytes if host is big-endian, or no-op if it's little-endian
function From_Little (Value : Word_Type) return Word_Type renames To_Little;
---------------------------------------------------------------------------
-- Swap the bytes in place, no matter the host ordering
procedure Swap_Bytes (Value : in out Word_Type);
-- Swap bytes in place if host is little-endian, or no-op if it's big-endian
procedure To_Big (Value : in out Word_Type);
-- Swap bytes in place if host is big-endian, or no-op if it's little-endian
procedure To_Little (Value : in out Word_Type);
-- Swap bytes in place if host is little-endian, or no-op if it's big-endian
procedure From_Big (Value : in out Word_Type) renames To_Big;
-- Swap bytes in place if host is big-endian, or no-op if it's little-endian
procedure From_Little (Value : in out Word_Type) renames To_Little;
---------------------------------------------------------------------------
pragma Inline (Swap_Bytes, To_Big, To_Little, From_Big, From_Little);
---------------------------------------------------------------------------
end Lumen.Binary.Endian.Words;
|
zhmu/ananas | Ada | 3,082 | ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- S Y S T E M . I M G _ W I U --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2022, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- Contains the routine for computing the image of signed and unsigned
-- integers up to Integer for use by Text_IO.Integer_IO and
-- Text_IO.Modular_IO.
with System.Image_W;
with System.Unsigned_Types;
package System.Img_WIU is
pragma Pure;
subtype Unsigned is Unsigned_Types.Unsigned;
package Impl is new Image_W (Integer, Unsigned);
procedure Set_Image_Width_Integer
(V : Integer;
W : Integer;
S : out String;
P : in out Natural)
renames Impl.Set_Image_Width_Integer;
procedure Set_Image_Width_Unsigned
(V : Unsigned;
W : Integer;
S : out String;
P : in out Natural)
renames Impl.Set_Image_Width_Unsigned;
end System.Img_WIU;
|
godunko/adawebpack | Ada | 2,819 | ads | ------------------------------------------------------------------------------
-- --
-- AdaWebPack --
-- --
------------------------------------------------------------------------------
-- Copyright © 2020, Vadim Godunko --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- 3. Neither the name of the copyright holder nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
------------------------------------------------------------------------------
package Web.HTML is
pragma Pure;
end Web.HTML;
|
reznikmm/matreshka | Ada | 9,832 | adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Localization, Internationalization, Globalization for Ada --
-- --
-- Testsuite Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2009-2011, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with Ada.Command_Line;
with League.Application;
with League.Strings;
with Unicode_Data_File_Parsers;
with Unicode_Data_File_Utilities;
procedure Normalization_Test is
use League.Strings;
use Unicode_Data_File_Utilities;
Unidata_Directory : constant String
:= Ada.Command_Line.Argument (1);
NormalizationTest_Name : constant String := "NormalizationTest.txt";
type Boolean_Array is array (Natural range <>) of Boolean;
for Boolean_Array'Component_Size use Boolean'Size;
type Parser is
new Unicode_Data_File_Parsers.Unicode_Data_File_Parser with
record
Chars : Boolean_Array (1 .. 16#10_FFFF#) := (others => False);
Part_1 : Boolean := False;
end record;
overriding procedure Start_Section
(Self : in out Parser;
Name : String);
overriding procedure End_Section (Self : in out Parser);
overriding procedure Data
(Self : in out Parser;
Fields : Unicode_Data_File_Parsers.String_Vectors.Vector);
----------
-- Data --
----------
overriding procedure Data
(Self : in out Parser;
Fields : Unicode_Data_File_Parsers.String_Vectors.Vector)
is
C1 : Universal_String;
C2 : Universal_String;
C3 : Universal_String;
C4 : Universal_String;
C5 : Universal_String;
begin
C1 := To_Universal_String (Parse (Fields.Element (1)));
C2 := To_Universal_String (Parse (Fields.Element (2)));
C3 := To_Universal_String (Parse (Fields.Element (3)));
C4 := To_Universal_String (Parse (Fields.Element (4)));
C5 := To_Universal_String (Parse (Fields.Element (5)));
-- NFC
-- c2 == NFC(c1) == NFC(c2) == NFC(c3)
-- c4 == NFC(c4) == NFC(c5)
if C2.To_Wide_Wide_String /= C1.To_NFC.To_Wide_Wide_String then
raise Program_Error;
end if;
if C2.To_Wide_Wide_String /= C2.To_NFC.To_Wide_Wide_String then
raise Program_Error;
end if;
if C2.To_Wide_Wide_String /= C3.To_NFC.To_Wide_Wide_String then
raise Program_Error;
end if;
if C4.To_Wide_Wide_String /= C4.To_NFC.To_Wide_Wide_String then
raise Program_Error;
end if;
if C4.To_Wide_Wide_String /= C5.To_NFC.To_Wide_Wide_String then
raise Program_Error;
end if;
-- NFD
-- c3 == NFD(c1) == NFD(c2) == NFD(c3)
-- c5 == NFD(c4) == NFD(c5)
if C3.To_Wide_Wide_String /= C1.To_NFD.To_Wide_Wide_String then
raise Program_Error;
end if;
if C3.To_Wide_Wide_String /= C2.To_NFD.To_Wide_Wide_String then
raise Program_Error;
end if;
if C3.To_Wide_Wide_String /= C3.To_NFD.To_Wide_Wide_String then
raise Program_Error;
end if;
if C5.To_Wide_Wide_String /= C4.To_NFD.To_Wide_Wide_String then
raise Program_Error;
end if;
if C5.To_Wide_Wide_String /= C5.To_NFD.To_Wide_Wide_String then
raise Program_Error;
end if;
-- NFKC
-- c4 == NFKC(c1) == NFKC(c2) == NFKC(c3) == NFKC(c4) == NFKC(c5)
if C4.To_Wide_Wide_String /= C1.To_NFKC.To_Wide_Wide_String then
raise Program_Error;
end if;
if C4.To_Wide_Wide_String /= C2.To_NFKC.To_Wide_Wide_String then
raise Program_Error;
end if;
if C4.To_Wide_Wide_String /= C3.To_NFKC.To_Wide_Wide_String then
raise Program_Error;
end if;
if C4.To_Wide_Wide_String /= C4.To_NFKC.To_Wide_Wide_String then
raise Program_Error;
end if;
if C4.To_Wide_Wide_String /= C5.To_NFKC.To_Wide_Wide_String then
raise Program_Error;
end if;
-- NFKD
-- c5 == NFKD(c1) == NFKD(c2) == NFKD(c3) == NFKD(c4) == NFKD(c5)
if C5.To_Wide_Wide_String /= C1.To_NFKD.To_Wide_Wide_String then
raise Program_Error;
end if;
if C5.To_Wide_Wide_String /= C2.To_NFKD.To_Wide_Wide_String then
raise Program_Error;
end if;
if C5.To_Wide_Wide_String /= C3.To_NFKD.To_Wide_Wide_String then
raise Program_Error;
end if;
if C5.To_Wide_Wide_String /= C4.To_NFKD.To_Wide_Wide_String then
raise Program_Error;
end if;
if C5.To_Wide_Wide_String /= C5.To_NFKD.To_Wide_Wide_String then
raise Program_Error;
end if;
if C1.Length = 0 or C2.Length = 0 or C3.Length = 0 then
raise Program_Error;
end if;
if Self.Part_1 then
if C1.Length /= 1 then
raise Program_Error;
end if;
Self.Chars
(Wide_Wide_Character'Pos (C1.Element (1).To_Wide_Wide_Character)) :=
True;
end if;
end Data;
-----------------
-- End_Section --
-----------------
overriding procedure End_Section (Self : in out Parser) is
X : Universal_String;
Skip : Boolean;
begin
if Self.Part_1 then
for J in Self.Chars'Range loop
if not Self.Chars (J) then
-- X == NFC(X) == NFD(X) == NFKC(X) == NFKD(X)
begin
X :=
To_Universal_String ((1 => Wide_Wide_Character'Val (J)));
Skip := False;
exception
when Constraint_Error =>
Skip := True;
end;
if not Skip then
if X.To_Wide_Wide_String /= X.To_NFC.To_Wide_Wide_String then
raise Program_Error;
end if;
if X.To_Wide_Wide_String /= X.To_NFD.To_Wide_Wide_String then
raise Program_Error;
end if;
if X.To_Wide_Wide_String /= X.To_NFKC.To_Wide_Wide_String then
raise Program_Error;
end if;
if X.To_Wide_Wide_String /= X.To_NFKD.To_Wide_Wide_String then
raise Program_Error;
end if;
end if;
end if;
end loop;
Self.Part_1 := False;
end if;
end End_Section;
-------------------
-- Start_Section --
-------------------
overriding procedure Start_Section
(Self : in out Parser;
Name : String)
is
begin
if Name = "Part1" then
Self.Part_1 := True;
end if;
end Start_Section;
Test : Parser;
begin
Test.Open (Unidata_Directory & '/' & NormalizationTest_Name);
Test.Parse;
Test.Close;
end Normalization_Test;
|
AdaCore/training_material | Ada | 479 | ads | -- Implements the instructions available in sdc.
package Instructions is
type Instruction is private;
-- The actual instruction type.
function Read (Word : String) return Instruction;
-- If Word contains the name of a valid instruction the instruction is
-- returned, otherwise Except.User_Error is raised.
procedure Process (I : Instruction);
-- Processes an Instruction.
private
type Instruction is (Clear, Print, Quit);
end Instructions;
|
reznikmm/matreshka | Ada | 3,694 | ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Open Document Toolkit --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2014, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with XML.DOM.Attributes;
package ODF.DOM.Chart_Class_Attributes is
pragma Preelaborate;
type ODF_Chart_Class_Attribute is limited interface
and XML.DOM.Attributes.DOM_Attribute;
type ODF_Chart_Class_Attribute_Access is
access all ODF_Chart_Class_Attribute'Class
with Storage_Size => 0;
end ODF.DOM.Chart_Class_Attributes;
|
onox/dcf-ada | Ada | 3,411 | adb | -- SPDX-License-Identifier: MIT
--
-- Copyright (c) 1999 - 2018 Gautier de Montmollin
-- SWITZERLAND
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-- copies of the Software, and to permit persons to whom the Software is
-- furnished to do so, subject to the following conditions:
--
-- The above copyright notice and this permission notice shall be included in
-- all copies or substantial portions of the Software.
--
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-- THE SOFTWARE.
package body DCF.Zip.CRC is
CRC32_Table : array (Unsigned_32'(0) .. 255) of Unsigned_32;
procedure Prepare_Table is
-- CRC-32 algorithm, section 4.4.7 of .zip file format specification
Seed : constant := 16#EDB8_8320#;
L : Unsigned_32;
begin
for I in CRC32_Table'Range loop
L := I;
for Bit in 0 .. 7 loop
if (L and 1) = 0 then
L := Shift_Right (L, 1);
else
L := Shift_Right (L, 1) xor Seed;
end if;
end loop;
CRC32_Table (I) := L;
end loop;
end Prepare_Table;
procedure Update (CRC : in out Unsigned_32; Inbuf : Zip.Byte_Buffer) is
Local_CRC : Unsigned_32;
begin
Local_CRC := CRC;
for I in Inbuf'Range loop
Local_CRC :=
CRC32_Table (16#FF# and (Local_CRC xor Unsigned_32 (Inbuf (I)))) xor
Shift_Right (Local_CRC, 8);
end loop;
CRC := Local_CRC;
end Update;
procedure Update_Stream_Array
(CRC : in out Unsigned_32;
Inbuf : Ada.Streams.Stream_Element_Array)
is
Local_CRC : Unsigned_32;
begin
Local_CRC := CRC;
for I in Inbuf'Range loop
Local_CRC :=
CRC32_Table (16#FF# and (Local_CRC xor Unsigned_32 (Inbuf (I)))) xor
Shift_Right (Local_CRC, 8);
end loop;
CRC := Local_CRC;
end Update_Stream_Array;
Table_Empty : Boolean := True;
procedure Init (CRC : out Unsigned_32) is
begin
if Table_Empty then
Prepare_Table;
Table_Empty := False;
end if;
CRC := 16#FFFF_FFFF#;
end Init;
function Final (CRC : Unsigned_32) return Unsigned_32 is
begin
return not CRC;
end Final;
function Image (Value : Unsigned_32) return String is
Alphabet : constant String := "0123456789abcdef";
V : array (1 .. 4) of Unsigned_8
with Import, Convention => Ada, Address => Value'Address;
function Byte (Value : Unsigned_8) return String is
(Alphabet (Natural (Value) / 16 + 1) & Alphabet (Natural (Value) mod 16 + 1));
begin
return Byte (V (4)) & Byte (V (3)) & Byte (V (2)) & Byte (V (1));
end Image;
end DCF.Zip.CRC;
|
MinimSecure/unum-sdk | Ada | 829 | adb | -- Copyright 2005-2019 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
procedure First is
procedure Break_Me is
begin
null;
end Break_Me;
begin
Break_Me;
end First;
|
optikos/oasis | Ada | 7,499 | adb | -- Copyright (c) 2019 Maxim Reznik <[email protected]>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Program.Nodes.Protected_Body_Declarations is
function Create
(Protected_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Body_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Name : not null Program.Elements.Defining_Identifiers
.Defining_Identifier_Access;
With_Token : Program.Lexical_Elements.Lexical_Element_Access;
Aspects : Program.Elements.Aspect_Specifications
.Aspect_Specification_Vector_Access;
Is_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Protected_Operations : not null Program.Element_Vectors
.Element_Vector_Access;
End_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
End_Name : Program.Elements.Identifiers.Identifier_Access;
Semicolon_Token : not null Program.Lexical_Elements
.Lexical_Element_Access)
return Protected_Body_Declaration is
begin
return Result : Protected_Body_Declaration :=
(Protected_Token => Protected_Token, Body_Token => Body_Token,
Name => Name, With_Token => With_Token, Aspects => Aspects,
Is_Token => Is_Token, Protected_Operations => Protected_Operations,
End_Token => End_Token, End_Name => End_Name,
Semicolon_Token => Semicolon_Token, Enclosing_Element => null)
do
Initialize (Result);
end return;
end Create;
function Create
(Name : not null Program.Elements.Defining_Identifiers
.Defining_Identifier_Access;
Aspects : Program.Elements.Aspect_Specifications
.Aspect_Specification_Vector_Access;
Protected_Operations : not null Program.Element_Vectors
.Element_Vector_Access;
End_Name : Program.Elements.Identifiers.Identifier_Access;
Is_Part_Of_Implicit : Boolean := False;
Is_Part_Of_Inherited : Boolean := False;
Is_Part_Of_Instance : Boolean := False)
return Implicit_Protected_Body_Declaration is
begin
return Result : Implicit_Protected_Body_Declaration :=
(Name => Name, Aspects => Aspects,
Protected_Operations => Protected_Operations, End_Name => End_Name,
Is_Part_Of_Implicit => Is_Part_Of_Implicit,
Is_Part_Of_Inherited => Is_Part_Of_Inherited,
Is_Part_Of_Instance => Is_Part_Of_Instance, Enclosing_Element => null)
do
Initialize (Result);
end return;
end Create;
overriding function Name
(Self : Base_Protected_Body_Declaration)
return not null Program.Elements.Defining_Identifiers
.Defining_Identifier_Access is
begin
return Self.Name;
end Name;
overriding function Aspects
(Self : Base_Protected_Body_Declaration)
return Program.Elements.Aspect_Specifications
.Aspect_Specification_Vector_Access is
begin
return Self.Aspects;
end Aspects;
overriding function Protected_Operations
(Self : Base_Protected_Body_Declaration)
return not null Program.Element_Vectors.Element_Vector_Access is
begin
return Self.Protected_Operations;
end Protected_Operations;
overriding function End_Name
(Self : Base_Protected_Body_Declaration)
return Program.Elements.Identifiers.Identifier_Access is
begin
return Self.End_Name;
end End_Name;
overriding function Protected_Token
(Self : Protected_Body_Declaration)
return not null Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.Protected_Token;
end Protected_Token;
overriding function Body_Token
(Self : Protected_Body_Declaration)
return not null Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.Body_Token;
end Body_Token;
overriding function With_Token
(Self : Protected_Body_Declaration)
return Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.With_Token;
end With_Token;
overriding function Is_Token
(Self : Protected_Body_Declaration)
return not null Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.Is_Token;
end Is_Token;
overriding function End_Token
(Self : Protected_Body_Declaration)
return not null Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.End_Token;
end End_Token;
overriding function Semicolon_Token
(Self : Protected_Body_Declaration)
return not null Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.Semicolon_Token;
end Semicolon_Token;
overriding function Is_Part_Of_Implicit
(Self : Implicit_Protected_Body_Declaration)
return Boolean is
begin
return Self.Is_Part_Of_Implicit;
end Is_Part_Of_Implicit;
overriding function Is_Part_Of_Inherited
(Self : Implicit_Protected_Body_Declaration)
return Boolean is
begin
return Self.Is_Part_Of_Inherited;
end Is_Part_Of_Inherited;
overriding function Is_Part_Of_Instance
(Self : Implicit_Protected_Body_Declaration)
return Boolean is
begin
return Self.Is_Part_Of_Instance;
end Is_Part_Of_Instance;
procedure Initialize
(Self : aliased in out Base_Protected_Body_Declaration'Class) is
begin
Set_Enclosing_Element (Self.Name, Self'Unchecked_Access);
for Item in Self.Aspects.Each_Element loop
Set_Enclosing_Element (Item.Element, Self'Unchecked_Access);
end loop;
for Item in Self.Protected_Operations.Each_Element loop
Set_Enclosing_Element (Item.Element, Self'Unchecked_Access);
end loop;
if Self.End_Name.Assigned then
Set_Enclosing_Element (Self.End_Name, Self'Unchecked_Access);
end if;
null;
end Initialize;
overriding function Is_Protected_Body_Declaration_Element
(Self : Base_Protected_Body_Declaration)
return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Protected_Body_Declaration_Element;
overriding function Is_Declaration_Element
(Self : Base_Protected_Body_Declaration)
return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Declaration_Element;
overriding procedure Visit
(Self : not null access Base_Protected_Body_Declaration;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class) is
begin
Visitor.Protected_Body_Declaration (Self);
end Visit;
overriding function To_Protected_Body_Declaration_Text
(Self : aliased in out Protected_Body_Declaration)
return Program.Elements.Protected_Body_Declarations
.Protected_Body_Declaration_Text_Access is
begin
return Self'Unchecked_Access;
end To_Protected_Body_Declaration_Text;
overriding function To_Protected_Body_Declaration_Text
(Self : aliased in out Implicit_Protected_Body_Declaration)
return Program.Elements.Protected_Body_Declarations
.Protected_Body_Declaration_Text_Access is
pragma Unreferenced (Self);
begin
return null;
end To_Protected_Body_Declaration_Text;
end Program.Nodes.Protected_Body_Declarations;
|
faelys/natools | Ada | 6,765 | ads | ------------------------------------------------------------------------------
-- Copyright (c) 2014-2017, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose with or without fee is hereby granted, provided that the above --
-- copyright notice and this permission notice appear in all copies. --
-- --
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --
-- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF --
-- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR --
-- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES --
-- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN --
-- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF --
-- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --
------------------------------------------------------------------------------
------------------------------------------------------------------------------
-- Natools.Cron is a low-overhead, low-precision implementation of periodic --
-- callbacks, similar to UNIX cron daemon. --
-- Note that callbacks are executed sequentially in a single thread, and --
-- ticks may be skipped when computing resources lack. --
-- If you need more precision and/or more reliability, you might want to --
-- consider using Ada.Real_Time.Timing_Events instead. --
------------------------------------------------------------------------------
with Ada.Calendar;
private with Ada.Containers.Doubly_Linked_Lists;
private with Ada.Containers.Ordered_Maps;
private with Ada.Finalization;
private with Ada.Unchecked_Deallocation;
private with Natools.References;
private with Natools.Storage_Pools;
package Natools.Cron is
type Callback is interface;
procedure Run (Object : in out Callback) is abstract;
type Periodic_Time is record
Origin : Ada.Calendar.Time;
Period : Duration;
end record;
type Cron_Entry is tagged limited private;
pragma Preelaborable_Initialization (Cron_Entry);
function Create
(Time : in Periodic_Time;
Callback : in Cron.Callback'Class)
return Cron_Entry;
-- Create a new entry with the given parameters
function Create
(Origin : in Ada.Calendar.Time;
Callback : in Cron.Callback'Class)
return Cron_Entry;
-- Create a new entry that executes only once, at the given time
function Create
(Period : in Duration;
Callback : in Cron.Callback'Class)
return Cron_Entry;
-- Create a new entry starting within a period from now
procedure Set
(Self : in out Cron_Entry;
Time : in Periodic_Time;
Callback : in Cron.Callback'Class);
-- Reset an entry with the given parameters
procedure Set
(Self : in out Cron_Entry;
Origin : in Ada.Calendar.Time;
Callback : in Cron.Callback'Class);
-- Reset entry with the given parameters, running only once
procedure Set
(Self : in out Cron_Entry;
Period : in Duration;
Callback : in Cron.Callback'Class);
-- Reset entry with the given parameters, starting one period from now
procedure Reset (Self : in out Cron_Entry);
-- Clear internal state and remove associated entry from database.
-- Note that if the callback procedure is currently running, it will
-- continue until it returns, so the callback object may outlive
-- the call to Reset, plan concurrency accordingly.
private
package Callback_Refs is new References
(Callback'Class,
Storage_Pools.Access_In_Default_Pool'Storage_Pool,
Storage_Pools.Access_In_Default_Pool'Storage_Pool);
type Cron_Entry is new Ada.Finalization.Limited_Controlled with record
Callback : Callback_Refs.Reference;
end record;
overriding procedure Finalize (Object : in out Cron_Entry);
package Event_Lists is new Ada.Containers.Doubly_Linked_Lists
(Callback_Refs.Reference, Callback_Refs."=");
type Event_List is new Callback with record
List : Event_Lists.List;
end record;
overriding procedure Run (Self : in out Event_List);
-- Sequentially run the contained events
procedure Append
(Self : in out Event_List;
Ref : in Callback_Refs.Reference);
-- Append Ref at the end of Self.List
procedure Prepend
(Self : in out Event_List;
Ref : in Callback_Refs.Reference);
-- Prepend Ref at the beginning of Self.List
procedure Remove
(Self : in out Event_List;
Ref : in Callback_Refs.Reference;
Removed : out Boolean);
-- Remove Ref from Self.List, through a linear search
function Is_Empty (Self : Event_List) return Boolean;
-- Return whether Self contains any element
function "<" (Left, Right : Periodic_Time) return Boolean;
-- Comparison function for ordered map
package Entry_Maps is new Ada.Containers.Ordered_Maps
(Periodic_Time, Callback_Refs.Reference, "<", Callback_Refs."=");
protected Database is
procedure Insert
(Time : in Periodic_Time;
Callback : in Callback_Refs.Reference);
-- Insert Callback into the database, adjusting Time.Origin
-- to be in the future.
procedure Remove (Callback : in Callback_Refs.Reference);
-- Remove Callback from the database
procedure Update (Callback : in Callback_Refs.Reference);
-- Update Time.Origin associated with Callback so that
-- it is in the future.
procedure Get_First
(Time : out Periodic_Time;
Callback : out Callback_Refs.Reference);
-- Return the next active callback, or an empty reference when
-- the database is empty (to signal task termination).
procedure Get_Event_List
(Source : in Event_List;
List : out Event_Lists.List);
-- Initialize an event list from Source without
-- any concurrent tampering of the list.
entry Update_Notification;
-- Block as long as the next active item does not change
private
Map : Entry_Maps.Map;
First_Changed : Boolean := False;
end Database;
task type Worker is
end Worker;
type Worker_Access is access Worker;
procedure Unchecked_Free is new Ada.Unchecked_Deallocation
(Worker, Worker_Access);
Global_Worker : Worker_Access := null;
end Natools.Cron;
|
reznikmm/matreshka | Ada | 14,078 | ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Web Framework --
-- --
-- Web API Definition --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2014-2015, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This package provides binding to interface Document.
------------------------------------------------------------------------------
with WebAPI.DOM.Comments;
with WebAPI.DOM.Document_Fragments;
with WebAPI.DOM.Document_Types;
with WebAPI.DOM.Elements;
with WebAPI.DOM.HTML_Collections;
with WebAPI.DOM.Nodes;
with WebAPI.DOM.Non_Element_Parent_Nodes;
with WebAPI.DOM.Parent_Nodes;
with WebAPI.DOM.Processing_Instructions;
with WebAPI.DOM.Texts;
package WebAPI.DOM.Documents is
pragma Preelaborate;
type Document is limited interface
and WebAPI.DOM.Nodes.Node
and WebAPI.DOM.Non_Element_Parent_Nodes.Non_Element_Parent_Node
and WebAPI.DOM.Parent_Nodes.Parent_Node;
type Document_Access is access all Document'Class
with Storage_Size => 0;
-- XXX Not binded yet:
-- [SameObject] readonly attribute DOMImplementation implementation;
not overriding function Get_URL
(Self : not null access constant Document)
return WebAPI.DOM_String is abstract
with Import => True,
Convention => JavaScript_Property_Getter,
Link_Name => "URL";
-- Returns document's URL.
not overriding function Get_Document_URI
(Self : not null access constant Document)
return WebAPI.DOM_String is abstract
with Import => True,
Convention => JavaScript_Property_Getter,
Link_Name => "documentURI";
-- Returns document's URL.
not overriding function Get_Compat_Mode
(Self : not null access constant Document)
return WebAPI.DOM_String is abstract
with Import => True,
Convention => JavaScript_Property_Getter,
Link_Name => "compatMode";
-- Returns the string "CSS1Compat" if document is in no-quirks mode or
-- limited-quirks mode, and "BackCompat", if document is in quirks mode.
not overriding function Get_Character_Set
(Self : not null access constant Document)
return WebAPI.DOM_String is abstract
with Import => True,
Convention => JavaScript_Property_Getter,
Link_Name => "characterSet";
-- Returns document's encoding.
not overriding function Get_Content_Type
(Self : not null access constant Document)
return WebAPI.DOM_String is abstract
with Import => True,
Convention => JavaScript_Property_Getter,
Link_Name => "contentType";
-- Returns document's content type.
not overriding function Get_Doctype
(Self : not null access constant Document)
return WebAPI.DOM.Document_Types.Document_Type_Access is abstract
with Import => True,
Convention => JavaScript_Property_Getter,
Link_Name => "doctype";
-- Returns the doctype or null if there is none.
not overriding function Get_Document_Element
(Self : not null access constant Document)
return WebAPI.DOM.Elements.Element_Access is abstract
with Import => True,
Convention => JavaScript_Property_Getter,
Link_Name => "documentElement";
-- Returns the document element.
not overriding function Get_Elements_By_Tag_Name
(Self : not null access constant Document;
Local_Name : WebAPI.DOM_String)
return WebAPI.DOM.HTML_Collections.HTML_Collection is abstract
with Import => True,
Convention => JavaScript_Function,
Link_Name => "getElementsByTagName";
-- If localName is "*" returns a HTMLCollection of all descendant elements.
--
-- Otherwise, returns a HTMLCollection of all descendant elements whose
-- local name is localName. (Matches case-insensitively against elements in
-- the HTML namespace within an HTML document.)
not overriding function Get_Elements_By_Tag_Name_NS
(Self : not null access constant Document;
Namespace_URI : WebAPI.DOM_String;
Local_Name : WebAPI.DOM_String)
return WebAPI.DOM.HTML_Collections.HTML_Collection is abstract
with Import => True,
Convention => JavaScript_Function,
Link_Name => "getElementsByTagNameNS";
-- If namespace and localName are "*" returns a HTMLCollection of all
-- descendant elements.
--
-- If only namespace is "*" returns a HTMLCollection of all descendant
-- elements whose local name is localName.
--
-- If only localName is "*" returns a HTMLCollection of all descendant
-- elements whose namespace is namespace.
--
-- Otherwise, returns a HTMLCollection of all descendant elements whose
-- namespace is namespace and local name is localName.
not overriding function Get_Elements_By_Class_Name
(Self : not null access constant Document;
Class_Names : WebAPI.DOM_String)
return WebAPI.DOM.HTML_Collections.HTML_Collection is abstract
with Import => True,
Convention => JavaScript_Function,
Link_Name => "getElementsByClassName";
-- Returns a HTMLCollection of the elements in the object on which the
-- method was invoked (a document or an element) that have all the classes
-- given by classes.
--
-- The classes argument is interpreted as a space-separated list of
-- classes.
not overriding function Create_Element
(Self : not null access Document;
Local_Name : WebAPI.DOM_String)
return not null WebAPI.DOM.Elements.Element_Access is abstract
with Import => True,
Convention => JavaScript_Method,
Link_Name => "createElement";
-- Returns an element in the HTML namespace with localName as local name.
-- (In an HTML document localName is lowercased.)
--
-- If localName does not match the Name production an
-- "InvalidCharacterError" exception will be thrown.
not overriding function Create_Element_NS
(Self : not null access Document;
Namespace_URI : WebAPI.DOM_String;
Qialified_Name : WebAPI.DOM_String)
return not null WebAPI.DOM.Elements.Element_Access is abstract
with Import => True,
Convention => JavaScript_Method,
Link_Name => "createElementNS";
-- Returns an element with namespace namespace. Its namespace prefix will
-- be everything before ":" (U+003E) in qualifiedName or null. Its local
-- name will be everything after ":" (U+003E) in qualifiedName or
-- qualifiedName.
--
-- If localName does not match the Name production an
-- "InvalidCharacterError" exception will be thrown.
--
-- If one of the following conditions is true a "NamespaceError" exception
-- will be thrown:
--
-- - localName does not match the QName production.
-- - Namespace prefix is not null and namespace is the empty string.
-- - Namespace prefix is "xml" and namespace is not the XML namespace.
-- - qualifiedName or namespace prefix is "xmlns" and namespace is not the
-- XMLNS namespace.
-- - namespace is the XMLNS namespace and neither qualifiedName nor
-- namespace prefix is "xmlns".
not overriding function Create_Document_Fragment
(Self : not null access Document)
return not null WebAPI.DOM.Document_Fragments.Document_Fragment_Access
is abstract
with Import => True,
Convention => JavaScript_Method,
Link_Name => "createDocumentFragment";
-- Returns a DocumentFragment node.
not overriding function Create_Text_Node
(Self : not null access Document;
Data : WebAPI.DOM_String)
return not null WebAPI.DOM.Texts.Text_Access is abstract
with Import => True,
Convention => JavaScript_Method,
Link_Name => "createTextNode";
-- Returns a Text node whose data is data.
not overriding function Create_Comment
(Self : not null access Document;
Data : WebAPI.DOM_String)
return WebAPI.DOM.Comments.Comment_Access is abstract
with Import => True,
Convention => JavaScript_Method,
Link_Name => "createComment";
-- Returns a Comment node whose data is data.
not overriding function Create_Processing_Instruction
(Self : not null access Document;
Target : WebAPI.DOM_String;
Data : WebAPI.DOM_String)
return WebAPI.DOM.Processing_Instructions.Processing_Instruction_Access
is abstract
with Import => True,
Convention => JavaScript_Method,
Link_Name => "createProcessingInstruction";
-- Returns a ProcessingInstruction node whose target is target and data is
-- data.
--
-- If target does not match the Name production an "InvalidCharacterError"
-- exception will be thrown.
--
-- If data contains "?>" an "InvalidCharacterError" exception will be
-- thrown.
not overriding function Import_Node
(Self : not null access Document;
Node : not null access WebAPI.DOM.Nodes.Node'Class;
Deep : Boolean := False)
return WebAPI.DOM.Nodes.Node_Access is abstract
with Import => True,
Convention => JavaScript_Method,
Link_Name => "importNode";
-- Returns a copy of node. If deep is true, the copy also includes the
-- node's descendants.
--
-- If node is a document throws a "NotSupportedError" exception.
not overriding function Adopt_Node
(Self : not null access Document;
Node : not null access WebAPI.DOM.Nodes.Node'Class)
return WebAPI.DOM.Nodes.Node_Access is abstract
with Import => True,
Convention => JavaScript_Method,
Link_Name => "adoptNode";
procedure Adopt_Node
(Self : not null access Document'Class;
Node : not null access WebAPI.DOM.Nodes.Node'Class)
with Import => True,
Convention => JavaScript_Method,
Link_Name => "adoptNode";
-- Moves node from another document and returns it.
--
-- If node is a document throws a "NotSupportedError" exception.
-- XXX Not binded yet:
-- [NewObject] Event createEvent(DOMString interface);
-- XXX Not binded yet:
-- [NewObject] Range createRange();
-- XXX Not binded yet:
-- // NodeFilter.SHOW_ALL = 0xFFFFFFFF
-- [NewObject] NodeIterator createNodeIterator(Node root, optional unsigned long whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null);
-- [NewObject] TreeWalker createTreeWalker(Node root, optional unsigned long whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null);
end WebAPI.DOM.Documents;
|
tum-ei-rcs/StratoX | Ada | 77,678 | ads | -- This spec has been automatically generated from STM32F40x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
with HAL;
with System;
package STM32_SVD.TIM is
pragma Preelaborate;
---------------
-- Registers --
---------------
------------------
-- CR1_Register --
------------------
subtype CR1_CMS_Field is HAL.UInt2;
subtype CR1_CKD_Field is HAL.UInt2;
-- control register 1
type CR1_Register is record
-- Counter enable
CEN : Boolean := False;
-- Update disable
UDIS : Boolean := False;
-- Update request source
URS : Boolean := False;
-- One-pulse mode
OPM : Boolean := False;
-- Direction
DIR : Boolean := False;
-- Center-aligned mode selection
CMS : CR1_CMS_Field := 16#0#;
-- Auto-reload preload enable
ARPE : Boolean := False;
-- Clock division
CKD : CR1_CKD_Field := 16#0#;
-- unspecified
Reserved_10_31 : HAL.UInt22 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CR1_Register use record
CEN at 0 range 0 .. 0;
UDIS at 0 range 1 .. 1;
URS at 0 range 2 .. 2;
OPM at 0 range 3 .. 3;
DIR at 0 range 4 .. 4;
CMS at 0 range 5 .. 6;
ARPE at 0 range 7 .. 7;
CKD at 0 range 8 .. 9;
Reserved_10_31 at 0 range 10 .. 31;
end record;
------------------
-- CR2_Register --
------------------
subtype CR2_MMS_Field is HAL.UInt3;
-- control register 2
type CR2_Register is record
-- Capture/compare preloaded control
CCPC : Boolean := False;
-- unspecified
Reserved_1_1 : HAL.Bit := 16#0#;
-- Capture/compare control update selection
CCUS : Boolean := False;
-- Capture/compare DMA selection
CCDS : Boolean := False;
-- Master mode selection
MMS : CR2_MMS_Field := 16#0#;
-- TI1 selection
TI1S : Boolean := False;
-- Output Idle state 1
OIS1 : Boolean := False;
-- Output Idle state 1
OIS1N : Boolean := False;
-- Output Idle state 2
OIS2 : Boolean := False;
-- Output Idle state 2
OIS2N : Boolean := False;
-- Output Idle state 3
OIS3 : Boolean := False;
-- Output Idle state 3
OIS3N : Boolean := False;
-- Output Idle state 4
OIS4 : Boolean := False;
-- unspecified
Reserved_15_31 : HAL.UInt17 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CR2_Register use record
CCPC at 0 range 0 .. 0;
Reserved_1_1 at 0 range 1 .. 1;
CCUS at 0 range 2 .. 2;
CCDS at 0 range 3 .. 3;
MMS at 0 range 4 .. 6;
TI1S at 0 range 7 .. 7;
OIS1 at 0 range 8 .. 8;
OIS1N at 0 range 9 .. 9;
OIS2 at 0 range 10 .. 10;
OIS2N at 0 range 11 .. 11;
OIS3 at 0 range 12 .. 12;
OIS3N at 0 range 13 .. 13;
OIS4 at 0 range 14 .. 14;
Reserved_15_31 at 0 range 15 .. 31;
end record;
-------------------
-- SMCR_Register --
-------------------
subtype SMCR_SMS_Field is HAL.UInt3;
subtype SMCR_TS_Field is HAL.UInt3;
subtype SMCR_ETF_Field is HAL.UInt4;
subtype SMCR_ETPS_Field is HAL.UInt2;
-- slave mode control register
type SMCR_Register is record
-- Slave mode selection
SMS : SMCR_SMS_Field := 16#0#;
-- unspecified
Reserved_3_3 : HAL.Bit := 16#0#;
-- Trigger selection
TS : SMCR_TS_Field := 16#0#;
-- Master/Slave mode
MSM : Boolean := False;
-- External trigger filter
ETF : SMCR_ETF_Field := 16#0#;
-- External trigger prescaler
ETPS : SMCR_ETPS_Field := 16#0#;
-- External clock enable
ECE : Boolean := False;
-- External trigger polarity
ETP : Boolean := False;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for SMCR_Register use record
SMS at 0 range 0 .. 2;
Reserved_3_3 at 0 range 3 .. 3;
TS at 0 range 4 .. 6;
MSM at 0 range 7 .. 7;
ETF at 0 range 8 .. 11;
ETPS at 0 range 12 .. 13;
ECE at 0 range 14 .. 14;
ETP at 0 range 15 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-------------------
-- DIER_Register --
-------------------
-- DMA/Interrupt enable register
type DIER_Register is record
-- Update interrupt enable
UIE : Boolean := False;
-- Capture/Compare 1 interrupt enable
CC1IE : Boolean := False;
-- Capture/Compare 2 interrupt enable
CC2IE : Boolean := False;
-- Capture/Compare 3 interrupt enable
CC3IE : Boolean := False;
-- Capture/Compare 4 interrupt enable
CC4IE : Boolean := False;
-- COM interrupt enable
COMIE : Boolean := False;
-- Trigger interrupt enable
TIE : Boolean := False;
-- Break interrupt enable
BIE : Boolean := False;
-- Update DMA request enable
UDE : Boolean := False;
-- Capture/Compare 1 DMA request enable
CC1DE : Boolean := False;
-- Capture/Compare 2 DMA request enable
CC2DE : Boolean := False;
-- Capture/Compare 3 DMA request enable
CC3DE : Boolean := False;
-- Capture/Compare 4 DMA request enable
CC4DE : Boolean := False;
-- COM DMA request enable
COMDE : Boolean := False;
-- Trigger DMA request enable
TDE : Boolean := False;
-- unspecified
Reserved_15_31 : HAL.UInt17 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for DIER_Register use record
UIE at 0 range 0 .. 0;
CC1IE at 0 range 1 .. 1;
CC2IE at 0 range 2 .. 2;
CC3IE at 0 range 3 .. 3;
CC4IE at 0 range 4 .. 4;
COMIE at 0 range 5 .. 5;
TIE at 0 range 6 .. 6;
BIE at 0 range 7 .. 7;
UDE at 0 range 8 .. 8;
CC1DE at 0 range 9 .. 9;
CC2DE at 0 range 10 .. 10;
CC3DE at 0 range 11 .. 11;
CC4DE at 0 range 12 .. 12;
COMDE at 0 range 13 .. 13;
TDE at 0 range 14 .. 14;
Reserved_15_31 at 0 range 15 .. 31;
end record;
-----------------
-- SR_Register --
-----------------
-- status register
type SR_Register is record
-- Update interrupt flag
UIF : Boolean := False;
-- Capture/compare 1 interrupt flag
CC1IF : Boolean := False;
-- Capture/Compare 2 interrupt flag
CC2IF : Boolean := False;
-- Capture/Compare 3 interrupt flag
CC3IF : Boolean := False;
-- Capture/Compare 4 interrupt flag
CC4IF : Boolean := False;
-- COM interrupt flag
COMIF : Boolean := False;
-- Trigger interrupt flag
TIF : Boolean := False;
-- Break interrupt flag
BIF : Boolean := False;
-- unspecified
Reserved_8_8 : HAL.Bit := 16#0#;
-- Capture/Compare 1 overcapture flag
CC1OF : Boolean := False;
-- Capture/compare 2 overcapture flag
CC2OF : Boolean := False;
-- Capture/Compare 3 overcapture flag
CC3OF : Boolean := False;
-- Capture/Compare 4 overcapture flag
CC4OF : Boolean := False;
-- unspecified
Reserved_13_31 : HAL.UInt19 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for SR_Register use record
UIF at 0 range 0 .. 0;
CC1IF at 0 range 1 .. 1;
CC2IF at 0 range 2 .. 2;
CC3IF at 0 range 3 .. 3;
CC4IF at 0 range 4 .. 4;
COMIF at 0 range 5 .. 5;
TIF at 0 range 6 .. 6;
BIF at 0 range 7 .. 7;
Reserved_8_8 at 0 range 8 .. 8;
CC1OF at 0 range 9 .. 9;
CC2OF at 0 range 10 .. 10;
CC3OF at 0 range 11 .. 11;
CC4OF at 0 range 12 .. 12;
Reserved_13_31 at 0 range 13 .. 31;
end record;
------------------
-- EGR_Register --
------------------
-- event generation register
type EGR_Register is record
-- Write-only. Update generation
UG : Boolean := False;
-- Write-only. Capture/compare 1 generation
CC1G : Boolean := False;
-- Write-only. Capture/compare 2 generation
CC2G : Boolean := False;
-- Write-only. Capture/compare 3 generation
CC3G : Boolean := False;
-- Write-only. Capture/compare 4 generation
CC4G : Boolean := False;
-- Write-only. Capture/Compare control update generation
COMG : Boolean := False;
-- Write-only. Trigger generation
TG : Boolean := False;
-- Write-only. Break generation
BG : Boolean := False;
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for EGR_Register use record
UG at 0 range 0 .. 0;
CC1G at 0 range 1 .. 1;
CC2G at 0 range 2 .. 2;
CC3G at 0 range 3 .. 3;
CC4G at 0 range 4 .. 4;
COMG at 0 range 5 .. 5;
TG at 0 range 6 .. 6;
BG at 0 range 7 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
---------------------------
-- CCMR1_Output_Register --
---------------------------
subtype CCMR1_Output_CC1S_Field is HAL.UInt2;
subtype CCMR1_Output_OC1M_Field is HAL.UInt3;
subtype CCMR1_Output_CC2S_Field is HAL.UInt2;
subtype CCMR1_Output_OC2M_Field is HAL.UInt3;
-- capture/compare mode register 1 (output mode)
type CCMR1_Output_Register is record
-- Capture/Compare 1 selection
CC1S : CCMR1_Output_CC1S_Field := 16#0#;
-- Output Compare 1 fast enable
OC1FE : Boolean := False;
-- Output Compare 1 preload enable
OC1PE : Boolean := False;
-- Output Compare 1 mode
OC1M : CCMR1_Output_OC1M_Field := 16#0#;
-- Output Compare 1 clear enable
OC1CE : Boolean := False;
-- Capture/Compare 2 selection
CC2S : CCMR1_Output_CC2S_Field := 16#0#;
-- Output Compare 2 fast enable
OC2FE : Boolean := False;
-- Output Compare 2 preload enable
OC2PE : Boolean := False;
-- Output Compare 2 mode
OC2M : CCMR1_Output_OC2M_Field := 16#0#;
-- Output Compare 2 clear enable
OC2CE : Boolean := False;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCMR1_Output_Register use record
CC1S at 0 range 0 .. 1;
OC1FE at 0 range 2 .. 2;
OC1PE at 0 range 3 .. 3;
OC1M at 0 range 4 .. 6;
OC1CE at 0 range 7 .. 7;
CC2S at 0 range 8 .. 9;
OC2FE at 0 range 10 .. 10;
OC2PE at 0 range 11 .. 11;
OC2M at 0 range 12 .. 14;
OC2CE at 0 range 15 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
--------------------------
-- CCMR1_Input_Register --
--------------------------
subtype CCMR1_Input_CC1S_Field is HAL.UInt2;
subtype CCMR1_Input_ICPCS_Field is HAL.UInt2;
subtype CCMR1_Input_IC1F_Field is HAL.UInt4;
subtype CCMR1_Input_CC2S_Field is HAL.UInt2;
subtype CCMR1_Input_IC2PCS_Field is HAL.UInt2;
subtype CCMR1_Input_IC2F_Field is HAL.UInt4;
-- capture/compare mode register 1 (input mode)
type CCMR1_Input_Register is record
-- Capture/Compare 1 selection
CC1S : CCMR1_Input_CC1S_Field := 16#0#;
-- Input capture 1 prescaler
ICPCS : CCMR1_Input_ICPCS_Field := 16#0#;
-- Input capture 1 filter
IC1F : CCMR1_Input_IC1F_Field := 16#0#;
-- Capture/Compare 2 selection
CC2S : CCMR1_Input_CC2S_Field := 16#0#;
-- Input capture 2 prescaler
IC2PCS : CCMR1_Input_IC2PCS_Field := 16#0#;
-- Input capture 2 filter
IC2F : CCMR1_Input_IC2F_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCMR1_Input_Register use record
CC1S at 0 range 0 .. 1;
ICPCS at 0 range 2 .. 3;
IC1F at 0 range 4 .. 7;
CC2S at 0 range 8 .. 9;
IC2PCS at 0 range 10 .. 11;
IC2F at 0 range 12 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
---------------------------
-- CCMR2_Output_Register --
---------------------------
subtype CCMR2_Output_CC3S_Field is HAL.UInt2;
subtype CCMR2_Output_OC3M_Field is HAL.UInt3;
subtype CCMR2_Output_CC4S_Field is HAL.UInt2;
subtype CCMR2_Output_OC4M_Field is HAL.UInt3;
-- capture/compare mode register 2 (output mode)
type CCMR2_Output_Register is record
-- Capture/Compare 3 selection
CC3S : CCMR2_Output_CC3S_Field := 16#0#;
-- Output compare 3 fast enable
OC3FE : Boolean := False;
-- Output compare 3 preload enable
OC3PE : Boolean := False;
-- Output compare 3 mode
OC3M : CCMR2_Output_OC3M_Field := 16#0#;
-- Output compare 3 clear enable
OC3CE : Boolean := False;
-- Capture/Compare 4 selection
CC4S : CCMR2_Output_CC4S_Field := 16#0#;
-- Output compare 4 fast enable
OC4FE : Boolean := False;
-- Output compare 4 preload enable
OC4PE : Boolean := False;
-- Output compare 4 mode
OC4M : CCMR2_Output_OC4M_Field := 16#0#;
-- Output compare 4 clear enable
OC4CE : Boolean := False;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCMR2_Output_Register use record
CC3S at 0 range 0 .. 1;
OC3FE at 0 range 2 .. 2;
OC3PE at 0 range 3 .. 3;
OC3M at 0 range 4 .. 6;
OC3CE at 0 range 7 .. 7;
CC4S at 0 range 8 .. 9;
OC4FE at 0 range 10 .. 10;
OC4PE at 0 range 11 .. 11;
OC4M at 0 range 12 .. 14;
OC4CE at 0 range 15 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
--------------------------
-- CCMR2_Input_Register --
--------------------------
subtype CCMR2_Input_CC3S_Field is HAL.UInt2;
subtype CCMR2_Input_IC3PSC_Field is HAL.UInt2;
subtype CCMR2_Input_IC3F_Field is HAL.UInt4;
subtype CCMR2_Input_CC4S_Field is HAL.UInt2;
subtype CCMR2_Input_IC4PSC_Field is HAL.UInt2;
subtype CCMR2_Input_IC4F_Field is HAL.UInt4;
-- capture/compare mode register 2 (input mode)
type CCMR2_Input_Register is record
-- Capture/compare 3 selection
CC3S : CCMR2_Input_CC3S_Field := 16#0#;
-- Input capture 3 prescaler
IC3PSC : CCMR2_Input_IC3PSC_Field := 16#0#;
-- Input capture 3 filter
IC3F : CCMR2_Input_IC3F_Field := 16#0#;
-- Capture/Compare 4 selection
CC4S : CCMR2_Input_CC4S_Field := 16#0#;
-- Input capture 4 prescaler
IC4PSC : CCMR2_Input_IC4PSC_Field := 16#0#;
-- Input capture 4 filter
IC4F : CCMR2_Input_IC4F_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCMR2_Input_Register use record
CC3S at 0 range 0 .. 1;
IC3PSC at 0 range 2 .. 3;
IC3F at 0 range 4 .. 7;
CC4S at 0 range 8 .. 9;
IC4PSC at 0 range 10 .. 11;
IC4F at 0 range 12 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-------------------
-- CCER_Register --
-------------------
-- capture/compare enable register
type CCER_Register is record
-- Capture/Compare 1 output enable
CC1E : Boolean := False;
-- Capture/Compare 1 output Polarity
CC1P : Boolean := False;
-- Capture/Compare 1 complementary output enable
CC1NE : Boolean := False;
-- Capture/Compare 1 output Polarity
CC1NP : Boolean := False;
-- Capture/Compare 2 output enable
CC2E : Boolean := False;
-- Capture/Compare 2 output Polarity
CC2P : Boolean := False;
-- Capture/Compare 2 complementary output enable
CC2NE : Boolean := False;
-- Capture/Compare 2 output Polarity
CC2NP : Boolean := False;
-- Capture/Compare 3 output enable
CC3E : Boolean := False;
-- Capture/Compare 3 output Polarity
CC3P : Boolean := False;
-- Capture/Compare 3 complementary output enable
CC3NE : Boolean := False;
-- Capture/Compare 3 output Polarity
CC3NP : Boolean := False;
-- Capture/Compare 4 output enable
CC4E : Boolean := False;
-- Capture/Compare 3 output Polarity
CC4P : Boolean := False;
-- unspecified
Reserved_14_31 : HAL.UInt18 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCER_Register use record
CC1E at 0 range 0 .. 0;
CC1P at 0 range 1 .. 1;
CC1NE at 0 range 2 .. 2;
CC1NP at 0 range 3 .. 3;
CC2E at 0 range 4 .. 4;
CC2P at 0 range 5 .. 5;
CC2NE at 0 range 6 .. 6;
CC2NP at 0 range 7 .. 7;
CC3E at 0 range 8 .. 8;
CC3P at 0 range 9 .. 9;
CC3NE at 0 range 10 .. 10;
CC3NP at 0 range 11 .. 11;
CC4E at 0 range 12 .. 12;
CC4P at 0 range 13 .. 13;
Reserved_14_31 at 0 range 14 .. 31;
end record;
------------------
-- CNT_Register --
------------------
subtype CNT_CNT_Field is HAL.Short;
-- counter
type CNT_Register is record
-- counter value
CNT : CNT_CNT_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CNT_Register use record
CNT at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
------------------
-- PSC_Register --
------------------
subtype PSC_PSC_Field is HAL.Short;
-- prescaler
type PSC_Register is record
-- Prescaler value
PSC : PSC_PSC_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for PSC_Register use record
PSC at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
------------------
-- ARR_Register --
------------------
subtype ARR_ARR_Field is HAL.Short;
-- auto-reload register
type ARR_Register is record
-- Auto-reload value
ARR : ARR_ARR_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for ARR_Register use record
ARR at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
------------------
-- RCR_Register --
------------------
subtype RCR_REP_Field is HAL.Byte;
-- repetition counter register
type RCR_Register is record
-- Repetition counter value
REP : RCR_REP_Field := 16#0#;
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for RCR_Register use record
REP at 0 range 0 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
-------------------
-- CCR1_Register --
-------------------
subtype CCR1_CCR1_Field is HAL.Short;
-- capture/compare register 1
type CCR1_Register is record
-- Capture/Compare 1 value
CCR1 : CCR1_CCR1_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCR1_Register use record
CCR1 at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-------------------
-- CCR2_Register --
-------------------
subtype CCR2_CCR2_Field is HAL.Short;
-- capture/compare register 2
type CCR2_Register is record
-- Capture/Compare 2 value
CCR2 : CCR2_CCR2_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCR2_Register use record
CCR2 at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-------------------
-- CCR3_Register --
-------------------
subtype CCR3_CCR3_Field is HAL.Short;
-- capture/compare register 3
type CCR3_Register is record
-- Capture/Compare value
CCR3 : CCR3_CCR3_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCR3_Register use record
CCR3 at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-------------------
-- CCR4_Register --
-------------------
subtype CCR4_CCR4_Field is HAL.Short;
-- capture/compare register 4
type CCR4_Register is record
-- Capture/Compare value
CCR4 : CCR4_CCR4_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCR4_Register use record
CCR4 at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-------------------
-- BDTR_Register --
-------------------
subtype BDTR_DTG_Field is HAL.Byte;
subtype BDTR_LOCK_Field is HAL.UInt2;
-- break and dead-time register
type BDTR_Register is record
-- Dead-time generator setup
DTG : BDTR_DTG_Field := 16#0#;
-- Lock configuration
LOCK : BDTR_LOCK_Field := 16#0#;
-- Off-state selection for Idle mode
OSSI : Boolean := False;
-- Off-state selection for Run mode
OSSR : Boolean := False;
-- Break enable
BKE : Boolean := False;
-- Break polarity
BKP : Boolean := False;
-- Automatic output enable
AOE : Boolean := False;
-- Main output enable
MOE : Boolean := False;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for BDTR_Register use record
DTG at 0 range 0 .. 7;
LOCK at 0 range 8 .. 9;
OSSI at 0 range 10 .. 10;
OSSR at 0 range 11 .. 11;
BKE at 0 range 12 .. 12;
BKP at 0 range 13 .. 13;
AOE at 0 range 14 .. 14;
MOE at 0 range 15 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
------------------
-- DCR_Register --
------------------
subtype DCR_DBA_Field is HAL.UInt5;
subtype DCR_DBL_Field is HAL.UInt5;
-- DMA control register
type DCR_Register is record
-- DMA base address
DBA : DCR_DBA_Field := 16#0#;
-- unspecified
Reserved_5_7 : HAL.UInt3 := 16#0#;
-- DMA burst length
DBL : DCR_DBL_Field := 16#0#;
-- unspecified
Reserved_13_31 : HAL.UInt19 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for DCR_Register use record
DBA at 0 range 0 .. 4;
Reserved_5_7 at 0 range 5 .. 7;
DBL at 0 range 8 .. 12;
Reserved_13_31 at 0 range 13 .. 31;
end record;
-------------------
-- DMAR_Register --
-------------------
subtype DMAR_DMAB_Field is HAL.Short;
-- DMA address for full transfer
type DMAR_Register is record
-- DMA register for burst accesses
DMAB : DMAR_DMAB_Field := 16#0#;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for DMAR_Register use record
DMAB at 0 range 0 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
------------------
-- CR2_Register --
------------------
-- control register 2
type CR2_Register_1 is record
-- unspecified
Reserved_0_2 : HAL.UInt3 := 16#0#;
-- Capture/compare DMA selection
CCDS : Boolean := False;
-- Master mode selection
MMS : CR2_MMS_Field := 16#0#;
-- TI1 selection
TI1S : Boolean := False;
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CR2_Register_1 use record
Reserved_0_2 at 0 range 0 .. 2;
CCDS at 0 range 3 .. 3;
MMS at 0 range 4 .. 6;
TI1S at 0 range 7 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
-------------------
-- DIER_Register --
-------------------
-- DMA/Interrupt enable register
type DIER_Register_1 is record
-- Update interrupt enable
UIE : Boolean := False;
-- Capture/Compare 1 interrupt enable
CC1IE : Boolean := False;
-- Capture/Compare 2 interrupt enable
CC2IE : Boolean := False;
-- Capture/Compare 3 interrupt enable
CC3IE : Boolean := False;
-- Capture/Compare 4 interrupt enable
CC4IE : Boolean := False;
-- unspecified
Reserved_5_5 : HAL.Bit := 16#0#;
-- Trigger interrupt enable
TIE : Boolean := False;
-- unspecified
Reserved_7_7 : HAL.Bit := 16#0#;
-- Update DMA request enable
UDE : Boolean := False;
-- Capture/Compare 1 DMA request enable
CC1DE : Boolean := False;
-- Capture/Compare 2 DMA request enable
CC2DE : Boolean := False;
-- Capture/Compare 3 DMA request enable
CC3DE : Boolean := False;
-- Capture/Compare 4 DMA request enable
CC4DE : Boolean := False;
-- unspecified
Reserved_13_13 : HAL.Bit := 16#0#;
-- Trigger DMA request enable
TDE : Boolean := False;
-- unspecified
Reserved_15_31 : HAL.UInt17 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for DIER_Register_1 use record
UIE at 0 range 0 .. 0;
CC1IE at 0 range 1 .. 1;
CC2IE at 0 range 2 .. 2;
CC3IE at 0 range 3 .. 3;
CC4IE at 0 range 4 .. 4;
Reserved_5_5 at 0 range 5 .. 5;
TIE at 0 range 6 .. 6;
Reserved_7_7 at 0 range 7 .. 7;
UDE at 0 range 8 .. 8;
CC1DE at 0 range 9 .. 9;
CC2DE at 0 range 10 .. 10;
CC3DE at 0 range 11 .. 11;
CC4DE at 0 range 12 .. 12;
Reserved_13_13 at 0 range 13 .. 13;
TDE at 0 range 14 .. 14;
Reserved_15_31 at 0 range 15 .. 31;
end record;
-----------------
-- SR_Register --
-----------------
-- status register
type SR_Register_1 is record
-- Update interrupt flag
UIF : Boolean := False;
-- Capture/compare 1 interrupt flag
CC1IF : Boolean := False;
-- Capture/Compare 2 interrupt flag
CC2IF : Boolean := False;
-- Capture/Compare 3 interrupt flag
CC3IF : Boolean := False;
-- Capture/Compare 4 interrupt flag
CC4IF : Boolean := False;
-- unspecified
Reserved_5_5 : HAL.Bit := 16#0#;
-- Trigger interrupt flag
TIF : Boolean := False;
-- unspecified
Reserved_7_8 : HAL.UInt2 := 16#0#;
-- Capture/Compare 1 overcapture flag
CC1OF : Boolean := False;
-- Capture/compare 2 overcapture flag
CC2OF : Boolean := False;
-- Capture/Compare 3 overcapture flag
CC3OF : Boolean := False;
-- Capture/Compare 4 overcapture flag
CC4OF : Boolean := False;
-- unspecified
Reserved_13_31 : HAL.UInt19 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for SR_Register_1 use record
UIF at 0 range 0 .. 0;
CC1IF at 0 range 1 .. 1;
CC2IF at 0 range 2 .. 2;
CC3IF at 0 range 3 .. 3;
CC4IF at 0 range 4 .. 4;
Reserved_5_5 at 0 range 5 .. 5;
TIF at 0 range 6 .. 6;
Reserved_7_8 at 0 range 7 .. 8;
CC1OF at 0 range 9 .. 9;
CC2OF at 0 range 10 .. 10;
CC3OF at 0 range 11 .. 11;
CC4OF at 0 range 12 .. 12;
Reserved_13_31 at 0 range 13 .. 31;
end record;
------------------
-- EGR_Register --
------------------
-- event generation register
type EGR_Register_1 is record
-- Write-only. Update generation
UG : Boolean := False;
-- Write-only. Capture/compare 1 generation
CC1G : Boolean := False;
-- Write-only. Capture/compare 2 generation
CC2G : Boolean := False;
-- Write-only. Capture/compare 3 generation
CC3G : Boolean := False;
-- Write-only. Capture/compare 4 generation
CC4G : Boolean := False;
-- unspecified
Reserved_5_5 : HAL.Bit := 16#0#;
-- Write-only. Trigger generation
TG : Boolean := False;
-- unspecified
Reserved_7_31 : HAL.UInt25 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for EGR_Register_1 use record
UG at 0 range 0 .. 0;
CC1G at 0 range 1 .. 1;
CC2G at 0 range 2 .. 2;
CC3G at 0 range 3 .. 3;
CC4G at 0 range 4 .. 4;
Reserved_5_5 at 0 range 5 .. 5;
TG at 0 range 6 .. 6;
Reserved_7_31 at 0 range 7 .. 31;
end record;
---------------------------
-- CCMR2_Output_Register --
---------------------------
-- capture/compare mode register 2 (output mode)
type CCMR2_Output_Register_1 is record
-- CC3S
CC3S : CCMR2_Output_CC3S_Field := 16#0#;
-- OC3FE
OC3FE : Boolean := False;
-- OC3PE
OC3PE : Boolean := False;
-- OC3M
OC3M : CCMR2_Output_OC3M_Field := 16#0#;
-- OC3CE
OC3CE : Boolean := False;
-- CC4S
CC4S : CCMR2_Output_CC4S_Field := 16#0#;
-- OC4FE
OC4FE : Boolean := False;
-- OC4PE
OC4PE : Boolean := False;
-- OC4M
OC4M : CCMR2_Output_OC4M_Field := 16#0#;
-- O24CE
O24CE : Boolean := False;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCMR2_Output_Register_1 use record
CC3S at 0 range 0 .. 1;
OC3FE at 0 range 2 .. 2;
OC3PE at 0 range 3 .. 3;
OC3M at 0 range 4 .. 6;
OC3CE at 0 range 7 .. 7;
CC4S at 0 range 8 .. 9;
OC4FE at 0 range 10 .. 10;
OC4PE at 0 range 11 .. 11;
OC4M at 0 range 12 .. 14;
O24CE at 0 range 15 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
-------------------
-- CCER_Register --
-------------------
-- capture/compare enable register
type CCER_Register_1 is record
-- Capture/Compare 1 output enable
CC1E : Boolean := False;
-- Capture/Compare 1 output Polarity
CC1P : Boolean := False;
-- unspecified
Reserved_2_2 : HAL.Bit := 16#0#;
-- Capture/Compare 1 output Polarity
CC1NP : Boolean := False;
-- Capture/Compare 2 output enable
CC2E : Boolean := False;
-- Capture/Compare 2 output Polarity
CC2P : Boolean := False;
-- unspecified
Reserved_6_6 : HAL.Bit := 16#0#;
-- Capture/Compare 2 output Polarity
CC2NP : Boolean := False;
-- Capture/Compare 3 output enable
CC3E : Boolean := False;
-- Capture/Compare 3 output Polarity
CC3P : Boolean := False;
-- unspecified
Reserved_10_10 : HAL.Bit := 16#0#;
-- Capture/Compare 3 output Polarity
CC3NP : Boolean := False;
-- Capture/Compare 4 output enable
CC4E : Boolean := False;
-- Capture/Compare 3 output Polarity
CC4P : Boolean := False;
-- unspecified
Reserved_14_14 : HAL.Bit := 16#0#;
-- Capture/Compare 4 output Polarity
CC4NP : Boolean := False;
-- unspecified
Reserved_16_31 : HAL.Short := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCER_Register_1 use record
CC1E at 0 range 0 .. 0;
CC1P at 0 range 1 .. 1;
Reserved_2_2 at 0 range 2 .. 2;
CC1NP at 0 range 3 .. 3;
CC2E at 0 range 4 .. 4;
CC2P at 0 range 5 .. 5;
Reserved_6_6 at 0 range 6 .. 6;
CC2NP at 0 range 7 .. 7;
CC3E at 0 range 8 .. 8;
CC3P at 0 range 9 .. 9;
Reserved_10_10 at 0 range 10 .. 10;
CC3NP at 0 range 11 .. 11;
CC4E at 0 range 12 .. 12;
CC4P at 0 range 13 .. 13;
Reserved_14_14 at 0 range 14 .. 14;
CC4NP at 0 range 15 .. 15;
Reserved_16_31 at 0 range 16 .. 31;
end record;
------------------
-- CNT_Register --
------------------
subtype CNT_CNT_L_Field is HAL.Short;
subtype CNT_CNT_H_Field is HAL.Short;
-- counter
type CNT_Register_1 is record
-- Low counter value
CNT_L : CNT_CNT_L_Field := 16#0#;
-- High counter value
CNT_H : CNT_CNT_H_Field := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CNT_Register_1 use record
CNT_L at 0 range 0 .. 15;
CNT_H at 0 range 16 .. 31;
end record;
------------------
-- ARR_Register --
------------------
subtype ARR_ARR_L_Field is HAL.Short;
subtype ARR_ARR_H_Field is HAL.Short;
-- auto-reload register
type ARR_Register_1 is record
-- Low Auto-reload value
ARR_L : ARR_ARR_L_Field := 16#0#;
-- High Auto-reload value
ARR_H : ARR_ARR_H_Field := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for ARR_Register_1 use record
ARR_L at 0 range 0 .. 15;
ARR_H at 0 range 16 .. 31;
end record;
-------------------
-- CCR1_Register --
-------------------
subtype CCR1_CCR1_L_Field is HAL.Short;
subtype CCR1_CCR1_H_Field is HAL.Short;
-- capture/compare register 1
type CCR1_Register_1 is record
-- Low Capture/Compare 1 value
CCR1_L : CCR1_CCR1_L_Field := 16#0#;
-- High Capture/Compare 1 value
CCR1_H : CCR1_CCR1_H_Field := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCR1_Register_1 use record
CCR1_L at 0 range 0 .. 15;
CCR1_H at 0 range 16 .. 31;
end record;
-------------------
-- CCR2_Register --
-------------------
subtype CCR2_CCR2_L_Field is HAL.Short;
subtype CCR2_CCR2_H_Field is HAL.Short;
-- capture/compare register 2
type CCR2_Register_1 is record
-- Low Capture/Compare 2 value
CCR2_L : CCR2_CCR2_L_Field := 16#0#;
-- High Capture/Compare 2 value
CCR2_H : CCR2_CCR2_H_Field := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCR2_Register_1 use record
CCR2_L at 0 range 0 .. 15;
CCR2_H at 0 range 16 .. 31;
end record;
-------------------
-- CCR3_Register --
-------------------
subtype CCR3_CCR3_L_Field is HAL.Short;
subtype CCR3_CCR3_H_Field is HAL.Short;
-- capture/compare register 3
type CCR3_Register_1 is record
-- Low Capture/Compare value
CCR3_L : CCR3_CCR3_L_Field := 16#0#;
-- High Capture/Compare value
CCR3_H : CCR3_CCR3_H_Field := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCR3_Register_1 use record
CCR3_L at 0 range 0 .. 15;
CCR3_H at 0 range 16 .. 31;
end record;
-------------------
-- CCR4_Register --
-------------------
subtype CCR4_CCR4_L_Field is HAL.Short;
subtype CCR4_CCR4_H_Field is HAL.Short;
-- capture/compare register 4
type CCR4_Register_1 is record
-- Low Capture/Compare value
CCR4_L : CCR4_CCR4_L_Field := 16#0#;
-- High Capture/Compare value
CCR4_H : CCR4_CCR4_H_Field := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCR4_Register_1 use record
CCR4_L at 0 range 0 .. 15;
CCR4_H at 0 range 16 .. 31;
end record;
-----------------
-- OR_Register --
-----------------
subtype OR_ITR1_RMP_Field is HAL.UInt2;
-- TIM5 option register
type OR_Register is record
-- unspecified
Reserved_0_9 : HAL.UInt10 := 16#0#;
-- Timer Input 4 remap
ITR1_RMP : OR_ITR1_RMP_Field := 16#0#;
-- unspecified
Reserved_12_31 : HAL.UInt20 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for OR_Register use record
Reserved_0_9 at 0 range 0 .. 9;
ITR1_RMP at 0 range 10 .. 11;
Reserved_12_31 at 0 range 12 .. 31;
end record;
-----------------
-- OR_Register --
-----------------
subtype OR_IT4_RMP_Field is HAL.UInt2;
-- TIM5 option register
type OR_Register_1 is record
-- unspecified
Reserved_0_5 : HAL.UInt6 := 16#0#;
-- Timer Input 4 remap
IT4_RMP : OR_IT4_RMP_Field := 16#0#;
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for OR_Register_1 use record
Reserved_0_5 at 0 range 0 .. 5;
IT4_RMP at 0 range 6 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
------------------
-- CR1_Register --
------------------
-- control register 1
type CR1_Register_1 is record
-- Counter enable
CEN : Boolean := False;
-- Update disable
UDIS : Boolean := False;
-- Update request source
URS : Boolean := False;
-- One-pulse mode
OPM : Boolean := False;
-- unspecified
Reserved_4_6 : HAL.UInt3 := 16#0#;
-- Auto-reload preload enable
ARPE : Boolean := False;
-- Clock division
CKD : CR1_CKD_Field := 16#0#;
-- unspecified
Reserved_10_31 : HAL.UInt22 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CR1_Register_1 use record
CEN at 0 range 0 .. 0;
UDIS at 0 range 1 .. 1;
URS at 0 range 2 .. 2;
OPM at 0 range 3 .. 3;
Reserved_4_6 at 0 range 4 .. 6;
ARPE at 0 range 7 .. 7;
CKD at 0 range 8 .. 9;
Reserved_10_31 at 0 range 10 .. 31;
end record;
------------------
-- CR2_Register --
------------------
-- control register 2
type CR2_Register_2 is record
-- unspecified
Reserved_0_3 : HAL.UInt4 := 16#0#;
-- Master mode selection
MMS : CR2_MMS_Field := 16#0#;
-- unspecified
Reserved_7_31 : HAL.UInt25 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CR2_Register_2 use record
Reserved_0_3 at 0 range 0 .. 3;
MMS at 0 range 4 .. 6;
Reserved_7_31 at 0 range 7 .. 31;
end record;
-------------------
-- SMCR_Register --
-------------------
-- slave mode control register
type SMCR_Register_1 is record
-- Slave mode selection
SMS : SMCR_SMS_Field := 16#0#;
-- unspecified
Reserved_3_3 : HAL.Bit := 16#0#;
-- Trigger selection
TS : SMCR_TS_Field := 16#0#;
-- Master/Slave mode
MSM : Boolean := False;
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for SMCR_Register_1 use record
SMS at 0 range 0 .. 2;
Reserved_3_3 at 0 range 3 .. 3;
TS at 0 range 4 .. 6;
MSM at 0 range 7 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
-------------------
-- DIER_Register --
-------------------
-- DMA/Interrupt enable register
type DIER_Register_2 is record
-- Update interrupt enable
UIE : Boolean := False;
-- Capture/Compare 1 interrupt enable
CC1IE : Boolean := False;
-- Capture/Compare 2 interrupt enable
CC2IE : Boolean := False;
-- unspecified
Reserved_3_5 : HAL.UInt3 := 16#0#;
-- Trigger interrupt enable
TIE : Boolean := False;
-- unspecified
Reserved_7_31 : HAL.UInt25 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for DIER_Register_2 use record
UIE at 0 range 0 .. 0;
CC1IE at 0 range 1 .. 1;
CC2IE at 0 range 2 .. 2;
Reserved_3_5 at 0 range 3 .. 5;
TIE at 0 range 6 .. 6;
Reserved_7_31 at 0 range 7 .. 31;
end record;
-----------------
-- SR_Register --
-----------------
-- status register
type SR_Register_2 is record
-- Update interrupt flag
UIF : Boolean := False;
-- Capture/compare 1 interrupt flag
CC1IF : Boolean := False;
-- Capture/Compare 2 interrupt flag
CC2IF : Boolean := False;
-- unspecified
Reserved_3_5 : HAL.UInt3 := 16#0#;
-- Trigger interrupt flag
TIF : Boolean := False;
-- unspecified
Reserved_7_8 : HAL.UInt2 := 16#0#;
-- Capture/Compare 1 overcapture flag
CC1OF : Boolean := False;
-- Capture/compare 2 overcapture flag
CC2OF : Boolean := False;
-- unspecified
Reserved_11_31 : HAL.UInt21 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for SR_Register_2 use record
UIF at 0 range 0 .. 0;
CC1IF at 0 range 1 .. 1;
CC2IF at 0 range 2 .. 2;
Reserved_3_5 at 0 range 3 .. 5;
TIF at 0 range 6 .. 6;
Reserved_7_8 at 0 range 7 .. 8;
CC1OF at 0 range 9 .. 9;
CC2OF at 0 range 10 .. 10;
Reserved_11_31 at 0 range 11 .. 31;
end record;
------------------
-- EGR_Register --
------------------
-- event generation register
type EGR_Register_2 is record
-- Write-only. Update generation
UG : Boolean := False;
-- Write-only. Capture/compare 1 generation
CC1G : Boolean := False;
-- Write-only. Capture/compare 2 generation
CC2G : Boolean := False;
-- unspecified
Reserved_3_5 : HAL.UInt3 := 16#0#;
-- Write-only. Trigger generation
TG : Boolean := False;
-- unspecified
Reserved_7_31 : HAL.UInt25 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for EGR_Register_2 use record
UG at 0 range 0 .. 0;
CC1G at 0 range 1 .. 1;
CC2G at 0 range 2 .. 2;
Reserved_3_5 at 0 range 3 .. 5;
TG at 0 range 6 .. 6;
Reserved_7_31 at 0 range 7 .. 31;
end record;
---------------------------
-- CCMR1_Output_Register --
---------------------------
-- capture/compare mode register 1 (output mode)
type CCMR1_Output_Register_1 is record
-- Capture/Compare 1 selection
CC1S : CCMR1_Output_CC1S_Field := 16#0#;
-- Output Compare 1 fast enable
OC1FE : Boolean := False;
-- Output Compare 1 preload enable
OC1PE : Boolean := False;
-- Output Compare 1 mode
OC1M : CCMR1_Output_OC1M_Field := 16#0#;
-- unspecified
Reserved_7_7 : HAL.Bit := 16#0#;
-- Capture/Compare 2 selection
CC2S : CCMR1_Output_CC2S_Field := 16#0#;
-- Output Compare 2 fast enable
OC2FE : Boolean := False;
-- Output Compare 2 preload enable
OC2PE : Boolean := False;
-- Output Compare 2 mode
OC2M : CCMR1_Output_OC2M_Field := 16#0#;
-- unspecified
Reserved_15_31 : HAL.UInt17 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCMR1_Output_Register_1 use record
CC1S at 0 range 0 .. 1;
OC1FE at 0 range 2 .. 2;
OC1PE at 0 range 3 .. 3;
OC1M at 0 range 4 .. 6;
Reserved_7_7 at 0 range 7 .. 7;
CC2S at 0 range 8 .. 9;
OC2FE at 0 range 10 .. 10;
OC2PE at 0 range 11 .. 11;
OC2M at 0 range 12 .. 14;
Reserved_15_31 at 0 range 15 .. 31;
end record;
--------------------------
-- CCMR1_Input_Register --
--------------------------
subtype CCMR1_Input_IC1F_Field_1 is HAL.UInt3;
subtype CCMR1_Input_IC2F_Field_1 is HAL.UInt3;
-- capture/compare mode register 1 (input mode)
type CCMR1_Input_Register_1 is record
-- Capture/Compare 1 selection
CC1S : CCMR1_Input_CC1S_Field := 16#0#;
-- Input capture 1 prescaler
ICPCS : CCMR1_Input_ICPCS_Field := 16#0#;
-- Input capture 1 filter
IC1F : CCMR1_Input_IC1F_Field_1 := 16#0#;
-- unspecified
Reserved_7_7 : HAL.Bit := 16#0#;
-- Capture/Compare 2 selection
CC2S : CCMR1_Input_CC2S_Field := 16#0#;
-- Input capture 2 prescaler
IC2PCS : CCMR1_Input_IC2PCS_Field := 16#0#;
-- Input capture 2 filter
IC2F : CCMR1_Input_IC2F_Field_1 := 16#0#;
-- unspecified
Reserved_15_31 : HAL.UInt17 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCMR1_Input_Register_1 use record
CC1S at 0 range 0 .. 1;
ICPCS at 0 range 2 .. 3;
IC1F at 0 range 4 .. 6;
Reserved_7_7 at 0 range 7 .. 7;
CC2S at 0 range 8 .. 9;
IC2PCS at 0 range 10 .. 11;
IC2F at 0 range 12 .. 14;
Reserved_15_31 at 0 range 15 .. 31;
end record;
-------------------
-- CCER_Register --
-------------------
-- capture/compare enable register
type CCER_Register_2 is record
-- Capture/Compare 1 output enable
CC1E : Boolean := False;
-- Capture/Compare 1 output Polarity
CC1P : Boolean := False;
-- unspecified
Reserved_2_2 : HAL.Bit := 16#0#;
-- Capture/Compare 1 output Polarity
CC1NP : Boolean := False;
-- Capture/Compare 2 output enable
CC2E : Boolean := False;
-- Capture/Compare 2 output Polarity
CC2P : Boolean := False;
-- unspecified
Reserved_6_6 : HAL.Bit := 16#0#;
-- Capture/Compare 2 output Polarity
CC2NP : Boolean := False;
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCER_Register_2 use record
CC1E at 0 range 0 .. 0;
CC1P at 0 range 1 .. 1;
Reserved_2_2 at 0 range 2 .. 2;
CC1NP at 0 range 3 .. 3;
CC2E at 0 range 4 .. 4;
CC2P at 0 range 5 .. 5;
Reserved_6_6 at 0 range 6 .. 6;
CC2NP at 0 range 7 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
------------------
-- CR1_Register --
------------------
-- control register 1
type CR1_Register_2 is record
-- Counter enable
CEN : Boolean := False;
-- Update disable
UDIS : Boolean := False;
-- Update request source
URS : Boolean := False;
-- unspecified
Reserved_3_6 : HAL.UInt4 := 16#0#;
-- Auto-reload preload enable
ARPE : Boolean := False;
-- Clock division
CKD : CR1_CKD_Field := 16#0#;
-- unspecified
Reserved_10_31 : HAL.UInt22 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CR1_Register_2 use record
CEN at 0 range 0 .. 0;
UDIS at 0 range 1 .. 1;
URS at 0 range 2 .. 2;
Reserved_3_6 at 0 range 3 .. 6;
ARPE at 0 range 7 .. 7;
CKD at 0 range 8 .. 9;
Reserved_10_31 at 0 range 10 .. 31;
end record;
-------------------
-- DIER_Register --
-------------------
-- DMA/Interrupt enable register
type DIER_Register_3 is record
-- Update interrupt enable
UIE : Boolean := False;
-- Capture/Compare 1 interrupt enable
CC1IE : Boolean := False;
-- unspecified
Reserved_2_31 : HAL.UInt30 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for DIER_Register_3 use record
UIE at 0 range 0 .. 0;
CC1IE at 0 range 1 .. 1;
Reserved_2_31 at 0 range 2 .. 31;
end record;
-----------------
-- SR_Register --
-----------------
-- status register
type SR_Register_3 is record
-- Update interrupt flag
UIF : Boolean := False;
-- Capture/compare 1 interrupt flag
CC1IF : Boolean := False;
-- unspecified
Reserved_2_8 : HAL.UInt7 := 16#0#;
-- Capture/Compare 1 overcapture flag
CC1OF : Boolean := False;
-- unspecified
Reserved_10_31 : HAL.UInt22 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for SR_Register_3 use record
UIF at 0 range 0 .. 0;
CC1IF at 0 range 1 .. 1;
Reserved_2_8 at 0 range 2 .. 8;
CC1OF at 0 range 9 .. 9;
Reserved_10_31 at 0 range 10 .. 31;
end record;
------------------
-- EGR_Register --
------------------
-- event generation register
type EGR_Register_3 is record
-- Write-only. Update generation
UG : Boolean := False;
-- Write-only. Capture/compare 1 generation
CC1G : Boolean := False;
-- unspecified
Reserved_2_31 : HAL.UInt30 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for EGR_Register_3 use record
UG at 0 range 0 .. 0;
CC1G at 0 range 1 .. 1;
Reserved_2_31 at 0 range 2 .. 31;
end record;
---------------------------
-- CCMR1_Output_Register --
---------------------------
-- capture/compare mode register 1 (output mode)
type CCMR1_Output_Register_2 is record
-- Capture/Compare 1 selection
CC1S : CCMR1_Output_CC1S_Field := 16#0#;
-- Output Compare 1 fast enable
OC1FE : Boolean := False;
-- Output Compare 1 preload enable
OC1PE : Boolean := False;
-- Output Compare 1 mode
OC1M : CCMR1_Output_OC1M_Field := 16#0#;
-- unspecified
Reserved_7_31 : HAL.UInt25 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCMR1_Output_Register_2 use record
CC1S at 0 range 0 .. 1;
OC1FE at 0 range 2 .. 2;
OC1PE at 0 range 3 .. 3;
OC1M at 0 range 4 .. 6;
Reserved_7_31 at 0 range 7 .. 31;
end record;
--------------------------
-- CCMR1_Input_Register --
--------------------------
-- capture/compare mode register 1 (input mode)
type CCMR1_Input_Register_2 is record
-- Capture/Compare 1 selection
CC1S : CCMR1_Input_CC1S_Field := 16#0#;
-- Input capture 1 prescaler
ICPCS : CCMR1_Input_ICPCS_Field := 16#0#;
-- Input capture 1 filter
IC1F : CCMR1_Input_IC1F_Field := 16#0#;
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCMR1_Input_Register_2 use record
CC1S at 0 range 0 .. 1;
ICPCS at 0 range 2 .. 3;
IC1F at 0 range 4 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
-------------------
-- CCER_Register --
-------------------
-- capture/compare enable register
type CCER_Register_3 is record
-- Capture/Compare 1 output enable
CC1E : Boolean := False;
-- Capture/Compare 1 output Polarity
CC1P : Boolean := False;
-- unspecified
Reserved_2_2 : HAL.Bit := 16#0#;
-- Capture/Compare 1 output Polarity
CC1NP : Boolean := False;
-- unspecified
Reserved_4_31 : HAL.UInt28 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CCER_Register_3 use record
CC1E at 0 range 0 .. 0;
CC1P at 0 range 1 .. 1;
Reserved_2_2 at 0 range 2 .. 2;
CC1NP at 0 range 3 .. 3;
Reserved_4_31 at 0 range 4 .. 31;
end record;
-----------------
-- OR_Register --
-----------------
subtype OR_RMP_Field is HAL.UInt2;
-- option register
type OR_Register_2 is record
-- Input 1 remapping capability
RMP : OR_RMP_Field := 16#0#;
-- unspecified
Reserved_2_31 : HAL.UInt30 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for OR_Register_2 use record
RMP at 0 range 0 .. 1;
Reserved_2_31 at 0 range 2 .. 31;
end record;
------------------
-- CR1_Register --
------------------
-- control register 1
type CR1_Register_3 is record
-- Counter enable
CEN : Boolean := False;
-- Update disable
UDIS : Boolean := False;
-- Update request source
URS : Boolean := False;
-- One-pulse mode
OPM : Boolean := False;
-- unspecified
Reserved_4_6 : HAL.UInt3 := 16#0#;
-- Auto-reload preload enable
ARPE : Boolean := False;
-- unspecified
Reserved_8_31 : HAL.UInt24 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for CR1_Register_3 use record
CEN at 0 range 0 .. 0;
UDIS at 0 range 1 .. 1;
URS at 0 range 2 .. 2;
OPM at 0 range 3 .. 3;
Reserved_4_6 at 0 range 4 .. 6;
ARPE at 0 range 7 .. 7;
Reserved_8_31 at 0 range 8 .. 31;
end record;
-------------------
-- DIER_Register --
-------------------
-- DMA/Interrupt enable register
type DIER_Register_4 is record
-- Update interrupt enable
UIE : Boolean := False;
-- unspecified
Reserved_1_7 : HAL.UInt7 := 16#0#;
-- Update DMA request enable
UDE : Boolean := False;
-- unspecified
Reserved_9_31 : HAL.UInt23 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for DIER_Register_4 use record
UIE at 0 range 0 .. 0;
Reserved_1_7 at 0 range 1 .. 7;
UDE at 0 range 8 .. 8;
Reserved_9_31 at 0 range 9 .. 31;
end record;
-----------------
-- SR_Register --
-----------------
-- status register
type SR_Register_4 is record
-- Update interrupt flag
UIF : Boolean := False;
-- unspecified
Reserved_1_31 : HAL.UInt31 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for SR_Register_4 use record
UIF at 0 range 0 .. 0;
Reserved_1_31 at 0 range 1 .. 31;
end record;
------------------
-- EGR_Register --
------------------
-- event generation register
type EGR_Register_4 is record
-- Write-only. Update generation
UG : Boolean := False;
-- unspecified
Reserved_1_31 : HAL.UInt31 := 16#0#;
end record
with Volatile_Full_Access, Size => 32,
Bit_Order => System.Low_Order_First;
for EGR_Register_4 use record
UG at 0 range 0 .. 0;
Reserved_1_31 at 0 range 1 .. 31;
end record;
type CCMR1_Discriminent is
(
Output,
Input);
type CCMR1_Aliased_Register
(Disc : CCMR1_Discriminent := Output)
is record
case Disc is
when Output =>
Output : CCMR1_Output_Register;
when Input =>
Input : CCMR1_Input_Register;
end case;
end record
with Unchecked_Union;
for CCMR1_Aliased_Register use record
Output at 0 range 0 .. 31;
Input at 0 range 0 .. 31;
end record;
type CCMR2_Discriminent is
(
Output,
Input);
type CCMR2_Aliased_Register
(Disc : CCMR2_Discriminent := Output)
is record
case Disc is
when Output =>
Output : CCMR2_Output_Register;
when Input =>
Input : CCMR2_Input_Register;
end case;
end record
with Unchecked_Union;
for CCMR2_Aliased_Register use record
Output at 0 range 0 .. 31;
Input at 0 range 0 .. 31;
end record;
type CCMR2_Aliased_Register_1
(Disc : CCMR2_Discriminent := Output)
is record
case Disc is
when Output =>
Output : CCMR2_Output_Register_1;
when Input =>
Input : CCMR2_Input_Register;
end case;
end record
with Unchecked_Union;
for CCMR2_Aliased_Register_1 use record
Output at 0 range 0 .. 31;
Input at 0 range 0 .. 31;
end record;
type CCMR1_Aliased_Register_1
(Disc : CCMR1_Discriminent := Output)
is record
case Disc is
when Output =>
Output : CCMR1_Output_Register_1;
when Input =>
Input : CCMR1_Input_Register_1;
end case;
end record
with Unchecked_Union;
for CCMR1_Aliased_Register_1 use record
Output at 0 range 0 .. 31;
Input at 0 range 0 .. 31;
end record;
type CCMR1_Aliased_Register_2
(Disc : CCMR1_Discriminent := Output)
is record
case Disc is
when Output =>
Output : CCMR1_Output_Register_2;
when Input =>
Input : CCMR1_Input_Register_2;
end case;
end record
with Unchecked_Union;
for CCMR1_Aliased_Register_2 use record
Output at 0 range 0 .. 31;
Input at 0 range 0 .. 31;
end record;
-----------------
-- Peripherals --
-----------------
-- General purpose timers
type TIM2_Peripheral is record
-- control register 1
CR1 : CR1_Register;
-- control register 2
CR2 : CR2_Register_1;
-- slave mode control register
SMCR : SMCR_Register;
-- DMA/Interrupt enable register
DIER : DIER_Register_1;
-- status register
SR : SR_Register_1;
-- event generation register
EGR : EGR_Register_1;
-- capture/compare mode register 1 (output mode)
CCMR1 : CCMR1_Aliased_Register;
-- capture/compare mode register 2 (output mode)
CCMR2 : CCMR2_Aliased_Register_1;
-- capture/compare enable register
CCER : CCER_Register_1;
-- counter
CNT : CNT_Register_1;
-- prescaler
PSC : PSC_Register;
-- auto-reload register
ARR : ARR_Register_1;
-- capture/compare register 1
CCR1 : CCR1_Register_1;
-- capture/compare register 2
CCR2 : CCR2_Register_1;
-- capture/compare register 3
CCR3 : CCR3_Register_1;
-- capture/compare register 4
CCR4 : CCR4_Register_1;
-- DMA control register
DCR : DCR_Register;
-- DMA address for full transfer
DMAR : DMAR_Register;
-- TIM5 option register
OR_k : OR_Register;
end record
with Volatile;
for TIM2_Peripheral use record
CR1 at 0 range 0 .. 31;
CR2 at 4 range 0 .. 31;
SMCR at 8 range 0 .. 31;
DIER at 12 range 0 .. 31;
SR at 16 range 0 .. 31;
EGR at 20 range 0 .. 31;
CCMR1 at 24 range 0 .. 31;
CCMR2 at 28 range 0 .. 31;
CCER at 32 range 0 .. 31;
CNT at 36 range 0 .. 31;
PSC at 40 range 0 .. 31;
ARR at 44 range 0 .. 31;
CCR1 at 52 range 0 .. 31;
CCR2 at 56 range 0 .. 31;
CCR3 at 60 range 0 .. 31;
CCR4 at 64 range 0 .. 31;
DCR at 72 range 0 .. 31;
DMAR at 76 range 0 .. 31;
OR_k at 80 range 0 .. 31;
end record;
-- General purpose timers
TIM2_Periph : aliased TIM2_Peripheral
with Import, Address => TIM2_Base;
-- General purpose timers
type TIM3_Peripheral is record
-- control register 1
CR1 : CR1_Register;
-- control register 2
CR2 : CR2_Register_1;
-- slave mode control register
SMCR : SMCR_Register;
-- DMA/Interrupt enable register
DIER : DIER_Register_1;
-- status register
SR : SR_Register_1;
-- event generation register
EGR : EGR_Register_1;
-- capture/compare mode register 1 (output mode)
CCMR1 : CCMR1_Aliased_Register;
-- capture/compare mode register 2 (output mode)
CCMR2 : CCMR2_Aliased_Register_1;
-- capture/compare enable register
CCER : CCER_Register_1;
-- counter
CNT : CNT_Register_1;
-- prescaler
PSC : PSC_Register;
-- auto-reload register
ARR : ARR_Register_1;
-- capture/compare register 1
CCR1 : CCR1_Register_1;
-- capture/compare register 2
CCR2 : CCR2_Register_1;
-- capture/compare register 3
CCR3 : CCR3_Register_1;
-- capture/compare register 4
CCR4 : CCR4_Register_1;
-- DMA control register
DCR : DCR_Register;
-- DMA address for full transfer
DMAR : DMAR_Register;
end record
with Volatile;
for TIM3_Peripheral use record
CR1 at 0 range 0 .. 31;
CR2 at 4 range 0 .. 31;
SMCR at 8 range 0 .. 31;
DIER at 12 range 0 .. 31;
SR at 16 range 0 .. 31;
EGR at 20 range 0 .. 31;
CCMR1 at 24 range 0 .. 31;
CCMR2 at 28 range 0 .. 31;
CCER at 32 range 0 .. 31;
CNT at 36 range 0 .. 31;
PSC at 40 range 0 .. 31;
ARR at 44 range 0 .. 31;
CCR1 at 52 range 0 .. 31;
CCR2 at 56 range 0 .. 31;
CCR3 at 60 range 0 .. 31;
CCR4 at 64 range 0 .. 31;
DCR at 72 range 0 .. 31;
DMAR at 76 range 0 .. 31;
end record;
-- General purpose timers
TIM3_Periph : aliased TIM3_Peripheral
with Import, Address => TIM3_Base;
-- General purpose timers
TIM4_Periph : aliased TIM3_Peripheral
with Import, Address => TIM4_Base;
-- General-purpose-timers
type TIM5_Peripheral is record
-- control register 1
CR1 : CR1_Register;
-- control register 2
CR2 : CR2_Register_1;
-- slave mode control register
SMCR : SMCR_Register;
-- DMA/Interrupt enable register
DIER : DIER_Register_1;
-- status register
SR : SR_Register_1;
-- event generation register
EGR : EGR_Register_1;
-- capture/compare mode register 1 (output mode)
CCMR1 : CCMR1_Aliased_Register;
-- capture/compare mode register 2 (output mode)
CCMR2 : CCMR2_Aliased_Register_1;
-- capture/compare enable register
CCER : CCER_Register_1;
-- counter
CNT : CNT_Register_1;
-- prescaler
PSC : PSC_Register;
-- auto-reload register
ARR : ARR_Register_1;
-- capture/compare register 1
CCR1 : CCR1_Register_1;
-- capture/compare register 2
CCR2 : CCR2_Register_1;
-- capture/compare register 3
CCR3 : CCR3_Register_1;
-- capture/compare register 4
CCR4 : CCR4_Register_1;
-- DMA control register
DCR : DCR_Register;
-- DMA address for full transfer
DMAR : DMAR_Register;
-- TIM5 option register
OR_k : OR_Register_1;
end record
with Volatile;
for TIM5_Peripheral use record
CR1 at 0 range 0 .. 31;
CR2 at 4 range 0 .. 31;
SMCR at 8 range 0 .. 31;
DIER at 12 range 0 .. 31;
SR at 16 range 0 .. 31;
EGR at 20 range 0 .. 31;
CCMR1 at 24 range 0 .. 31;
CCMR2 at 28 range 0 .. 31;
CCER at 32 range 0 .. 31;
CNT at 36 range 0 .. 31;
PSC at 40 range 0 .. 31;
ARR at 44 range 0 .. 31;
CCR1 at 52 range 0 .. 31;
CCR2 at 56 range 0 .. 31;
CCR3 at 60 range 0 .. 31;
CCR4 at 64 range 0 .. 31;
DCR at 72 range 0 .. 31;
DMAR at 76 range 0 .. 31;
OR_k at 80 range 0 .. 31;
end record;
-- General-purpose-timers
TIM5_Periph : aliased TIM5_Peripheral
with Import, Address => TIM5_Base;
-- Basic timers
type TIM6_Peripheral is record
-- control register 1
CR1 : CR1_Register_3;
-- control register 2
CR2 : CR2_Register_2;
-- DMA/Interrupt enable register
DIER : DIER_Register_4;
-- status register
SR : SR_Register_4;
-- event generation register
EGR : EGR_Register_4;
-- counter
CNT : CNT_Register;
-- prescaler
PSC : PSC_Register;
-- auto-reload register
ARR : ARR_Register;
end record
with Volatile;
for TIM6_Peripheral use record
CR1 at 0 range 0 .. 31;
CR2 at 4 range 0 .. 31;
DIER at 12 range 0 .. 31;
SR at 16 range 0 .. 31;
EGR at 20 range 0 .. 31;
CNT at 36 range 0 .. 31;
PSC at 40 range 0 .. 31;
ARR at 44 range 0 .. 31;
end record;
-- Basic timers
TIM6_Periph : aliased TIM6_Peripheral
with Import, Address => TIM6_Base;
-- Basic timers
TIM7_Periph : aliased TIM6_Peripheral
with Import, Address => TIM7_Base;
-- General purpose timers
type TIM12_Peripheral is record
-- control register 1
CR1 : CR1_Register_1;
-- control register 2
CR2 : CR2_Register_2;
-- slave mode control register
SMCR : SMCR_Register_1;
-- DMA/Interrupt enable register
DIER : DIER_Register_2;
-- status register
SR : SR_Register_2;
-- event generation register
EGR : EGR_Register_2;
-- capture/compare mode register 1 (output mode)
CCMR1 : CCMR1_Aliased_Register_1;
-- capture/compare enable register
CCER : CCER_Register_2;
-- counter
CNT : CNT_Register;
-- prescaler
PSC : PSC_Register;
-- auto-reload register
ARR : ARR_Register;
-- capture/compare register 1
CCR1 : CCR1_Register;
-- capture/compare register 2
CCR2 : CCR2_Register;
end record
with Volatile;
for TIM12_Peripheral use record
CR1 at 0 range 0 .. 31;
CR2 at 4 range 0 .. 31;
SMCR at 8 range 0 .. 31;
DIER at 12 range 0 .. 31;
SR at 16 range 0 .. 31;
EGR at 20 range 0 .. 31;
CCMR1 at 24 range 0 .. 31;
CCER at 32 range 0 .. 31;
CNT at 36 range 0 .. 31;
PSC at 40 range 0 .. 31;
ARR at 44 range 0 .. 31;
CCR1 at 52 range 0 .. 31;
CCR2 at 56 range 0 .. 31;
end record;
-- General purpose timers
TIM12_Periph : aliased TIM12_Peripheral
with Import, Address => TIM12_Base;
-- General purpose timers
TIM9_Periph : aliased TIM12_Peripheral
with Import, Address => TIM9_Base;
-- General-purpose-timers
type TIM13_Peripheral is record
-- control register 1
CR1 : CR1_Register_2;
-- DMA/Interrupt enable register
DIER : DIER_Register_3;
-- status register
SR : SR_Register_3;
-- event generation register
EGR : EGR_Register_3;
-- capture/compare mode register 1 (output mode)
CCMR1 : CCMR1_Aliased_Register_2;
-- capture/compare enable register
CCER : CCER_Register_3;
-- counter
CNT : CNT_Register;
-- prescaler
PSC : PSC_Register;
-- auto-reload register
ARR : ARR_Register;
-- capture/compare register 1
CCR1 : CCR1_Register;
end record
with Volatile;
for TIM13_Peripheral use record
CR1 at 0 range 0 .. 31;
DIER at 12 range 0 .. 31;
SR at 16 range 0 .. 31;
EGR at 20 range 0 .. 31;
CCMR1 at 24 range 0 .. 31;
CCER at 32 range 0 .. 31;
CNT at 36 range 0 .. 31;
PSC at 40 range 0 .. 31;
ARR at 44 range 0 .. 31;
CCR1 at 52 range 0 .. 31;
end record;
-- General-purpose-timers
TIM13_Periph : aliased TIM13_Peripheral
with Import, Address => TIM13_Base;
-- General-purpose-timers
TIM14_Periph : aliased TIM13_Peripheral
with Import, Address => TIM14_Base;
-- General-purpose-timers
TIM10_Periph : aliased TIM13_Peripheral
with Import, Address => TIM10_Base;
-- Advanced-timers
type TIM1_Peripheral is record
-- control register 1
CR1 : CR1_Register;
-- control register 2
CR2 : CR2_Register;
-- slave mode control register
SMCR : SMCR_Register;
-- DMA/Interrupt enable register
DIER : DIER_Register;
-- status register
SR : SR_Register;
-- event generation register
EGR : EGR_Register;
-- capture/compare mode register 1 (output mode)
CCMR1 : CCMR1_Aliased_Register;
-- capture/compare mode register 2 (output mode)
CCMR2 : CCMR2_Aliased_Register;
-- capture/compare enable register
CCER : CCER_Register;
-- counter
CNT : CNT_Register;
-- prescaler
PSC : PSC_Register;
-- auto-reload register
ARR : ARR_Register;
-- repetition counter register
RCR : RCR_Register;
-- capture/compare register 1
CCR1 : CCR1_Register;
-- capture/compare register 2
CCR2 : CCR2_Register;
-- capture/compare register 3
CCR3 : CCR3_Register;
-- capture/compare register 4
CCR4 : CCR4_Register;
-- break and dead-time register
BDTR : BDTR_Register;
-- DMA control register
DCR : DCR_Register;
-- DMA address for full transfer
DMAR : DMAR_Register;
end record
with Volatile;
for TIM1_Peripheral use record
CR1 at 0 range 0 .. 31;
CR2 at 4 range 0 .. 31;
SMCR at 8 range 0 .. 31;
DIER at 12 range 0 .. 31;
SR at 16 range 0 .. 31;
EGR at 20 range 0 .. 31;
CCMR1 at 24 range 0 .. 31;
CCMR2 at 28 range 0 .. 31;
CCER at 32 range 0 .. 31;
CNT at 36 range 0 .. 31;
PSC at 40 range 0 .. 31;
ARR at 44 range 0 .. 31;
RCR at 48 range 0 .. 31;
CCR1 at 52 range 0 .. 31;
CCR2 at 56 range 0 .. 31;
CCR3 at 60 range 0 .. 31;
CCR4 at 64 range 0 .. 31;
BDTR at 68 range 0 .. 31;
DCR at 72 range 0 .. 31;
DMAR at 76 range 0 .. 31;
end record;
-- Advanced-timers
TIM1_Periph : aliased TIM1_Peripheral
with Import, Address => TIM1_Base;
-- Advanced-timers
TIM8_Periph : aliased TIM1_Peripheral
with Import, Address => TIM8_Base;
-- General-purpose-timers
type TIM11_Peripheral is record
-- control register 1
CR1 : CR1_Register_2;
-- DMA/Interrupt enable register
DIER : DIER_Register_3;
-- status register
SR : SR_Register_3;
-- event generation register
EGR : EGR_Register_3;
-- capture/compare mode register 1 (output mode)
CCMR1 : CCMR1_Aliased_Register_2;
-- capture/compare enable register
CCER : CCER_Register_3;
-- counter
CNT : CNT_Register;
-- prescaler
PSC : PSC_Register;
-- auto-reload register
ARR : ARR_Register;
-- capture/compare register 1
CCR1 : CCR1_Register;
-- option register
OR_k : OR_Register_2;
end record
with Volatile;
for TIM11_Peripheral use record
CR1 at 0 range 0 .. 31;
DIER at 12 range 0 .. 31;
SR at 16 range 0 .. 31;
EGR at 20 range 0 .. 31;
CCMR1 at 24 range 0 .. 31;
CCER at 32 range 0 .. 31;
CNT at 36 range 0 .. 31;
PSC at 40 range 0 .. 31;
ARR at 44 range 0 .. 31;
CCR1 at 52 range 0 .. 31;
OR_k at 80 range 0 .. 31;
end record;
-- General-purpose-timers
TIM11_Periph : aliased TIM11_Peripheral
with Import, Address => TIM11_Base;
end STM32_SVD.TIM;
|
charlie5/lace | Ada | 1,138 | adb | with
ada.unchecked_Deallocation;
package body lace.Subject_and_deferred_Observer
is
package body Forge
is
function to_Subject_and_Observer (Name : in String) return Item
is
begin
return Self : Item
do
Self.Name := to_unbounded_String (Name);
end return;
end to_Subject_and_Observer;
function new_Subject_and_Observer (Name : in String) return View
is
begin
return new Item' (to_Subject_and_Observer (Name));
end new_Subject_and_Observer;
end Forge;
overriding
procedure destroy (Self : in out Item)
is
begin
Deferred.destroy (Deferred.item (Self)); -- Destroy base classes.
Subject .destroy (Subject .item (Self));
end destroy;
procedure free (Self : in out View)
is
procedure deallocate is new ada.unchecked_Deallocation (Item'Class, View);
begin
Self.destroy;
deallocate (Self);
end free;
overriding
function Name (Self : in Item) return String
is
begin
return to_String (Self.Name);
end Name;
end lace.Subject_and_deferred_Observer;
|
emacsmirror/ada-mode | Ada | 1,658 | ads | -- Abstract :
--
-- External process parser for Ada mode
--
-- Copyright (C) 2017 - 2020, 2022 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or
-- modify it under terms of the GNU General Public License as
-- published by the Free Software Foundation; either version 3, or (at
-- your option) any later version. This program is distributed in the
-- hope that it will be useful, but WITHOUT ANY WARRANTY; without even
-- the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
-- PURPOSE. See the GNU General Public License for more details. You
-- should have received a copy of the GNU General Public License
-- distributed with this program; see file COPYING. If not, write to
-- the Free Software Foundation, 51 Franklin Street, Suite 500, Boston,
-- MA 02110-1335, USA.
pragma License (GPL);
with Ada_Annex_P_Process_LALR_Main;
with Gen_Emacs_Wisi_LR_Parse;
with WisiToken.Parse.LR.McKenzie_Recover.Ada;
with Wisi.Ada;
procedure Ada_Mode_Wisi_LALR_Parse is new Gen_Emacs_Wisi_LR_Parse
(Parse_Data_Type => Wisi.Ada.Parse_Data_Type,
Language_Protocol_Version => Wisi.Ada.Language_Protocol_Version,
Name => "Ada_mode_wisi_lalr_parse",
Language_Fixes => WisiToken.Parse.LR.McKenzie_Recover.Ada.Language_Fixes'Access,
Language_Matching_Begin_Tokens => WisiToken.Parse.LR.McKenzie_Recover.Ada.Matching_Begin_Tokens'Access,
Language_String_ID_Set => WisiToken.Parse.LR.McKenzie_Recover.Ada.String_ID_Set'Access,
Create_Parser => Ada_Annex_P_Process_LALR_Main.Create_Parser);
|
zhmu/ananas | Ada | 2,707 | ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- G N A T . S E C O N D A R Y _ S T A C K _ I N F O --
-- --
-- S p e c --
-- --
-- Copyright (C) 2004-2022, AdaCore --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package provides facilities for obtaining information on secondary
-- stack usage. See System.Secondary_Stack for documentation.
with System.Secondary_Stack;
package GNAT.Secondary_Stack_Info is
function SS_Get_Max return Long_Long_Integer
renames System.Secondary_Stack.SS_Get_Max;
end GNAT.Secondary_Stack_Info;
|
persan/a-taglib | Ada | 1,086 | adb | with GNAT.Exception_Traces;
with GNAT.Traceback.Symbolic;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Command_Line;
with Ada.Directories;
procedure Taglib.Tests.Main is
procedure Test (Name : String) is
F : constant File := File_New (Name);
T : constant Tag := F.Get_Tag;
begin
Put_Line (Name);
Put_Line (" Title => " & T.Title);
Put_Line (" Artist => " & T.Artist);
Put_Line (" Album => " & T.Album);
Put_Line (" Comment => " & T.Comment);
Put_Line (" Year => " & T.Year'Img);
Put_Line (" Track => " & T.Track'Img);
end;
begin
GNAT.Exception_Traces.Trace_On (GNAT.Exception_Traces.Every_Raise);
GNAT.Exception_Traces.Set_Trace_Decorator (GNAT.Traceback.Symbolic.Symbolic_Traceback_No_Hex'Access);
for I in 1 .. Ada.Command_Line.Argument_Count loop
if Ada.Directories.Exists (Ada.Command_Line.Argument (I)) then
Test (Ada.Command_Line.Argument (I));
else
Put_Line (Ada.Command_Line.Argument (I) & " is not found");
end if;
end loop;
end taglib.Tests.Main;
|
AdaCore/Ada_Drivers_Library | Ada | 3,234 | adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- 3. Neither the name of the copyright holder nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
with HAL.Bitmap; use HAL.Bitmap;
with HAL; use HAL;
with Memory_Mapped_Bitmap; use Memory_Mapped_Bitmap;
with OpenMV.LCD_Shield;
package body OpenMV.Bitmap is
subtype Pixel_Data is UInt16_Array
(0 .. (OpenMV.LCD_Shield.Width * OpenMV.LCD_Shield.Height) - 1);
--------------
-- Allocate --
--------------
function Allocate return not null HAL.Bitmap.Any_Bitmap_Buffer is
BM : constant Any_Memory_Mapped_Bitmap_Buffer := new Memory_Mapped_Bitmap_Buffer;
Data : constant access Pixel_Data := new Pixel_Data;
begin
BM.Actual_Width := OpenMV.LCD_Shield.Width;
BM.Actual_Height := OpenMV.LCD_Shield.Height;
BM.Actual_Color_Mode := RGB_565;
BM.Currently_Swapped := False;
BM.Addr := Data.all'Address;
return Any_Bitmap_Buffer (BM);
end Allocate;
end OpenMV.Bitmap;
|
xeenta/learning-ada | Ada | 147 | adb | with Ada.Text_IO; use Ada.Text_IO;
separate (Separated)
procedure Watch_Me is
begin
Put_Line ("Better keep me separated");
end Watch_Me;
|
coopht/axmpp | Ada | 9,677 | adb | ------------------------------------------------------------------------------
-- --
-- AXMPP Project --
-- --
-- XMPP Library for Ada --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011, Alexander Basov <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Alexander Basov, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with Ada.Characters.Conversions;
with Ada.Exceptions;
with XMPP.Logger;
package body XMPP.Networks is
use XMPP.Logger;
function "+" (Item : String) return Wide_Wide_String
renames Ada.Characters.Conversions.To_Wide_Wide_String;
---------------
-- Connect --
---------------
procedure Connect
(Self : not null access Network'Class;
Host : String;
Port : Natural) is
No_Block : GNAT.Sockets.Request_Type (GNAT.Sockets.Non_Blocking_IO);
begin
Create_Socket (Self.Sock);
Self.Addr :=
Sock_Addr_Type'(Addr =>
Addresses (GNAT.Sockets.Get_Host_By_Name (Host), 1),
Port => Port_Type (Port),
Family => Family_Inet);
Set_Socket_Option (Self.Sock,
Socket_Level,
(Reuse_Address, True));
Connect_Socket (Self.Sock, Self.Addr);
Self.Channel := Stream (Self.Sock);
delay 0.2;
No_Block.Enabled := True;
-- Setting non-blocking IO
GNAT.Sockets.Control_Socket (Self.Get_Socket, No_Block);
Create_Selector (Self.Selector);
Empty (Self.RSet);
Empty (Self.WSet);
Self.Target.On_Connect;
Self.Plain_Input.Set_Socket (Self.Sock);
exception
when E : others =>
Log (+Ada.Exceptions.Exception_Information (E));
end Connect;
------------------
-- Get_Socket --
------------------
function Get_Socket (Self : not null access Network'Class)
return Socket_Type is
begin
return Self.Sock;
end Get_Socket;
----------------
-- Get_Source --
----------------
function Get_Source (Self : not null access Network)
return not null access XML.SAX.Input_Sources.SAX_Input_Source'Class is
begin
if Self.Use_TSL then
return Self.TLS_Input'Access;
else
return Self.Plain_Input'Access;
end if;
end Get_Source;
----------------
-- Initialize --
----------------
procedure Initialize is
begin
-- Initializing gnutls
GNUTLS.Global_Set_Log_Level (65537);
GNUTLS.Global_Init;
end Initialize;
------------------------
-- Is_TLS_Established --
------------------------
function Is_TLS_Established (Self : Network) return Boolean is
begin
return Self.Use_TSL;
end Is_TLS_Established;
-------------------------
-- Read_Data_Wrapper --
-------------------------
function Read_Data_Wrapper (Self : not null access Network'Class)
return Boolean is
-- for debug
X : GNAT.Sockets.Request_Type (GNAT.Sockets.N_Bytes_To_Read);
begin
delay (0.1);
-- Getting how much data available in Socket
GNAT.Sockets.Control_Socket (Self.Get_Socket, X);
if X.Size = 0 then
return False;
else
return Self.Target.Read_Data;
end if;
end Read_Data_Wrapper;
---------------
-- Recieve --
---------------
function Recieve (Self : not null access Network'Class) return Boolean is
begin
Set (Self.RSet, Self.Sock);
Log ("Waiting for data in select");
-- multiplexed i/o, like select in C
Check_Selector (Self.Selector, Self.RSet, Self.WSet, Self.Status);
case Self.Status is
when Completed =>
if Is_Set (Self.RSet, Self.Sock) then
return Self.Read_Data_Wrapper;
else
return False;
end if;
when Expired =>
return True;
when Aborted =>
return False;
end case;
-- Set (Self.RSet, Self.Sock);
-- Empty (Self.RSet);
exception
when E : others =>
Log (+Ada.Exceptions.Exception_Information (E));
return False;
end Recieve;
------------
-- Send --
------------
procedure Send
(Self : not null access Network'Class;
Data : Ada.Streams.Stream_Element_Array) is
begin
if not Self.Use_TSL then
Self.Channel.Write (Data);
else
Log ("Sendinging data via TLS");
declare
Tmp : Ada.Streams.Stream_Element_Array := Data;
E : constant GNAT.Sockets.Vector_Element :=
(Base => Tmp (Tmp'First)'Unchecked_Access,
Length => Tmp'Length);
P : GNAT.Sockets.Vector_Type (0 .. 0);
L : Ada.Streams.Stream_Element_Count := 1;
begin
P (0) := E;
GNUTLS.Record_Send (Self.TLS_Session, P, L);
end;
end if;
exception
when E : others =>
Log (+Ada.Exceptions.Exception_Information (E));
end Send;
---------------------
-- Start_Handshake --
---------------------
procedure Start_Handshake (Self : in out Network) is
begin
Log ("GNUTLS.Anon_Allocate_Client_Credentials");
GNUTLS.Certificate_Allocate_Credentials (Self.Credential);
-- GNUTLS.Anon_Allocate_Client_Credentials (Self.Cred);
-- Initialize TLS session
Log ("Init");
GNUTLS.Init (Self.TLS_Session, GNUTLS.GNUTLS_CLIENT);
-- GNUTLS.Compression_Set_Priority (Self.TLS_Session, Comp_Priority);
-- GNUTLS.Mac_Set_Priority (Self.TLS_Session, Mac_Priority);
GNUTLS.Credentials_Set (Self.TLS_Session,
GNUTLS.GNUTLS_CRD_CERTIFICATE,
Self.Credential);
GNUTLS.Set_Default_Priority (Self.TLS_Session);
-- GNUTLS.Credentials_Set (Self.TLS_Session,
-- GNUTLS.GNUTLS_CRD_ANON,
-- Self.Cred);
Log ("GNUTLS.Transport_Set_Ptr");
GNUTLS.Transport_Set_Ptr (Self.TLS_Session, Self.Get_Socket);
Log ("GNUTLS.Handshake");
-- begin
-- GNUTLS.Handshake (Self.TLS_Session);
--
-- exception
-- when others =>
-- Log (GNUTLS.IO_Direction'Image
-- (GNUTLS.Get_Direction (Self.TLS_Session)));
-- end;
-- Log ("End of GNUTLS.Handshake");
--
Self.TLS_Input.Start_Handshake (Self.Sock, Self.TLS_Session);
Self.Use_TSL := True;
end Start_Handshake;
--------------------
-- Task_Stopped --
--------------------
procedure Task_Stopped (Self : not null access Network'Class) is
begin
Close_Selector (Self.Selector);
Close_Socket (Self.Sock);
Self.Target.On_Disconnect;
end Task_Stopped;
end XMPP.Networks;
|
persan/A-gst | Ada | 5,553 | ads | pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with glib;
with glib.Values;
with System;
with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstpluginfeature_h;
with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gsttypefind_h;
with System;
limited with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstcaps_h;
with glib;
-- limited with GStreamer.GST_Low_Level.glib_2_0_glib_glist_h;
package GStreamer.GST_Low_Level.gstreamer_0_10_gst_gsttypefindfactory_h is
-- unsupported macro: GST_TYPE_TYPE_FIND_FACTORY (gst_type_find_factory_get_type())
-- arg-macro: function GST_TYPE_FIND_FACTORY (obj)
-- return G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_TYPE_FIND_FACTORY, GstTypeFindFactory);
-- arg-macro: function GST_IS_TYPE_FIND_FACTORY (obj)
-- return G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_TYPE_FIND_FACTORY);
-- arg-macro: function GST_TYPE_FIND_FACTORY_CLASS (klass)
-- return G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_TYPE_FIND_FACTORY, GstTypeFindFactoryClass);
-- arg-macro: function GST_IS_TYPE_FIND_FACTORY_CLASS (klass)
-- return G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_TYPE_FIND_FACTORY);
-- arg-macro: function GST_TYPE_FIND_FACTORY_GET_CLASS (obj)
-- return G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_TYPE_FIND_FACTORY, GstTypeFindFactoryClass);
-- GStreamer
-- * Copyright (C) 2003 Benjamin Otte <[email protected]>
-- *
-- * gsttypefindfactory.h: typefinding subsystem
-- *
-- * This library is free software; you can redistribute it and/or
-- * modify it under the terms of the GNU Library General Public
-- * License as published by the Free Software Foundation; either
-- * version 2 of the License, or (at your option) any later version.
-- *
-- * This library is distributed in the hope that it will be useful,
-- * but WITHOUT ANY WARRANTY; without even the implied warranty of
-- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-- * Library General Public License for more details.
-- *
-- * You should have received a copy of the GNU Library General Public
-- * License along with this library; if not, write to the
-- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-- * Boston, MA 02111-1307, USA.
--
type GstTypeFindFactory;
type u_GstTypeFindFactory_u_gst_reserved_array is array (0 .. 3) of System.Address;
--subtype GstTypeFindFactory is u_GstTypeFindFactory; -- gst/gsttypefindfactory.h:39
type GstTypeFindFactoryClass;
type u_GstTypeFindFactoryClass_u_gst_reserved_array is array (0 .. 3) of System.Address;
--subtype GstTypeFindFactoryClass is u_GstTypeFindFactoryClass; -- gst/gsttypefindfactory.h:40
--*
-- * GstTypeFindFactory:
-- *
-- * Object that stores information about a typefind function.
--
type GstTypeFindFactory is record
feature : aliased GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstpluginfeature_h.GstPluginFeature; -- gst/gsttypefindfactory.h:48
c_function : GStreamer.GST_Low_Level.gstreamer_0_10_gst_gsttypefind_h.GstTypeFindFunction; -- gst/gsttypefindfactory.h:51
extensions : System.Address; -- gst/gsttypefindfactory.h:52
caps : access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstcaps_h.GstCaps; -- gst/gsttypefindfactory.h:53
user_data : System.Address; -- gst/gsttypefindfactory.h:55
user_data_notify : GStreamer.GST_Low_Level.glib_2_0_glib_gtypes_h.GDestroyNotify; -- gst/gsttypefindfactory.h:56
u_gst_reserved : u_GstTypeFindFactory_u_gst_reserved_array; -- gst/gsttypefindfactory.h:58
end record;
pragma Convention (C_Pass_By_Copy, GstTypeFindFactory); -- gst/gsttypefindfactory.h:47
-- <private>
-- FIXME: not yet saved in registry
type GstTypeFindFactoryClass is record
parent : aliased GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstpluginfeature_h.GstPluginFeatureClass; -- gst/gsttypefindfactory.h:62
u_gst_reserved : u_GstTypeFindFactoryClass_u_gst_reserved_array; -- gst/gsttypefindfactory.h:65
end record;
pragma Convention (C_Pass_By_Copy, GstTypeFindFactoryClass); -- gst/gsttypefindfactory.h:61
-- <private>
-- typefinding interface
function gst_type_find_factory_get_type return GLIB.GType; -- gst/gsttypefindfactory.h:70
pragma Import (C, gst_type_find_factory_get_type, "gst_type_find_factory_get_type");
function gst_type_find_factory_get_list return access GStreamer.GST_Low_Level.glib_2_0_glib_glist_h.GList; -- gst/gsttypefindfactory.h:72
pragma Import (C, gst_type_find_factory_get_list, "gst_type_find_factory_get_list");
function gst_type_find_factory_get_extensions (factory : access GstTypeFindFactory) return System.Address; -- gst/gsttypefindfactory.h:74
pragma Import (C, gst_type_find_factory_get_extensions, "gst_type_find_factory_get_extensions");
function gst_type_find_factory_get_caps (factory : access GstTypeFindFactory) return access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstcaps_h.GstCaps; -- gst/gsttypefindfactory.h:75
pragma Import (C, gst_type_find_factory_get_caps, "gst_type_find_factory_get_caps");
procedure gst_type_find_factory_call_function (factory : access GstTypeFindFactory; find : access GStreamer.GST_Low_Level.gstreamer_0_10_gst_gsttypefind_h.GstTypeFind); -- gst/gsttypefindfactory.h:76
pragma Import (C, gst_type_find_factory_call_function, "gst_type_find_factory_call_function");
end GStreamer.GST_Low_Level.gstreamer_0_10_gst_gsttypefindfactory_h;
|
AdaCore/libadalang | Ada | 175 | adb | procedure Test is
package Pkg is
type Foo is null record;
end Pkg;
use Pkg;
procedure Bar (X: Foo) is null;
pragma Test_Block;
begin
null;
end Test;
|
reznikmm/matreshka | Ada | 6,960 | adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Open Document Toolkit --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2014, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with Matreshka.DOM_Documents;
with Matreshka.ODF_String_Constants;
with ODF.DOM.Iterators;
with ODF.DOM.Visitors;
package body Matreshka.ODF_Text.Initial_Creator_Elements is
------------
-- Create --
------------
overriding function Create
(Parameters : not null access Matreshka.DOM_Elements.Element_L2_Parameters)
return Text_Initial_Creator_Element_Node is
begin
return Self : Text_Initial_Creator_Element_Node do
Matreshka.ODF_Text.Constructors.Initialize
(Self'Unchecked_Access,
Parameters.Document,
Matreshka.ODF_String_Constants.Text_Prefix);
end return;
end Create;
----------------
-- Enter_Node --
----------------
overriding procedure Enter_Node
(Self : not null access Text_Initial_Creator_Element_Node;
Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class;
Control : in out XML.DOM.Visitors.Traverse_Control) is
begin
if Visitor in ODF.DOM.Visitors.Abstract_ODF_Visitor'Class then
ODF.DOM.Visitors.Abstract_ODF_Visitor'Class
(Visitor).Enter_Text_Initial_Creator
(ODF.DOM.Text_Initial_Creator_Elements.ODF_Text_Initial_Creator_Access
(Self),
Control);
else
Matreshka.DOM_Elements.Abstract_Element_Node
(Self.all).Enter_Node (Visitor, Control);
end if;
end Enter_Node;
--------------------
-- Get_Local_Name --
--------------------
overriding function Get_Local_Name
(Self : not null access constant Text_Initial_Creator_Element_Node)
return League.Strings.Universal_String
is
pragma Unreferenced (Self);
begin
return Matreshka.ODF_String_Constants.Initial_Creator_Element;
end Get_Local_Name;
----------------
-- Leave_Node --
----------------
overriding procedure Leave_Node
(Self : not null access Text_Initial_Creator_Element_Node;
Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class;
Control : in out XML.DOM.Visitors.Traverse_Control) is
begin
if Visitor in ODF.DOM.Visitors.Abstract_ODF_Visitor'Class then
ODF.DOM.Visitors.Abstract_ODF_Visitor'Class
(Visitor).Leave_Text_Initial_Creator
(ODF.DOM.Text_Initial_Creator_Elements.ODF_Text_Initial_Creator_Access
(Self),
Control);
else
Matreshka.DOM_Elements.Abstract_Element_Node
(Self.all).Leave_Node (Visitor, Control);
end if;
end Leave_Node;
----------------
-- Visit_Node --
----------------
overriding procedure Visit_Node
(Self : not null access Text_Initial_Creator_Element_Node;
Iterator : in out XML.DOM.Visitors.Abstract_Iterator'Class;
Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class;
Control : in out XML.DOM.Visitors.Traverse_Control) is
begin
if Iterator in ODF.DOM.Iterators.Abstract_ODF_Iterator'Class then
ODF.DOM.Iterators.Abstract_ODF_Iterator'Class
(Iterator).Visit_Text_Initial_Creator
(Visitor,
ODF.DOM.Text_Initial_Creator_Elements.ODF_Text_Initial_Creator_Access
(Self),
Control);
else
Matreshka.DOM_Elements.Abstract_Element_Node
(Self.all).Visit_Node (Iterator, Visitor, Control);
end if;
end Visit_Node;
begin
Matreshka.DOM_Documents.Register_Element
(Matreshka.ODF_String_Constants.Text_URI,
Matreshka.ODF_String_Constants.Initial_Creator_Element,
Text_Initial_Creator_Element_Node'Tag);
end Matreshka.ODF_Text.Initial_Creator_Elements;
|
stcarrez/etherscope | Ada | 1,841 | ads | -----------------------------------------------------------------------
-- ui-texts -- Utilities to draw text strings
-- Copyright (C) 2016, 2017 Stephane Carrez
-- Written by Stephane Carrez ([email protected])
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with HAL.Bitmap;
with BMP_Fonts;
package UI.Texts is
type Justify_Type is (LEFT, RIGHT); -- CENTER is left as an exercise to the reader.
Foreground : HAL.Bitmap.Bitmap_Color := HAL.Bitmap.White;
Background : HAL.Bitmap.Bitmap_Color := HAL.Bitmap.Black;
Current_Font : BMP_Fonts.BMP_Font := BMP_Fonts.Font12x12;
-- Get the width of the string in pixels after rendering with the current font.
function Get_Width (S : in String) return Natural;
-- Draw the string at the given position and using the justification so that we don't
-- span more than the width. The current font, foreground and background are used
-- to draw the string.
procedure Draw_String (Buffer : in out HAL.Bitmap.Bitmap_Buffer'Class;
Start : in HAL.Bitmap.Point;
Width : in Natural;
Msg : in String;
Justify : in Justify_Type := LEFT);
end UI.Texts;
|
reznikmm/matreshka | Ada | 4,656 | adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Open Document Toolkit --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2014, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with Matreshka.DOM_Documents;
with Matreshka.ODF_String_Constants;
with ODF.DOM.Iterators;
with ODF.DOM.Visitors;
package body Matreshka.ODF_Table.Range_Usable_As_Attributes is
------------
-- Create --
------------
overriding function Create
(Parameters : not null access Matreshka.DOM_Attributes.Attribute_L2_Parameters)
return Table_Range_Usable_As_Attribute_Node is
begin
return Self : Table_Range_Usable_As_Attribute_Node do
Matreshka.ODF_Table.Constructors.Initialize
(Self'Unchecked_Access,
Parameters.Document,
Matreshka.ODF_String_Constants.Table_Prefix);
end return;
end Create;
--------------------
-- Get_Local_Name --
--------------------
overriding function Get_Local_Name
(Self : not null access constant Table_Range_Usable_As_Attribute_Node)
return League.Strings.Universal_String
is
pragma Unreferenced (Self);
begin
return Matreshka.ODF_String_Constants.Range_Usable_As_Attribute;
end Get_Local_Name;
begin
Matreshka.DOM_Documents.Register_Attribute
(Matreshka.ODF_String_Constants.Table_URI,
Matreshka.ODF_String_Constants.Range_Usable_As_Attribute,
Table_Range_Usable_As_Attribute_Node'Tag);
end Matreshka.ODF_Table.Range_Usable_As_Attributes;
|
reznikmm/matreshka | Ada | 3,699 | ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Open Document Toolkit --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2014, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with XML.DOM.Attributes;
package ODF.DOM.Table_Script_Attributes is
pragma Preelaborate;
type ODF_Table_Script_Attribute is limited interface
and XML.DOM.Attributes.DOM_Attribute;
type ODF_Table_Script_Attribute_Access is
access all ODF_Table_Script_Attribute'Class
with Storage_Size => 0;
end ODF.DOM.Table_Script_Attributes;
|
optikos/oasis | Ada | 4,157 | adb | -- Copyright (c) 2019 Maxim Reznik <[email protected]>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Program.Nodes.Formal_Floating_Point_Definitions is
function Create
(Digits_Token : not null Program.Lexical_Elements.Lexical_Element_Access;
Box_Token : not null Program.Lexical_Elements.Lexical_Element_Access)
return Formal_Floating_Point_Definition is
begin
return Result : Formal_Floating_Point_Definition :=
(Digits_Token => Digits_Token, Box_Token => Box_Token,
Enclosing_Element => null)
do
Initialize (Result);
end return;
end Create;
function Create
(Is_Part_Of_Implicit : Boolean := False;
Is_Part_Of_Inherited : Boolean := False;
Is_Part_Of_Instance : Boolean := False)
return Implicit_Formal_Floating_Point_Definition is
begin
return Result : Implicit_Formal_Floating_Point_Definition :=
(Is_Part_Of_Implicit => Is_Part_Of_Implicit,
Is_Part_Of_Inherited => Is_Part_Of_Inherited,
Is_Part_Of_Instance => Is_Part_Of_Instance, Enclosing_Element => null)
do
Initialize (Result);
end return;
end Create;
overriding function Digits_Token
(Self : Formal_Floating_Point_Definition)
return not null Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.Digits_Token;
end Digits_Token;
overriding function Box_Token
(Self : Formal_Floating_Point_Definition)
return not null Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.Box_Token;
end Box_Token;
overriding function Is_Part_Of_Implicit
(Self : Implicit_Formal_Floating_Point_Definition)
return Boolean is
begin
return Self.Is_Part_Of_Implicit;
end Is_Part_Of_Implicit;
overriding function Is_Part_Of_Inherited
(Self : Implicit_Formal_Floating_Point_Definition)
return Boolean is
begin
return Self.Is_Part_Of_Inherited;
end Is_Part_Of_Inherited;
overriding function Is_Part_Of_Instance
(Self : Implicit_Formal_Floating_Point_Definition)
return Boolean is
begin
return Self.Is_Part_Of_Instance;
end Is_Part_Of_Instance;
procedure Initialize
(Self : aliased in out Base_Formal_Floating_Point_Definition'Class) is
begin
null;
end Initialize;
overriding function Is_Formal_Floating_Point_Definition_Element
(Self : Base_Formal_Floating_Point_Definition)
return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Formal_Floating_Point_Definition_Element;
overriding function Is_Formal_Type_Definition_Element
(Self : Base_Formal_Floating_Point_Definition)
return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Formal_Type_Definition_Element;
overriding function Is_Definition_Element
(Self : Base_Formal_Floating_Point_Definition)
return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Definition_Element;
overriding procedure Visit
(Self : not null access Base_Formal_Floating_Point_Definition;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class) is
begin
Visitor.Formal_Floating_Point_Definition (Self);
end Visit;
overriding function To_Formal_Floating_Point_Definition_Text
(Self : aliased in out Formal_Floating_Point_Definition)
return Program.Elements.Formal_Floating_Point_Definitions
.Formal_Floating_Point_Definition_Text_Access is
begin
return Self'Unchecked_Access;
end To_Formal_Floating_Point_Definition_Text;
overriding function To_Formal_Floating_Point_Definition_Text
(Self : aliased in out Implicit_Formal_Floating_Point_Definition)
return Program.Elements.Formal_Floating_Point_Definitions
.Formal_Floating_Point_Definition_Text_Access is
pragma Unreferenced (Self);
begin
return null;
end To_Formal_Floating_Point_Definition_Text;
end Program.Nodes.Formal_Floating_Point_Definitions;
|
reznikmm/matreshka | Ada | 4,752 | ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Open Document Toolkit --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2014, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with XML.DOM.Visitors;
with ODF.DOM.Table_Even_Columns_Elements;
package Matreshka.ODF_Table.Even_Columns_Elements is
type Table_Even_Columns_Element_Node is
new Matreshka.ODF_Table.Abstract_Table_Element_Node
and ODF.DOM.Table_Even_Columns_Elements.ODF_Table_Even_Columns
with null record;
overriding function Create
(Parameters : not null access Matreshka.DOM_Elements.Element_L2_Parameters)
return Table_Even_Columns_Element_Node;
overriding function Get_Local_Name
(Self : not null access constant Table_Even_Columns_Element_Node)
return League.Strings.Universal_String;
overriding procedure Enter_Node
(Self : not null access Table_Even_Columns_Element_Node;
Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class;
Control : in out XML.DOM.Visitors.Traverse_Control);
overriding procedure Leave_Node
(Self : not null access Table_Even_Columns_Element_Node;
Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class;
Control : in out XML.DOM.Visitors.Traverse_Control);
overriding procedure Visit_Node
(Self : not null access Table_Even_Columns_Element_Node;
Iterator : in out XML.DOM.Visitors.Abstract_Iterator'Class;
Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class;
Control : in out XML.DOM.Visitors.Traverse_Control);
end Matreshka.ODF_Table.Even_Columns_Elements;
|
reznikmm/matreshka | Ada | 3,709 | ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Open Document Toolkit --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2014, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with XML.DOM.Attributes;
package ODF.DOM.Chart_Vertical_Attributes is
pragma Preelaborate;
type ODF_Chart_Vertical_Attribute is limited interface
and XML.DOM.Attributes.DOM_Attribute;
type ODF_Chart_Vertical_Attribute_Access is
access all ODF_Chart_Vertical_Attribute'Class
with Storage_Size => 0;
end ODF.DOM.Chart_Vertical_Attributes;
|
reznikmm/matreshka | Ada | 9,277 | adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Localization, Internationalization, Globalization for Ada --
-- --
-- Tools Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2010-2017, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with Ada.Command_Line;
with Ada.Directories;
with Ada.Strings.Unbounded.Text_IO;
with Ada.Text_IO;
with Configure.Architecture;
with Configure.Instantiate;
with Configure.Internals;
with Configure.RTL_Version;
with Configure.Tests.Asis;
with Configure.Tests.AWS;
with Configure.Tests.Modules.AMF;
with Configure.Tests.Gprbuild;
with Configure.Tests.Install;
with Configure.Tests.Installation_Directories;
with Configure.Tests.MySQL;
with Configure.Tests.OCI;
with Configure.Tests.Operating_System;
with Configure.Tests.PostgreSQL;
with Configure.Tests.SQLite3;
with Configure.Tests.Firebird;
with Configure.Tests.Valgrind;
with Configure.Version;
procedure Configure.Driver is
use Ada.Command_Line;
function Is_Help_Requested return Boolean;
-- Returns True when help information is requested by the user.
procedure Help_Output (Position : Unbounded_String_Vectors.Cursor);
-- Outputs line of help information.
-----------------
-- Help_Output --
-----------------
procedure Help_Output (Position : Unbounded_String_Vectors.Cursor) is
Line : constant Unbounded_String
:= Unbounded_String_Vectors.Element (Position);
begin
Ada.Strings.Unbounded.Text_IO.Put_Line (Line);
end Help_Output;
-----------------------
-- Is_Help_Requested --
-----------------------
function Is_Help_Requested return Boolean is
begin
for J in 1 .. Argument_Count loop
if Argument (J) = "--help" then
return True;
end if;
end loop;
return False;
end Is_Help_Requested;
Arguments : Unbounded_String_Vector;
Operating_System_Test : aliased
Configure.Tests.Operating_System.Operating_System_Test;
Dirs_Test :
Configure.Tests.Installation_Directories.Installation_Directories_Test;
Gprbuild_Test : Configure.Tests.Gprbuild.Gprbuild_Test;
Install_Test : Configure.Tests.Install.Install_Test;
Asis_Test : Configure.Tests.Asis.Asis_Test;
AWS_Test : Configure.Tests.AWS.AWS_Test;
AMF_Test :
Configure.Tests.Modules.AMF.AMF_Test (Operating_System_Test'Access);
MySQL_Test : Configure.Tests.MySQL.MySQL_Test;
OCI_Test :
Configure.Tests.OCI.OCI_Test (Operating_System_Test'Access);
PostgreSQL_Test : Configure.Tests.PostgreSQL.PostgreSQL_Test;
SQLite3_Test :
Configure.Tests.SQLite3.SQLite3_Test (Operating_System_Test'Access);
Firebird_Test : Configure.Tests.Firebird.Firebird_Test;
Valgrind_Test : Configure.Tests.Valgrind.Valgrind_Test;
begin
if Is_Help_Requested then
Ada.Text_IO.Put_Line
("`"
& Ada.Directories.Simple_Name (Command_Name)
& "' configures Matreshka to adapt to many kinds of systems.");
Ada.Text_IO.New_Line;
Ada.Text_IO.Put_Line ("Usage: " & Command_Name & " [OPTION]...");
Ada.Text_IO.New_Line;
Ada.Text_IO.Put_Line
("Defaults for the options are specified in brackets.");
Ada.Text_IO.New_Line;
Ada.Text_IO.Put_Line ("Configuration:");
Ada.Text_IO.Put_Line
(" --help display this help and exit");
Ada.Text_IO.New_Line;
Dirs_Test.Help.Iterate (Help_Output'Access);
Ada.Text_IO.New_Line;
Ada.Text_IO.Put_Line ("Modules:");
AMF_Test.Help.Iterate (Help_Output'Access);
Ada.Text_IO.New_Line;
Ada.Text_IO.Put_Line ("Optional Packages:");
OCI_Test.Help.Iterate (Help_Output'Access);
PostgreSQL_Test.Help.Iterate (Help_Output'Access);
SQLite3_Test.Help.Iterate (Help_Output'Access);
Firebird_Test.Help.Iterate (Help_Output'Access);
return;
end if;
-- Create log file.
Configure.Internals.Create_Log_File;
-- Convert command line arguments into the vector.
for J in 1 .. Ada.Command_Line.Argument_Count loop
Arguments.Append (+Ada.Command_Line.Argument (J));
end loop;
Configure.Version;
Configure.Architecture;
Operating_System_Test.Execute (Arguments);
Configure.RTL_Version;
Dirs_Test.Execute (Arguments);
Install_Test.Execute (Arguments);
Gprbuild_Test.Execute (Arguments);
Asis_Test.Execute (Arguments);
AWS_Test.Execute (Arguments);
AMF_Test.Execute (Arguments);
MySQL_Test.Execute (Arguments);
OCI_Test.Execute (Arguments);
PostgreSQL_Test.Execute (Arguments);
SQLite3_Test.Execute (Arguments);
Firebird_Test.Execute (Arguments);
Valgrind_Test.Execute (Arguments);
declare
use Ada.Directories;
use Ada.Strings.Unbounded.Text_IO;
use Ada.Text_IO;
use Maps;
P : Cursor := Substitutions.First;
begin
while Has_Element (P) loop
Put (Simple_Name (Command_Name));
Put (": ");
Put (Key (P));
Put (" => ");
Put (Element (P));
New_Line;
Next (P);
end loop;
end;
-- Check whether all arguments in the command line are recognized and
-- removed.
if not Arguments.Is_Empty then
declare
procedure Output (Position : Unbounded_String_Vectors.Cursor);
------------
-- Output --
------------
procedure Output (Position : Unbounded_String_Vectors.Cursor) is
Arg : constant Unbounded_String
:= Unbounded_String_Vectors.Element (Position);
begin
Warning
("command line argument '" & (+Arg) & "' is not recognized");
end Output;
begin
Arguments.Iterate (Output'Access);
end;
end if;
Configure.Instantiate ("Makefile.config");
Configure.Instantiate ("gnat/install/matreshka_config.gpr");
Configure.Instantiate ("gnat/matreshka_config.gpr");
Configure.Instantiate ("source/league/matreshka-config.ads");
-- Close log file.
Configure.Internals.Close_Log_File;
exception
when Internal_Error =>
Set_Exit_Status (Failure);
end Configure.Driver;
|
persan/A-gst | Ada | 1,532 | ads | pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
package GStreamer.GST_Low_Level.gstreamer_0_10_gst_math_compat_h is
-- arg-macro: procedure rint (x)
-- __gst_math_compat_rint(x)
-- arg-macro: procedure rintf (x)
-- __gst_math_compat_rintf(x)
-- GStreamer
-- * Copyright (C) 2010 Tim-Philipp Müller <tim centricular net>
-- *
-- * This library is free software; you can redistribute it and/or
-- * modify it under the terms of the GNU Library General Public
-- * License as published by the Free Software Foundation; either
-- * version 2 of the License, or (at your option) any later version.
-- *
-- * This library is distributed in the hope that it will be useful,
-- * but WITHOUT ANY WARRANTY; without even the implied warranty of
-- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-- * Library General Public License for more details.
-- *
-- * You should have received a copy of the GNU Library General Public
-- * License along with this library; if not, write to the
-- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-- * Boston, MA 02111-1307, USA.
--
-- This header is not included automatically via gst/gst.h, you need to
-- * include it explicitly if you need it.
-- http://en.wikipedia.org/wiki/Math.h
-- skipped func __gst_math_compat_rint
-- skipped func __gst_math_compat_rintf
end GStreamer.GST_Low_Level.gstreamer_0_10_gst_math_compat_h;
|
annexi-strayline/ASAP-CLI | Ada | 4,808 | ads | ------------------------------------------------------------------------------
-- --
-- Command Line Interface Toolkit --
-- --
-- ------------------------------------------------------------------------ --
-- --
-- Copyright (C) 2019-2020, ANNEXI-STRAYLINE Trans-Human Ltd. --
-- All rights reserved. --
-- --
-- Original Contributors: --
-- * Ensi Martini (ANNEXI-STRAYLINE) --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- --
-- * Neither the name of the copyright holder nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A --
-- PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
with Ada.Strings.Wide_Wide_Bounded;
package CLI.Widgets.Spinners is
type Spinner is private;
package Component_Strings is
new Ada.Strings.Wide_Wide_Bounded.Generic_Bounded_Length (20);
subtype Component_String is Component_Strings.Bounded_Wide_Wide_String;
function Custom_Spinner (Components: Component_String;
Style : Text_Style := Neutral)
return Spinner;
-- Creates a custom spinner style. Components will be converted into
-- UTF-8 on output
procedure Set_Style (S : in out Spinner;
Style: in Text_Style);
-- Set the style of the spinner. The default value is Neutral
procedure Render (Spin : in out Spinner;
Column: in Positive := Current_Column);
-- Initially renders a Spinner, and set's it column to Column. Subsequent
-- Update operations do not need to specify the column. The cursor is moved,
-- and will end one column past the column of the spinner.
procedure Update (Spin: in out Spinner);
-- Updates the spinner in place (draws and advances). The cursor is not
-- moved.
private
use all type Component_String;
type Spinner
is record
Column : Positive := 1; -- Column of the spinner
Components : Component_String := To_Bounded_Wide_Wide_String ("-\|/");
State : Positive := 1;
Style : Text_Style := Neutral;
end record;
end CLI.Widgets.Spinners;
|
stcarrez/ada-asf | Ada | 2,667 | adb | -----------------------------------------------------------------------
-- asf-contexts-exceptions-iterator -- Exception handlers in faces context
-- Copyright (C) 2011, 2021, 2022 Stephane Carrez
-- Written by Stephane Carrez ([email protected])
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Ada.Unchecked_Deallocation;
-- ------------------------------
-- Iterate over the exception events which are in the queue and execute the given procedure.
-- The procedure should return True in <b>Remove</b> to indicate that the exception has been
-- processed.
--
-- Notes: this procedure should not be called directly (use ASF.Contexts.Faces.Iterate).
-- This procedure is separate to avoid circular dependency.
-- ------------------------------
package body ASF.Contexts.Exceptions.Iterator is
procedure Iterate
(Queue : in out Exception_Queue;
Context : in out ASF.Contexts.Faces.Faces_Context'Class;
Process : not null
access procedure (Event : in ASF.Events.Exceptions.Exception_Event'Class;
Remove : out Boolean;
Context : in out Contexts.Faces.Faces_Context'Class)) is
procedure Free is
new Ada.Unchecked_Deallocation (Object => ASF.Events.Exceptions.Exception_Event'Class,
Name => ASF.Events.Exceptions.Exception_Event_Access);
Event : ASF.Events.Exceptions.Exception_Event_Access;
Remove : Boolean := False;
Pos : Natural := 1;
Len : Natural := Natural (Queue.Unhandled_Events.Length);
begin
while Pos <= Len loop
Event := Queue.Unhandled_Events.Element (Pos);
Process (Event.all, Remove, Context);
if Remove then
ASF.Events.Exceptions.Event_Vectors.Delete (Queue.Unhandled_Events, Pos);
Free (Event);
if Len > 0 then
Len := Len - 1;
end if;
else
Pos := Pos + 1;
end if;
end loop;
end Iterate;
end ASF.Contexts.Exceptions.Iterator;
|
reznikmm/matreshka | Ada | 4,067 | ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Open Document Toolkit --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2014, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with ODF.DOM.Style_Layout_Grid_Print_Attributes;
package Matreshka.ODF_Style.Layout_Grid_Print_Attributes is
type Style_Layout_Grid_Print_Attribute_Node is
new Matreshka.ODF_Style.Abstract_Style_Attribute_Node
and ODF.DOM.Style_Layout_Grid_Print_Attributes.ODF_Style_Layout_Grid_Print_Attribute
with null record;
overriding function Create
(Parameters : not null access Matreshka.DOM_Attributes.Attribute_L2_Parameters)
return Style_Layout_Grid_Print_Attribute_Node;
overriding function Get_Local_Name
(Self : not null access constant Style_Layout_Grid_Print_Attribute_Node)
return League.Strings.Universal_String;
end Matreshka.ODF_Style.Layout_Grid_Print_Attributes;
|
reznikmm/matreshka | Ada | 5,626 | ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Web Framework --
-- --
-- Tools Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2012-2013, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with Ada.Containers.Hashed_Maps;
with League.Strings.Hash;
with WSDL.AST.Services;
with WSDL.AST.Types;
package WSDL.AST.Descriptions is
pragma Preelaborate;
package Binding_Maps is
new Ada.Containers.Hashed_Maps
(League.Strings.Universal_String,
WSDL.AST.Binding_Access,
League.Strings.Hash,
League.Strings."=",
WSDL.AST."=");
package Interface_Maps is
new Ada.Containers.Hashed_Maps
(League.Strings.Universal_String,
WSDL.AST.Interface_Access,
League.Strings.Hash,
League.Strings."=",
WSDL.AST."=");
package Service_Maps is
new Ada.Containers.Hashed_Maps
(League.Strings.Universal_String,
WSDL.AST.Services.Service_Access,
League.Strings.Hash,
League.Strings."=",
WSDL.AST.Services."=");
type Description_Node is new Abstract_Node with record
Target_Namespace : League.Strings.Universal_String;
-- Value of 'targetNamespace' attribute.
Types : WSDL.AST.Types.Types_Access;
-- Types section of description.
Interfaces : Interface_Maps.Map;
-- Set of interface components represented as children elements of this
-- description element.
Bindings : Binding_Maps.Map;
-- Set of binding components represented as children element of this
-- description element.
Services : Service_Maps.Map;
-- Set of service components represented as children element of this
-- description element.
end record;
overriding procedure Enter
(Self : not null access Description_Node;
Visitor : in out WSDL.Visitors.WSDL_Visitor'Class;
Control : in out WSDL.Iterators.Traverse_Control);
overriding procedure Leave
(Self : not null access Description_Node;
Visitor : in out WSDL.Visitors.WSDL_Visitor'Class;
Control : in out WSDL.Iterators.Traverse_Control);
overriding procedure Visit
(Self : not null access Description_Node;
Iterator : in out WSDL.Iterators.WSDL_Iterator'Class;
Visitor : in out WSDL.Visitors.WSDL_Visitor'Class;
Control : in out WSDL.Iterators.Traverse_Control);
end WSDL.AST.Descriptions;
|
charlie5/lace | Ada | 1,366 | adb | package body lace.Environ
is
function to_octal_Mode (Permissions : in permission_Set) return String
is
function octal_Permissions (Bit_3, Bit_2, Bit_1 : in Boolean) return String
is
begin
if Bit_3 then
if Bit_2 then
if Bit_1 then return "7";
else return "6";
end if;
else
if Bit_1 then return "5";
else return "4";
end if;
end if;
else
if Bit_2 then
if Bit_1 then return "3";
else return "2";
end if;
else
if Bit_1 then return "1";
else return "0";
end if;
end if;
end if;
end octal_Permissions;
begin
return
octal_Permissions (Permissions (set_User_ID), Permissions (set_Group_ID), False)
& octal_Permissions (Permissions (owner_Read), Permissions (owner_Write), Permissions (owner_Execute))
& octal_Permissions (Permissions (group_Read), Permissions (group_Write), Permissions (group_Execute))
& octal_Permissions (Permissions (others_Read), Permissions (others_Write), Permissions (others_Execute));
end to_octal_Mode;
end lace.Environ;
|
AdaDoom3/wayland_ada_binding | Ada | 24,222 | ads | ------------------------------------------------------------------------------
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- This library is free software; you can redistribute it and/or modify it --
-- under terms of the GNU General Public License as published by the Free --
-- Software Foundation; either version 3, or (at your option) any later --
-- version. This library is distributed in the hope that it will be useful, --
-- but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHAN- --
-- TABILITY or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
------------------------------------------------------------------------------
-- This file provides adaptors for the standard Ada2012 containers, so that
-- they can be used with the algorithms declared in our containers hierarchy
pragma Ada_2012;
with Ada.Containers.Bounded_Doubly_Linked_Lists;
with Ada.Containers.Bounded_Hashed_Maps;
with Ada.Containers.Bounded_Vectors;
with Ada.Containers.Doubly_Linked_Lists;
with Ada.Containers.Indefinite_Doubly_Linked_Lists;
with Ada.Containers.Indefinite_Hashed_Maps;
with Ada.Containers.Indefinite_Ordered_Maps;
with Ada.Containers.Hashed_Maps;
with Ada.Containers.Ordered_Maps;
with Ada.Containers.Indefinite_Vectors;
with Ada.Containers.Vectors;
with Conts.Cursors; use Conts.Cursors;
with Conts.Properties;
package Conts.Adaptors is
---------------------------------------------
-- Adaptor for bounded doubly linked lists --
---------------------------------------------
generic
with package Lists is
new Ada.Containers.Bounded_Doubly_Linked_Lists (<>);
package Bounded_List_Adaptors is
subtype Element_Type is Lists.Element_Type;
subtype List is Lists.List;
subtype Cursor is Lists.Cursor;
function Element (Self : List; Position : Cursor) return Element_Type
is (Lists.Element (Position)) with Inline;
function Has_Element (Self : List; Position : Cursor) return Boolean
is (Lists.Has_Element (Position)) with Inline;
function Next (Self : List; Position : Cursor) return Cursor
is (Lists.Next (Position)) with Inline;
function Previous (Self : List; Position : Cursor) return Cursor
is (Lists.Previous (Position)) with Inline;
package Cursors is
package Bidirectional is new Bidirectional_Cursors
(Container_Type => List'Class,
Cursor_Type => Cursor,
No_Element => Lists.No_Element,
First => Lists.First);
package Forward renames Bidirectional.Forward;
end Cursors;
package Maps is
package Element is new Conts.Properties.Read_Only_Maps
(List'Class, Cursor, Element_Type, Element);
package Constant_Returned renames Element;
end Maps;
end Bounded_List_Adaptors;
-------------------------------------
-- Adaptor for doubly linked lists --
-------------------------------------
generic
with package Lists is new Ada.Containers.Doubly_Linked_Lists (<>);
package List_Adaptors is
subtype Element_Type is Lists.Element_Type;
subtype List is Lists.List;
subtype Cursor is Lists.Cursor;
function Element (Self : List; Position : Cursor) return Element_Type
is (Lists.Element (Position)) with Inline;
function Has_Element (Self : List; Position : Cursor) return Boolean
is (Lists.Has_Element (Position)) with Inline;
function Next (Self : List; Position : Cursor) return Cursor
is (Lists.Next (Position)) with Inline;
function Previous (Self : List; Position : Cursor) return Cursor
is (Lists.Previous (Position)) with Inline;
package Cursors is
package Bidirectional is new Bidirectional_Cursors
(Container_Type => List'Class,
Cursor_Type => Cursor,
No_Element => Lists.No_Element,
First => Lists.First);
package Forward renames Bidirectional.Forward;
end Cursors;
package Maps is
package Element is new Conts.Properties.Read_Only_Maps
(List'Class, Cursor, Element_Type, Element);
package Constant_Returned renames Element;
end Maps;
end List_Adaptors;
------------------------------------------------
-- Adaptor for indefinite doubly linked lists --
------------------------------------------------
generic
with package Lists is
new Ada.Containers.Indefinite_Doubly_Linked_Lists (<>);
package Indefinite_List_Adaptors is
subtype Element_Type is Lists.Element_Type;
subtype Returned is Lists.Constant_Reference_Type;
subtype Constant_Returned is Lists.Constant_Reference_Type;
subtype List is Lists.List;
subtype Cursor is Lists.Cursor;
function Element (Self : List; Position : Cursor) return Returned
is (Lists.Constant_Reference (Self, Position)) with Inline;
function Element (Self : List; Position : Cursor) return Element_Type
is (Element (Self, Position).Element.all) with Inline;
function Has_Element (Self : List; Position : Cursor) return Boolean
is (Lists.Has_Element (Position)) with Inline;
function Next (Self : List; Position : Cursor) return Cursor
is (Lists.Next (Position)) with Inline;
function Previous (Self : List; Position : Cursor) return Cursor
is (Lists.Previous (Position)) with Inline;
package Cursors is
package Bidirectional is new Bidirectional_Cursors
(Container_Type => List'Class,
Cursor_Type => Cursor,
No_Element => Lists.No_Element,
First => Lists.First);
package Forward renames Bidirectional.Forward;
end Cursors;
package Maps is
package Constant_Returned is new Conts.Properties.Read_Only_Maps
(List'Class, Cursor, Returned, Element);
package Element is new Conts.Properties.Read_Only_Maps
(List'Class, Cursor, Element_Type, Element);
end Maps;
end Indefinite_List_Adaptors;
---------------------------------
-- Adaptor for bounded vectors --
---------------------------------
generic
with package Vectors is new Ada.Containers.Bounded_Vectors (<>);
package Bounded_Vector_Adaptors is
subtype Element_Type is Vectors.Element_Type;
subtype Vector is Vectors.Vector;
subtype Cursor is Vectors.Cursor;
subtype Extended_Index is Vectors.Extended_Index;
function Element (Self : Vector; Position : Cursor) return Element_Type
is (Vectors.Element (Position)) with Inline;
function Has_Element (Self : Vector; Position : Cursor) return Boolean
is (Vectors.Has_Element (Position)) with Inline;
function Next (Self : Vector; Position : Cursor) return Cursor
is (Vectors.Next (Position)) with Inline;
function Previous (Self : Vector; Position : Cursor) return Cursor
is (Vectors.Previous (Position)) with Inline;
function Distance (Left, Right : Extended_Index) return Integer
is (Integer (Vectors."-" (Left, Right)));
function "+" (Left : Extended_Index; N : Integer) return Extended_Index
is (Vectors."+" (Left, Extended_Index (N)));
package Cursors is
package Random_Access is new Random_Access_Cursors
(Container_Type => Vector'Class,
Index_Type => Extended_Index,
No_Element => Vectors.No_Index,
First => Vectors.First_Index,
Last => Vectors.Last_Index);
package Bidirectional is new Bidirectional_Cursors
(Container_Type => Vector'Class,
Cursor_Type => Cursor,
No_Element => Vectors.No_Element,
First => Vectors.First);
package Forward renames Bidirectional.Forward;
end Cursors;
package Maps is
package Element is new Conts.Properties.Read_Only_Maps
(Vector'Class, Cursor, Element_Type, Element);
package Constant_Returned renames Element;
end Maps;
end Bounded_Vector_Adaptors;
-------------------------
-- Adaptor for Vectors --
-------------------------
generic
with package Vectors is new Ada.Containers.Vectors (<>);
package Vector_Adaptors is
subtype Element_Type is Vectors.Element_Type;
subtype Vector is Vectors.Vector;
subtype Cursor is Vectors.Cursor;
subtype Extended_Index is Vectors.Extended_Index;
function Element (Self : Vector; Position : Cursor) return Element_Type
is (Vectors.Element (Position)) with Inline;
function Has_Element (Self : Vector; Position : Cursor) return Boolean
is (Vectors.Has_Element (Position)) with Inline;
function Next (Self : Vector; Position : Cursor) return Cursor
is (Vectors.Next (Position)) with Inline;
function Previous (Self : Vector; Position : Cursor) return Cursor
is (Vectors.Previous (Position)) with Inline;
function Distance (Left, Right : Extended_Index) return Integer
is (Integer (Vectors."-" (Left, Right)));
function "+" (Left : Extended_Index; N : Integer) return Extended_Index
is (Vectors."+" (Left, Extended_Index (N)));
package Cursors is
package Random_Access is new Random_Access_Cursors
(Container_Type => Vector'Class,
Index_Type => Extended_Index,
No_Element => Vectors.No_Index,
First => Vectors.First_Index,
Last => Vectors.Last_Index);
package Bidirectional is new Bidirectional_Cursors
(Container_Type => Vector'Class,
Cursor_Type => Cursor,
No_Element => Vectors.No_Element,
First => Vectors.First);
package Forward renames Bidirectional.Forward;
end Cursors;
package Maps is
package Element is new Conts.Properties.Read_Only_Maps
(Vector'Class, Cursor, Element_Type, Element);
package Constant_Returned renames Element;
end Maps;
end Vector_Adaptors;
------------------------------------
-- Adaptor for indefinite Vectors --
------------------------------------
generic
with package Vectors is new Ada.Containers.Indefinite_Vectors (<>);
package Indefinite_Vector_Adaptors is
subtype Element_Type is Vectors.Element_Type;
subtype Returned is Vectors.Constant_Reference_Type;
subtype Constant_Returned is Vectors.Constant_Reference_Type;
subtype Vector is Vectors.Vector;
subtype Cursor is Vectors.Cursor;
subtype Extended_Index is Vectors.Extended_Index;
function Element (Self : Vector; Position : Cursor) return Returned
is (Vectors.Constant_Reference (Self, Position)) with Inline;
function Element (Self : Vector; Position : Cursor) return Element_Type
is (Element (Self, Position).Element.all) with Inline;
function Has_Element (Self : Vector; Position : Cursor) return Boolean
is (Vectors.Has_Element (Position)) with Inline;
function Next (Self : Vector; Position : Cursor) return Cursor
is (Vectors.Next (Position)) with Inline;
function Previous (Self : Vector; Position : Cursor) return Cursor
is (Vectors.Previous (Position)) with Inline;
function Distance (Left, Right : Extended_Index) return Integer
is (Integer (Vectors."-" (Left, Right)));
function "+" (Left : Extended_Index; N : Integer) return Extended_Index
is (Vectors."+" (Left, Extended_Index (N)));
package Cursors is
package Random_Access is new Random_Access_Cursors
(Container_Type => Vector'Class,
Index_Type => Extended_Index,
No_Element => Vectors.No_Index,
First => Vectors.First_Index,
Last => Vectors.Last_Index);
package Bidirectional is new Bidirectional_Cursors
(Container_Type => Vector'Class,
Cursor_Type => Cursor,
No_Element => Vectors.No_Element,
First => Vectors.First);
package Forward renames Bidirectional.Forward;
end Cursors;
package Maps is
package Constant_Returned is new Conts.Properties.Read_Only_Maps
(Vector'Class, Cursor, Returned, Element);
package Element is new Conts.Properties.Read_Only_Maps
(Vector'Class, Cursor, Element_Type, Element);
end Maps;
end Indefinite_Vector_Adaptors;
-----------------------------
-- Adaptor for hashed maps --
-----------------------------
generic
with package Hashed_Maps is new Ada.Containers.Hashed_Maps (<>);
package Hashed_Maps_Adaptors is
subtype Element_Type is Hashed_Maps.Element_Type;
subtype Returned is Hashed_Maps.Constant_Reference_Type;
subtype Map is Hashed_Maps.Map;
subtype Cursor is Hashed_Maps.Cursor;
use all type Hashed_Maps.Cursor;
function Element (Self : Map; Position : Cursor) return Returned
is (Hashed_Maps.Constant_Reference (Self, Position)) with Inline;
function Element (Self : Map; Position : Cursor) return Element_Type
is (Element (Self, Position).Element.all) with Inline;
function Has_Element (Self : Map; Position : Cursor) return Boolean
is (Hashed_Maps.Has_Element (Position)) with Inline;
function Next (Self : Map; Position : Cursor) return Cursor
is (Hashed_Maps.Next (Position)) with Inline;
package Cursors is
package Forward is new Forward_Cursors
(Container_Type => Map'Class,
Cursor_Type => Cursor,
No_Element => Hashed_Maps.No_Element,
First => Hashed_Maps.First);
end Cursors;
package Maps is
package Constant_Returned is new Conts.Properties.Read_Only_Maps
(Map'Class, Cursor, Returned, Element);
package Element is new Conts.Properties.Read_Only_Maps
(Map'Class, Cursor, Element_Type, Element);
end Maps;
end Hashed_Maps_Adaptors;
-------------------------------------
-- Adaptor for bounded hashed maps --
-------------------------------------
generic
with package Hashed_Maps is new Ada.Containers.Bounded_Hashed_Maps (<>);
package Bounded_Hashed_Maps_Adaptors is
subtype Element_Type is Hashed_Maps.Element_Type;
subtype Returned is Hashed_Maps.Constant_Reference_Type;
subtype Map is Hashed_Maps.Map;
subtype Cursor is Hashed_Maps.Cursor;
use all type Hashed_Maps.Cursor;
function Element (Self : Map; Position : Cursor) return Returned
is (Hashed_Maps.Constant_Reference (Self, Position)) with Inline;
function Element (Self : Map; Position : Cursor) return Element_Type
is (Element (Self, Position).Element.all) with Inline;
function Has_Element (Self : Map; Position : Cursor) return Boolean
is (Hashed_Maps.Has_Element (Position)) with Inline;
function Next (Self : Map; Position : Cursor) return Cursor
is (Hashed_Maps.Next (Position)) with Inline;
package Cursors is
package Forward is new Forward_Cursors
(Container_Type => Map'Class,
Cursor_Type => Cursor,
No_Element => Hashed_Maps.No_Element,
First => Hashed_Maps.First);
end Cursors;
package Maps is
package Constant_Returned is new Conts.Properties.Read_Only_Maps
(Map'Class, Cursor, Returned, Element);
package Element is new Conts.Properties.Read_Only_Maps
(Map'Class, Cursor, Element_Type, Element);
end Maps;
end Bounded_Hashed_Maps_Adaptors;
------------------------------
-- Adaptor for ordered maps --
------------------------------
generic
with package Ordered_Maps is new Ada.Containers.Ordered_Maps (<>);
package Ordered_Maps_Adaptors is
subtype Element_Type is Ordered_Maps.Element_Type;
subtype Returned is Ordered_Maps.Constant_Reference_Type;
subtype Map is Ordered_Maps.Map;
subtype Cursor is Ordered_Maps.Cursor;
function Element (Self : Map; Position : Cursor) return Returned
is (Ordered_Maps.Constant_Reference (Self, Position)) with Inline;
function Element (Self : Map; Position : Cursor) return Element_Type
is (Element (Self, Position).Element.all) with Inline;
function Has_Element (Self : Map; Position : Cursor) return Boolean
is (Ordered_Maps.Has_Element (Position)) with Inline;
function Next (Self : Map; Position : Cursor) return Cursor
is (Ordered_Maps.Next (Position)) with Inline;
function Previous (Self : Map; Position : Cursor) return Cursor
is (Ordered_Maps.Previous (Position)) with Inline;
package Cursors is
package Bidirectional is new Bidirectional_Cursors
(Container_Type => Map'Class,
Cursor_Type => Cursor,
No_Element => Ordered_Maps.No_Element,
First => Ordered_Maps.First);
package Forward renames Bidirectional.Forward;
end Cursors;
package Maps is
package Constant_Returned is new Conts.Properties.Read_Only_Maps
(Map'Class, Cursor, Returned, Element);
package Element is new Conts.Properties.Read_Only_Maps
(Map'Class, Cursor, Element_Type, Element);
end Maps;
end Ordered_Maps_Adaptors;
----------------------------------------
-- Adaptor for indefinite hashed maps --
----------------------------------------
generic
with package Hashed_Maps is
new Ada.Containers.Indefinite_Hashed_Maps (<>);
package Indefinite_Hashed_Maps_Adaptors is
subtype Element_Type is Hashed_Maps.Element_Type;
subtype Returned is Hashed_Maps.Constant_Reference_Type;
subtype Map is Hashed_Maps.Map;
subtype Cursor is Hashed_Maps.Cursor;
use all type Hashed_Maps.Cursor;
function Element (Self : Map; Position : Cursor) return Returned
is (Hashed_Maps.Constant_Reference (Self, Position)) with Inline;
function Element (Self : Map; Position : Cursor) return Element_Type
is (Element (Self, Position).Element.all) with Inline;
function Has_Element (Self : Map; Position : Cursor) return Boolean
is (Hashed_Maps.Has_Element (Position)) with Inline;
function Next (Self : Map; Position : Cursor) return Cursor
is (Hashed_Maps.Next (Position)) with Inline;
package Cursors is
package Forward is new Forward_Cursors
(Container_Type => Map'Class,
Cursor_Type => Cursor,
No_Element => Hashed_Maps.No_Element,
First => Hashed_Maps.First);
end Cursors;
package Maps is
package Constant_Returned is new Conts.Properties.Read_Only_Maps
(Map'Class, Cursor, Returned, Element);
package Element is new Conts.Properties.Read_Only_Maps
(Map'Class, Cursor, Element_Type, Element);
end Maps;
end Indefinite_Hashed_Maps_Adaptors;
-----------------------------------------
-- Adaptor for indefinite ordered maps --
-----------------------------------------
generic
with package Ordered_Maps is
new Ada.Containers.Indefinite_Ordered_Maps (<>);
package Indefinite_Ordered_Maps_Adaptors is
subtype Element_Type is Ordered_Maps.Element_Type;
subtype Returned is Ordered_Maps.Constant_Reference_Type;
subtype Map is Ordered_Maps.Map;
subtype Cursor is Ordered_Maps.Cursor;
function Element (Self : Map; Position : Cursor) return Returned
is (Ordered_Maps.Constant_Reference (Self, Position)) with Inline;
function Element (Self : Map; Position : Cursor) return Element_Type
is (Element (Self, Position).Element.all) with Inline;
function Has_Element (Self : Map; Position : Cursor) return Boolean
is (Ordered_Maps.Has_Element (Position)) with Inline;
function Next (Self : Map; Position : Cursor) return Cursor
is (Ordered_Maps.Next (Position)) with Inline;
function Previous (Self : Map; Position : Cursor) return Cursor
is (Ordered_Maps.Previous (Position)) with Inline;
package Cursors is
package Bidirectional is new Bidirectional_Cursors
(Container_Type => Map'Class,
Cursor_Type => Cursor,
No_Element => Ordered_Maps.No_Element,
First => Ordered_Maps.First);
package Forward renames Bidirectional.Forward;
end Cursors;
package Maps is
package Constant_Returned is new Conts.Properties.Read_Only_Maps
(Map'Class, Cursor, Returned, Element);
package Element is new Conts.Properties.Read_Only_Maps
(Map'Class, Cursor, Element_Type, Element);
end Maps;
end Indefinite_Ordered_Maps_Adaptors;
------------------------
-- Adaptor for arrays --
------------------------
generic
type Index_Type is (<>);
type Element_Type is private;
type Array_Type is array (Index_Type range <>) of Element_Type;
package Array_Adaptors is
subtype Extended_Index is Index_Type'Base range
Index_Type'Pred (Index_Type'First) .. Index_Type'Last;
No_Index : constant Extended_Index := Extended_Index'First;
-- Index_Type with one more element to the left, used to represent
-- invalid indexes
function First (Self : Array_Type) return Index_Type
is (Self'First) with Inline;
function Last (Self : Array_Type) return Index_Type
is (Self'Last) with Inline;
function Element
(Self : Array_Type; Position : Index_Type) return Element_Type
is (Self (Position)) with Inline;
function Distance (Left, Right : Index_Type) return Integer
is (Index_Type'Pos (Left) - Index_Type'Pos (Right)) with Inline;
function "+"
(Left : Index_Type; N : Integer) return Index_Type
is (Index_Type'Val (Index_Type'Pos (Left) + N)) with Inline;
package Cursors is
package Random_Access is new Random_Access_Cursors
(Container_Type => Array_Type,
Index_Type => Extended_Index,
No_Element => No_Index,
First => First,
Last => Last,
Distance => Distance,
"+" => "+");
package Bidirectional renames Random_Access.Bidirectional;
package Forward renames Bidirectional.Forward;
end Cursors;
package Maps is
package Element is new Conts.Properties.Read_Only_Maps
(Array_Type, Extended_Index, Element_Type, Element);
package Constant_Returned renames Element;
end Maps;
end Array_Adaptors;
end Conts.Adaptors;
|
Rodeo-McCabe/orka | Ada | 2,030 | ads | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2016 onox <[email protected]>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
package Orka.SIMD.SSE.Singles.Arithmetic is
pragma Pure;
function "*" (Left, Right : m128) return m128
with Import, Convention => Intrinsic, External_Name => "__builtin_ia32_mulps";
function "*" (Left, Right : m128_Array) return m128_Array
with Inline;
-- Multiplies the left matrix with the right matrix. Matrix multiplication
-- is associative, but not commutative.
function "*" (Left : m128_Array; Right : m128) return m128
with Inline;
-- Multiplies the left matrix with the right vector. Matrix multiplication
-- is associative, but not commutative.
function "/" (Left, Right : m128) return m128
with Import, Convention => Intrinsic, External_Name => "__builtin_ia32_divps";
function Divide_Or_Zero (Left, Right : m128) return m128
with Inline;
function "+" (Left, Right : m128) return m128
with Import, Convention => Intrinsic, External_Name => "__builtin_ia32_addps";
function "-" (Left, Right : m128) return m128
with Import, Convention => Intrinsic, External_Name => "__builtin_ia32_subps";
function "-" (Elements : m128) return m128 is
((0.0, 0.0, 0.0, 0.0) - Elements)
with Inline;
function "abs" (Elements : m128) return m128
with Inline;
function Sum (Elements : m128) return GL.Types.Single
with Inline;
end Orka.SIMD.SSE.Singles.Arithmetic;
|
iyan22/AprendeAda | Ada | 566 | adb | with datos;
use datos;
procedure Desplazar_Una_Posicion_A_La_Derecha (L : in out Lista_Enteros; PosActual, Pos : in Integer) is
--Pre: Pos indica una posicion de L (entre 1 y L.Cont + 1)
--Post: se han desplazado una posicion a la derecha todos los
-- elementos de L, empezando por Pos hasta L.Cont
Cont, Num : Integer;
begin
Cont := PosActual;
Num := L.Numeros(PosActual);
loop exit when Cont = Pos;
L.Numeros(Cont):= L.Numeros(Cont-1);
Cont := Cont-1;
end loop;
L.Numeros(Cont) := Num;
end Desplazar_Una_Posicion_A_La_Derecha;
|
faelys/natools | Ada | 2,324 | ads | ------------------------------------------------------------------------------
-- Copyright (c) 2014, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose with or without fee is hereby granted, provided that the above --
-- copyright notice and this permission notice appear in all copies. --
-- --
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --
-- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF --
-- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR --
-- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES --
-- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN --
-- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF --
-- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --
------------------------------------------------------------------------------
------------------------------------------------------------------------------
-- Natools.S_Expressions.Templates.Tests.Integers provides a test suite for --
-- integer S-expression template system. --
------------------------------------------------------------------------------
package Natools.S_Expressions.Templates.Tests.Integers is
procedure All_Tests (Report : in out NT.Reporter'Class);
procedure Alignment (Report : in out NT.Reporter'Class);
procedure Default_Format (Report : in out NT.Reporter'Class);
procedure Explicit_Default_Format (Report : in out NT.Reporter'Class);
procedure Explicit_Images (Report : in out NT.Reporter'Class);
procedure Explicit_Sign (Report : in out NT.Reporter'Class);
procedure Hexadecimal (Report : in out NT.Reporter'Class);
procedure Overflow (Report : in out NT.Reporter'Class);
procedure Parse_Errors (Report : in out NT.Reporter'Class);
procedure Prefix_And_Suffix (Report : in out NT.Reporter'Class);
procedure Static_Hash_Map (Report : in out NT.Reporter'Class);
end Natools.S_Expressions.Templates.Tests.Integers;
|
ytomino/yaml-ada | Ada | 13,702 | ads | with Ada.Containers;
with Ada.Iterator_Interfaces;
with Ada.Strings.Unbounded;
package Serialization is
pragma Preelaborate;
type Stream_Element_Kind is (
Value,
Enter_Mapping,
Leave_Mapping,
Enter_Sequence,
Leave_Sequence,
End_Of_Stream);
type Direction is (Reading, Writing);
type Serializer (Direction : Serialization.Direction) is limited private;
-- scalar
procedure IO (
Object : not null access Serializer;
Name : in String;
Value : in out Ada.Strings.Unbounded.Unbounded_String);
procedure IO (
Object : not null access Serializer;
Name : in String;
Value : in out Ada.Strings.Unbounded.Unbounded_String;
Default : in Ada.Strings.Unbounded.Unbounded_String);
procedure IO (
Object : not null access Serializer;
Value : in out Ada.Strings.Unbounded.Unbounded_String);
procedure IO (
Object : not null access Serializer;
Value : in out Ada.Strings.Unbounded.Unbounded_String;
Default : in Ada.Strings.Unbounded.Unbounded_String);
generic
type Custom_Type is private;
with function Image (S : Custom_Type) return String;
with function Value (S : String) return Custom_Type;
Triming : in Boolean := False;
package IO_Custom is
procedure IO (
Object : not null access Serializer;
Name : in String;
Value : in out Custom_Type);
procedure IO (
Object : not null access Serializer;
Name : in String;
Value : in out Custom_Type;
Default : in Custom_Type);
end IO_Custom;
generic
type Enumeration_Type is (<>);
package IO_Enumeration is
procedure IO (
Object : not null access Serializer;
Name : in String;
Value : in out Enumeration_Type);
procedure IO (
Object : not null access Serializer;
Name : in String;
Value : in out Enumeration_Type;
Default : in Enumeration_Type);
private
package Enum_IO is
new IO_Custom (
Enumeration_Type,
Enumeration_Type'Image,
Enumeration_Type'Value,
Triming => True);
procedure IO (
Object : not null access Serializer;
Name : in String;
Value : in out Enumeration_Type)
renames Enum_IO.IO;
procedure IO (
Object : not null access Serializer;
Name : in String;
Value : in out Enumeration_Type;
Default : in Enumeration_Type)
renames Enum_IO.IO;
end IO_Enumeration;
procedure IO (
Object : not null access Serializer;
Name : in String;
Value : in out Integer);
procedure IO (
Object : not null access Serializer;
Name : in String;
Value : in out Integer;
Default : in Integer);
procedure IO (
Object : not null access Serializer;
Name : in String;
Value : in out Boolean);
procedure IO (
Object : not null access Serializer;
Name : in String;
Value : in out Boolean;
Default : in Boolean);
-- mapping
procedure IO (
Object : not null access Serializer;
Name : in String;
Callback : not null access procedure);
procedure IO (
Object : not null access Serializer;
Callback : not null access procedure);
type Cursor is private;
function Has_Element (Position : Cursor) return Boolean;
package Mapping_Iterator_Interfaces is
new Ada.Iterator_Interfaces (Cursor, Has_Element);
function IO (Object : not null access Serializer; Name : String)
return Mapping_Iterator_Interfaces.Forward_Iterator'Class;
function IO (Object : not null access Serializer)
return Mapping_Iterator_Interfaces.Forward_Iterator'Class;
generic
type Cursor is private;
type Element_Type is private;
type Container_Type is limited private;
Default : in Element_Type;
with procedure Iterate (
Container : in Container_Type;
Process : not null access procedure (Position : in Cursor)) is <>;
with procedure Update_Element (
Container : in out Container_Type;
Position : in Cursor;
Process : not null access procedure (
Key : in String;
Element : in out Element_Type)) is <>;
with procedure Insert (
Container : in out Container_Type;
Key : in String;
New_Item : in Element_Type;
Position : out Cursor;
Inserted : out Boolean) is <>;
with procedure Clear (Container : in out Container_Type) is <>;
package IO_Map_2005 is
procedure IO (
Object : not null access Serializer;
Name : in String;
Value : in out Container_Type;
Callback : not null access procedure (
Object : not null access Serializer;
Name : in String;
Item : in out Element_Type));
procedure IO (
Object : not null access Serializer;
Value : in out Container_Type;
Callback : not null access procedure (
Object : not null access Serializer;
Name : in String;
Item : in out Element_Type));
end IO_Map_2005;
generic
type Cursor is private;
type Element_Type is private;
type Container_Type is limited private;
type Reference_Type (
Element : not null access Element_Type) is limited private;
Default : in Element_Type;
with function Has_Element (Position : Cursor) return Boolean is <>;
with function First (Container : Container_Type) return Cursor is <>;
with function Next (Position : Cursor) return Cursor is <>;
with function Key (Position : Cursor) return String is <>;
with function Reference (
Container : aliased in out Container_Type;
Position : Cursor)
return Reference_Type is <>;
with procedure Insert (
Container : in out Container_Type;
Key : in String;
New_Item : in Element_Type;
Position : out Cursor;
Inserted : out Boolean) is <>;
with procedure Clear (Container : in out Container_Type) is <>;
package IO_Map_2012 is
procedure IO (
Object : not null access Serializer;
Name : in String;
Value : aliased in out Container_Type;
Callback : not null access procedure (
Object : not null access Serializer;
Name : in String;
Item : in out Element_Type));
procedure IO (
Object : not null access Serializer;
Value : aliased in out Container_Type;
Callback : not null access procedure (
Object : not null access Serializer;
Name : in String;
Item : in out Element_Type));
end IO_Map_2012;
generic package IO_Map
renames IO_Map_2012;
-- sequence
generic
type Index_Type is (<>);
type Element_Type is private;
type Array_Type is array (Index_Type range <>) of Element_Type;
type Array_Access is access Array_Type;
Default : in Element_Type;
with procedure Free (X : in out Array_Access) is <>;
package IO_Array is
procedure IO (
Object : not null access Serializer;
Name : in String;
Value : in out Array_Access;
Callback : not null access procedure (
Object : not null access Serializer;
Item : in out Element_Type));
procedure IO (
Object : not null access Serializer;
Value : in out Array_Access;
Callback : not null access procedure (
Object : not null access Serializer;
Item : in out Element_Type));
end IO_Array;
generic
type Cursor is private;
type Element_Type is private;
type Container_Type is limited private;
Default : in Element_Type;
with function Last (Container : Container_Type) return Cursor is <>;
with procedure Iterate (
Container : in Container_Type;
Process : not null access procedure (Position : in Cursor)) is <>;
with procedure Update_Element (
Container : in out Container_Type;
Position : in Cursor;
Process : not null access procedure (Element : in out Element_Type)) is <>;
with procedure Append (
Container : in out Container_Type;
New_Item : in Element_Type;
Count : in Ada.Containers.Count_Type := 1) is <>;
with procedure Clear (Container : in out Container_Type) is <>;
package IO_List_2005 is
procedure IO (
Object : not null access Serializer;
Name : in String;
Value : in out Container_Type;
Callback : not null access procedure (
Object : not null access Serializer;
Item : in out Element_Type));
procedure IO (
Object : not null access Serializer;
Value : in out Container_Type;
Callback : not null access procedure (
Object : not null access Serializer;
Item : in out Element_Type));
end IO_List_2005;
generic
type Cursor is private;
type Element_Type is private;
type Container_Type is limited private;
type Reference_Type (
Element : not null access Element_Type) is limited private;
Default : in Element_Type;
with function Last (Container : Container_Type) return Cursor is <>;
with function Has_Element (Position : Cursor) return Boolean is <>;
with function First (Container : Container_Type) return Cursor is <>;
with function Next (Position : Cursor) return Cursor is <>;
with function Reference (
Container : aliased in out Container_Type;
Position : Cursor)
return Reference_Type is <>;
with procedure Append (
Container : in out Container_Type;
New_Item : in Element_Type;
Count : in Ada.Containers.Count_Type := 1) is <>;
with procedure Clear (Container : in out Container_Type) is <>;
package IO_List_2012 is
procedure IO (
Object : not null access Serializer;
Name : in String;
Value : aliased in out Container_Type;
Callback : not null access procedure (
Object : not null access Serializer;
Item : in out Element_Type));
procedure IO (
Object : not null access Serializer;
Value : aliased in out Container_Type;
Callback : not null access procedure (
Object : not null access Serializer;
Item : in out Element_Type));
end IO_List_2012;
generic package IO_List
renames IO_List_2012;
generic
type Cursor is private;
type Element_Type is private;
type Container_Type is limited private;
Default : in Element_Type;
with procedure Iterate (
Container : in Container_Type;
Process : not null access procedure (Position : in Cursor)) is <>;
with procedure Query_Element (
Position : in Cursor;
Process : not null access procedure (Element : in Element_Type)) is <>;
with procedure Insert (
Container : in out Container_Type;
New_Item : in Element_Type;
Position : out Cursor;
Inserted : out Boolean) is <>;
with procedure Clear (Container : in out Container_Type) is <>;
package IO_Set_2005 is
procedure IO (
Object : not null access Serializer;
Name : in String;
Value : in out Container_Type;
Callback : not null access procedure (
Object : not null access Serializer;
Item : in out Element_Type));
procedure IO (
Object : not null access Serializer;
Value : in out Container_Type;
Callback : not null access procedure (
Object : not null access Serializer;
Item : in out Element_Type));
end IO_Set_2005;
generic
type Cursor is private;
type Element_Type is private;
type Container_Type is limited private;
type Constant_Reference_Type (
Element : not null access constant Element_Type) is limited private;
Default : in Element_Type;
with function Has_Element (Position : Cursor) return Boolean is <>;
with function First (Container : Container_Type) return Cursor is <>;
with function Next (Position : Cursor) return Cursor is <>;
with function Constant_Reference (
Container : aliased Container_Type;
Position : Cursor)
return Constant_Reference_Type is <>;
with procedure Insert (
Container : in out Container_Type;
New_Item : in Element_Type;
Position : out Cursor;
Inserted : out Boolean) is <>;
with procedure Clear (Container : in out Container_Type) is <>;
package IO_Set_2012 is
procedure IO (
Object : not null access Serializer;
Name : in String;
Value : aliased in out Container_Type;
Callback : not null access procedure (
Object : not null access Serializer;
Item : in out Element_Type));
procedure IO (
Object : not null access Serializer;
Value : aliased in out Container_Type;
Callback : not null access procedure (
Object : not null access Serializer;
Item : in out Element_Type));
end IO_Set_2012;
generic package IO_Set
renames IO_Set_2012;
private
type State is (In_Mapping, In_Sequence);
pragma Discard_Names (State);
type Reader is abstract tagged limited null record;
function Next_Kind (Object : not null access Reader)
return Stream_Element_Kind is abstract;
function Next_Name (Object : not null access Reader)
return not null access constant String is abstract;
function Next_Value (Object : not null access Reader)
return not null access constant String is abstract;
procedure Advance (
Object : not null access Reader;
Position : in State) is abstract;
procedure Advance_Structure (
Object : not null access Reader;
Position : in State);
type Writer is abstract tagged limited null record;
procedure Put (
Object : not null access Writer;
Name : in String;
Item : in String) is abstract;
procedure Enter_Mapping (
Object : not null access Writer;
Name : in String) is abstract;
procedure Leave_Mapping (Object : not null access Writer) is abstract;
procedure Enter_Sequence (
Object : not null access Writer;
Name : in String) is abstract;
procedure Leave_Sequence (Object : not null access Writer) is abstract;
type Serializer (Direction : Serialization.Direction) is limited record
case Direction is
when Reading =>
Reader : not null access Serialization.Reader'Class;
when Writing =>
Writer : not null access Serialization.Writer'Class;
end case;
end record;
-- mapping
type Cursor is new Boolean;
type Mapping_Iterator is new Mapping_Iterator_Interfaces.Forward_Iterator
with record
Serializer : not null access Serialization.Serializer;
Entry_Presence : Boolean;
end record;
overriding function First (Object : Mapping_Iterator) return Cursor;
overriding function Next (Object : Mapping_Iterator; Position : Cursor)
return Cursor;
end Serialization;
|
zhmu/ananas | Ada | 17,929 | ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S Y S T E M . S E C O N D A R Y _ S T A C K --
-- --
-- S p e c --
-- --
-- Copyright (C) 1992-2022, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. --
-- --
-- As a special exception under Section 7 of GPL version 3, you are granted --
-- additional permissions described in the GCC Runtime Library Exception, --
-- version 3.1, as published by the Free Software Foundation. --
-- --
-- You should have received a copy of the GNU General Public License and --
-- a copy of the GCC Runtime Library Exception along with this program; --
-- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
-- <http://www.gnu.org/licenses/>. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with System.Parameters;
with System.Storage_Elements;
package System.Secondary_Stack is
pragma Preelaborate;
package SP renames System.Parameters;
package SSE renames System.Storage_Elements;
use type SP.Size_Type;
type SS_Stack (Default_Chunk_Size : SP.Size_Type) is private;
-- An abstraction for a heap structure maintained in a stack-like fashion.
-- The structure is comprised of chunks which accommodate allocations of
-- varying sizes. See the private part of the package for further details.
-- Default_Chunk_Size indicates the size of the static chunk, and provides
-- a minimum size for all dynamic chunks.
type SS_Stack_Ptr is access all SS_Stack;
-- A reference to a secondary stack
type Mark_Id is private;
-- An abstraction for tracking the state of the secondary stack
procedure SS_Init
(Stack : in out SS_Stack_Ptr;
Size : SP.Size_Type := SP.Unspecified_Size);
-- Initialize or reuse a secondary stack denoted by reference Stack. If
-- Stack is null, create a new stack of size Size in the following manner:
--
-- * If Size denotes Unspecified_Size, allocate the stack from the binder
-- generated pool as long as the pool has not been exhausted.
--
-- * Otherwise allocate the stack from the heap.
--
-- If Stack is not null, reset the state of the stack. No existing chunks
-- are freed because they may be reused again.
procedure SS_Allocate
(Addr : out Address;
Storage_Size : SSE.Storage_Count);
-- Allocate enough space on the secondary stack of the invoking task to
-- accommodate an alloction of size Storage_Size. Return the address of the
-- first byte of the allocation in Addr. The routine may carry out one or
-- more of the following actions:
--
-- * Reuse an existing chunk that is big enough to accommodate the
-- requested Storage_Size.
--
-- * Free an existing chunk that is too small to accommodate the
-- requested Storage_Size.
--
-- * Create a new chunk that fits the requested Storage_Size.
procedure SS_Free (Stack : in out SS_Stack_Ptr);
-- Free all dynamic chunks of secondary stack Stack. If possible, free the
-- stack itself.
function SS_Mark return Mark_Id;
-- Capture and return the state of the invoking task's secondary stack
procedure SS_Release (M : Mark_Id);
-- Restore the state of the invoking task's secondary stack to mark M
function SS_Get_Max return Long_Long_Integer;
-- Return the high water mark of the invoking task's secondary stack, in
-- bytes.
generic
with procedure Put_Line (S : String);
procedure SS_Info;
-- Debugging procedure for outputting the internals of the invoking task's
-- secondary stack. This procedure is generic in order to avoid a direct
-- dependence on a particular IO package. Instantiate with Text_IO.Put_Line
-- for example.
private
SS_Pool : Integer;
-- Unused entity that is just present to ease the sharing of the pool
-- mechanism for specific allocation/deallocation in the compiler.
------------------
-- Introduction --
------------------
-- The secondary stack is a runtime data structure managed in a stack-like
-- fashion. It is part of the runtime support for functions that return
-- results of caller-unknown size.
--
-- The secondary stack is utilized as follows:
--
-- * The compiler pushes the caller-unknown size result on the secondary
-- stack as part of return statement or build-in-place semantics.
--
-- * The caller receives a reference to the result.
--
-- * Using the reference, the caller may "offload" the result into its
-- primary stack, or use it in-place while still on the secondary
-- stack.
--
-- * Once the caller has utilized the result, the compiler reclaims the
-- memory occupied by the result by popping the secondary stack up to
-- a safe limit.
------------
-- Design --
------------
-- 1) Chunk
--
-- The secondary stack is a linked structure which consist of "chunks".
-- A chunk is both a memory storage and a linked-list node. Addresses of
-- allocated objects refer to addresses within the memory storage of a
-- chunk. Chunks come in two variants - static and dynamic.
--
-- 1.1) Static chunk
--
-- The secondary stack has exactly one static chunk that is created on the
-- primary stack. The static chunk allows secondary-stack usage on targets
-- where dynamic allocation is not available or desirable. The static chunk
-- is always the "first" chunk and precedes all dynamic chunks.
--
-- 1.2) Dynamic chunk
--
-- The secondary stack may have zero or more dynamic chunks, created on the
-- heap. Dynamic chunks allow the secondary stack to grow beyond the limits
-- of the initial static chunk. They provide a finer-grained management of
-- the memory by means of reuse and deallocation.
--
-- 2) Mark
--
-- The secondary stack captures its state in a "mark". The mark is used by
-- the compiler to indicate how far the stack can be safely popped after a
-- sequence of pushes has taken place.
--
-- 3) Secondary stack
--
-- The secondary stack maintains a singly-linked list of chunks, starting
-- with the static chunk, along with a stack pointer.
--
-- 4) Allocation
--
-- The process of allocation equates to "pushing" on the secondary stack.
-- Depending on whether dynamic allocation is allowed or not, there are
-- two variants of allocation - static and dynamic.
--
-- 4.1) Static allocation
--
-- In this case the secondary stack has only the static chunk to work with.
-- The requested size is reserved on the static chunk and the stack pointer
-- is advanced. If the requested size will overflow the static chunk, then
-- Storage_Error is raised.
--
-- 4.2) Dynamic allocation
--
-- In this case the secondary stack may carry out several actions depending
-- on how much free memory is available in the chunk indicated by the stack
-- pointer.
--
-- * If the indicated chunk is big enough, allocation is carried out on
-- it.
--
-- * If the indicated chunk is too small, subsequent chunks (if any) are
-- examined. If a subsequent chunk is big enough, allocation is carried
-- out on it, otherwise the subsequent chunk is deallocated.
--
-- * If none of the chunks following and including the indicated chunk
-- are big enough, a new chunk is created and the allocation is carried
-- out on it.
--
-- This model of operation has several desirable effects:
--
-- * Leftover chunks from prior allocations, followed by at least one pop
-- are either reused or deallocated. This compacts the memory footprint
-- of the secondary stack.
--
-- * When a new chunk is created, its size is exactly the requested size.
-- This keeps the memory usage of the secondary stack tight.
--
-- * Allocation is in general an expensive operation. Compaction is thus
-- added to this cost, rather than penalizing mark and pop operations.
--
-- 5) Marking
--
-- The process of marking involves capturing the secondary-stack pointer
-- in a mark for later restore.
--
-- 6) Releasing
--
-- The process of releasing equates to "popping" the secondary stack. It
-- moves the stack pointer to a previously captured mark, causing chunks
-- to become reusable or deallocatable during the allocation process.
------------------
-- Architecture --
------------------
-- Secondary stack
--
-- +------------+
-- | Top.Byte ------------------------+
-- | Top.Chunk ------------------+ |
-- | | | |
-- | | v |
-- +------------+ +--------+ +-----|--+ +--------+
-- | Memory | | Memory | | Memo|y | | Memory |
-- | ######### | | ##### | | ####| | | ##### |
-- | | | | | | | |
-- | Next ---> | Next ---> | Next ---> | Next ---> x
-- +------------+ +--------+ +--------+ +--------+
--
-- Static chunk Chunk 2 Chunk 3 Chunk 4
--------------------------
-- Memory-related types --
--------------------------
subtype Memory_Size_With_Invalid is SP.Size_Type;
-- Memory storage size which also includes an invalid negative range
Invalid_Memory_Size : constant Memory_Size_With_Invalid := -1;
subtype Memory_Size is
Memory_Size_With_Invalid range 0 .. SP.Size_Type'Last;
-- The memory storage size of a single chunk or the whole secondary stack.
-- A non-negative size is considered a "valid" size.
subtype Memory_Index is Memory_Size;
-- Index into the memory storage of a single chunk
Memory_Alignment : constant := Standard'Maximum_Alignment * 2;
-- The memory alignment we will want to honor on every allocation.
--
-- At this stage, gigi assumes we can accommodate any alignment requirement
-- there might be on the data type for which the memory gets allocated (see
-- build_call_alloc_dealloc).
--
-- The multiplication factor is intended to account for requirements
-- by user code compiled with specific arch/cpu options such as -mavx
-- on X86[_64] targets, which Standard'Maximum_Alignment doesn't convey
-- without such compilation options. * 4 would actually be needed to
-- support -mavx512f on X86, but this would incur more annoying memory
-- consumption overheads.
type Chunk_Memory is array (Memory_Size range <>) of SSE.Storage_Element;
for Chunk_Memory'Alignment use Memory_Alignment;
-- The memory storage of a single chunk
--------------
-- SS_Chunk --
--------------
type SS_Chunk (Size : Memory_Size);
-- Abstraction for a chunk. Size indicates the memory capacity of the
-- chunk.
type SS_Chunk_Ptr is access all SS_Chunk;
-- Reference to the static or any dynamic chunk
type SS_Chunk (Size : Memory_Size) is record
Next : SS_Chunk_Ptr;
-- Pointer to the next chunk. The direction of the pointer is from the
-- static chunk to the first dynamic chunk, and so on.
Size_Up_To_Chunk : Memory_Size;
-- The size of the secondary stack up to, but excluding the current
-- chunk. This value aids in calculating the total amount of memory
-- the stack is consuming, for high-water-mark update purposes.
Memory : Chunk_Memory (1 .. Size);
-- The memory storage of the chunk. The 1-indexing facilitates various
-- size and indexing calculations.
end record;
-------------------
-- Stack_Pointer --
-------------------
-- Abstraction for a secondary stack pointer
type Stack_Pointer is record
Byte : Memory_Index;
-- The position of the first free byte within the memory storage of
-- Chunk.all. Byte - 1 denotes the last occupied byte within Chunk.all.
Chunk : SS_Chunk_Ptr;
-- Reference to the chunk that accommodated the most recent allocation.
-- This could be the static or any dynamic chunk.
end record;
--------------
-- SS_Stack --
--------------
type SS_Stack (Default_Chunk_Size : SP.Size_Type) is record
Freeable : Boolean;
-- Indicates whether the secondary stack can be freed
High_Water_Mark : Memory_Size;
-- The maximum amount of memory in use throughout the lifetime of the
-- secondary stack.
Top : Stack_Pointer;
-- The stack pointer
Static_Chunk : aliased SS_Chunk (Default_Chunk_Size);
-- A special chunk with a default size. On targets that do not support
-- dynamic allocations, this chunk represents the capacity of the whole
-- secondary stack.
end record;
-------------
-- Mark_Id --
-------------
type Mark_Id is record
Stack : SS_Stack_Ptr;
-- The secondary stack whose mark was taken
Top : Stack_Pointer;
-- The value of Stack.Top at the point in time when the mark was taken
end record;
------------------
-- Testing Aids --
------------------
-- The following section provides lightweight versions of all abstractions
-- used to implement a secondary stack. The contents of these versions may
-- look identical to the original abstractions, however there are several
-- important implications:
--
-- * The versions do not expose pointers.
--
-- * The types of the versions are all definite. In addition, there are
-- no per-object constrained components. As a result, the versions do
-- not involve the secondary stack or the heap in any way.
--
-- * The types of the versions do not contain potentially big components.
subtype Chunk_Id_With_Invalid is Natural;
-- Numeric Id of a chunk with value zero
Invalid_Chunk_Id : constant Chunk_Id_With_Invalid := 0;
subtype Chunk_Id is
Chunk_Id_With_Invalid range 1 .. Chunk_Id_With_Invalid'Last;
-- Numeric Id of a chunk. A positive Id is considered "valid" because a
-- secondary stack will have at least one chunk (the static chunk).
subtype Chunk_Count is Natural;
-- Number of chunks in a secondary stack
-- Lightweight version of SS_Chunk
type Chunk_Info is record
Size : Memory_Size_With_Invalid;
-- The memory capacity of the chunk
Size_Up_To_Chunk : Memory_Size_With_Invalid;
-- The size of the secondary stack up to, but excluding the current
-- chunk.
end record;
Invalid_Chunk : constant Chunk_Info :=
(Size => Invalid_Memory_Size,
Size_Up_To_Chunk => Invalid_Memory_Size);
-- Lightweight version of Stack_Pointer
type Stack_Pointer_Info is record
Byte : Memory_Index;
-- The position of the first free byte within the memory storage of
-- Chunk. Byte - 1 denotes the last occupied byte within Chunk.
Chunk : Chunk_Id_With_Invalid;
-- The Id of the chunk that accommodated the most recent allocation.
-- This could be the static or any dynamic chunk.
end record;
-- Lightweight version of SS_Stack
type Stack_Info is record
Default_Chunk_Size : Memory_Size;
-- The default memory capacity of a chunk
Freeable : Boolean;
-- Indicates whether the secondary stack can be freed
High_Water_Mark : Memory_Size;
-- The maximum amount of memory in use throughout the lifetime of the
-- secondary stack.
Number_Of_Chunks : Chunk_Count;
-- The total number of static and dynamic chunks in the secondary stack
Top : Stack_Pointer_Info;
-- The stack pointer
end record;
function Get_Chunk_Info
(Stack : SS_Stack_Ptr;
C_Id : Chunk_Id) return Chunk_Info;
-- Obtain the information attributes of a chunk that belongs to secondary
-- stack Stack and is identified by Id C_Id.
function Get_Stack_Info (Stack : SS_Stack_Ptr) return Stack_Info;
-- Obtain the information attributes of secondary stack Stack
end System.Secondary_Stack;
|
stcarrez/ada-asf | Ada | 6,158 | adb | -----------------------------------------------------------------------
-- asf-navigations-tests - Tests for ASF navigation
-- Copyright (C) 2013, 2018 Stephane Carrez
-- Written by Stephane Carrez ([email protected])
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Util.Test_Caller;
with Util.Beans.Objects;
with ASF.Tests;
with ASF.Requests.Mockup;
with ASF.Responses.Mockup;
with ASF.Applications.Main;
with ASF.Applications.Main.Configs;
with ASF.Applications.Tests;
package body ASF.Navigations.Tests is
use Util.Beans.Objects;
use ASF.Tests;
package Caller is new Util.Test_Caller (Test, "Navigations");
procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite) is
begin
Caller.Add_Test (Suite, "Test navigation exact match (view, outcome, action)",
Test_Exact_Navigation'Access);
Caller.Add_Test (Suite, "Test navigation partial match (view, outcome)",
Test_Partial_Navigation'Access);
Caller.Add_Test (Suite, "Test navigation exception match (view, outcome)",
Test_Exception_Navigation'Access);
Caller.Add_Test (Suite, "Test navigation wildcard match (view, outcome)",
Test_Wildcard_Navigation'Access);
Caller.Add_Test (Suite, "Test navigation condition match (view, outcome)",
Test_Conditional_Navigation'Access);
Caller.Add_Test (Suite, "Test navigation with status",
Test_Status_Navigation'Access);
end Add_Tests;
-- ------------------------------
-- Initialize the test application
-- ------------------------------
overriding
procedure Set_Up (T : in out Test) is
pragma Unreferenced (T);
use type ASF.Applications.Main.Application_Access;
Fact : ASF.Applications.Main.Application_Factory;
begin
if ASF.Tests.Get_Application = null then
ASF.Tests.Initialize (Util.Tests.Get_Properties, Factory => Fact);
end if;
end Set_Up;
-- ------------------------------
-- Check the navigation for an URI and expect the result to match the regular expression.
-- ------------------------------
procedure Check_Navigation (T : in out Test;
Name : in String;
Match : in String;
Raise_Flag : in Boolean := False;
Status : in Natural := 200) is
Request : ASF.Requests.Mockup.Request;
Reply : ASF.Responses.Mockup.Response;
Form : aliased ASF.Applications.Tests.Form_Bean;
File : constant String := Util.Tests.Get_Path ("regtests/config/test-navigations.xml");
begin
Form.Perm_Error := Raise_Flag;
ASF.Applications.Main.Configs.Read_Configuration (ASF.Tests.Get_Application.all, File);
Request.Set_Attribute ("form", To_Object (Value => Form'Unchecked_Access,
Storage => STATIC));
Do_Get (Request, Reply, "/tests/" & Name & ".html", Name & ".txt");
Request.Set_Parameter ("formText", ASF.Tests.Extract ("formText", Name & ".txt"));
Request.Set_Parameter ("name", "John");
Request.Set_Parameter ("password", "12345");
Request.Set_Parameter ("email", "[email protected]");
Request.Set_Parameter ("ok", "1");
Do_Post (Request, Reply, "/tests/" & Name & ".html", Name & "form-navigation-exact.txt");
Assert_Matches (T, Match,
Reply, "Wrong generated content", Status);
end Check_Navigation;
-- ------------------------------
-- Test a form navigation with an exact match (view, outcome, action).
-- ------------------------------
procedure Test_Exact_Navigation (T : in out Test) is
begin
T.Check_Navigation ("form-nav", ".*success.*");
end Test_Exact_Navigation;
-- ------------------------------
-- Test a form navigation with a partial match (view, outcome).
-- ------------------------------
procedure Test_Partial_Navigation (T : in out Test) is
begin
T.Check_Navigation ("form-nav-partial", ".*success partial.*");
end Test_Partial_Navigation;
-- ------------------------------
-- Test a form navigation with a exception match (view, outcome).
-- ------------------------------
procedure Test_Exception_Navigation (T : in out Test) is
begin
T.Check_Navigation ("form-nav-exception", ".*success exception.*", True);
end Test_Exception_Navigation;
-- ------------------------------
-- Test a form navigation with a wildcard match on the URI (view, outcome).
-- ------------------------------
procedure Test_Wildcard_Navigation (T : in out Test) is
begin
T.Check_Navigation ("form-nav-wildcard", ".*success wildcard.*", False);
end Test_Wildcard_Navigation;
-- ------------------------------
-- Test a form navigation with a condition (view, outcome, condition).
-- ------------------------------
procedure Test_Conditional_Navigation (T : in out Test) is
begin
T.Check_Navigation ("form-nav-condition", ".*success condition.*", False);
end Test_Conditional_Navigation;
-- ------------------------------
-- Test a navigation rule with a status.
-- ------------------------------
procedure Test_Status_Navigation (T : in out Test) is
begin
T.Check_Navigation ("form-nav-status", ".*success status.*", False, 400);
end Test_Status_Navigation;
end ASF.Navigations.Tests;
|
stcarrez/ada-ado | Ada | 21,468 | adb | -----------------------------------------------------------------------
-- Samples.User.Model -- Samples.User.Model
-----------------------------------------------------------------------
-- File generated by Dynamo DO NOT MODIFY
-- Template used: templates/model/package-body.xhtml
-- Ada Generator: https://github.com/stcarrez/dynamo Version 1.4.0
-----------------------------------------------------------------------
-- Copyright (C) 2022 Stephane Carrez
-- Written by Stephane Carrez ([email protected])
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
pragma Warnings (Off);
with Ada.Unchecked_Deallocation;
pragma Warnings (On);
package body Samples.User.Model is
pragma Style_Checks ("-mrIu");
pragma Warnings (Off, "formal parameter * is not referenced");
pragma Warnings (Off, "use clause for type *");
pragma Warnings (Off, "use clause for private type *");
use type ADO.Objects.Object_Record_Access;
use type ADO.Objects.Object_Ref;
function User_Key (Id : in ADO.Identifier) return ADO.Objects.Object_Key is
Result : ADO.Objects.Object_Key (Of_Type => ADO.Objects.KEY_INTEGER,
Of_Class => USER_DEF'Access);
begin
ADO.Objects.Set_Value (Result, Id);
return Result;
end User_Key;
function User_Key (Id : in String) return ADO.Objects.Object_Key is
Result : ADO.Objects.Object_Key (Of_Type => ADO.Objects.KEY_INTEGER,
Of_Class => USER_DEF'Access);
begin
ADO.Objects.Set_Value (Result, Id);
return Result;
end User_Key;
function "=" (Left, Right : User_Ref'Class) return Boolean is
begin
return ADO.Objects.Object_Ref'Class (Left) = ADO.Objects.Object_Ref'Class (Right);
end "=";
procedure Set_Field (Object : in out User_Ref'Class;
Impl : out User_Access) is
Result : ADO.Objects.Object_Record_Access;
begin
Object.Prepare_Modify (Result);
Impl := User_Impl (Result.all)'Access;
end Set_Field;
-- Internal method to allocate the Object_Record instance
overriding
procedure Allocate (Object : in out User_Ref) is
Impl : User_Access;
begin
Impl := new User_Impl;
Impl.Version := 0;
Impl.Status := 0;
ADO.Objects.Set_Object (Object, Impl.all'Access);
end Allocate;
-- ----------------------------------------
-- Data object: User
-- ----------------------------------------
procedure Set_Id (Object : in out User_Ref;
Value : in ADO.Identifier) is
Impl : User_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Key_Value (Impl.all, 1, Value);
end Set_Id;
function Get_Id (Object : in User_Ref)
return ADO.Identifier is
Impl : constant User_Access
:= User_Impl (Object.Get_Object.all)'Access;
begin
return Impl.Get_Key_Value;
end Get_Id;
function Get_Version (Object : in User_Ref)
return Integer is
Impl : constant User_Access
:= User_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Version;
end Get_Version;
procedure Set_Name (Object : in out User_Ref;
Value : in String) is
Impl : User_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_String (Impl.all, 3, Impl.Name, Value);
end Set_Name;
procedure Set_Name (Object : in out User_Ref;
Value : in Ada.Strings.Unbounded.Unbounded_String) is
Impl : User_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Unbounded_String (Impl.all, 3, Impl.Name, Value);
end Set_Name;
function Get_Name (Object : in User_Ref)
return String is
begin
return Ada.Strings.Unbounded.To_String (Object.Get_Name);
end Get_Name;
function Get_Name (Object : in User_Ref)
return Ada.Strings.Unbounded.Unbounded_String is
Impl : constant User_Access
:= User_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Name;
end Get_Name;
procedure Set_Email (Object : in out User_Ref;
Value : in String) is
Impl : User_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_String (Impl.all, 4, Impl.Email, Value);
end Set_Email;
procedure Set_Email (Object : in out User_Ref;
Value : in Ada.Strings.Unbounded.Unbounded_String) is
Impl : User_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Unbounded_String (Impl.all, 4, Impl.Email, Value);
end Set_Email;
function Get_Email (Object : in User_Ref)
return String is
begin
return Ada.Strings.Unbounded.To_String (Object.Get_Email);
end Get_Email;
function Get_Email (Object : in User_Ref)
return Ada.Strings.Unbounded.Unbounded_String is
Impl : constant User_Access
:= User_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Email;
end Get_Email;
procedure Set_Date (Object : in out User_Ref;
Value : in String) is
Impl : User_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_String (Impl.all, 5, Impl.Date, Value);
end Set_Date;
procedure Set_Date (Object : in out User_Ref;
Value : in Ada.Strings.Unbounded.Unbounded_String) is
Impl : User_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Unbounded_String (Impl.all, 5, Impl.Date, Value);
end Set_Date;
function Get_Date (Object : in User_Ref)
return String is
begin
return Ada.Strings.Unbounded.To_String (Object.Get_Date);
end Get_Date;
function Get_Date (Object : in User_Ref)
return Ada.Strings.Unbounded.Unbounded_String is
Impl : constant User_Access
:= User_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Date;
end Get_Date;
procedure Set_Description (Object : in out User_Ref;
Value : in String) is
Impl : User_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_String (Impl.all, 6, Impl.Description, Value);
end Set_Description;
procedure Set_Description (Object : in out User_Ref;
Value : in Ada.Strings.Unbounded.Unbounded_String) is
Impl : User_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Unbounded_String (Impl.all, 6, Impl.Description, Value);
end Set_Description;
function Get_Description (Object : in User_Ref)
return String is
begin
return Ada.Strings.Unbounded.To_String (Object.Get_Description);
end Get_Description;
function Get_Description (Object : in User_Ref)
return Ada.Strings.Unbounded.Unbounded_String is
Impl : constant User_Access
:= User_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Description;
end Get_Description;
procedure Set_Status (Object : in out User_Ref;
Value : in Integer) is
Impl : User_Access;
begin
Set_Field (Object, Impl);
ADO.Objects.Set_Field_Integer (Impl.all, 7, Impl.Status, Value);
end Set_Status;
function Get_Status (Object : in User_Ref)
return Integer is
Impl : constant User_Access
:= User_Impl (Object.Get_Load_Object.all)'Access;
begin
return Impl.Status;
end Get_Status;
-- Copy of the object.
procedure Copy (Object : in User_Ref;
Into : in out User_Ref) is
Result : User_Ref;
begin
if not Object.Is_Null then
declare
Impl : constant User_Access
:= User_Impl (Object.Get_Load_Object.all)'Access;
Copy : constant User_Access
:= new User_Impl;
begin
ADO.Objects.Set_Object (Result, Copy.all'Access);
Copy.Copy (Impl.all);
Copy.Version := Impl.Version;
Copy.Name := Impl.Name;
Copy.Email := Impl.Email;
Copy.Date := Impl.Date;
Copy.Description := Impl.Description;
Copy.Status := Impl.Status;
end;
end if;
Into := Result;
end Copy;
overriding
procedure Find (Object : in out User_Ref;
Session : in out ADO.Sessions.Session'Class;
Query : in ADO.SQL.Query'Class;
Found : out Boolean) is
Impl : constant User_Access := new User_Impl;
begin
Impl.Find (Session, Query, Found);
if Found then
ADO.Objects.Set_Object (Object, Impl.all'Access);
else
ADO.Objects.Set_Object (Object, null);
Destroy (Impl);
end if;
end Find;
procedure Load (Object : in out User_Ref;
Session : in out ADO.Sessions.Session'Class;
Id : in ADO.Identifier) is
Impl : constant User_Access := new User_Impl;
Found : Boolean;
Query : ADO.SQL.Query;
begin
Query.Bind_Param (Position => 1, Value => Id);
Query.Set_Filter ("id = ?");
Impl.Find (Session, Query, Found);
if not Found then
Destroy (Impl);
raise ADO.Objects.NOT_FOUND;
end if;
ADO.Objects.Set_Object (Object, Impl.all'Access);
end Load;
procedure Load (Object : in out User_Ref;
Session : in out ADO.Sessions.Session'Class;
Id : in ADO.Identifier;
Found : out Boolean) is
Impl : constant User_Access := new User_Impl;
Query : ADO.SQL.Query;
begin
Query.Bind_Param (Position => 1, Value => Id);
Query.Set_Filter ("id = ?");
Impl.Find (Session, Query, Found);
if not Found then
Destroy (Impl);
else
ADO.Objects.Set_Object (Object, Impl.all'Access);
end if;
end Load;
procedure Reload (Object : in out User_Ref;
Session : in out ADO.Sessions.Session'Class;
Updated : out Boolean) is
Result : ADO.Objects.Object_Record_Access;
Impl : User_Access;
Query : ADO.SQL.Query;
Id : ADO.Identifier;
begin
if Object.Is_Null then
raise ADO.Objects.NULL_ERROR;
end if;
Object.Prepare_Modify (Result);
Impl := User_Impl (Result.all)'Access;
Id := ADO.Objects.Get_Key_Value (Impl.all);
Query.Bind_Param (Position => 1, Value => Id);
Query.Bind_Param (Position => 2, Value => Impl.Version);
Query.Set_Filter ("id = ? AND version != ?");
declare
Stmt : ADO.Statements.Query_Statement
:= Session.Create_Statement (Query, USER_DEF'Access);
begin
Stmt.Execute;
if Stmt.Has_Elements then
Updated := True;
Impl.Load (Stmt, Session);
else
Updated := False;
end if;
end;
end Reload;
overriding
procedure Save (Object : in out User_Ref;
Session : in out ADO.Sessions.Master_Session'Class) is
Impl : ADO.Objects.Object_Record_Access := Object.Get_Object;
begin
if Impl = null then
Impl := new User_Impl;
ADO.Objects.Set_Object (Object, Impl);
end if;
if not ADO.Objects.Is_Created (Impl.all) then
Impl.Create (Session);
else
Impl.Save (Session);
end if;
end Save;
overriding
procedure Delete (Object : in out User_Ref;
Session : in out ADO.Sessions.Master_Session'Class) is
Impl : constant ADO.Objects.Object_Record_Access := Object.Get_Object;
begin
if Impl /= null then
Impl.Delete (Session);
end if;
end Delete;
-- --------------------
-- Free the object
-- --------------------
overriding
procedure Destroy (Object : access User_Impl) is
type User_Impl_Ptr is access all User_Impl;
procedure Unchecked_Free is new Ada.Unchecked_Deallocation
(User_Impl, User_Impl_Ptr);
pragma Warnings (Off, "*redundant conversion*");
Ptr : User_Impl_Ptr := User_Impl (Object.all)'Access;
pragma Warnings (On, "*redundant conversion*");
begin
Unchecked_Free (Ptr);
end Destroy;
overriding
procedure Find (Object : in out User_Impl;
Session : in out ADO.Sessions.Session'Class;
Query : in ADO.SQL.Query'Class;
Found : out Boolean) is
Stmt : ADO.Statements.Query_Statement
:= Session.Create_Statement (Query, USER_DEF'Access);
begin
Stmt.Execute;
if Stmt.Has_Elements then
Object.Load (Stmt, Session);
Stmt.Next;
Found := not Stmt.Has_Elements;
else
Found := False;
end if;
end Find;
overriding
procedure Load (Object : in out User_Impl;
Session : in out ADO.Sessions.Session'Class) is
Found : Boolean;
Query : ADO.SQL.Query;
Id : constant ADO.Identifier := Object.Get_Key_Value;
begin
Query.Bind_Param (Position => 1, Value => Id);
Query.Set_Filter ("id = ?");
Object.Find (Session, Query, Found);
if not Found then
raise ADO.Objects.NOT_FOUND;
end if;
end Load;
overriding
procedure Save (Object : in out User_Impl;
Session : in out ADO.Sessions.Master_Session'Class) is
Stmt : ADO.Statements.Update_Statement
:= Session.Create_Statement (USER_DEF'Access);
begin
if Object.Is_Modified (1) then
Stmt.Save_Field (Name => COL_0_1_NAME, -- id
Value => Object.Get_Key);
Object.Clear_Modified (1);
end if;
if Object.Is_Modified (3) then
Stmt.Save_Field (Name => COL_2_1_NAME, -- name
Value => Object.Name);
Object.Clear_Modified (3);
end if;
if Object.Is_Modified (4) then
Stmt.Save_Field (Name => COL_3_1_NAME, -- email
Value => Object.Email);
Object.Clear_Modified (4);
end if;
if Object.Is_Modified (5) then
Stmt.Save_Field (Name => COL_4_1_NAME, -- date
Value => Object.Date);
Object.Clear_Modified (5);
end if;
if Object.Is_Modified (6) then
Stmt.Save_Field (Name => COL_5_1_NAME, -- description
Value => Object.Description);
Object.Clear_Modified (6);
end if;
if Object.Is_Modified (7) then
Stmt.Save_Field (Name => COL_6_1_NAME, -- status
Value => Object.Status);
Object.Clear_Modified (7);
end if;
if Stmt.Has_Save_Fields then
Object.Version := Object.Version + 1;
Stmt.Save_Field (Name => "version",
Value => Object.Version);
Stmt.Set_Filter (Filter => "id = ? and version = ?");
Stmt.Add_Param (Value => Object.Get_Key);
Stmt.Add_Param (Value => Object.Version - 1);
declare
Result : Integer;
begin
Stmt.Execute (Result);
if Result /= 1 then
if Result /= 0 then
raise ADO.Objects.UPDATE_ERROR;
else
raise ADO.Objects.LAZY_LOCK;
end if;
end if;
end;
end if;
end Save;
overriding
procedure Create (Object : in out User_Impl;
Session : in out ADO.Sessions.Master_Session'Class) is
Query : ADO.Statements.Insert_Statement
:= Session.Create_Statement (USER_DEF'Access);
Result : Integer;
begin
Object.Version := 1;
Session.Allocate (Id => Object);
Query.Save_Field (Name => COL_0_1_NAME, -- id
Value => Object.Get_Key);
Query.Save_Field (Name => COL_1_1_NAME, -- object_version
Value => Object.Version);
Query.Save_Field (Name => COL_2_1_NAME, -- name
Value => Object.Name);
Query.Save_Field (Name => COL_3_1_NAME, -- email
Value => Object.Email);
Query.Save_Field (Name => COL_4_1_NAME, -- date
Value => Object.Date);
Query.Save_Field (Name => COL_5_1_NAME, -- description
Value => Object.Description);
Query.Save_Field (Name => COL_6_1_NAME, -- status
Value => Object.Status);
Query.Execute (Result);
if Result /= 1 then
raise ADO.Objects.INSERT_ERROR;
end if;
ADO.Objects.Set_Created (Object);
end Create;
overriding
procedure Delete (Object : in out User_Impl;
Session : in out ADO.Sessions.Master_Session'Class) is
Stmt : ADO.Statements.Delete_Statement
:= Session.Create_Statement (USER_DEF'Access);
begin
Stmt.Set_Filter (Filter => "id = ?");
Stmt.Add_Param (Value => Object.Get_Key);
Stmt.Execute;
end Delete;
-- ------------------------------
-- Get the bean attribute identified by the name.
-- ------------------------------
overriding
function Get_Value (From : in User_Ref;
Name : in String) return Util.Beans.Objects.Object is
Obj : ADO.Objects.Object_Record_Access;
Impl : access User_Impl;
begin
if From.Is_Null then
return Util.Beans.Objects.Null_Object;
end if;
Obj := From.Get_Load_Object;
Impl := User_Impl (Obj.all)'Access;
if Name = "id" then
return ADO.Objects.To_Object (Impl.Get_Key);
elsif Name = "name" then
return Util.Beans.Objects.To_Object (Impl.Name);
elsif Name = "email" then
return Util.Beans.Objects.To_Object (Impl.Email);
elsif Name = "date" then
return Util.Beans.Objects.To_Object (Impl.Date);
elsif Name = "description" then
return Util.Beans.Objects.To_Object (Impl.Description);
elsif Name = "status" then
return Util.Beans.Objects.To_Object (Long_Long_Integer (Impl.Status));
end if;
return Util.Beans.Objects.Null_Object;
end Get_Value;
procedure List (Object : in out User_Vector;
Session : in out ADO.Sessions.Session'Class;
Query : in ADO.SQL.Query'Class) is
Stmt : ADO.Statements.Query_Statement
:= Session.Create_Statement (Query, USER_DEF'Access);
begin
Stmt.Execute;
User_Vectors.Clear (Object);
while Stmt.Has_Elements loop
declare
Item : User_Ref;
Impl : constant User_Access := new User_Impl;
begin
Impl.Load (Stmt, Session);
ADO.Objects.Set_Object (Item, Impl.all'Access);
Object.Append (Item);
end;
Stmt.Next;
end loop;
end List;
-- ------------------------------
-- Load the object from current iterator position
-- ------------------------------
procedure Load (Object : in out User_Impl;
Stmt : in out ADO.Statements.Query_Statement'Class;
Session : in out ADO.Sessions.Session'Class) is
pragma Unreferenced (Session);
begin
Object.Set_Key_Value (Stmt.Get_Identifier (0));
Object.Name := Stmt.Get_Unbounded_String (2);
Object.Email := Stmt.Get_Unbounded_String (3);
Object.Date := Stmt.Get_Unbounded_String (4);
Object.Description := Stmt.Get_Unbounded_String (5);
Object.Status := Stmt.Get_Integer (6);
Object.Version := Stmt.Get_Integer (1);
ADO.Objects.Set_Created (Object);
end Load;
-- --------------------
--
-- --------------------
procedure List (Object : in out User_Info_Vector;
Session : in out ADO.Sessions.Session'Class;
Context : in out ADO.Queries.Context'Class) is
procedure Read (Into : in out User_Info);
Stmt : ADO.Statements.Query_Statement
:= Session.Create_Statement (Context);
Pos : Positive := 1;
procedure Read (Into : in out User_Info) is
begin
Into.Id := Stmt.Get_Identifier (0);
Into.Name := Stmt.Get_Unbounded_String (1);
Into.Email := Stmt.Get_Unbounded_String (2);
end Read;
begin
Stmt.Execute;
User_Info_Vectors.Clear (Object);
while Stmt.Has_Elements loop
Object.Insert_Space (Before => Pos);
Object.Update_Element (Index => Pos, Process => Read'Access);
Pos := Pos + 1;
Stmt.Next;
end loop;
end List;
end Samples.User.Model;
|
persan/protobuf-ada | Ada | 67 | ads | package Google.Protobuf with Pure => True is
end Google.Protobuf;
|
stcarrez/ada-el | Ada | 1,906 | ads | -----------------------------------------------------------------------
-- el-variables -- Variable mapper
-- Copyright (C) 2009, 2010, 2011, 2021, 2022 Stephane Carrez
-- Written by Stephane Carrez ([email protected])
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
--
-- The expression context provides information to resolve runtime
-- information when evaluating an expression. The context provides
-- a resolver whose role is to find variables given their name.
with Ada.Strings.Unbounded;
with EL.Expressions;
with EL.Objects;
package EL.Variables is
pragma Preelaborate;
use Ada.Strings.Unbounded;
No_Variable : exception;
type Variable_Mapper is interface;
type Variable_Mapper_Access is access all Variable_Mapper'Class;
procedure Bind (Mapper : in out Variable_Mapper;
Name : in String;
Value : in EL.Objects.Object) is abstract;
function Get_Variable (Mapper : Variable_Mapper;
Name : Unbounded_String)
return EL.Expressions.Expression is abstract;
procedure Set_Variable (Mapper : in out Variable_Mapper;
Name : in Unbounded_String;
Value : in EL.Expressions.Expression) is abstract;
end EL.Variables;
|
reznikmm/matreshka | Ada | 10,676 | ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- XML Processor --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2013-2014, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with League.Strings;
limited with XML.DOM.Documents;
package XML.DOM.Nodes is
pragma Preelaborate;
type DOM_Node is limited interface;
type DOM_Node_Access is access all DOM_Node'Class
with Storage_Size => 0;
not overriding function Get_Node_Name
(Self : not null access constant DOM_Node)
return League.Strings.Universal_String is abstract;
-- The name of this node, depending on its type; see the table above.
not overriding function Get_Node_Value
(Self : not null access constant DOM_Node)
return League.Strings.Universal_String is abstract;
not overriding procedure Set_Node_Value
(Self : not null access DOM_Node;
New_Value : League.Strings.Universal_String) is abstract;
-- The value of this node, depending on its type; see the table above. When
-- it is defined to be null, setting it has no effect, including if the
-- node is read-only.
--
-- Exceptions on setting
--
-- DOMException
--
-- NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly and if
-- it is not defined to be null.
--
-- Exceptions on retrieval
--
-- DOMException
--
-- DOMSTRING_SIZE_ERR: Raised when it would return more characters than
-- fit in a DOMString variable on the implementation platform.
not overriding function Get_Node_Type
(Self : not null access constant DOM_Node)
return XML.DOM.Node_Type is abstract;
-- A code representing the type of the underlying object, as defined above.
not overriding function Get_Parent_Node
(Self : not null access constant DOM_Node) return DOM_Node_Access
is abstract;
-- The parent of this node. All nodes, except Attr, Document,
-- DocumentFragment, Entity, and Notation may have a parent. However, if a
-- node has just been created and not yet added to the tree, or if it has
-- been removed from the tree, this is null.
not overriding function Get_First_Child
(Self : not null access constant DOM_Node) return DOM_Node_Access
is abstract;
-- The first child of this node. If there is no such node, this returns
-- null.
not overriding function Get_Last_Child
(Self : not null access constant DOM_Node) return DOM_Node_Access
is abstract;
-- The last child of this node. If there is no such node, this returns
-- null.
not overriding function Get_Previous_Sibling
(Self : not null access constant DOM_Node) return DOM_Node_Access
is abstract;
-- The node immediately preceding this node. If there is no such node, this
-- returns null.
not overriding function Get_Next_Sibling
(Self : not null access constant DOM_Node) return DOM_Node_Access
is abstract;
-- The node immediately following this node. If there is no such node, this
-- returns null.
not overriding function Get_Owner_Document
(Self : not null access constant DOM_Node)
return XML.DOM.Documents.DOM_Document_Access is abstract;
-- The Document object associated with this node. This is also the Document
-- object used to create new nodes. When this node is a Document or a
-- DocumentType which is not used with any Document yet, this is null.
not overriding function Get_Namespace_URI
(Self : not null access constant DOM_Node)
return League.Strings.Universal_String is abstract;
-- The namespace URI of this node, or null if it is unspecified (see XML
-- Namespaces). This is not a computed value that is the result of a
-- namespace lookup based on an examination of the namespace declarations
-- in scope. It is merely the namespace URI given at creation time. For
-- nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE and nodes
-- created with a DOM Level 1 method, such as Document.createElement(),
-- this is always null.
--
-- Note: Per the Namespaces in XML Specification [XML Namespaces] an
-- attribute does not inherit its namespace from the element it is attached
-- to. If an attribute is not explicitly given a namespace, it simply has
-- no namespace.
not overriding function Get_Local_Name
(Self : not null access constant DOM_Node)
return League.Strings.Universal_String is abstract;
-- Returns the local part of the qualified name of this node. For nodes of
-- any type other than ELEMENT_NODE and ATTRIBUTE_NODE and nodes created
-- with a DOM Level 1 method, such as Document.createElement(), this is
-- always null.
not overriding function Remove_Child
(Self : not null access DOM_Node;
Old_Child : not null DOM_Node_Access) return not null DOM_Node_Access
is abstract;
-- Removes the child node indicated by oldChild from the list of children,
-- and returns it.
--
-- Parameters
--
-- oldChild of type Node
-- The node being removed.
--
-- Return Value
--
-- Node
-- The node removed.
--
-- Exceptions
--
-- DOMException
--
-- NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
--
-- NOT_FOUND_ERR: Raised if oldChild is not a child of this node.
--
-- NOT_SUPPORTED_ERR: if this node is of type Document, this exception
-- might be raised if the DOM implementation doesn't support the
-- removal of the DocumentType child or the Element child.
procedure Remove_Child
(Self : not null access DOM_Node'Class;
Old_Child : not null DOM_Node_Access);
not overriding function Append_Child
(Self : not null access DOM_Node;
New_Child : not null DOM_Node_Access) return not null DOM_Node_Access
is abstract;
-- Adds the node newChild to the end of the list of children of this node.
-- If the newChild is already in the tree, it is first removed.
--
-- Parameters
--
-- newChild of type Node
-- The node to add.
--
-- If it is a DocumentFragment object, the entire contents of the
-- document fragment are moved into the child list of this node
--
-- Return Value
--
-- Node
-- The node added.
--
-- Exceptions
--
-- DOMException
--
-- HIERARCHY_REQUEST_ERR: Raised if this node is of a type that does
-- not allow children of the type of the newChild node, or if the node
-- to append is one of this node's ancestors or this node itself, or if
-- this node is of type Document and the DOM application attempts to
-- append a second DocumentType or Element node.
--
-- WRONG_DOCUMENT_ERR: Raised if newChild was created from a different
-- document than the one that created this node.
--
-- NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly or if
-- the previous parent of the node being inserted is readonly.
--
-- NOT_SUPPORTED_ERR: if the newChild node is a child of the Document
-- node, this exception might be raised if the DOM implementation
-- doesn't support the removal of the DocumentType child or Element
-- child.
procedure Append_Child
(Self : not null access DOM_Node'Class;
New_Child : not null DOM_Node_Access);
end XML.DOM.Nodes;
|
AdaCore/gpr | Ada | 6,900 | adb | --
-- Copyright (C) 2014-2022, AdaCore
-- SPDX-License-Identifier: Apache-2.0
--
with Ada.Characters.Handling; use Ada.Characters.Handling;
package body Gpr_Parser_Support.Names is
-------------------
-- Is_Valid_Name --
-------------------
function Is_Valid_Name
(Name : Text_Type;
Casing : Casing_Convention := Camel_With_Underscores) return Boolean
is
subtype Alphanumerical is Character_Type with Static_Predicate =>
Alphanumerical in '0' .. '9' | 'a' .. 'z' | 'A' .. 'Z';
subtype Lower_Alphanumerical is Alphanumerical with Static_Predicate =>
Lower_Alphanumerical in '0' .. '9' | 'a' .. 'z';
subtype Upper_Alphanumerical is Alphanumerical with Static_Predicate =>
Upper_Alphanumerical in '0' .. '9' | 'A' .. 'Z';
Last_Was_Underscore : Boolean := False;
begin
-- Validate the first and last characters: first for invariants shared
-- by all conventions, then for convention-specific invariants.
if Name'Length = 0 then
return False;
end if;
declare
First : Character_Type renames Name (Name'First);
Last : Character_Type renames Name (Name'Last);
begin
case Casing is
when Camel_With_Underscores | Camel =>
if First not in Upper_Alphanumerical
or else Last not in Alphanumerical
then
return False;
end if;
when Lower =>
if First not in Lower_Alphanumerical
or else Last not in Lower_Alphanumerical
then
return False;
end if;
when Upper =>
if First not in Upper_Alphanumerical
or else Last not in Upper_Alphanumerical
then
return False;
end if;
end case;
end;
-- Validate all other characters
for C of Name (Name'First + 1 .. Name'Last - 1) loop
case C is
when '_' =>
-- Underscores are forbidden in Camel, and consecutive
-- underscores are forbidden in all conventions.
if Casing = Camel or else Last_Was_Underscore then
return False;
end if;
Last_Was_Underscore := True;
when Alphanumerical =>
-- Depending on the convention, characters following
-- underscores either must be lower-case or upper-case.
if Last_Was_Underscore then
case Casing is
when Camel_With_Underscores | Upper =>
if C not in Upper_Alphanumerical then
return False;
end if;
when Lower =>
if C not in Lower_Alphanumerical then
return False;
end if;
when Camel =>
raise Program_Error;
end case;
else
case Casing is
when Lower =>
if C not in Lower_Alphanumerical then
return False;
end if;
when Upper =>
if C not in Upper_Alphanumerical then
return False;
end if;
when others =>
null;
end case;
end if;
Last_Was_Underscore := False;
when others =>
return False;
end case;
end loop;
return True;
end Is_Valid_Name;
-----------------
-- Create_Name --
-----------------
function Create_Name
(Name : Text_Type;
Casing : Casing_Convention := Camel_With_Underscores) return Name_Type
is
begin
if not Is_Valid_Name (Name, Casing) then
raise Invalid_Name_Error;
end if;
-- Past this point, we know than Name contains alphanumericals and
-- underscores only, so Image (Name) is just a conversion to ASCII (no
-- escape sequence).
declare
N : String := Image (Name);
begin
-- Unless the casing is already Camel_With_Underscores, convert N to
-- it.
case Casing is
when Camel_With_Underscores =>
return To_Unbounded_String (N);
when Camel =>
return Result : Name_Type do
-- Treat each upper-case letter as the start of a new word
for C of N loop
case C is
when 'A' .. 'Z' =>
if Length (Result) > 0 then
Append (Result, '_');
end if;
Append (Result, C);
when '_' =>
null;
when others =>
Append (Result, C);
end case;
end loop;
end return;
when Lower | Upper =>
declare
Start_Word : Boolean := True;
begin
-- Normalize casing: each start of a word (alphanumericals
-- after underscores) must be upper-case, and the rest in lower
-- case.
for C of N loop
if Start_Word then
C := To_Upper (C);
Start_Word := False;
elsif C = '_' then
Start_Word := True;
else
C := To_Lower (C);
end if;
end loop;
end;
return To_Unbounded_String (N);
end case;
end;
end Create_Name;
-----------------
-- Format_Name --
-----------------
function Format_Name
(Name : Name_Type; Casing : Casing_Convention) return Text_Type
is
N : String := To_String (Name);
Last : Natural := N'Last;
begin
if N'Length = 0 then
raise Invalid_Name_Error;
end if;
case Casing is
when Camel_With_Underscores =>
null;
when Camel =>
-- Strip underscores and preserve all other characters
Last := 0;
for C of N loop
if C /= '_' then
Last := Last + 1;
N (Last) := C;
end if;
end loop;
when Lower =>
for C of N loop
C := To_Lower (C);
end loop;
when Upper =>
for C of N loop
C := To_Upper (C);
end loop;
end case;
return To_Text (N (N'First .. Last));
end Format_Name;
end Gpr_Parser_Support.Names;
|
reznikmm/matreshka | Ada | 6,900 | adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Open Document Toolkit --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2014, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with Matreshka.DOM_Documents;
with Matreshka.ODF_String_Constants;
with ODF.DOM.Iterators;
with ODF.DOM.Visitors;
package body Matreshka.ODF_Draw.Custom_Shape_Elements is
------------
-- Create --
------------
overriding function Create
(Parameters : not null access Matreshka.DOM_Elements.Element_L2_Parameters)
return Draw_Custom_Shape_Element_Node is
begin
return Self : Draw_Custom_Shape_Element_Node do
Matreshka.ODF_Draw.Constructors.Initialize
(Self'Unchecked_Access,
Parameters.Document,
Matreshka.ODF_String_Constants.Draw_Prefix);
end return;
end Create;
----------------
-- Enter_Node --
----------------
overriding procedure Enter_Node
(Self : not null access Draw_Custom_Shape_Element_Node;
Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class;
Control : in out XML.DOM.Visitors.Traverse_Control) is
begin
if Visitor in ODF.DOM.Visitors.Abstract_ODF_Visitor'Class then
ODF.DOM.Visitors.Abstract_ODF_Visitor'Class
(Visitor).Enter_Draw_Custom_Shape
(ODF.DOM.Draw_Custom_Shape_Elements.ODF_Draw_Custom_Shape_Access
(Self),
Control);
else
Matreshka.DOM_Elements.Abstract_Element_Node
(Self.all).Enter_Node (Visitor, Control);
end if;
end Enter_Node;
--------------------
-- Get_Local_Name --
--------------------
overriding function Get_Local_Name
(Self : not null access constant Draw_Custom_Shape_Element_Node)
return League.Strings.Universal_String
is
pragma Unreferenced (Self);
begin
return Matreshka.ODF_String_Constants.Custom_Shape_Element;
end Get_Local_Name;
----------------
-- Leave_Node --
----------------
overriding procedure Leave_Node
(Self : not null access Draw_Custom_Shape_Element_Node;
Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class;
Control : in out XML.DOM.Visitors.Traverse_Control) is
begin
if Visitor in ODF.DOM.Visitors.Abstract_ODF_Visitor'Class then
ODF.DOM.Visitors.Abstract_ODF_Visitor'Class
(Visitor).Leave_Draw_Custom_Shape
(ODF.DOM.Draw_Custom_Shape_Elements.ODF_Draw_Custom_Shape_Access
(Self),
Control);
else
Matreshka.DOM_Elements.Abstract_Element_Node
(Self.all).Leave_Node (Visitor, Control);
end if;
end Leave_Node;
----------------
-- Visit_Node --
----------------
overriding procedure Visit_Node
(Self : not null access Draw_Custom_Shape_Element_Node;
Iterator : in out XML.DOM.Visitors.Abstract_Iterator'Class;
Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class;
Control : in out XML.DOM.Visitors.Traverse_Control) is
begin
if Iterator in ODF.DOM.Iterators.Abstract_ODF_Iterator'Class then
ODF.DOM.Iterators.Abstract_ODF_Iterator'Class
(Iterator).Visit_Draw_Custom_Shape
(Visitor,
ODF.DOM.Draw_Custom_Shape_Elements.ODF_Draw_Custom_Shape_Access
(Self),
Control);
else
Matreshka.DOM_Elements.Abstract_Element_Node
(Self.all).Visit_Node (Iterator, Visitor, Control);
end if;
end Visit_Node;
begin
Matreshka.DOM_Documents.Register_Element
(Matreshka.ODF_String_Constants.Draw_URI,
Matreshka.ODF_String_Constants.Custom_Shape_Element,
Draw_Custom_Shape_Element_Node'Tag);
end Matreshka.ODF_Draw.Custom_Shape_Elements;
|
reznikmm/matreshka | Ada | 4,673 | adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Open Document Toolkit --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2014, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with Matreshka.DOM_Documents;
with Matreshka.ODF_String_Constants;
with ODF.DOM.Iterators;
with ODF.DOM.Visitors;
package body Matreshka.ODF_Number.Rfc_Language_Tag_Attributes is
------------
-- Create --
------------
overriding function Create
(Parameters : not null access Matreshka.DOM_Attributes.Attribute_L2_Parameters)
return Number_Rfc_Language_Tag_Attribute_Node is
begin
return Self : Number_Rfc_Language_Tag_Attribute_Node do
Matreshka.ODF_Number.Constructors.Initialize
(Self'Unchecked_Access,
Parameters.Document,
Matreshka.ODF_String_Constants.Number_Prefix);
end return;
end Create;
--------------------
-- Get_Local_Name --
--------------------
overriding function Get_Local_Name
(Self : not null access constant Number_Rfc_Language_Tag_Attribute_Node)
return League.Strings.Universal_String
is
pragma Unreferenced (Self);
begin
return Matreshka.ODF_String_Constants.Rfc_Language_Tag_Attribute;
end Get_Local_Name;
begin
Matreshka.DOM_Documents.Register_Attribute
(Matreshka.ODF_String_Constants.Number_URI,
Matreshka.ODF_String_Constants.Rfc_Language_Tag_Attribute,
Number_Rfc_Language_Tag_Attribute_Node'Tag);
end Matreshka.ODF_Number.Rfc_Language_Tag_Attributes;
|
Schol-R-LEA/sarcos | Ada | 102 | ads | /home/schol-r-lea/Documents/Programming/Projects/OS-Experiments/sarcos/sarcos/ada/rts/src/interfac.ads |
stcarrez/ada-keystore | Ada | 3,089 | ads | -----------------------------------------------------------------------
-- security-random -- Random numbers for nonce, secret keys, token generation
-- Copyright (C) 2017 Stephane Carrez
-- Written by Stephane Carrez ([email protected])
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
-----------------------------------------------------------------------
with Ada.Streams;
with Ada.Finalization;
with Interfaces;
private with Ada.Numerics.Discrete_Random;
-- == Random Generator ==
-- The <tt>Security.Random</tt> package defines the <tt>Generator</tt> tagged type
-- which provides operations to generate random tokens intended to be used for
-- a nonce, access token, salt or other purposes. The generator is intended to be
-- used in multi-task environments as it implements the low level random generation
-- within a protected type. The generator defines a <tt>Generate</tt> operation
-- that returns either a binary random array or the base64url encoding of the
-- binary array.
package Keystore.Random is
type Generator is limited new Ada.Finalization.Limited_Controlled with private;
-- Initialize the random generator.
overriding
procedure Initialize (Gen : in out Generator);
-- Fill the array with pseudo-random numbers.
procedure Generate (Gen : in out Generator;
Into : out Ada.Streams.Stream_Element_Array);
-- Fill the secret with pseudo-random numbers.
procedure Generate (Gen : in out Generator;
Into : out Secret_Key);
procedure Generate (Gen : in out Generator;
Into : out UUID_Type);
-- Generate a random sequence of bits and convert the result
-- into a string in base64url.
function Generate (Gen : in out Generator'Class;
Bits : in Positive) return String;
function Generate (Gen : in out Generator'Class) return Interfaces.Unsigned_32;
private
package Id_Random is new Ada.Numerics.Discrete_Random (Interfaces.Unsigned_32);
-- Protected type to allow using the random generator by several tasks.
protected type Raw_Generator is
procedure Generate (Into : out Ada.Streams.Stream_Element_Array);
procedure Generate (Value : out Interfaces.Unsigned_32);
procedure Reset;
private
-- Random number generator used for ID generation.
Rand : Id_Random.Generator;
end Raw_Generator;
type Generator is limited new Ada.Finalization.Limited_Controlled with record
Rand : Raw_Generator;
end record;
end Keystore.Random;
|
reznikmm/matreshka | Ada | 6,861 | adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Open Document Toolkit --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2014, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with Matreshka.DOM_Documents;
with Matreshka.ODF_String_Constants;
with ODF.DOM.Iterators;
with ODF.DOM.Visitors;
package body Matreshka.ODF_Table.Iteration_Elements is
------------
-- Create --
------------
overriding function Create
(Parameters : not null access Matreshka.DOM_Elements.Element_L2_Parameters)
return Table_Iteration_Element_Node is
begin
return Self : Table_Iteration_Element_Node do
Matreshka.ODF_Table.Constructors.Initialize
(Self'Unchecked_Access,
Parameters.Document,
Matreshka.ODF_String_Constants.Table_Prefix);
end return;
end Create;
----------------
-- Enter_Node --
----------------
overriding procedure Enter_Node
(Self : not null access Table_Iteration_Element_Node;
Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class;
Control : in out XML.DOM.Visitors.Traverse_Control) is
begin
if Visitor in ODF.DOM.Visitors.Abstract_ODF_Visitor'Class then
ODF.DOM.Visitors.Abstract_ODF_Visitor'Class
(Visitor).Enter_Table_Iteration
(ODF.DOM.Table_Iteration_Elements.ODF_Table_Iteration_Access
(Self),
Control);
else
Matreshka.DOM_Elements.Abstract_Element_Node
(Self.all).Enter_Node (Visitor, Control);
end if;
end Enter_Node;
--------------------
-- Get_Local_Name --
--------------------
overriding function Get_Local_Name
(Self : not null access constant Table_Iteration_Element_Node)
return League.Strings.Universal_String
is
pragma Unreferenced (Self);
begin
return Matreshka.ODF_String_Constants.Iteration_Element;
end Get_Local_Name;
----------------
-- Leave_Node --
----------------
overriding procedure Leave_Node
(Self : not null access Table_Iteration_Element_Node;
Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class;
Control : in out XML.DOM.Visitors.Traverse_Control) is
begin
if Visitor in ODF.DOM.Visitors.Abstract_ODF_Visitor'Class then
ODF.DOM.Visitors.Abstract_ODF_Visitor'Class
(Visitor).Leave_Table_Iteration
(ODF.DOM.Table_Iteration_Elements.ODF_Table_Iteration_Access
(Self),
Control);
else
Matreshka.DOM_Elements.Abstract_Element_Node
(Self.all).Leave_Node (Visitor, Control);
end if;
end Leave_Node;
----------------
-- Visit_Node --
----------------
overriding procedure Visit_Node
(Self : not null access Table_Iteration_Element_Node;
Iterator : in out XML.DOM.Visitors.Abstract_Iterator'Class;
Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class;
Control : in out XML.DOM.Visitors.Traverse_Control) is
begin
if Iterator in ODF.DOM.Iterators.Abstract_ODF_Iterator'Class then
ODF.DOM.Iterators.Abstract_ODF_Iterator'Class
(Iterator).Visit_Table_Iteration
(Visitor,
ODF.DOM.Table_Iteration_Elements.ODF_Table_Iteration_Access
(Self),
Control);
else
Matreshka.DOM_Elements.Abstract_Element_Node
(Self.all).Visit_Node (Iterator, Visitor, Control);
end if;
end Visit_Node;
begin
Matreshka.DOM_Documents.Register_Element
(Matreshka.ODF_String_Constants.Table_URI,
Matreshka.ODF_String_Constants.Iteration_Element,
Table_Iteration_Element_Node'Tag);
end Matreshka.ODF_Table.Iteration_Elements;
|
Lyanf/pok | Ada | 2,047 | ads | -- ---------------------------------------------------------------------------
-- --
-- EVENT constant and type definitions and management services --
-- --
-- ---------------------------------------------------------------------------
with APEX.Processes;
package APEX.Events is
Max_Number_Of_Events : constant := System_Limit_Number_Of_Events;
subtype Event_Name_Type is Name_Type;
type Event_Id_Type is private;
Null_Event_Id : constant Event_Id_Type;
type Event_State_Type is (Down, Up);
type Event_Status_Type is record
Event_State : Event_State_Type;
Waiting_Processes : APEX.Processes.Waiting_Range_Type;
end record;
procedure Create_Event
(Event_Name : in Event_Name_Type;
Event_Id : out Event_Id_Type;
Return_Code : out Return_Code_Type);
procedure Set_Event
(Event_Id : in Event_Id_Type;
Return_Code : out Return_Code_Type);
procedure Reset_Event
(Event_Id : in Event_Id_Type;
Return_Code : out Return_Code_Type);
procedure Wait_Event
(Event_Id : in Event_Id_Type;
Time_Out : in System_Time_Type;
Return_Code : out Return_Code_Type);
procedure Get_Event_Id
(Event_Name : in Event_Name_Type;
Event_Id : out Event_Id_Type;
Return_Code : out Return_Code_Type);
procedure Get_Event_Status
(Event_Id : in Event_Id_Type;
Event_Status : out Event_Status_Type;
Return_Code : out Return_Code_Type);
private
type Event_Id_Type is new APEX_Integer;
Null_Event_Id : constant Event_Id_Type := 0;
pragma Convention (C, Event_State_Type);
pragma Convention (C, Event_Status_Type);
-- POK BINDINGS
pragma Import (C, Create_Event, "CREATE_EVENT");
pragma Import (C, Set_Event, "SET_EVENT");
pragma Import (C, Reset_Event, "RESET_EVENT");
pragma Import (C, Wait_Event, "WAIT_EVENT");
pragma Import (C, Get_Event_Id, "GET_EVENT_ID");
pragma Import (C, Get_Event_Status, "GET_EVENT_STATUS");
-- END OF POK BINDINGS
end APEX.Events;
|
reznikmm/matreshka | Ada | 6,466 | ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Localization, Internationalization, Globalization for Ada --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2010-2011, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
package Matreshka.Internals.Unicode.Characters.Latin is
pragma Pure;
-- C0 Controls and Basic Latin
Character_Tabulation : constant := 16#0009#;
Line_Feed : constant := 16#000A#;
Carriage_Return : constant := 16#000D#;
Space : constant := 16#0020#;
Exclamation_Mark : constant := 16#0021#;
Quotation_Mark : constant := 16#0022#;
Number_Sign : constant := 16#0023#;
Percent_Sign : constant := 16#0025#;
Ampersand : constant := 16#0026#;
Apostrophe : constant := 16#0027#;
Plus_Sign : constant := 16#002B#;
Hyphen_Minus : constant := 16#002D#;
Full_Stop : constant := 16#002E#;
Solidus : constant := 16#002F#;
Digit_Zero : constant := 16#0030#;
Digit_One : constant := 16#0031#;
Digit_Two : constant := 16#0032#;
Digit_Three : constant := 16#0033#;
Digit_Four : constant := 16#0034#;
Digit_Five : constant := 16#0035#;
Digit_Six : constant := 16#0036#;
Digit_Seven : constant := 16#0037#;
Digit_Eight : constant := 16#0038#;
Digit_Nine : constant := 16#0039#;
Colon : constant := 16#003A#;
Semicolon : constant := 16#003B#;
Less_Than_Sign : constant := 16#003C#;
Equals_Sign : constant := 16#003D#;
Greater_Than_Sign : constant := 16#003E#;
Question_Mark : constant := 16#003F#;
Latin_Capital_Letter_A : constant := 16#0041#;
Latin_Capital_Letter_B : constant := 16#0042#;
Latin_Capital_Letter_C : constant := 16#0043#;
Latin_Capital_Letter_D : constant := 16#0044#;
Latin_Capital_Letter_E : constant := 16#0045#;
Latin_Capital_Letter_F : constant := 16#0046#;
Latin_Capital_Letter_L : constant := 16#004C#;
Latin_Capital_Letter_M : constant := 16#004D#;
Latin_Capital_Letter_U : constant := 16#0055#;
Latin_Capital_Letter_X : constant := 16#0058#;
Latin_Capital_Letter_Z : constant := 16#005A#;
Left_Square_Bracket : constant := 16#005B#;
Right_Square_Bracket : constant := 16#005D#;
Low_Line : constant := 16#005F#;
Latin_Small_Letter_A : constant := 16#0061#;
Latin_Small_Letter_E : constant := 16#0065#;
Latin_Small_Letter_F : constant := 16#0066#;
Latin_Small_Letter_L : constant := 16#006C#;
Latin_Small_Letter_M : constant := 16#006D#;
Latin_Small_Letter_N : constant := 16#006E#;
Latin_Small_Letter_O : constant := 16#006F#;
Latin_Small_Letter_S : constant := 16#0073#;
Latin_Small_Letter_U : constant := 16#0075#;
Latin_Small_Letter_X : constant := 16#0078#;
Latin_Small_Letter_Y : constant := 16#0079#;
Latin_Small_Letter_Z : constant := 16#007A#;
Tilde : constant := 16#007E#;
-- C1 Controls and Latin-1 Supplement
Next_Line : constant := 16#0085#;
end Matreshka.Internals.Unicode.Characters.Latin;
|
adithyap/coursework | Ada | 949 | adb | with Text_Io;
-- ------------------
procedure hw1 is
-- Package usage declarations
use Text_Io;
package Int_Io is new Integer_Io(Integer);
use Int_Io;
-- Task declarations
task T1 is
entry start;
end T1;
task T2 is
entry start;
end T2;
-- Task definitions
-- -----------------
task body T1 is
begin
for i in 1..500 loop
-- if i > 1 and ((i - 1) mod 50) = 0 then
if ((i - 1) mod 50) = 0 then
accept start do
null;
end start;
end if;
Int_Io.Put(i);
if i mod 50 = 0 then
T2.start;
end if;
end loop;
end T1;
-- -----------------
-- -----------------
task body T2 is
begin
T1.start;
for i in 501..1000 loop
if ((i - 1) mod 50) = 0 then
accept start do
null;
end start;
end if;
Int_Io.Put(i);
if i mod 50 = 0 then
T1.start;
end if;
end loop;
end T2;
-- -----------------
begin
null;
end hw1;
-- ------------------
|
reznikmm/matreshka | Ada | 5,691 | ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011-2012, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
with AMF.Generic_Collections;
package AMF.UML.Message_Occurrence_Specifications.Collections is
pragma Preelaborate;
package UML_Message_Occurrence_Specification_Collections is
new AMF.Generic_Collections
(UML_Message_Occurrence_Specification,
UML_Message_Occurrence_Specification_Access);
type Set_Of_UML_Message_Occurrence_Specification is
new UML_Message_Occurrence_Specification_Collections.Set with null record;
Empty_Set_Of_UML_Message_Occurrence_Specification : constant Set_Of_UML_Message_Occurrence_Specification;
type Ordered_Set_Of_UML_Message_Occurrence_Specification is
new UML_Message_Occurrence_Specification_Collections.Ordered_Set with null record;
Empty_Ordered_Set_Of_UML_Message_Occurrence_Specification : constant Ordered_Set_Of_UML_Message_Occurrence_Specification;
type Bag_Of_UML_Message_Occurrence_Specification is
new UML_Message_Occurrence_Specification_Collections.Bag with null record;
Empty_Bag_Of_UML_Message_Occurrence_Specification : constant Bag_Of_UML_Message_Occurrence_Specification;
type Sequence_Of_UML_Message_Occurrence_Specification is
new UML_Message_Occurrence_Specification_Collections.Sequence with null record;
Empty_Sequence_Of_UML_Message_Occurrence_Specification : constant Sequence_Of_UML_Message_Occurrence_Specification;
private
Empty_Set_Of_UML_Message_Occurrence_Specification : constant Set_Of_UML_Message_Occurrence_Specification
:= (UML_Message_Occurrence_Specification_Collections.Set with null record);
Empty_Ordered_Set_Of_UML_Message_Occurrence_Specification : constant Ordered_Set_Of_UML_Message_Occurrence_Specification
:= (UML_Message_Occurrence_Specification_Collections.Ordered_Set with null record);
Empty_Bag_Of_UML_Message_Occurrence_Specification : constant Bag_Of_UML_Message_Occurrence_Specification
:= (UML_Message_Occurrence_Specification_Collections.Bag with null record);
Empty_Sequence_Of_UML_Message_Occurrence_Specification : constant Sequence_Of_UML_Message_Occurrence_Specification
:= (UML_Message_Occurrence_Specification_Collections.Sequence with null record);
end AMF.UML.Message_Occurrence_Specifications.Collections;
|
Fabien-Chouteau/Ada_Drivers_Library | Ada | 6,060 | ads | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- 3. Neither the name of the copyright holder nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- This package defines an abstract data type for a "serial port" providing
-- non-blocking input (Get) and output (Put) procedures. The procedures are
-- considered non-blocking because they return to the caller (potentially)
-- before the entire message is received or sent.
--
-- The serial port abstraction is a wrapper around a USART peripheral,
-- described by a value of type Peripheral_Descriptor.
--
-- Interrupts are used to send and receive characters.
--
-- NB: clients must not send or receive messages until any prior sending or
-- receiving is completed. See the two functions Sending and Receiving and
-- the preconditions on Put and Get.
with Message_Buffers; use Message_Buffers;
with Ada.Interrupts; use Ada.Interrupts;
package Serial_IO.Nonblocking is
pragma Elaborate_Body;
type Serial_Port
(IRQ : Interrupt_ID;
Device : not null access Peripheral_Descriptor)
is tagged limited private;
procedure Initialize (This : in out Serial_Port) with
Post => Initialized (This);
function Initialized (This : Serial_Port) return Boolean with Inline;
Serial_Port_Uninitialized : exception;
procedure Configure
(This : in out Serial_Port;
Baud_Rate : Baud_Rates;
Parity : Parities := No_Parity;
Data_Bits : Word_Lengths := Word_Length_8;
End_Bits : Stop_Bits := Stopbits_1;
Control : Flow_Control := No_Flow_Control)
with
Pre => (Initialized (This) or else raise Serial_Port_Uninitialized);
procedure Put (This : in out Serial_Port; Msg : not null access Message) with
Pre => (Initialized (This) or else raise Serial_Port_Uninitialized)
and then
not Sending (This),
Inline;
procedure Get (This : in out Serial_Port; Msg : not null access Message) with
Pre => (Initialized (This) or else raise Serial_Port_Uninitialized)
and then
not Receiving (This),
Inline;
function Sending (This : in out Serial_Port) return Boolean;
-- Returns whether This is currently sending a message.
function Receiving (This : in out Serial_Port) return Boolean;
-- Returns whether This is currently receiving a message.
private
-- The protected type defining the interrupt handling for sending and
-- receiving characters via the USART attached to the serial port. Each
-- serial port type a component of this protected type.
protected type Controller (IRQ : Interrupt_ID; Port : access Serial_Port) is
pragma Interrupt_Priority;
procedure Start_Sending (Msg : not null access Message);
-- error: internal call cannot appear in precondition of protected operation
-- with Pre => not Sending;
procedure Start_Receiving (Msg : not null access Message);
-- error: internal call cannot appear in precondition of protected operation
-- with Pre => not Receiving;
function Sending return Boolean;
function Receiving return Boolean;
private
Next_Out : Positive;
Awaiting_Transfer : Natural;
Outgoing_Msg : access Message;
Incoming_Msg : access Message;
procedure Handle_Transmission with Inline;
procedure Handle_Reception with Inline;
procedure Detect_Errors (Is_Xmit_IRQ : Boolean) with Inline;
procedure IRQ_Handler with Attach_Handler => IRQ;
end Controller;
type Serial_Port
(IRQ : Interrupt_ID;
Device : not null access Peripheral_Descriptor)
is tagged limited record
Initialized : Boolean := False;
Control : Controller (IRQ, Serial_Port'Access);
end record;
end Serial_IO.Nonblocking;
|
sungyeon/drake | Ada | 2,051 | ads | pragma License (Unrestricted);
package System.Storage_Elements is
pragma Pure;
type Storage_Offset is range
-(2 ** (Standard'Address_Size - 1)) ..
2 ** (Standard'Address_Size - 1) - 1; -- implementation-defined
subtype Storage_Count is Storage_Offset range 0 .. Storage_Offset'Last;
type Storage_Element is mod 2 ** Storage_Unit; -- implementation-defined
for Storage_Element'Size use Storage_Unit;
type Storage_Array is
array (Storage_Offset range <>) of aliased Storage_Element;
for Storage_Array'Component_Size use Storage_Unit;
-- Address Arithmetic:
function "+" (Left : Address; Right : Storage_Offset) return Address
with Convention => Intrinsic;
function "+" (Left : Storage_Offset; Right : Address) return Address
with Convention => Intrinsic;
function "-" (Left : Address; Right : Storage_Offset) return Address
with Convention => Intrinsic;
function "-" (Left, Right : Address) return Storage_Offset
with Convention => Intrinsic;
pragma Pure_Function ("+");
pragma Pure_Function ("-");
pragma Inline_Always ("+");
pragma Inline_Always ("-");
function "mod" (Left : Address; Right : Storage_Offset)
return Storage_Offset
with Convention => Intrinsic;
pragma Pure_Function ("mod");
pragma Inline_Always ("mod");
-- Conversion to/from integers:
type Integer_Address is mod Memory_Size; -- implementation-defined
function To_Address (Value : Integer_Address) return Address
with Convention => Intrinsic;
function To_Integer (Value : Address) return Integer_Address
with Convention => Intrinsic;
pragma Pure_Function (To_Address);
pragma Pure_Function (To_Integer);
pragma Inline_Always (To_Address);
pragma Inline_Always (To_Integer);
-- extended
-- Shift_Left, Shift_Right, Shift_Right_Arithmetic, Rotate_Left,
-- and Rotate_Right.
pragma Provide_Shift_Operators (Storage_Element);
pragma Provide_Shift_Operators (Integer_Address);
end System.Storage_Elements;
|
reznikmm/matreshka | Ada | 4,882 | ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Open Document Toolkit --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2014, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with XML.DOM.Visitors;
with ODF.DOM.Text_Alphabetical_Index_Source_Elements;
package Matreshka.ODF_Text.Alphabetical_Index_Source_Elements is
type Text_Alphabetical_Index_Source_Element_Node is
new Matreshka.ODF_Text.Abstract_Text_Element_Node
and ODF.DOM.Text_Alphabetical_Index_Source_Elements.ODF_Text_Alphabetical_Index_Source
with null record;
overriding function Create
(Parameters : not null access Matreshka.DOM_Elements.Element_L2_Parameters)
return Text_Alphabetical_Index_Source_Element_Node;
overriding function Get_Local_Name
(Self : not null access constant Text_Alphabetical_Index_Source_Element_Node)
return League.Strings.Universal_String;
overriding procedure Enter_Node
(Self : not null access Text_Alphabetical_Index_Source_Element_Node;
Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class;
Control : in out XML.DOM.Visitors.Traverse_Control);
overriding procedure Leave_Node
(Self : not null access Text_Alphabetical_Index_Source_Element_Node;
Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class;
Control : in out XML.DOM.Visitors.Traverse_Control);
overriding procedure Visit_Node
(Self : not null access Text_Alphabetical_Index_Source_Element_Node;
Iterator : in out XML.DOM.Visitors.Abstract_Iterator'Class;
Visitor : in out XML.DOM.Visitors.Abstract_Visitor'Class;
Control : in out XML.DOM.Visitors.Traverse_Control);
end Matreshka.ODF_Text.Alphabetical_Index_Source_Elements;
|
Tim-Tom/project-euler | Ada | 4,312 | adb | with Ada.Integer_Text_IO;
with Ada.Text_IO;
package body Problem_11 is
package IO renames Ada.Text_IO;
package I_IO renames Ada.Integer_Text_IO;
procedure Solve is
type Row is new Positive range 1 .. 20;
type Column is new Positive range 1 .. 20;
type Grid is Array(Row range <>, Column range <>) of Natural;
table : constant Grid :=
(( 8, 2, 22, 97, 38, 15, 0, 40, 0, 75, 4, 5, 7, 78, 52, 12, 50, 77, 91, 8),
(49, 49, 99, 40, 17, 81, 18, 57, 60, 87, 17, 40, 98, 43, 69, 48, 4, 56, 62, 0),
(81, 49, 31, 73, 55, 79, 14, 29, 93, 71, 40, 67, 53, 88, 30, 3, 49, 13, 36, 65),
(52, 70, 95, 23, 4, 60, 11, 42, 69, 24, 68, 56, 1, 32, 56, 71, 37, 2, 36, 91),
(22, 31, 16, 71, 51, 67, 63, 89, 41, 92, 36, 54, 22, 40, 40, 28, 66, 33, 13, 80),
(24, 47, 32, 60, 99, 3, 45, 2, 44, 75, 33, 53, 78, 36, 84, 20, 35, 17, 12, 50),
(32, 98, 81, 28, 64, 23, 67, 10, 26, 38, 40, 67, 59, 54, 70, 66, 18, 38, 64, 70),
(67, 26, 20, 68, 2, 62, 12, 20, 95, 63, 94, 39, 63, 8, 40, 91, 66, 49, 94, 21),
(24, 55, 58, 5, 66, 73, 99, 26, 97, 17, 78, 78, 96, 83, 14, 88, 34, 89, 63, 72),
(21, 36, 23, 9, 75, 0, 76, 44, 20, 45, 35, 14, 0, 61, 33, 97, 34, 31, 33, 95),
(78, 17, 53, 28, 22, 75, 31, 67, 15, 94, 3, 80, 4, 62, 16, 14, 9, 53, 56, 92),
(16, 39, 5, 42, 96, 35, 31, 47, 55, 58, 88, 24, 0, 17, 54, 24, 36, 29, 85, 57),
(86, 56, 0, 48, 35, 71, 89, 7, 5, 44, 44, 37, 44, 60, 21, 58, 51, 54, 17, 58),
(19, 80, 81, 68, 5, 94, 47, 69, 28, 73, 92, 13, 86, 52, 17, 77, 4, 89, 55, 40),
( 4, 52, 8, 83, 97, 35, 99, 16, 7, 97, 57, 32, 16, 26, 26, 79, 33, 27, 98, 66),
(88, 36, 68, 87, 57, 62, 20, 72, 3, 46, 33, 67, 46, 55, 12, 32, 63, 93, 53, 69),
( 4, 42, 16, 73, 38, 25, 39, 11, 24, 94, 72, 18, 8, 46, 29, 32, 40, 62, 76, 36),
(20, 69, 36, 41, 72, 30, 23, 88, 34, 62, 99, 69, 82, 67, 59, 85, 74, 4, 36, 16),
(20, 73, 35, 29, 78, 31, 90, 1, 74, 31, 49, 71, 48, 86, 81, 16, 23, 57, 5, 54),
( 1, 70, 54, 71, 83, 51, 54, 69, 16, 92, 33, 48, 61, 43, 52, 1, 89, 19, 67, 48));
function Check_Right(r : in Row; c: in Column) return Natural is
begin
if c + 3 > Column'Last then
return 0;
end if;
return table(r,c)
* table(r,c+1)
* table(r,c+2)
* table(r,c+3);
end Check_Right;
function Check_Down(r: in Row; c: in Column) return Natural is
begin
if r + 3 > Row'Last then
return 0;
end if;
return table(r,c)
* table(r+1,c)
* table(r+2,c)
* table(r+3,c);
end Check_Down;
function Check_Left_Down(r: in Row; c: in Column) return Natural is
begin
if c - 3 < Column'First or r + 3 > Row'Last then
return 0;
end if;
return table(r,c)
* table(r+1,c-1)
* table(r+2,c-2)
* table(r+3,c-3);
end Check_Left_Down;
function Check_Right_Down(r: in row; c: in Column) return Natural is
begin
if c + 3 > Column'Last or r + 3 > Row'Last then
return 0;
end if;
return table(r,c)
* table(r+1,c+1)
* table(r+2,c+2)
* table(r+3,c+3);
end Check_Right_Down;
best : Natural := 0;
begin
for r in Row loop
for c in Column loop
declare
right : constant Natural := Check_Right(r, c);
down : constant Natural := Check_Down(r, c);
left_down : constant Natural := Check_Left_Down(r, c);
right_down : constant Natural := Check_Right_Down(r, c);
begin
if right > best then
best := right;
end if;
if down > best then
best := down;
end if;
if left_down > best then
best := left_down;
end if;
if right_down > best then
best := right_down;
end if;
end;
end loop;
end loop;
I_IO.Put(best);
IO.New_Line;
end Solve;
end Problem_11;
|
reznikmm/matreshka | Ada | 3,969 | ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Open Document Toolkit --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2014, Vadim Godunko <[email protected]> --
-- All rights reserved. --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions --
-- are met: --
-- --
-- * Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- --
-- * Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in the --
-- documentation and/or other materials provided with the distribution. --
-- --
-- * Neither the name of the Vadim Godunko, IE nor the names of its --
-- contributors may be used to endorse or promote products derived from --
-- this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED --
-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR --
-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF --
-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING --
-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS --
-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
-- $Revision$ $Date$
------------------------------------------------------------------------------
with ODF.DOM.Text_Editor_Attributes;
package Matreshka.ODF_Text.Editor_Attributes is
type Text_Editor_Attribute_Node is
new Matreshka.ODF_Text.Abstract_Text_Attribute_Node
and ODF.DOM.Text_Editor_Attributes.ODF_Text_Editor_Attribute
with null record;
overriding function Create
(Parameters : not null access Matreshka.DOM_Attributes.Attribute_L2_Parameters)
return Text_Editor_Attribute_Node;
overriding function Get_Local_Name
(Self : not null access constant Text_Editor_Attribute_Node)
return League.Strings.Universal_String;
end Matreshka.ODF_Text.Editor_Attributes;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.