entities
list | max_stars_repo_path
stringlengths 6
131
| max_stars_repo_name
stringlengths 9
67
| max_stars_count
int64 0
17k
| content
stringlengths 25
1M
| id
stringlengths 1
5
| new_content
stringlengths 17
1M
| modified
bool 1
class | references
stringlengths 32
1M
|
---|---|---|---|---|---|---|---|---|
[
{
"context": " --\n-- Copyright © 2012, Vadim Godunko <[email protected]> --\n-- Al",
"end": 824,
"score": 0.9998882412910461,
"start": 811,
"tag": "NAME",
"value": "Vadim Godunko"
},
{
"context": " --\n-- Copyright © 2012, Vadim Godunko <[email protected]> --\n-- All rights reserved. ",
"end": 844,
"score": 0.9999319314956665,
"start": 826,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
source/amf/ocl/amf-internals-ocl_expression_in_ocls.ads
|
svn2github/matreshka
| 24 |
------------------------------------------------------------------------------
-- --
-- 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.Internals.OCL_Elements;
with AMF.OCL.Expression_In_Ocls;
with AMF.OCL.Ocl_Expressions;
with AMF.OCL.Variables.Collections;
with AMF.String_Collections;
with AMF.UML.Behaviors;
with AMF.UML.Classifiers;
with AMF.UML.Comments.Collections;
with AMF.UML.Dependencies.Collections;
with AMF.UML.Elements.Collections;
with AMF.UML.Named_Elements;
with AMF.UML.Namespaces.Collections;
with AMF.UML.Packages.Collections;
with AMF.UML.Parameterable_Elements;
with AMF.UML.Parameters;
with AMF.UML.String_Expressions;
with AMF.UML.Template_Parameters;
with AMF.UML.Types;
with AMF.Visitors;
package AMF.Internals.OCL_Expression_In_Ocls is
type OCL_Expression_In_Ocl_Proxy is
limited new AMF.Internals.OCL_Elements.OCL_Element_Proxy
and AMF.OCL.Expression_In_Ocls.OCL_Expression_In_Ocl with null record;
overriding function Get_Body_Expression
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.OCL.Ocl_Expressions.OCL_Ocl_Expression_Access;
-- Getter of ExpressionInOcl::bodyExpression.
--
overriding procedure Set_Body_Expression
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.OCL.Ocl_Expressions.OCL_Ocl_Expression_Access);
-- Setter of ExpressionInOcl::bodyExpression.
--
overriding function Get_Context_Variable
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.OCL.Variables.OCL_Variable_Access;
-- Getter of ExpressionInOcl::contextVariable.
--
overriding procedure Set_Context_Variable
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.OCL.Variables.OCL_Variable_Access);
-- Setter of ExpressionInOcl::contextVariable.
--
overriding function Get_Result_Variable
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.OCL.Variables.OCL_Variable_Access;
-- Getter of ExpressionInOcl::resultVariable.
--
overriding procedure Set_Result_Variable
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.OCL.Variables.OCL_Variable_Access);
-- Setter of ExpressionInOcl::resultVariable.
--
overriding function Get_Parameter_Variable
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.OCL.Variables.Collections.Ordered_Set_Of_OCL_Variable;
-- Getter of ExpressionInOcl::parameterVariable.
--
overriding function Get_Generated_Type
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Classifiers.UML_Classifier_Access;
-- Getter of ExpressionInOcl::generatedType.
--
overriding procedure Set_Generated_Type
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.UML.Classifiers.UML_Classifier_Access);
-- Setter of ExpressionInOcl::generatedType.
--
overriding function Get_Behavior
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Behaviors.UML_Behavior_Access;
-- Getter of OpaqueExpression::behavior.
--
-- Specifies the behavior of the opaque expression.
overriding procedure Set_Behavior
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.UML.Behaviors.UML_Behavior_Access);
-- Setter of OpaqueExpression::behavior.
--
-- Specifies the behavior of the opaque expression.
overriding function Get_Body
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.String_Collections.Sequence_Of_String;
-- Getter of OpaqueExpression::body.
--
-- The text of the expression, possibly in multiple languages.
overriding function Get_Language
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.String_Collections.Ordered_Set_Of_String;
-- Getter of OpaqueExpression::language.
--
-- Specifies the languages in which the expression is stated. The
-- interpretation of the expression body depends on the languages. If the
-- languages are unspecified, they might be implicit from the expression
-- body or the context. Languages are matched to body strings by order.
overriding function Get_Result
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Parameters.UML_Parameter_Access;
-- Getter of OpaqueExpression::result.
--
-- Restricts an opaque expression to return exactly one return result.
-- When the invocation of the opaque expression completes, a single set of
-- values is returned to its owner. This association is derived from the
-- single return result parameter of the associated behavior.
overriding function Get_Type
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Types.UML_Type_Access;
-- Getter of TypedElement::type.
--
-- The type of the TypedElement.
-- This information is derived from the return result for this Operation.
overriding procedure Set_Type
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.UML.Types.UML_Type_Access);
-- Setter of TypedElement::type.
--
-- The type of the TypedElement.
-- This information is derived from the return result for this Operation.
overriding function Get_Client_Dependency
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency;
-- Getter of NamedElement::clientDependency.
--
-- Indicates the dependencies that reference the client.
overriding function Get_Name
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.Optional_String;
-- Getter of NamedElement::name.
--
-- The name of the NamedElement.
overriding procedure Set_Name
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.Optional_String);
-- Setter of NamedElement::name.
--
-- The name of the NamedElement.
overriding function Get_Name_Expression
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.String_Expressions.UML_String_Expression_Access;
-- Getter of NamedElement::nameExpression.
--
-- The string expression used to define the name of this named element.
overriding procedure Set_Name_Expression
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.UML.String_Expressions.UML_String_Expression_Access);
-- Setter of NamedElement::nameExpression.
--
-- The string expression used to define the name of this named element.
overriding function Get_Namespace
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Namespaces.UML_Namespace_Access;
-- Getter of NamedElement::namespace.
--
-- Specifies the namespace that owns the NamedElement.
overriding function Get_Qualified_Name
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.Optional_String;
-- Getter of NamedElement::qualifiedName.
--
-- A name which allows the NamedElement to be identified within a
-- hierarchy of nested Namespaces. It is constructed from the names of the
-- containing namespaces starting at the root of the hierarchy and ending
-- with the name of the NamedElement itself.
overriding function Get_Visibility
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Optional_UML_Visibility_Kind;
-- Getter of NamedElement::visibility.
--
-- Determines where the NamedElement appears within different Namespaces
-- within the overall model, and its accessibility.
overriding procedure Set_Visibility
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.UML.Optional_UML_Visibility_Kind);
-- Setter of NamedElement::visibility.
--
-- Determines where the NamedElement appears within different Namespaces
-- within the overall model, and its accessibility.
overriding function Get_Owned_Comment
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Comments.Collections.Set_Of_UML_Comment;
-- Getter of Element::ownedComment.
--
-- The Comments owned by this element.
overriding function Get_Owned_Element
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Elements.Collections.Set_Of_UML_Element;
-- Getter of Element::ownedElement.
--
-- The Elements owned by this element.
overriding function Get_Owner
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Elements.UML_Element_Access;
-- Getter of Element::owner.
--
-- The Element that owns this element.
overriding function Get_Visibility
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.UML_Visibility_Kind;
-- Getter of PackageableElement::visibility.
--
-- Indicates that packageable elements must always have a visibility,
-- i.e., visibility is not optional.
overriding procedure Set_Visibility
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.UML.UML_Visibility_Kind);
-- Setter of PackageableElement::visibility.
--
-- Indicates that packageable elements must always have a visibility,
-- i.e., visibility is not optional.
overriding function Get_Owning_Template_Parameter
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Template_Parameters.UML_Template_Parameter_Access;
-- Getter of ParameterableElement::owningTemplateParameter.
--
-- The formal template parameter that owns this element.
overriding procedure Set_Owning_Template_Parameter
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access);
-- Setter of ParameterableElement::owningTemplateParameter.
--
-- The formal template parameter that owns this element.
overriding function Get_Template_Parameter
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Template_Parameters.UML_Template_Parameter_Access;
-- Getter of ParameterableElement::templateParameter.
--
-- The template parameter that exposes this element as a formal parameter.
overriding procedure Set_Template_Parameter
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access);
-- Setter of ParameterableElement::templateParameter.
--
-- The template parameter that exposes this element as a formal parameter.
overriding function Is_Integral
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return Boolean;
-- Operation OpaqueExpression::isIntegral.
--
-- The query isIntegral() tells whether an expression is intended to
-- produce an integer.
overriding function Is_Non_Negative
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return Boolean;
-- Operation OpaqueExpression::isNonNegative.
--
-- The query isNonNegative() tells whether an integer expression has a
-- non-negative value.
overriding function Is_Positive
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return Boolean;
-- Operation OpaqueExpression::isPositive.
--
-- The query isPositive() tells whether an integer expression has a
-- positive value.
overriding function Result
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Parameters.UML_Parameter_Access;
-- Operation OpaqueExpression::result.
--
-- Missing derivation for OpaqueExpression::/result : Parameter
overriding function Value
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return Integer;
-- Operation OpaqueExpression::value.
--
-- The query value() gives an integer value for an expression intended to
-- produce one.
overriding function Boolean_Value
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.Optional_Boolean;
-- Operation ValueSpecification::booleanValue.
--
-- The query booleanValue() gives a single Boolean value when one can be
-- computed.
overriding function Integer_Value
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.Optional_Integer;
-- Operation ValueSpecification::integerValue.
--
-- The query integerValue() gives a single Integer value when one can be
-- computed.
overriding function Is_Compatible_With
(Self : not null access constant OCL_Expression_In_Ocl_Proxy;
P : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access)
return Boolean;
-- Operation ValueSpecification::isCompatibleWith.
--
-- The query isCompatibleWith() determines if this parameterable element
-- is compatible with the specified parameterable element. By default
-- parameterable element P is compatible with parameterable element Q if
-- the kind of P is the same or a subtype as the kind of Q. In addition,
-- for ValueSpecification, the type must be conformant with the type of
-- the specified parameterable element.
overriding function Is_Computable
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return Boolean;
-- Operation ValueSpecification::isComputable.
--
-- The query isComputable() determines whether a value specification can
-- be computed in a model. This operation cannot be fully defined in OCL.
-- A conforming implementation is expected to deliver true for this
-- operation for all value specifications that it can compute, and to
-- compute all of those for which the operation is true. A conforming
-- implementation is expected to be able to compute the value of all
-- literals.
overriding function Is_Null
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return Boolean;
-- Operation ValueSpecification::isNull.
--
-- The query isNull() returns true when it can be computed that the value
-- is null.
overriding function Real_Value
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.Optional_Real;
-- Operation ValueSpecification::realValue.
--
-- The query realValue() gives a single Real value when one can be
-- computed.
overriding function String_Value
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.Optional_String;
-- Operation ValueSpecification::stringValue.
--
-- The query stringValue() gives a single String value when one can be
-- computed.
overriding function Unlimited_Value
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.Optional_Unlimited_Natural;
-- Operation ValueSpecification::unlimitedValue.
--
-- The query unlimitedValue() gives a single UnlimitedNatural value when
-- one can be computed.
overriding function All_Namespaces
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Namespaces.Collections.Ordered_Set_Of_UML_Namespace;
-- Operation NamedElement::allNamespaces.
--
-- The query allNamespaces() gives the sequence of namespaces in which the
-- NamedElement is nested, working outwards.
overriding function All_Owning_Packages
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Packages.Collections.Set_Of_UML_Package;
-- Operation NamedElement::allOwningPackages.
--
-- The query allOwningPackages() returns all the directly or indirectly
-- owning packages.
overriding function Is_Distinguishable_From
(Self : not null access constant OCL_Expression_In_Ocl_Proxy;
N : AMF.UML.Named_Elements.UML_Named_Element_Access;
Ns : AMF.UML.Namespaces.UML_Namespace_Access)
return Boolean;
-- Operation NamedElement::isDistinguishableFrom.
--
-- The query isDistinguishableFrom() determines whether two NamedElements
-- may logically co-exist within a Namespace. By default, two named
-- elements are distinguishable if (a) they have unrelated types or (b)
-- they have related types but different names.
overriding function Namespace
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Namespaces.UML_Namespace_Access;
-- Operation NamedElement::namespace.
--
-- Missing derivation for NamedElement::/namespace : Namespace
overriding function Qualified_Name
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return League.Strings.Universal_String;
-- Operation NamedElement::qualifiedName.
--
-- When there is a name, and all of the containing namespaces have a name,
-- the qualified name is constructed from the names of the containing
-- namespaces.
overriding function Separator
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return League.Strings.Universal_String;
-- Operation NamedElement::separator.
--
-- The query separator() gives the string that is used to separate names
-- when constructing a qualified name.
overriding function All_Owned_Elements
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Elements.Collections.Set_Of_UML_Element;
-- Operation Element::allOwnedElements.
--
-- The query allOwnedElements() gives all of the direct and indirect owned
-- elements of an element.
overriding function Must_Be_Owned
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return Boolean;
-- Operation Element::mustBeOwned.
--
-- The query mustBeOwned() indicates whether elements of this type must
-- have an owner. Subclasses of Element that do not require an owner must
-- override this operation.
overriding function Is_Template_Parameter
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return Boolean;
-- Operation ParameterableElement::isTemplateParameter.
--
-- The query isTemplateParameter() determines if this parameterable
-- element is exposed as a formal template parameter.
overriding procedure Enter_Element
(Self : not null access constant OCL_Expression_In_Ocl_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control);
overriding procedure Leave_Element
(Self : not null access constant OCL_Expression_In_Ocl_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control);
overriding procedure Visit_Element
(Self : not null access constant OCL_Expression_In_Ocl_Proxy;
Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control);
end AMF.Internals.OCL_Expression_In_Ocls;
|
26565
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2012, <NAME> <<EMAIL>> --
-- 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.Internals.OCL_Elements;
with AMF.OCL.Expression_In_Ocls;
with AMF.OCL.Ocl_Expressions;
with AMF.OCL.Variables.Collections;
with AMF.String_Collections;
with AMF.UML.Behaviors;
with AMF.UML.Classifiers;
with AMF.UML.Comments.Collections;
with AMF.UML.Dependencies.Collections;
with AMF.UML.Elements.Collections;
with AMF.UML.Named_Elements;
with AMF.UML.Namespaces.Collections;
with AMF.UML.Packages.Collections;
with AMF.UML.Parameterable_Elements;
with AMF.UML.Parameters;
with AMF.UML.String_Expressions;
with AMF.UML.Template_Parameters;
with AMF.UML.Types;
with AMF.Visitors;
package AMF.Internals.OCL_Expression_In_Ocls is
type OCL_Expression_In_Ocl_Proxy is
limited new AMF.Internals.OCL_Elements.OCL_Element_Proxy
and AMF.OCL.Expression_In_Ocls.OCL_Expression_In_Ocl with null record;
overriding function Get_Body_Expression
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.OCL.Ocl_Expressions.OCL_Ocl_Expression_Access;
-- Getter of ExpressionInOcl::bodyExpression.
--
overriding procedure Set_Body_Expression
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.OCL.Ocl_Expressions.OCL_Ocl_Expression_Access);
-- Setter of ExpressionInOcl::bodyExpression.
--
overriding function Get_Context_Variable
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.OCL.Variables.OCL_Variable_Access;
-- Getter of ExpressionInOcl::contextVariable.
--
overriding procedure Set_Context_Variable
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.OCL.Variables.OCL_Variable_Access);
-- Setter of ExpressionInOcl::contextVariable.
--
overriding function Get_Result_Variable
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.OCL.Variables.OCL_Variable_Access;
-- Getter of ExpressionInOcl::resultVariable.
--
overriding procedure Set_Result_Variable
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.OCL.Variables.OCL_Variable_Access);
-- Setter of ExpressionInOcl::resultVariable.
--
overriding function Get_Parameter_Variable
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.OCL.Variables.Collections.Ordered_Set_Of_OCL_Variable;
-- Getter of ExpressionInOcl::parameterVariable.
--
overriding function Get_Generated_Type
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Classifiers.UML_Classifier_Access;
-- Getter of ExpressionInOcl::generatedType.
--
overriding procedure Set_Generated_Type
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.UML.Classifiers.UML_Classifier_Access);
-- Setter of ExpressionInOcl::generatedType.
--
overriding function Get_Behavior
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Behaviors.UML_Behavior_Access;
-- Getter of OpaqueExpression::behavior.
--
-- Specifies the behavior of the opaque expression.
overriding procedure Set_Behavior
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.UML.Behaviors.UML_Behavior_Access);
-- Setter of OpaqueExpression::behavior.
--
-- Specifies the behavior of the opaque expression.
overriding function Get_Body
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.String_Collections.Sequence_Of_String;
-- Getter of OpaqueExpression::body.
--
-- The text of the expression, possibly in multiple languages.
overriding function Get_Language
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.String_Collections.Ordered_Set_Of_String;
-- Getter of OpaqueExpression::language.
--
-- Specifies the languages in which the expression is stated. The
-- interpretation of the expression body depends on the languages. If the
-- languages are unspecified, they might be implicit from the expression
-- body or the context. Languages are matched to body strings by order.
overriding function Get_Result
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Parameters.UML_Parameter_Access;
-- Getter of OpaqueExpression::result.
--
-- Restricts an opaque expression to return exactly one return result.
-- When the invocation of the opaque expression completes, a single set of
-- values is returned to its owner. This association is derived from the
-- single return result parameter of the associated behavior.
overriding function Get_Type
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Types.UML_Type_Access;
-- Getter of TypedElement::type.
--
-- The type of the TypedElement.
-- This information is derived from the return result for this Operation.
overriding procedure Set_Type
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.UML.Types.UML_Type_Access);
-- Setter of TypedElement::type.
--
-- The type of the TypedElement.
-- This information is derived from the return result for this Operation.
overriding function Get_Client_Dependency
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency;
-- Getter of NamedElement::clientDependency.
--
-- Indicates the dependencies that reference the client.
overriding function Get_Name
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.Optional_String;
-- Getter of NamedElement::name.
--
-- The name of the NamedElement.
overriding procedure Set_Name
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.Optional_String);
-- Setter of NamedElement::name.
--
-- The name of the NamedElement.
overriding function Get_Name_Expression
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.String_Expressions.UML_String_Expression_Access;
-- Getter of NamedElement::nameExpression.
--
-- The string expression used to define the name of this named element.
overriding procedure Set_Name_Expression
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.UML.String_Expressions.UML_String_Expression_Access);
-- Setter of NamedElement::nameExpression.
--
-- The string expression used to define the name of this named element.
overriding function Get_Namespace
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Namespaces.UML_Namespace_Access;
-- Getter of NamedElement::namespace.
--
-- Specifies the namespace that owns the NamedElement.
overriding function Get_Qualified_Name
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.Optional_String;
-- Getter of NamedElement::qualifiedName.
--
-- A name which allows the NamedElement to be identified within a
-- hierarchy of nested Namespaces. It is constructed from the names of the
-- containing namespaces starting at the root of the hierarchy and ending
-- with the name of the NamedElement itself.
overriding function Get_Visibility
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Optional_UML_Visibility_Kind;
-- Getter of NamedElement::visibility.
--
-- Determines where the NamedElement appears within different Namespaces
-- within the overall model, and its accessibility.
overriding procedure Set_Visibility
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.UML.Optional_UML_Visibility_Kind);
-- Setter of NamedElement::visibility.
--
-- Determines where the NamedElement appears within different Namespaces
-- within the overall model, and its accessibility.
overriding function Get_Owned_Comment
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Comments.Collections.Set_Of_UML_Comment;
-- Getter of Element::ownedComment.
--
-- The Comments owned by this element.
overriding function Get_Owned_Element
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Elements.Collections.Set_Of_UML_Element;
-- Getter of Element::ownedElement.
--
-- The Elements owned by this element.
overriding function Get_Owner
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Elements.UML_Element_Access;
-- Getter of Element::owner.
--
-- The Element that owns this element.
overriding function Get_Visibility
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.UML_Visibility_Kind;
-- Getter of PackageableElement::visibility.
--
-- Indicates that packageable elements must always have a visibility,
-- i.e., visibility is not optional.
overriding procedure Set_Visibility
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.UML.UML_Visibility_Kind);
-- Setter of PackageableElement::visibility.
--
-- Indicates that packageable elements must always have a visibility,
-- i.e., visibility is not optional.
overriding function Get_Owning_Template_Parameter
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Template_Parameters.UML_Template_Parameter_Access;
-- Getter of ParameterableElement::owningTemplateParameter.
--
-- The formal template parameter that owns this element.
overriding procedure Set_Owning_Template_Parameter
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access);
-- Setter of ParameterableElement::owningTemplateParameter.
--
-- The formal template parameter that owns this element.
overriding function Get_Template_Parameter
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Template_Parameters.UML_Template_Parameter_Access;
-- Getter of ParameterableElement::templateParameter.
--
-- The template parameter that exposes this element as a formal parameter.
overriding procedure Set_Template_Parameter
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access);
-- Setter of ParameterableElement::templateParameter.
--
-- The template parameter that exposes this element as a formal parameter.
overriding function Is_Integral
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return Boolean;
-- Operation OpaqueExpression::isIntegral.
--
-- The query isIntegral() tells whether an expression is intended to
-- produce an integer.
overriding function Is_Non_Negative
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return Boolean;
-- Operation OpaqueExpression::isNonNegative.
--
-- The query isNonNegative() tells whether an integer expression has a
-- non-negative value.
overriding function Is_Positive
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return Boolean;
-- Operation OpaqueExpression::isPositive.
--
-- The query isPositive() tells whether an integer expression has a
-- positive value.
overriding function Result
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Parameters.UML_Parameter_Access;
-- Operation OpaqueExpression::result.
--
-- Missing derivation for OpaqueExpression::/result : Parameter
overriding function Value
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return Integer;
-- Operation OpaqueExpression::value.
--
-- The query value() gives an integer value for an expression intended to
-- produce one.
overriding function Boolean_Value
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.Optional_Boolean;
-- Operation ValueSpecification::booleanValue.
--
-- The query booleanValue() gives a single Boolean value when one can be
-- computed.
overriding function Integer_Value
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.Optional_Integer;
-- Operation ValueSpecification::integerValue.
--
-- The query integerValue() gives a single Integer value when one can be
-- computed.
overriding function Is_Compatible_With
(Self : not null access constant OCL_Expression_In_Ocl_Proxy;
P : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access)
return Boolean;
-- Operation ValueSpecification::isCompatibleWith.
--
-- The query isCompatibleWith() determines if this parameterable element
-- is compatible with the specified parameterable element. By default
-- parameterable element P is compatible with parameterable element Q if
-- the kind of P is the same or a subtype as the kind of Q. In addition,
-- for ValueSpecification, the type must be conformant with the type of
-- the specified parameterable element.
overriding function Is_Computable
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return Boolean;
-- Operation ValueSpecification::isComputable.
--
-- The query isComputable() determines whether a value specification can
-- be computed in a model. This operation cannot be fully defined in OCL.
-- A conforming implementation is expected to deliver true for this
-- operation for all value specifications that it can compute, and to
-- compute all of those for which the operation is true. A conforming
-- implementation is expected to be able to compute the value of all
-- literals.
overriding function Is_Null
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return Boolean;
-- Operation ValueSpecification::isNull.
--
-- The query isNull() returns true when it can be computed that the value
-- is null.
overriding function Real_Value
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.Optional_Real;
-- Operation ValueSpecification::realValue.
--
-- The query realValue() gives a single Real value when one can be
-- computed.
overriding function String_Value
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.Optional_String;
-- Operation ValueSpecification::stringValue.
--
-- The query stringValue() gives a single String value when one can be
-- computed.
overriding function Unlimited_Value
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.Optional_Unlimited_Natural;
-- Operation ValueSpecification::unlimitedValue.
--
-- The query unlimitedValue() gives a single UnlimitedNatural value when
-- one can be computed.
overriding function All_Namespaces
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Namespaces.Collections.Ordered_Set_Of_UML_Namespace;
-- Operation NamedElement::allNamespaces.
--
-- The query allNamespaces() gives the sequence of namespaces in which the
-- NamedElement is nested, working outwards.
overriding function All_Owning_Packages
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Packages.Collections.Set_Of_UML_Package;
-- Operation NamedElement::allOwningPackages.
--
-- The query allOwningPackages() returns all the directly or indirectly
-- owning packages.
overriding function Is_Distinguishable_From
(Self : not null access constant OCL_Expression_In_Ocl_Proxy;
N : AMF.UML.Named_Elements.UML_Named_Element_Access;
Ns : AMF.UML.Namespaces.UML_Namespace_Access)
return Boolean;
-- Operation NamedElement::isDistinguishableFrom.
--
-- The query isDistinguishableFrom() determines whether two NamedElements
-- may logically co-exist within a Namespace. By default, two named
-- elements are distinguishable if (a) they have unrelated types or (b)
-- they have related types but different names.
overriding function Namespace
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Namespaces.UML_Namespace_Access;
-- Operation NamedElement::namespace.
--
-- Missing derivation for NamedElement::/namespace : Namespace
overriding function Qualified_Name
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return League.Strings.Universal_String;
-- Operation NamedElement::qualifiedName.
--
-- When there is a name, and all of the containing namespaces have a name,
-- the qualified name is constructed from the names of the containing
-- namespaces.
overriding function Separator
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return League.Strings.Universal_String;
-- Operation NamedElement::separator.
--
-- The query separator() gives the string that is used to separate names
-- when constructing a qualified name.
overriding function All_Owned_Elements
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Elements.Collections.Set_Of_UML_Element;
-- Operation Element::allOwnedElements.
--
-- The query allOwnedElements() gives all of the direct and indirect owned
-- elements of an element.
overriding function Must_Be_Owned
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return Boolean;
-- Operation Element::mustBeOwned.
--
-- The query mustBeOwned() indicates whether elements of this type must
-- have an owner. Subclasses of Element that do not require an owner must
-- override this operation.
overriding function Is_Template_Parameter
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return Boolean;
-- Operation ParameterableElement::isTemplateParameter.
--
-- The query isTemplateParameter() determines if this parameterable
-- element is exposed as a formal template parameter.
overriding procedure Enter_Element
(Self : not null access constant OCL_Expression_In_Ocl_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control);
overriding procedure Leave_Element
(Self : not null access constant OCL_Expression_In_Ocl_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control);
overriding procedure Visit_Element
(Self : not null access constant OCL_Expression_In_Ocl_Proxy;
Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control);
end AMF.Internals.OCL_Expression_In_Ocls;
| true |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2012, PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI> --
-- 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.Internals.OCL_Elements;
with AMF.OCL.Expression_In_Ocls;
with AMF.OCL.Ocl_Expressions;
with AMF.OCL.Variables.Collections;
with AMF.String_Collections;
with AMF.UML.Behaviors;
with AMF.UML.Classifiers;
with AMF.UML.Comments.Collections;
with AMF.UML.Dependencies.Collections;
with AMF.UML.Elements.Collections;
with AMF.UML.Named_Elements;
with AMF.UML.Namespaces.Collections;
with AMF.UML.Packages.Collections;
with AMF.UML.Parameterable_Elements;
with AMF.UML.Parameters;
with AMF.UML.String_Expressions;
with AMF.UML.Template_Parameters;
with AMF.UML.Types;
with AMF.Visitors;
package AMF.Internals.OCL_Expression_In_Ocls is
type OCL_Expression_In_Ocl_Proxy is
limited new AMF.Internals.OCL_Elements.OCL_Element_Proxy
and AMF.OCL.Expression_In_Ocls.OCL_Expression_In_Ocl with null record;
overriding function Get_Body_Expression
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.OCL.Ocl_Expressions.OCL_Ocl_Expression_Access;
-- Getter of ExpressionInOcl::bodyExpression.
--
overriding procedure Set_Body_Expression
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.OCL.Ocl_Expressions.OCL_Ocl_Expression_Access);
-- Setter of ExpressionInOcl::bodyExpression.
--
overriding function Get_Context_Variable
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.OCL.Variables.OCL_Variable_Access;
-- Getter of ExpressionInOcl::contextVariable.
--
overriding procedure Set_Context_Variable
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.OCL.Variables.OCL_Variable_Access);
-- Setter of ExpressionInOcl::contextVariable.
--
overriding function Get_Result_Variable
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.OCL.Variables.OCL_Variable_Access;
-- Getter of ExpressionInOcl::resultVariable.
--
overriding procedure Set_Result_Variable
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.OCL.Variables.OCL_Variable_Access);
-- Setter of ExpressionInOcl::resultVariable.
--
overriding function Get_Parameter_Variable
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.OCL.Variables.Collections.Ordered_Set_Of_OCL_Variable;
-- Getter of ExpressionInOcl::parameterVariable.
--
overriding function Get_Generated_Type
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Classifiers.UML_Classifier_Access;
-- Getter of ExpressionInOcl::generatedType.
--
overriding procedure Set_Generated_Type
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.UML.Classifiers.UML_Classifier_Access);
-- Setter of ExpressionInOcl::generatedType.
--
overriding function Get_Behavior
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Behaviors.UML_Behavior_Access;
-- Getter of OpaqueExpression::behavior.
--
-- Specifies the behavior of the opaque expression.
overriding procedure Set_Behavior
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.UML.Behaviors.UML_Behavior_Access);
-- Setter of OpaqueExpression::behavior.
--
-- Specifies the behavior of the opaque expression.
overriding function Get_Body
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.String_Collections.Sequence_Of_String;
-- Getter of OpaqueExpression::body.
--
-- The text of the expression, possibly in multiple languages.
overriding function Get_Language
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.String_Collections.Ordered_Set_Of_String;
-- Getter of OpaqueExpression::language.
--
-- Specifies the languages in which the expression is stated. The
-- interpretation of the expression body depends on the languages. If the
-- languages are unspecified, they might be implicit from the expression
-- body or the context. Languages are matched to body strings by order.
overriding function Get_Result
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Parameters.UML_Parameter_Access;
-- Getter of OpaqueExpression::result.
--
-- Restricts an opaque expression to return exactly one return result.
-- When the invocation of the opaque expression completes, a single set of
-- values is returned to its owner. This association is derived from the
-- single return result parameter of the associated behavior.
overriding function Get_Type
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Types.UML_Type_Access;
-- Getter of TypedElement::type.
--
-- The type of the TypedElement.
-- This information is derived from the return result for this Operation.
overriding procedure Set_Type
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.UML.Types.UML_Type_Access);
-- Setter of TypedElement::type.
--
-- The type of the TypedElement.
-- This information is derived from the return result for this Operation.
overriding function Get_Client_Dependency
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Dependencies.Collections.Set_Of_UML_Dependency;
-- Getter of NamedElement::clientDependency.
--
-- Indicates the dependencies that reference the client.
overriding function Get_Name
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.Optional_String;
-- Getter of NamedElement::name.
--
-- The name of the NamedElement.
overriding procedure Set_Name
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.Optional_String);
-- Setter of NamedElement::name.
--
-- The name of the NamedElement.
overriding function Get_Name_Expression
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.String_Expressions.UML_String_Expression_Access;
-- Getter of NamedElement::nameExpression.
--
-- The string expression used to define the name of this named element.
overriding procedure Set_Name_Expression
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.UML.String_Expressions.UML_String_Expression_Access);
-- Setter of NamedElement::nameExpression.
--
-- The string expression used to define the name of this named element.
overriding function Get_Namespace
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Namespaces.UML_Namespace_Access;
-- Getter of NamedElement::namespace.
--
-- Specifies the namespace that owns the NamedElement.
overriding function Get_Qualified_Name
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.Optional_String;
-- Getter of NamedElement::qualifiedName.
--
-- A name which allows the NamedElement to be identified within a
-- hierarchy of nested Namespaces. It is constructed from the names of the
-- containing namespaces starting at the root of the hierarchy and ending
-- with the name of the NamedElement itself.
overriding function Get_Visibility
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Optional_UML_Visibility_Kind;
-- Getter of NamedElement::visibility.
--
-- Determines where the NamedElement appears within different Namespaces
-- within the overall model, and its accessibility.
overriding procedure Set_Visibility
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.UML.Optional_UML_Visibility_Kind);
-- Setter of NamedElement::visibility.
--
-- Determines where the NamedElement appears within different Namespaces
-- within the overall model, and its accessibility.
overriding function Get_Owned_Comment
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Comments.Collections.Set_Of_UML_Comment;
-- Getter of Element::ownedComment.
--
-- The Comments owned by this element.
overriding function Get_Owned_Element
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Elements.Collections.Set_Of_UML_Element;
-- Getter of Element::ownedElement.
--
-- The Elements owned by this element.
overriding function Get_Owner
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Elements.UML_Element_Access;
-- Getter of Element::owner.
--
-- The Element that owns this element.
overriding function Get_Visibility
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.UML_Visibility_Kind;
-- Getter of PackageableElement::visibility.
--
-- Indicates that packageable elements must always have a visibility,
-- i.e., visibility is not optional.
overriding procedure Set_Visibility
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.UML.UML_Visibility_Kind);
-- Setter of PackageableElement::visibility.
--
-- Indicates that packageable elements must always have a visibility,
-- i.e., visibility is not optional.
overriding function Get_Owning_Template_Parameter
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Template_Parameters.UML_Template_Parameter_Access;
-- Getter of ParameterableElement::owningTemplateParameter.
--
-- The formal template parameter that owns this element.
overriding procedure Set_Owning_Template_Parameter
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access);
-- Setter of ParameterableElement::owningTemplateParameter.
--
-- The formal template parameter that owns this element.
overriding function Get_Template_Parameter
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Template_Parameters.UML_Template_Parameter_Access;
-- Getter of ParameterableElement::templateParameter.
--
-- The template parameter that exposes this element as a formal parameter.
overriding procedure Set_Template_Parameter
(Self : not null access OCL_Expression_In_Ocl_Proxy;
To : AMF.UML.Template_Parameters.UML_Template_Parameter_Access);
-- Setter of ParameterableElement::templateParameter.
--
-- The template parameter that exposes this element as a formal parameter.
overriding function Is_Integral
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return Boolean;
-- Operation OpaqueExpression::isIntegral.
--
-- The query isIntegral() tells whether an expression is intended to
-- produce an integer.
overriding function Is_Non_Negative
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return Boolean;
-- Operation OpaqueExpression::isNonNegative.
--
-- The query isNonNegative() tells whether an integer expression has a
-- non-negative value.
overriding function Is_Positive
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return Boolean;
-- Operation OpaqueExpression::isPositive.
--
-- The query isPositive() tells whether an integer expression has a
-- positive value.
overriding function Result
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Parameters.UML_Parameter_Access;
-- Operation OpaqueExpression::result.
--
-- Missing derivation for OpaqueExpression::/result : Parameter
overriding function Value
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return Integer;
-- Operation OpaqueExpression::value.
--
-- The query value() gives an integer value for an expression intended to
-- produce one.
overriding function Boolean_Value
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.Optional_Boolean;
-- Operation ValueSpecification::booleanValue.
--
-- The query booleanValue() gives a single Boolean value when one can be
-- computed.
overriding function Integer_Value
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.Optional_Integer;
-- Operation ValueSpecification::integerValue.
--
-- The query integerValue() gives a single Integer value when one can be
-- computed.
overriding function Is_Compatible_With
(Self : not null access constant OCL_Expression_In_Ocl_Proxy;
P : AMF.UML.Parameterable_Elements.UML_Parameterable_Element_Access)
return Boolean;
-- Operation ValueSpecification::isCompatibleWith.
--
-- The query isCompatibleWith() determines if this parameterable element
-- is compatible with the specified parameterable element. By default
-- parameterable element P is compatible with parameterable element Q if
-- the kind of P is the same or a subtype as the kind of Q. In addition,
-- for ValueSpecification, the type must be conformant with the type of
-- the specified parameterable element.
overriding function Is_Computable
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return Boolean;
-- Operation ValueSpecification::isComputable.
--
-- The query isComputable() determines whether a value specification can
-- be computed in a model. This operation cannot be fully defined in OCL.
-- A conforming implementation is expected to deliver true for this
-- operation for all value specifications that it can compute, and to
-- compute all of those for which the operation is true. A conforming
-- implementation is expected to be able to compute the value of all
-- literals.
overriding function Is_Null
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return Boolean;
-- Operation ValueSpecification::isNull.
--
-- The query isNull() returns true when it can be computed that the value
-- is null.
overriding function Real_Value
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.Optional_Real;
-- Operation ValueSpecification::realValue.
--
-- The query realValue() gives a single Real value when one can be
-- computed.
overriding function String_Value
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.Optional_String;
-- Operation ValueSpecification::stringValue.
--
-- The query stringValue() gives a single String value when one can be
-- computed.
overriding function Unlimited_Value
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.Optional_Unlimited_Natural;
-- Operation ValueSpecification::unlimitedValue.
--
-- The query unlimitedValue() gives a single UnlimitedNatural value when
-- one can be computed.
overriding function All_Namespaces
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Namespaces.Collections.Ordered_Set_Of_UML_Namespace;
-- Operation NamedElement::allNamespaces.
--
-- The query allNamespaces() gives the sequence of namespaces in which the
-- NamedElement is nested, working outwards.
overriding function All_Owning_Packages
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Packages.Collections.Set_Of_UML_Package;
-- Operation NamedElement::allOwningPackages.
--
-- The query allOwningPackages() returns all the directly or indirectly
-- owning packages.
overriding function Is_Distinguishable_From
(Self : not null access constant OCL_Expression_In_Ocl_Proxy;
N : AMF.UML.Named_Elements.UML_Named_Element_Access;
Ns : AMF.UML.Namespaces.UML_Namespace_Access)
return Boolean;
-- Operation NamedElement::isDistinguishableFrom.
--
-- The query isDistinguishableFrom() determines whether two NamedElements
-- may logically co-exist within a Namespace. By default, two named
-- elements are distinguishable if (a) they have unrelated types or (b)
-- they have related types but different names.
overriding function Namespace
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Namespaces.UML_Namespace_Access;
-- Operation NamedElement::namespace.
--
-- Missing derivation for NamedElement::/namespace : Namespace
overriding function Qualified_Name
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return League.Strings.Universal_String;
-- Operation NamedElement::qualifiedName.
--
-- When there is a name, and all of the containing namespaces have a name,
-- the qualified name is constructed from the names of the containing
-- namespaces.
overriding function Separator
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return League.Strings.Universal_String;
-- Operation NamedElement::separator.
--
-- The query separator() gives the string that is used to separate names
-- when constructing a qualified name.
overriding function All_Owned_Elements
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return AMF.UML.Elements.Collections.Set_Of_UML_Element;
-- Operation Element::allOwnedElements.
--
-- The query allOwnedElements() gives all of the direct and indirect owned
-- elements of an element.
overriding function Must_Be_Owned
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return Boolean;
-- Operation Element::mustBeOwned.
--
-- The query mustBeOwned() indicates whether elements of this type must
-- have an owner. Subclasses of Element that do not require an owner must
-- override this operation.
overriding function Is_Template_Parameter
(Self : not null access constant OCL_Expression_In_Ocl_Proxy)
return Boolean;
-- Operation ParameterableElement::isTemplateParameter.
--
-- The query isTemplateParameter() determines if this parameterable
-- element is exposed as a formal template parameter.
overriding procedure Enter_Element
(Self : not null access constant OCL_Expression_In_Ocl_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control);
overriding procedure Leave_Element
(Self : not null access constant OCL_Expression_In_Ocl_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control);
overriding procedure Visit_Element
(Self : not null access constant OCL_Expression_In_Ocl_Proxy;
Iterator : in out AMF.Visitors.Abstract_Iterator'Class;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control);
end AMF.Internals.OCL_Expression_In_Ocls;
|
[
{
"context": " --\n-- Copyright (C) 2001 A.M.F.Vargas --\n-- Antonio M",
"end": 194,
"score": 0.9998658299446106,
"start": 182,
"tag": "NAME",
"value": "A.M.F.Vargas"
},
{
"context": "M.F.Vargas --\n-- Antonio M. F. Vargas --\n-- ",
"end": 255,
"score": 0.9998689293861389,
"start": 235,
"tag": "NAME",
"value": "Antonio M. F. Vargas"
},
{
"context": " --\n-- http://www.adapower.net/~avargas --\n-- E-mail: av",
"end": 411,
"score": 0.9115552306175232,
"start": 404,
"tag": "USERNAME",
"value": "avargas"
},
{
"context": "gas --\n-- E-mail: [email protected] --\n-- ---------------------",
"end": 479,
"score": 0.9999333620071411,
"start": 459,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
thirdparty/adasdl/thin/adasdl/AdaSDL_framebuff/sdl_framebuffer.adb
|
Lucretia/old_nehe_ada95
| 0 |
-- ----------------------------------------------------------------- --
-- AdaSDL_Framebuffer --
-- Copyright (C) 2001 A.M.F.Vargas --
-- Antonio M. F. Vargas --
-- Ponta Delgada - Azores - Portugal --
-- http://www.adapower.net/~avargas --
-- E-mail: [email protected] --
-- ----------------------------------------------------------------- --
-- --
-- This library 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 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 --
-- General Public License for more details. --
-- --
-- You should have received a copy of the GNU 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. --
-- --
-- As a special exception, if other files instantiate generics from --
-- this unit, or you link this unit with other files to produce an --
-- executable, this unit does not by itself cause the resulting --
-- executable to be covered by the GNU General Public License. This --
-- exception does not however invalidate any other reasons why the --
-- executable file might be covered by the GNU Public License. --
-- ----------------------------------------------------------------- --
-- ##########################################################################
-- ### These are new extensions to the SDL API in order to improve the
-- ### Ada code and to isolate the pointer arithmetic inside the library.
-- ##########################################################################
with Interfaces.C;
with Lib_C;
package body SDL_Framebuffer is
use type C.int;
-- ===========================================================
function Go_XY_24b_Unchecked (
Surface : Vd.Surface_ptr;
X : Natural;
Y : Natural) return Framebuffer_8bPointer
is
begin
return Go_XY_Unchecked (Surface, Natural (3 * X), Natural (Y));
end Go_XY_24b_Unchecked;
-- ===========================================================
procedure Set_24b_Value_Unchecked (
Surface : Vd.Surface_ptr;
Location : Framebuffer_8bPointer;
Value : Uint32)
is
use Uint8_Ptrs;
use Uint8_PtrOps;
use Interfaces;
Shift : C.int;
Pix : Framebuffer_8bPointer := Location;
begin
Shift := C.int (Surface.format.Rshift);
Uint8_Ptrs.Object_Pointer (
Uint8_PtrOps.Pointer (Pix)
+ C.ptrdiff_t (Shift / 8)
).all := Uint8 (Shift_Right (Value, Integer (Shift)));
Shift := C.int (Surface.format.Gshift);
Uint8_Ptrs.Object_Pointer (
Uint8_PtrOps.Pointer (Pix)
+ C.ptrdiff_t (Shift / 8)
).all := Uint8 (Shift_Right (Value, Integer (Shift)));
Shift := C.int (Surface.format.Bshift);
Uint8_Ptrs.Object_Pointer (
Uint8_PtrOps.Pointer (Pix)
+ C.ptrdiff_t (Shift / 8)
).all := Uint8 (Shift_Right (Value, Integer (Shift)));
end Set_24b_Value_Unchecked;
-- =======================================
procedure Copy_Colors (
Source : Surface_ptr;
Dest : Color_PtrOps.Pointer;
Num_Colors : Natural)
is
begin
Color_PtrOps.Copy_Array (
Color_PtrOps.Pointer (Source.format.palette.colors),
Dest,
C.ptrdiff_t (Num_Colors));
end Copy_Colors;
-- =======================================
function Copy_Colors (
Surface : Surface_ptr;
Num_Colors : Natural) return Colors_Array is
begin
return Color_PtrOps.Value (
Color_PtrOps.Pointer (Surface.format.palette.colors),
C.ptrdiff_t (Num_Colors));
end Copy_Colors;
-- ===================================================================
function Pitch_Gap (Surface : Surface_ptr) return Uint16 is
begin
return Surface.pitch
- Uint16 (Surface.w)* Uint16 (Surface.format.BytesPerPixel);
end Pitch_Gap;
-- ==================================================================
function Get_Palette_Red (
Surface : Surface_ptr;
Color_Index : Uint8) return Uint8
is
use Color_PtrOps;
begin
return
Color_ptr (
Color_PtrOps.Pointer (Surface.format.palette.colors)
+ C.ptrdiff_t (Color_Index)
).all.r;
end Get_Palette_Red;
-- =============================================
function Get_Palette_Green (
Surface : Surface_ptr;
Color_Index : Uint8) return Uint8
is
use Color_PtrOps;
begin
return
Color_ptr (
Color_PtrOps.Pointer (Surface.format.palette.colors)
+ C.ptrdiff_t (Color_Index)
).all.g;
end Get_Palette_Green;
-- =============================================
function Get_Palette_Blue (
Surface : Surface_ptr;
Color_Index : Uint8) return Uint8
is
use Color_PtrOps;
begin
return
Color_ptr (
Color_PtrOps.Pointer (Surface.format.palette.colors)
+ C.ptrdiff_t (Color_Index)
).all.b;
end Get_Palette_Blue;
-- #######################################################################
end SDL_Framebuffer;
|
5147
|
-- ----------------------------------------------------------------- --
-- AdaSDL_Framebuffer --
-- Copyright (C) 2001 <NAME> --
-- <NAME> --
-- Ponta Delgada - Azores - Portugal --
-- http://www.adapower.net/~avargas --
-- E-mail: <EMAIL> --
-- ----------------------------------------------------------------- --
-- --
-- This library 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 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 --
-- General Public License for more details. --
-- --
-- You should have received a copy of the GNU 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. --
-- --
-- As a special exception, if other files instantiate generics from --
-- this unit, or you link this unit with other files to produce an --
-- executable, this unit does not by itself cause the resulting --
-- executable to be covered by the GNU General Public License. This --
-- exception does not however invalidate any other reasons why the --
-- executable file might be covered by the GNU Public License. --
-- ----------------------------------------------------------------- --
-- ##########################################################################
-- ### These are new extensions to the SDL API in order to improve the
-- ### Ada code and to isolate the pointer arithmetic inside the library.
-- ##########################################################################
with Interfaces.C;
with Lib_C;
package body SDL_Framebuffer is
use type C.int;
-- ===========================================================
function Go_XY_24b_Unchecked (
Surface : Vd.Surface_ptr;
X : Natural;
Y : Natural) return Framebuffer_8bPointer
is
begin
return Go_XY_Unchecked (Surface, Natural (3 * X), Natural (Y));
end Go_XY_24b_Unchecked;
-- ===========================================================
procedure Set_24b_Value_Unchecked (
Surface : Vd.Surface_ptr;
Location : Framebuffer_8bPointer;
Value : Uint32)
is
use Uint8_Ptrs;
use Uint8_PtrOps;
use Interfaces;
Shift : C.int;
Pix : Framebuffer_8bPointer := Location;
begin
Shift := C.int (Surface.format.Rshift);
Uint8_Ptrs.Object_Pointer (
Uint8_PtrOps.Pointer (Pix)
+ C.ptrdiff_t (Shift / 8)
).all := Uint8 (Shift_Right (Value, Integer (Shift)));
Shift := C.int (Surface.format.Gshift);
Uint8_Ptrs.Object_Pointer (
Uint8_PtrOps.Pointer (Pix)
+ C.ptrdiff_t (Shift / 8)
).all := Uint8 (Shift_Right (Value, Integer (Shift)));
Shift := C.int (Surface.format.Bshift);
Uint8_Ptrs.Object_Pointer (
Uint8_PtrOps.Pointer (Pix)
+ C.ptrdiff_t (Shift / 8)
).all := Uint8 (Shift_Right (Value, Integer (Shift)));
end Set_24b_Value_Unchecked;
-- =======================================
procedure Copy_Colors (
Source : Surface_ptr;
Dest : Color_PtrOps.Pointer;
Num_Colors : Natural)
is
begin
Color_PtrOps.Copy_Array (
Color_PtrOps.Pointer (Source.format.palette.colors),
Dest,
C.ptrdiff_t (Num_Colors));
end Copy_Colors;
-- =======================================
function Copy_Colors (
Surface : Surface_ptr;
Num_Colors : Natural) return Colors_Array is
begin
return Color_PtrOps.Value (
Color_PtrOps.Pointer (Surface.format.palette.colors),
C.ptrdiff_t (Num_Colors));
end Copy_Colors;
-- ===================================================================
function Pitch_Gap (Surface : Surface_ptr) return Uint16 is
begin
return Surface.pitch
- Uint16 (Surface.w)* Uint16 (Surface.format.BytesPerPixel);
end Pitch_Gap;
-- ==================================================================
function Get_Palette_Red (
Surface : Surface_ptr;
Color_Index : Uint8) return Uint8
is
use Color_PtrOps;
begin
return
Color_ptr (
Color_PtrOps.Pointer (Surface.format.palette.colors)
+ C.ptrdiff_t (Color_Index)
).all.r;
end Get_Palette_Red;
-- =============================================
function Get_Palette_Green (
Surface : Surface_ptr;
Color_Index : Uint8) return Uint8
is
use Color_PtrOps;
begin
return
Color_ptr (
Color_PtrOps.Pointer (Surface.format.palette.colors)
+ C.ptrdiff_t (Color_Index)
).all.g;
end Get_Palette_Green;
-- =============================================
function Get_Palette_Blue (
Surface : Surface_ptr;
Color_Index : Uint8) return Uint8
is
use Color_PtrOps;
begin
return
Color_ptr (
Color_PtrOps.Pointer (Surface.format.palette.colors)
+ C.ptrdiff_t (Color_Index)
).all.b;
end Get_Palette_Blue;
-- #######################################################################
end SDL_Framebuffer;
| true |
-- ----------------------------------------------------------------- --
-- AdaSDL_Framebuffer --
-- Copyright (C) 2001 PI:NAME:<NAME>END_PI --
-- PI:NAME:<NAME>END_PI --
-- Ponta Delgada - Azores - Portugal --
-- http://www.adapower.net/~avargas --
-- E-mail: PI:EMAIL:<EMAIL>END_PI --
-- ----------------------------------------------------------------- --
-- --
-- This library 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 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 --
-- General Public License for more details. --
-- --
-- You should have received a copy of the GNU 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. --
-- --
-- As a special exception, if other files instantiate generics from --
-- this unit, or you link this unit with other files to produce an --
-- executable, this unit does not by itself cause the resulting --
-- executable to be covered by the GNU General Public License. This --
-- exception does not however invalidate any other reasons why the --
-- executable file might be covered by the GNU Public License. --
-- ----------------------------------------------------------------- --
-- ##########################################################################
-- ### These are new extensions to the SDL API in order to improve the
-- ### Ada code and to isolate the pointer arithmetic inside the library.
-- ##########################################################################
with Interfaces.C;
with Lib_C;
package body SDL_Framebuffer is
use type C.int;
-- ===========================================================
function Go_XY_24b_Unchecked (
Surface : Vd.Surface_ptr;
X : Natural;
Y : Natural) return Framebuffer_8bPointer
is
begin
return Go_XY_Unchecked (Surface, Natural (3 * X), Natural (Y));
end Go_XY_24b_Unchecked;
-- ===========================================================
procedure Set_24b_Value_Unchecked (
Surface : Vd.Surface_ptr;
Location : Framebuffer_8bPointer;
Value : Uint32)
is
use Uint8_Ptrs;
use Uint8_PtrOps;
use Interfaces;
Shift : C.int;
Pix : Framebuffer_8bPointer := Location;
begin
Shift := C.int (Surface.format.Rshift);
Uint8_Ptrs.Object_Pointer (
Uint8_PtrOps.Pointer (Pix)
+ C.ptrdiff_t (Shift / 8)
).all := Uint8 (Shift_Right (Value, Integer (Shift)));
Shift := C.int (Surface.format.Gshift);
Uint8_Ptrs.Object_Pointer (
Uint8_PtrOps.Pointer (Pix)
+ C.ptrdiff_t (Shift / 8)
).all := Uint8 (Shift_Right (Value, Integer (Shift)));
Shift := C.int (Surface.format.Bshift);
Uint8_Ptrs.Object_Pointer (
Uint8_PtrOps.Pointer (Pix)
+ C.ptrdiff_t (Shift / 8)
).all := Uint8 (Shift_Right (Value, Integer (Shift)));
end Set_24b_Value_Unchecked;
-- =======================================
procedure Copy_Colors (
Source : Surface_ptr;
Dest : Color_PtrOps.Pointer;
Num_Colors : Natural)
is
begin
Color_PtrOps.Copy_Array (
Color_PtrOps.Pointer (Source.format.palette.colors),
Dest,
C.ptrdiff_t (Num_Colors));
end Copy_Colors;
-- =======================================
function Copy_Colors (
Surface : Surface_ptr;
Num_Colors : Natural) return Colors_Array is
begin
return Color_PtrOps.Value (
Color_PtrOps.Pointer (Surface.format.palette.colors),
C.ptrdiff_t (Num_Colors));
end Copy_Colors;
-- ===================================================================
function Pitch_Gap (Surface : Surface_ptr) return Uint16 is
begin
return Surface.pitch
- Uint16 (Surface.w)* Uint16 (Surface.format.BytesPerPixel);
end Pitch_Gap;
-- ==================================================================
function Get_Palette_Red (
Surface : Surface_ptr;
Color_Index : Uint8) return Uint8
is
use Color_PtrOps;
begin
return
Color_ptr (
Color_PtrOps.Pointer (Surface.format.palette.colors)
+ C.ptrdiff_t (Color_Index)
).all.r;
end Get_Palette_Red;
-- =============================================
function Get_Palette_Green (
Surface : Surface_ptr;
Color_Index : Uint8) return Uint8
is
use Color_PtrOps;
begin
return
Color_ptr (
Color_PtrOps.Pointer (Surface.format.palette.colors)
+ C.ptrdiff_t (Color_Index)
).all.g;
end Get_Palette_Green;
-- =============================================
function Get_Palette_Blue (
Surface : Surface_ptr;
Color_Index : Uint8) return Uint8
is
use Color_PtrOps;
begin
return
Color_ptr (
Color_PtrOps.Pointer (Surface.format.palette.colors)
+ C.ptrdiff_t (Color_Index)
).all.b;
end Get_Palette_Blue;
-- #######################################################################
end SDL_Framebuffer;
|
[
{
"context": "-------------------------------------\n-- Author: Juergen Pfeifer, 1996\n-- Version Control:\n-- $Revision: 1.6 $\n-",
"end": 2793,
"score": 0.9998463988304138,
"start": 2778,
"tag": "NAME",
"value": "Juergen Pfeifer"
}
] |
Ada95/src/terminal_interface-curses-terminfo.adb
|
CandyROM/external_libncurses
| 1,167 |
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding --
-- --
-- Terminal_Interface.Curses.Terminfo --
-- --
-- B O D Y --
-- --
------------------------------------------------------------------------------
-- Copyright (c) 1998-2006,2009 Free Software Foundation, Inc. --
-- --
-- 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, distribute with modifications, 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 ABOVE 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. --
-- --
-- Except as contained in this notice, the name(s) of the above copyright --
-- holders shall not be used in advertising or otherwise to promote the --
-- sale, use or other dealings in this Software without prior written --
-- authorization. --
------------------------------------------------------------------------------
-- Author: Juergen Pfeifer, 1996
-- Version Control:
-- $Revision: 1.6 $
-- $Date: 2009/12/26 17:38:58 $
-- Binding Version 01.00
------------------------------------------------------------------------------
with Terminal_Interface.Curses.Aux; use Terminal_Interface.Curses.Aux;
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings; use Interfaces.C.Strings;
with Ada.Unchecked_Conversion;
package body Terminal_Interface.Curses.Terminfo is
function Is_MinusOne_Pointer (P : chars_ptr) return Boolean;
function Is_MinusOne_Pointer (P : chars_ptr) return Boolean is
type Weird_Address is new System.Storage_Elements.Integer_Address;
Invalid_Pointer : constant Weird_Address := -1;
function To_Weird is new Ada.Unchecked_Conversion
(Source => chars_ptr, Target => Weird_Address);
begin
if To_Weird (P) = Invalid_Pointer then
return True;
else
return False;
end if;
end Is_MinusOne_Pointer;
pragma Inline (Is_MinusOne_Pointer);
------------------------------------------------------------------------------
function Get_Flag (Name : String) return Boolean
is
function tigetflag (id : char_array) return Curses_Bool;
pragma Import (C, tigetflag);
Txt : char_array (0 .. Name'Length);
Length : size_t;
begin
To_C (Name, Txt, Length);
if tigetflag (Txt) = Curses_Bool (Curses_True) then
return True;
else
return False;
end if;
end Get_Flag;
------------------------------------------------------------------------------
procedure Get_String (Name : String;
Value : out Terminfo_String;
Result : out Boolean)
is
function tigetstr (id : char_array) return chars_ptr;
pragma Import (C, tigetstr, "tigetstr");
Txt : char_array (0 .. Name'Length);
Length : size_t;
Txt2 : chars_ptr;
begin
To_C (Name, Txt, Length);
Txt2 := tigetstr (Txt);
if Txt2 = Null_Ptr then
Result := False;
elsif Is_MinusOne_Pointer (Txt2) then
raise Curses_Exception;
else
Value := Terminfo_String (Fill_String (Txt2));
Result := True;
end if;
end Get_String;
------------------------------------------------------------------------------
function Has_String (Name : String) return Boolean
is
function tigetstr (id : char_array) return chars_ptr;
pragma Import (C, tigetstr, "tigetstr");
Txt : char_array (0 .. Name'Length);
Length : size_t;
Txt2 : chars_ptr;
begin
To_C (Name, Txt, Length);
Txt2 := tigetstr (Txt);
if Txt2 = Null_Ptr then
return False;
elsif Is_MinusOne_Pointer (Txt2) then
raise Curses_Exception;
else
return True;
end if;
end Has_String;
------------------------------------------------------------------------------
function Get_Number (Name : String) return Integer is
function tigetstr (s : char_array) return C_Int;
pragma Import (C, tigetstr);
Txt : char_array (0 .. Name'Length);
Length : size_t;
begin
To_C (Name, Txt, Length);
return Integer (tigetstr (Txt));
end Get_Number;
------------------------------------------------------------------------------
procedure Put_String (Str : Terminfo_String;
affcnt : Natural := 1;
putc : putctype := null) is
function tputs (str : char_array;
affcnt : C_Int;
putc : putctype) return C_Int;
function putp (str : char_array) return C_Int;
pragma Import (C, tputs);
pragma Import (C, putp);
Txt : char_array (0 .. Str'Length);
Length : size_t;
Err : C_Int;
begin
To_C (String (Str), Txt, Length);
if putc = null then
Err := putp (Txt);
else
Err := tputs (Txt, C_Int (affcnt), putc);
end if;
if Err = Curses_Err then
raise Curses_Exception;
end if;
end Put_String;
end Terminal_Interface.Curses.Terminfo;
|
17471
|
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding --
-- --
-- Terminal_Interface.Curses.Terminfo --
-- --
-- B O D Y --
-- --
------------------------------------------------------------------------------
-- Copyright (c) 1998-2006,2009 Free Software Foundation, Inc. --
-- --
-- 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, distribute with modifications, 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 ABOVE 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. --
-- --
-- Except as contained in this notice, the name(s) of the above copyright --
-- holders shall not be used in advertising or otherwise to promote the --
-- sale, use or other dealings in this Software without prior written --
-- authorization. --
------------------------------------------------------------------------------
-- Author: <NAME>, 1996
-- Version Control:
-- $Revision: 1.6 $
-- $Date: 2009/12/26 17:38:58 $
-- Binding Version 01.00
------------------------------------------------------------------------------
with Terminal_Interface.Curses.Aux; use Terminal_Interface.Curses.Aux;
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings; use Interfaces.C.Strings;
with Ada.Unchecked_Conversion;
package body Terminal_Interface.Curses.Terminfo is
function Is_MinusOne_Pointer (P : chars_ptr) return Boolean;
function Is_MinusOne_Pointer (P : chars_ptr) return Boolean is
type Weird_Address is new System.Storage_Elements.Integer_Address;
Invalid_Pointer : constant Weird_Address := -1;
function To_Weird is new Ada.Unchecked_Conversion
(Source => chars_ptr, Target => Weird_Address);
begin
if To_Weird (P) = Invalid_Pointer then
return True;
else
return False;
end if;
end Is_MinusOne_Pointer;
pragma Inline (Is_MinusOne_Pointer);
------------------------------------------------------------------------------
function Get_Flag (Name : String) return Boolean
is
function tigetflag (id : char_array) return Curses_Bool;
pragma Import (C, tigetflag);
Txt : char_array (0 .. Name'Length);
Length : size_t;
begin
To_C (Name, Txt, Length);
if tigetflag (Txt) = Curses_Bool (Curses_True) then
return True;
else
return False;
end if;
end Get_Flag;
------------------------------------------------------------------------------
procedure Get_String (Name : String;
Value : out Terminfo_String;
Result : out Boolean)
is
function tigetstr (id : char_array) return chars_ptr;
pragma Import (C, tigetstr, "tigetstr");
Txt : char_array (0 .. Name'Length);
Length : size_t;
Txt2 : chars_ptr;
begin
To_C (Name, Txt, Length);
Txt2 := tigetstr (Txt);
if Txt2 = Null_Ptr then
Result := False;
elsif Is_MinusOne_Pointer (Txt2) then
raise Curses_Exception;
else
Value := Terminfo_String (Fill_String (Txt2));
Result := True;
end if;
end Get_String;
------------------------------------------------------------------------------
function Has_String (Name : String) return Boolean
is
function tigetstr (id : char_array) return chars_ptr;
pragma Import (C, tigetstr, "tigetstr");
Txt : char_array (0 .. Name'Length);
Length : size_t;
Txt2 : chars_ptr;
begin
To_C (Name, Txt, Length);
Txt2 := tigetstr (Txt);
if Txt2 = Null_Ptr then
return False;
elsif Is_MinusOne_Pointer (Txt2) then
raise Curses_Exception;
else
return True;
end if;
end Has_String;
------------------------------------------------------------------------------
function Get_Number (Name : String) return Integer is
function tigetstr (s : char_array) return C_Int;
pragma Import (C, tigetstr);
Txt : char_array (0 .. Name'Length);
Length : size_t;
begin
To_C (Name, Txt, Length);
return Integer (tigetstr (Txt));
end Get_Number;
------------------------------------------------------------------------------
procedure Put_String (Str : Terminfo_String;
affcnt : Natural := 1;
putc : putctype := null) is
function tputs (str : char_array;
affcnt : C_Int;
putc : putctype) return C_Int;
function putp (str : char_array) return C_Int;
pragma Import (C, tputs);
pragma Import (C, putp);
Txt : char_array (0 .. Str'Length);
Length : size_t;
Err : C_Int;
begin
To_C (String (Str), Txt, Length);
if putc = null then
Err := putp (Txt);
else
Err := tputs (Txt, C_Int (affcnt), putc);
end if;
if Err = Curses_Err then
raise Curses_Exception;
end if;
end Put_String;
end Terminal_Interface.Curses.Terminfo;
| true |
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding --
-- --
-- Terminal_Interface.Curses.Terminfo --
-- --
-- B O D Y --
-- --
------------------------------------------------------------------------------
-- Copyright (c) 1998-2006,2009 Free Software Foundation, Inc. --
-- --
-- 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, distribute with modifications, 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 ABOVE 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. --
-- --
-- Except as contained in this notice, the name(s) of the above copyright --
-- holders shall not be used in advertising or otherwise to promote the --
-- sale, use or other dealings in this Software without prior written --
-- authorization. --
------------------------------------------------------------------------------
-- Author: PI:NAME:<NAME>END_PI, 1996
-- Version Control:
-- $Revision: 1.6 $
-- $Date: 2009/12/26 17:38:58 $
-- Binding Version 01.00
------------------------------------------------------------------------------
with Terminal_Interface.Curses.Aux; use Terminal_Interface.Curses.Aux;
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings; use Interfaces.C.Strings;
with Ada.Unchecked_Conversion;
package body Terminal_Interface.Curses.Terminfo is
function Is_MinusOne_Pointer (P : chars_ptr) return Boolean;
function Is_MinusOne_Pointer (P : chars_ptr) return Boolean is
type Weird_Address is new System.Storage_Elements.Integer_Address;
Invalid_Pointer : constant Weird_Address := -1;
function To_Weird is new Ada.Unchecked_Conversion
(Source => chars_ptr, Target => Weird_Address);
begin
if To_Weird (P) = Invalid_Pointer then
return True;
else
return False;
end if;
end Is_MinusOne_Pointer;
pragma Inline (Is_MinusOne_Pointer);
------------------------------------------------------------------------------
function Get_Flag (Name : String) return Boolean
is
function tigetflag (id : char_array) return Curses_Bool;
pragma Import (C, tigetflag);
Txt : char_array (0 .. Name'Length);
Length : size_t;
begin
To_C (Name, Txt, Length);
if tigetflag (Txt) = Curses_Bool (Curses_True) then
return True;
else
return False;
end if;
end Get_Flag;
------------------------------------------------------------------------------
procedure Get_String (Name : String;
Value : out Terminfo_String;
Result : out Boolean)
is
function tigetstr (id : char_array) return chars_ptr;
pragma Import (C, tigetstr, "tigetstr");
Txt : char_array (0 .. Name'Length);
Length : size_t;
Txt2 : chars_ptr;
begin
To_C (Name, Txt, Length);
Txt2 := tigetstr (Txt);
if Txt2 = Null_Ptr then
Result := False;
elsif Is_MinusOne_Pointer (Txt2) then
raise Curses_Exception;
else
Value := Terminfo_String (Fill_String (Txt2));
Result := True;
end if;
end Get_String;
------------------------------------------------------------------------------
function Has_String (Name : String) return Boolean
is
function tigetstr (id : char_array) return chars_ptr;
pragma Import (C, tigetstr, "tigetstr");
Txt : char_array (0 .. Name'Length);
Length : size_t;
Txt2 : chars_ptr;
begin
To_C (Name, Txt, Length);
Txt2 := tigetstr (Txt);
if Txt2 = Null_Ptr then
return False;
elsif Is_MinusOne_Pointer (Txt2) then
raise Curses_Exception;
else
return True;
end if;
end Has_String;
------------------------------------------------------------------------------
function Get_Number (Name : String) return Integer is
function tigetstr (s : char_array) return C_Int;
pragma Import (C, tigetstr);
Txt : char_array (0 .. Name'Length);
Length : size_t;
begin
To_C (Name, Txt, Length);
return Integer (tigetstr (Txt));
end Get_Number;
------------------------------------------------------------------------------
procedure Put_String (Str : Terminfo_String;
affcnt : Natural := 1;
putc : putctype := null) is
function tputs (str : char_array;
affcnt : C_Int;
putc : putctype) return C_Int;
function putp (str : char_array) return C_Int;
pragma Import (C, tputs);
pragma Import (C, putp);
Txt : char_array (0 .. Str'Length);
Length : size_t;
Err : C_Int;
begin
To_C (String (Str), Txt, Length);
if putc = null then
Err := putp (Txt);
else
Err := tputs (Txt, C_Int (affcnt), putc);
end if;
if Err = Curses_Err then
raise Curses_Exception;
end if;
end Put_String;
end Terminal_Interface.Curses.Terminfo;
|
[
{
"context": "n of MP: a Music Player\n-- Copyright (C) 2021 by PragmAda Software Engineering. All rights reserved.\n-- Re",
"end": 74,
"score": 0.7904225587844849,
"start": 67,
"tag": "NAME",
"value": "ragmAda"
}
] |
Ada_GUI/mp.adb
|
jrcarter/MP
| 1 |
-- Ada-GUI version of MP: a Music Player
-- Copyright (C) 2021 by PragmAda Software Engineering. All rights reserved.
-- Released under the terms of the BSD 3-Clause license; see https://opensource.org/licenses
with Ada.Containers.Vectors;
with Ada.Directories;
with Ada.Exceptions;
with Ada.Numerics.Discrete_Random;
with Ada.Strings.Bounded;
with Ada.Strings.Unbounded;
with Ada.Text_IO;
with Ada_GUI;
with PragmARC.Persistent_Skip_List_Unbounded;
procedure MP is
package B_Strings is new Ada.Strings.Bounded.Generic_Bounded_Length (Max => 400);
use B_Strings;
subtype Path_Name is Bounded_String;
function Less (Left : Path_Name; Right : Path_Name) return Boolean;
-- Files in the working directory are < files in subdirectories
package Path_Lists is new PragmARC.Persistent_Skip_List_Unbounded (Element => Path_Name, "<" => Less);
type Song_Info is record
Position : Positive;
Path : Path_Name;
end record;
package Song_Lists is new Ada.Containers.Vectors (Index_Type => Positive, Element_Type => Song_Info);
function Less (Left : Path_Name; Right : Path_Name) return Boolean is
function Slash_Count (Path : Path_Name) return Natural;
function Slash_Count (Path : Path_Name) return Natural is
Result : Natural := 0;
Path_S : constant String := To_String (Path);
begin -- Slash_Count
All_Chars : for I in Path_S'Range loop
if Path_S (I) = '/' then
Result := Result + 1;
end if;
end loop All_Chars;
return Result;
end Slash_Count;
Count_L : constant Natural := Slash_Count (Left);
Count_R : constant Natural := Slash_Count (Right);
begin -- Less
if Count_L = 0 and Count_R > 0 then
return True;
end if;
if Count_R = 0 and Count_L > 0 then
return False;
end if;
return Left < Right;
end Less;
List : Path_Lists.Persistent_Skip_List := Path_Lists.Open_List ("playlist.mpl", Write_On_Modify => True);
Song : Song_Lists.Vector;
procedure Make_Song_List (List : in out Song_Lists.Vector);
-- Adds all the songs in MP.List to List
procedure Shuffle (List : in out Song_Lists.Vector);
-- Randomizes List
procedure Add_Song;
-- Adds Path to List if Path is not null
procedure Browse_Songs;
-- Displays a file-selection dialog and allows selection of a file in the current directory or below
-- If a file is selected, puts its name relative to the current directory in Path
procedure Delete_Song;
-- Deletes the currently selected song
procedure Quit_Now;
-- Tears down the GUI and saves the playlist
procedure Refresh;
-- Shuffles List into Song and updates Count
function Start (Song : in String) return Boolean;
-- Tries to start playing a file named Song
-- Returns True if successful; False otherwise
Player : Ada_GUI.Widget_ID;
Sel : Ada_GUI.Widget_ID;
Count : Ada_GUI.Widget_ID;
Delete : Ada_GUI.Widget_ID;
Path : Ada_GUI.Widget_ID;
Browse : Ada_GUI.Widget_ID;
Add : Ada_GUI.Widget_ID;
Play : Ada_GUI.Widget_ID;
Skip : Ada_GUI.Widget_ID;
Quit : Ada_GUI.Widget_ID;
Quit_After : Ada_GUI.Widget_ID;
Event : Ada_GUI.Next_Result_Info;
Current : Song_Info;
Index : Positive := 1;
procedure Make_Song_List (List : in out Song_Lists.Vector) is
Position : Natural := 0;
procedure Add_One (Item : in Path_Name) is
-- Empty;
begin -- Add_One
Position := Position + 1;
List.Append (New_Item => (Position => Position, Path => Item) );
Sel.Insert (Text => To_String (Item) );
end Add_One;
procedure Add_All is new Path_Lists.Iterate (Action => Add_One);
begin -- Make_Song_List
List.Clear;
Add_All (List => MP.List);
end Make_Song_List;
procedure Shuffle (List : in out Song_Lists.Vector) is
subtype Index is Integer range 1 .. List.Last_Index;
package Index_Random is new Ada.Numerics.Discrete_Random (Result_Subtype => Index);
Gen : Index_Random.Generator;
J : Index;
T : Song_Info;
begin -- Shuffle
Index_Random.Reset (Gen => Gen);
Swap_All : for I in 1 .. List.Last_Index loop
J := Index_Random.Random (Gen);
T := List.Element (I);
List.Replace_Element (Index => I, New_Item => List.Element (J) );
List.Replace_Element (Index => J, New_Item => T);
end loop Swap_All;
end Shuffle;
procedure Add_Song is
Name : constant String := Path.Text;
begin -- Add_Song
if Name = "" then
return;
end if;
List.Insert (Item => To_Bounded_String (Name) );
Refresh;
Path.Set_Text (Text => "");
exception -- Add_Song
when Error : others =>
Ada.Text_IO.Put_Line (Item => "Add_Song " & Ada.Exceptions.Exception_Information (Error) );
end Add_Song;
Current_Directory : constant String := Ada.Directories.Current_Directory;
procedure Browse_Songs is
Pick : Ada_GUI.File_Result_Info := Ada_GUI.Selected_File (Current_Directory);
begin -- Browse_Songs
if not Pick.Picked then
return;
end if;
Get_Name : declare
Name : constant String := Ada.Strings.Unbounded.To_String (Pick.Value);
begin -- Get_Name
if Name'Length > Current_Directory'Length and then
Name (Name'First .. Name'First + Current_Directory'Length - 1) = Current_Directory
then
Path.Set_Text (Text => Name (Name'First + Current_Directory'Length + 1 .. Name'Last) );
end if;
end Get_Name;
exception -- Browse_Songs
when Error : others =>
Ada.Text_IO.Put_Line (Item => "Browse_Songs " & Ada.Exceptions.Exception_Information (Error) );
end Browse_Songs;
procedure Delete_Song is
Index : constant Natural := Sel.Selected;
begin -- Delete_Song
if Index = 0 then
return;
end if;
List.Delete (Item => To_Bounded_String (Sel.Text) );
Refresh;
exception -- Delete_Song
when Error : others =>
Ada.Text_IO.Put_Line (Item => "Delete_Song " & Ada.Exceptions.Exception_Information (Error) );
end Delete_Song;
Title : constant String := "MP";
procedure Quit_Now is
-- Empty
begin -- Quit_Now
Ada_GUI.Set_Title (Title => Title);
Ada_GUI.End_GUI;
exception -- Quit_Now
when Error : others =>
Ada.Text_IO.Put_Line (Item => "Quit_Now " & Ada.Exceptions.Exception_Information (Error) );
end Quit_Now;
procedure Refresh is
-- Empty
begin -- Refresh
Sel.Clear;
Make_Song_List (List => Song);
Count.Set_Text (Text => Integer'Image (Sel.Length) );
Shuffle (List => Song);
exception -- Refresh
when Error : others =>
Ada.Text_IO.Put_Line (Item => "Refresh " & Ada.Exceptions.Exception_Information (Error) );
end Refresh;
function Start (Song : in String) return Boolean is
-- Empty
begin -- Start
Player.Set_Source (Source => Song);
Ada_GUI.Set_Title (Title => Title & ' ' & Song);
Wait_For_Ready : for I in 1 .. 10 loop
if Player.Ready then
Player.Play;
return True;
end if;
delay 0.01;
end loop Wait_For_Ready;
return False;
exception -- Start
when Error : others =>
Ada.Text_IO.Put_Line (Item => "Start " & Ada.Exceptions.Exception_Information (Error) );
return False;
end Start;
use type Ada_GUI.Event_Kind_ID;
use type Ada_GUI.Widget_ID;
begin -- MP
Ada_GUI.Set_Up (Title => Title, ID => 8089);
Player := Ada_GUI.New_Audio_Player;
Sel := Ada_GUI.New_Selection_List (Break_Before => True, Height => 30);
Count := Ada_GUI.New_Text_Box (Label => "Number of songs:", Break_Before => True);
Delete := Ada_GUI.New_Button (Text => "Delete", Break_Before => True);
Path := Ada_GUI.New_Text_Box (Width => 100);
Browse := Ada_GUI.New_Button (Text => "Browse");
Add := Ada_GUI.New_Button (Text => "Add");
Play := Ada_GUI.New_Button (Text => "Play", Break_Before => True);
Skip := Ada_GUI.New_Button (Text => "Skip");
Quit := Ada_GUI.New_Button (Text => "Quit");
Quit_After := Ada_GUI.New_Check_Box (Label => "Quit after this song");
Refresh;
-- Now we're ready to go
-- If Song is empty, we wait until a song is added or the user clicks on Quit, ignoring other buttons
Wait_For_Song : loop
exit Wait_For_Song when List.Length > 0;
Event := Ada_GUI.Next_Event;
if not Event.Timed_Out and then Event.Event.Kind = Ada_GUI.Left_Click then
if Event.Event.ID = Add then
Add_Song;
elsif Event.Event.ID = Browse then
Browse_Songs;
elsif Event.Event.ID = Quit then
Quit_Now;
return;
else
null;
end if;
end if;
end loop Wait_For_Song;
Forever : loop
exit Forever when Ada_GUI.Window_Closed;
Current := Song.Element (Index);
Sel.Set_Selected (Index => Current.Position);
if Start (To_String (Current.Path) ) then
Wait_For_End : loop
Event := Ada_GUI.Next_Event (Timeout => 0.1);
if Event.Timed_Out then
exit Wait_For_End when Player.Playback_Ended;
elsif Event.Event.Kind = Ada_GUI.Left_Click then
exit Forever when Event.Event.ID = Quit;
if Event.Event.ID = Play then
exit Wait_For_End when not Start (Sel.Text);
elsif Event.Event.ID = Skip then
Ada_GUI.Set_Title (Title => Title);
exit Wait_For_End;
elsif Event.Event.ID = Add then
Add_Song;
elsif Event.Event.ID = Browse then
Browse_Songs;
elsif Event.Event.ID = Delete then
Delete_Song;
else
null;
end if;
else
null;
end if;
end loop Wait_For_End;
end if;
exit Forever when Quit_After.Active;
Index := Index + 1;
if Index > Song.Last_Index then
Index := 1;
end if;
end loop Forever;
Quit_Now;
exception -- MP
when others =>
if Ada_GUI.Set_Up then
Quit_Now;
end if;
end MP;
|
23549
|
-- Ada-GUI version of MP: a Music Player
-- Copyright (C) 2021 by P<NAME> Software Engineering. All rights reserved.
-- Released under the terms of the BSD 3-Clause license; see https://opensource.org/licenses
with Ada.Containers.Vectors;
with Ada.Directories;
with Ada.Exceptions;
with Ada.Numerics.Discrete_Random;
with Ada.Strings.Bounded;
with Ada.Strings.Unbounded;
with Ada.Text_IO;
with Ada_GUI;
with PragmARC.Persistent_Skip_List_Unbounded;
procedure MP is
package B_Strings is new Ada.Strings.Bounded.Generic_Bounded_Length (Max => 400);
use B_Strings;
subtype Path_Name is Bounded_String;
function Less (Left : Path_Name; Right : Path_Name) return Boolean;
-- Files in the working directory are < files in subdirectories
package Path_Lists is new PragmARC.Persistent_Skip_List_Unbounded (Element => Path_Name, "<" => Less);
type Song_Info is record
Position : Positive;
Path : Path_Name;
end record;
package Song_Lists is new Ada.Containers.Vectors (Index_Type => Positive, Element_Type => Song_Info);
function Less (Left : Path_Name; Right : Path_Name) return Boolean is
function Slash_Count (Path : Path_Name) return Natural;
function Slash_Count (Path : Path_Name) return Natural is
Result : Natural := 0;
Path_S : constant String := To_String (Path);
begin -- Slash_Count
All_Chars : for I in Path_S'Range loop
if Path_S (I) = '/' then
Result := Result + 1;
end if;
end loop All_Chars;
return Result;
end Slash_Count;
Count_L : constant Natural := Slash_Count (Left);
Count_R : constant Natural := Slash_Count (Right);
begin -- Less
if Count_L = 0 and Count_R > 0 then
return True;
end if;
if Count_R = 0 and Count_L > 0 then
return False;
end if;
return Left < Right;
end Less;
List : Path_Lists.Persistent_Skip_List := Path_Lists.Open_List ("playlist.mpl", Write_On_Modify => True);
Song : Song_Lists.Vector;
procedure Make_Song_List (List : in out Song_Lists.Vector);
-- Adds all the songs in MP.List to List
procedure Shuffle (List : in out Song_Lists.Vector);
-- Randomizes List
procedure Add_Song;
-- Adds Path to List if Path is not null
procedure Browse_Songs;
-- Displays a file-selection dialog and allows selection of a file in the current directory or below
-- If a file is selected, puts its name relative to the current directory in Path
procedure Delete_Song;
-- Deletes the currently selected song
procedure Quit_Now;
-- Tears down the GUI and saves the playlist
procedure Refresh;
-- Shuffles List into Song and updates Count
function Start (Song : in String) return Boolean;
-- Tries to start playing a file named Song
-- Returns True if successful; False otherwise
Player : Ada_GUI.Widget_ID;
Sel : Ada_GUI.Widget_ID;
Count : Ada_GUI.Widget_ID;
Delete : Ada_GUI.Widget_ID;
Path : Ada_GUI.Widget_ID;
Browse : Ada_GUI.Widget_ID;
Add : Ada_GUI.Widget_ID;
Play : Ada_GUI.Widget_ID;
Skip : Ada_GUI.Widget_ID;
Quit : Ada_GUI.Widget_ID;
Quit_After : Ada_GUI.Widget_ID;
Event : Ada_GUI.Next_Result_Info;
Current : Song_Info;
Index : Positive := 1;
procedure Make_Song_List (List : in out Song_Lists.Vector) is
Position : Natural := 0;
procedure Add_One (Item : in Path_Name) is
-- Empty;
begin -- Add_One
Position := Position + 1;
List.Append (New_Item => (Position => Position, Path => Item) );
Sel.Insert (Text => To_String (Item) );
end Add_One;
procedure Add_All is new Path_Lists.Iterate (Action => Add_One);
begin -- Make_Song_List
List.Clear;
Add_All (List => MP.List);
end Make_Song_List;
procedure Shuffle (List : in out Song_Lists.Vector) is
subtype Index is Integer range 1 .. List.Last_Index;
package Index_Random is new Ada.Numerics.Discrete_Random (Result_Subtype => Index);
Gen : Index_Random.Generator;
J : Index;
T : Song_Info;
begin -- Shuffle
Index_Random.Reset (Gen => Gen);
Swap_All : for I in 1 .. List.Last_Index loop
J := Index_Random.Random (Gen);
T := List.Element (I);
List.Replace_Element (Index => I, New_Item => List.Element (J) );
List.Replace_Element (Index => J, New_Item => T);
end loop Swap_All;
end Shuffle;
procedure Add_Song is
Name : constant String := Path.Text;
begin -- Add_Song
if Name = "" then
return;
end if;
List.Insert (Item => To_Bounded_String (Name) );
Refresh;
Path.Set_Text (Text => "");
exception -- Add_Song
when Error : others =>
Ada.Text_IO.Put_Line (Item => "Add_Song " & Ada.Exceptions.Exception_Information (Error) );
end Add_Song;
Current_Directory : constant String := Ada.Directories.Current_Directory;
procedure Browse_Songs is
Pick : Ada_GUI.File_Result_Info := Ada_GUI.Selected_File (Current_Directory);
begin -- Browse_Songs
if not Pick.Picked then
return;
end if;
Get_Name : declare
Name : constant String := Ada.Strings.Unbounded.To_String (Pick.Value);
begin -- Get_Name
if Name'Length > Current_Directory'Length and then
Name (Name'First .. Name'First + Current_Directory'Length - 1) = Current_Directory
then
Path.Set_Text (Text => Name (Name'First + Current_Directory'Length + 1 .. Name'Last) );
end if;
end Get_Name;
exception -- Browse_Songs
when Error : others =>
Ada.Text_IO.Put_Line (Item => "Browse_Songs " & Ada.Exceptions.Exception_Information (Error) );
end Browse_Songs;
procedure Delete_Song is
Index : constant Natural := Sel.Selected;
begin -- Delete_Song
if Index = 0 then
return;
end if;
List.Delete (Item => To_Bounded_String (Sel.Text) );
Refresh;
exception -- Delete_Song
when Error : others =>
Ada.Text_IO.Put_Line (Item => "Delete_Song " & Ada.Exceptions.Exception_Information (Error) );
end Delete_Song;
Title : constant String := "MP";
procedure Quit_Now is
-- Empty
begin -- Quit_Now
Ada_GUI.Set_Title (Title => Title);
Ada_GUI.End_GUI;
exception -- Quit_Now
when Error : others =>
Ada.Text_IO.Put_Line (Item => "Quit_Now " & Ada.Exceptions.Exception_Information (Error) );
end Quit_Now;
procedure Refresh is
-- Empty
begin -- Refresh
Sel.Clear;
Make_Song_List (List => Song);
Count.Set_Text (Text => Integer'Image (Sel.Length) );
Shuffle (List => Song);
exception -- Refresh
when Error : others =>
Ada.Text_IO.Put_Line (Item => "Refresh " & Ada.Exceptions.Exception_Information (Error) );
end Refresh;
function Start (Song : in String) return Boolean is
-- Empty
begin -- Start
Player.Set_Source (Source => Song);
Ada_GUI.Set_Title (Title => Title & ' ' & Song);
Wait_For_Ready : for I in 1 .. 10 loop
if Player.Ready then
Player.Play;
return True;
end if;
delay 0.01;
end loop Wait_For_Ready;
return False;
exception -- Start
when Error : others =>
Ada.Text_IO.Put_Line (Item => "Start " & Ada.Exceptions.Exception_Information (Error) );
return False;
end Start;
use type Ada_GUI.Event_Kind_ID;
use type Ada_GUI.Widget_ID;
begin -- MP
Ada_GUI.Set_Up (Title => Title, ID => 8089);
Player := Ada_GUI.New_Audio_Player;
Sel := Ada_GUI.New_Selection_List (Break_Before => True, Height => 30);
Count := Ada_GUI.New_Text_Box (Label => "Number of songs:", Break_Before => True);
Delete := Ada_GUI.New_Button (Text => "Delete", Break_Before => True);
Path := Ada_GUI.New_Text_Box (Width => 100);
Browse := Ada_GUI.New_Button (Text => "Browse");
Add := Ada_GUI.New_Button (Text => "Add");
Play := Ada_GUI.New_Button (Text => "Play", Break_Before => True);
Skip := Ada_GUI.New_Button (Text => "Skip");
Quit := Ada_GUI.New_Button (Text => "Quit");
Quit_After := Ada_GUI.New_Check_Box (Label => "Quit after this song");
Refresh;
-- Now we're ready to go
-- If Song is empty, we wait until a song is added or the user clicks on Quit, ignoring other buttons
Wait_For_Song : loop
exit Wait_For_Song when List.Length > 0;
Event := Ada_GUI.Next_Event;
if not Event.Timed_Out and then Event.Event.Kind = Ada_GUI.Left_Click then
if Event.Event.ID = Add then
Add_Song;
elsif Event.Event.ID = Browse then
Browse_Songs;
elsif Event.Event.ID = Quit then
Quit_Now;
return;
else
null;
end if;
end if;
end loop Wait_For_Song;
Forever : loop
exit Forever when Ada_GUI.Window_Closed;
Current := Song.Element (Index);
Sel.Set_Selected (Index => Current.Position);
if Start (To_String (Current.Path) ) then
Wait_For_End : loop
Event := Ada_GUI.Next_Event (Timeout => 0.1);
if Event.Timed_Out then
exit Wait_For_End when Player.Playback_Ended;
elsif Event.Event.Kind = Ada_GUI.Left_Click then
exit Forever when Event.Event.ID = Quit;
if Event.Event.ID = Play then
exit Wait_For_End when not Start (Sel.Text);
elsif Event.Event.ID = Skip then
Ada_GUI.Set_Title (Title => Title);
exit Wait_For_End;
elsif Event.Event.ID = Add then
Add_Song;
elsif Event.Event.ID = Browse then
Browse_Songs;
elsif Event.Event.ID = Delete then
Delete_Song;
else
null;
end if;
else
null;
end if;
end loop Wait_For_End;
end if;
exit Forever when Quit_After.Active;
Index := Index + 1;
if Index > Song.Last_Index then
Index := 1;
end if;
end loop Forever;
Quit_Now;
exception -- MP
when others =>
if Ada_GUI.Set_Up then
Quit_Now;
end if;
end MP;
| true |
-- Ada-GUI version of MP: a Music Player
-- Copyright (C) 2021 by PPI:NAME:<NAME>END_PI Software Engineering. All rights reserved.
-- Released under the terms of the BSD 3-Clause license; see https://opensource.org/licenses
with Ada.Containers.Vectors;
with Ada.Directories;
with Ada.Exceptions;
with Ada.Numerics.Discrete_Random;
with Ada.Strings.Bounded;
with Ada.Strings.Unbounded;
with Ada.Text_IO;
with Ada_GUI;
with PragmARC.Persistent_Skip_List_Unbounded;
procedure MP is
package B_Strings is new Ada.Strings.Bounded.Generic_Bounded_Length (Max => 400);
use B_Strings;
subtype Path_Name is Bounded_String;
function Less (Left : Path_Name; Right : Path_Name) return Boolean;
-- Files in the working directory are < files in subdirectories
package Path_Lists is new PragmARC.Persistent_Skip_List_Unbounded (Element => Path_Name, "<" => Less);
type Song_Info is record
Position : Positive;
Path : Path_Name;
end record;
package Song_Lists is new Ada.Containers.Vectors (Index_Type => Positive, Element_Type => Song_Info);
function Less (Left : Path_Name; Right : Path_Name) return Boolean is
function Slash_Count (Path : Path_Name) return Natural;
function Slash_Count (Path : Path_Name) return Natural is
Result : Natural := 0;
Path_S : constant String := To_String (Path);
begin -- Slash_Count
All_Chars : for I in Path_S'Range loop
if Path_S (I) = '/' then
Result := Result + 1;
end if;
end loop All_Chars;
return Result;
end Slash_Count;
Count_L : constant Natural := Slash_Count (Left);
Count_R : constant Natural := Slash_Count (Right);
begin -- Less
if Count_L = 0 and Count_R > 0 then
return True;
end if;
if Count_R = 0 and Count_L > 0 then
return False;
end if;
return Left < Right;
end Less;
List : Path_Lists.Persistent_Skip_List := Path_Lists.Open_List ("playlist.mpl", Write_On_Modify => True);
Song : Song_Lists.Vector;
procedure Make_Song_List (List : in out Song_Lists.Vector);
-- Adds all the songs in MP.List to List
procedure Shuffle (List : in out Song_Lists.Vector);
-- Randomizes List
procedure Add_Song;
-- Adds Path to List if Path is not null
procedure Browse_Songs;
-- Displays a file-selection dialog and allows selection of a file in the current directory or below
-- If a file is selected, puts its name relative to the current directory in Path
procedure Delete_Song;
-- Deletes the currently selected song
procedure Quit_Now;
-- Tears down the GUI and saves the playlist
procedure Refresh;
-- Shuffles List into Song and updates Count
function Start (Song : in String) return Boolean;
-- Tries to start playing a file named Song
-- Returns True if successful; False otherwise
Player : Ada_GUI.Widget_ID;
Sel : Ada_GUI.Widget_ID;
Count : Ada_GUI.Widget_ID;
Delete : Ada_GUI.Widget_ID;
Path : Ada_GUI.Widget_ID;
Browse : Ada_GUI.Widget_ID;
Add : Ada_GUI.Widget_ID;
Play : Ada_GUI.Widget_ID;
Skip : Ada_GUI.Widget_ID;
Quit : Ada_GUI.Widget_ID;
Quit_After : Ada_GUI.Widget_ID;
Event : Ada_GUI.Next_Result_Info;
Current : Song_Info;
Index : Positive := 1;
procedure Make_Song_List (List : in out Song_Lists.Vector) is
Position : Natural := 0;
procedure Add_One (Item : in Path_Name) is
-- Empty;
begin -- Add_One
Position := Position + 1;
List.Append (New_Item => (Position => Position, Path => Item) );
Sel.Insert (Text => To_String (Item) );
end Add_One;
procedure Add_All is new Path_Lists.Iterate (Action => Add_One);
begin -- Make_Song_List
List.Clear;
Add_All (List => MP.List);
end Make_Song_List;
procedure Shuffle (List : in out Song_Lists.Vector) is
subtype Index is Integer range 1 .. List.Last_Index;
package Index_Random is new Ada.Numerics.Discrete_Random (Result_Subtype => Index);
Gen : Index_Random.Generator;
J : Index;
T : Song_Info;
begin -- Shuffle
Index_Random.Reset (Gen => Gen);
Swap_All : for I in 1 .. List.Last_Index loop
J := Index_Random.Random (Gen);
T := List.Element (I);
List.Replace_Element (Index => I, New_Item => List.Element (J) );
List.Replace_Element (Index => J, New_Item => T);
end loop Swap_All;
end Shuffle;
procedure Add_Song is
Name : constant String := Path.Text;
begin -- Add_Song
if Name = "" then
return;
end if;
List.Insert (Item => To_Bounded_String (Name) );
Refresh;
Path.Set_Text (Text => "");
exception -- Add_Song
when Error : others =>
Ada.Text_IO.Put_Line (Item => "Add_Song " & Ada.Exceptions.Exception_Information (Error) );
end Add_Song;
Current_Directory : constant String := Ada.Directories.Current_Directory;
procedure Browse_Songs is
Pick : Ada_GUI.File_Result_Info := Ada_GUI.Selected_File (Current_Directory);
begin -- Browse_Songs
if not Pick.Picked then
return;
end if;
Get_Name : declare
Name : constant String := Ada.Strings.Unbounded.To_String (Pick.Value);
begin -- Get_Name
if Name'Length > Current_Directory'Length and then
Name (Name'First .. Name'First + Current_Directory'Length - 1) = Current_Directory
then
Path.Set_Text (Text => Name (Name'First + Current_Directory'Length + 1 .. Name'Last) );
end if;
end Get_Name;
exception -- Browse_Songs
when Error : others =>
Ada.Text_IO.Put_Line (Item => "Browse_Songs " & Ada.Exceptions.Exception_Information (Error) );
end Browse_Songs;
procedure Delete_Song is
Index : constant Natural := Sel.Selected;
begin -- Delete_Song
if Index = 0 then
return;
end if;
List.Delete (Item => To_Bounded_String (Sel.Text) );
Refresh;
exception -- Delete_Song
when Error : others =>
Ada.Text_IO.Put_Line (Item => "Delete_Song " & Ada.Exceptions.Exception_Information (Error) );
end Delete_Song;
Title : constant String := "MP";
procedure Quit_Now is
-- Empty
begin -- Quit_Now
Ada_GUI.Set_Title (Title => Title);
Ada_GUI.End_GUI;
exception -- Quit_Now
when Error : others =>
Ada.Text_IO.Put_Line (Item => "Quit_Now " & Ada.Exceptions.Exception_Information (Error) );
end Quit_Now;
procedure Refresh is
-- Empty
begin -- Refresh
Sel.Clear;
Make_Song_List (List => Song);
Count.Set_Text (Text => Integer'Image (Sel.Length) );
Shuffle (List => Song);
exception -- Refresh
when Error : others =>
Ada.Text_IO.Put_Line (Item => "Refresh " & Ada.Exceptions.Exception_Information (Error) );
end Refresh;
function Start (Song : in String) return Boolean is
-- Empty
begin -- Start
Player.Set_Source (Source => Song);
Ada_GUI.Set_Title (Title => Title & ' ' & Song);
Wait_For_Ready : for I in 1 .. 10 loop
if Player.Ready then
Player.Play;
return True;
end if;
delay 0.01;
end loop Wait_For_Ready;
return False;
exception -- Start
when Error : others =>
Ada.Text_IO.Put_Line (Item => "Start " & Ada.Exceptions.Exception_Information (Error) );
return False;
end Start;
use type Ada_GUI.Event_Kind_ID;
use type Ada_GUI.Widget_ID;
begin -- MP
Ada_GUI.Set_Up (Title => Title, ID => 8089);
Player := Ada_GUI.New_Audio_Player;
Sel := Ada_GUI.New_Selection_List (Break_Before => True, Height => 30);
Count := Ada_GUI.New_Text_Box (Label => "Number of songs:", Break_Before => True);
Delete := Ada_GUI.New_Button (Text => "Delete", Break_Before => True);
Path := Ada_GUI.New_Text_Box (Width => 100);
Browse := Ada_GUI.New_Button (Text => "Browse");
Add := Ada_GUI.New_Button (Text => "Add");
Play := Ada_GUI.New_Button (Text => "Play", Break_Before => True);
Skip := Ada_GUI.New_Button (Text => "Skip");
Quit := Ada_GUI.New_Button (Text => "Quit");
Quit_After := Ada_GUI.New_Check_Box (Label => "Quit after this song");
Refresh;
-- Now we're ready to go
-- If Song is empty, we wait until a song is added or the user clicks on Quit, ignoring other buttons
Wait_For_Song : loop
exit Wait_For_Song when List.Length > 0;
Event := Ada_GUI.Next_Event;
if not Event.Timed_Out and then Event.Event.Kind = Ada_GUI.Left_Click then
if Event.Event.ID = Add then
Add_Song;
elsif Event.Event.ID = Browse then
Browse_Songs;
elsif Event.Event.ID = Quit then
Quit_Now;
return;
else
null;
end if;
end if;
end loop Wait_For_Song;
Forever : loop
exit Forever when Ada_GUI.Window_Closed;
Current := Song.Element (Index);
Sel.Set_Selected (Index => Current.Position);
if Start (To_String (Current.Path) ) then
Wait_For_End : loop
Event := Ada_GUI.Next_Event (Timeout => 0.1);
if Event.Timed_Out then
exit Wait_For_End when Player.Playback_Ended;
elsif Event.Event.Kind = Ada_GUI.Left_Click then
exit Forever when Event.Event.ID = Quit;
if Event.Event.ID = Play then
exit Wait_For_End when not Start (Sel.Text);
elsif Event.Event.ID = Skip then
Ada_GUI.Set_Title (Title => Title);
exit Wait_For_End;
elsif Event.Event.ID = Add then
Add_Song;
elsif Event.Event.ID = Browse then
Browse_Songs;
elsif Event.Event.ID = Delete then
Delete_Song;
else
null;
end if;
else
null;
end if;
end loop Wait_For_End;
end if;
exit Forever when Quit_After.Active;
Index := Index + 1;
if Index > Song.Last_Index then
Index := 1;
end if;
end loop Forever;
Quit_Now;
exception -- MP
when others =>
if Ada_GUI.Set_Up then
Quit_Now;
end if;
end MP;
|
[
{
"context": "der\n-- Copyright (C) 2009, 2010, 2011, 2012, 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@g",
"end": 158,
"score": 0.9998730421066284,
"start": 143,
"tag": "NAME",
"value": "Stephane Carrez"
},
{
"context": "0, 2011, 2012, 2013 Stephane Carrez\n-- Written by Stephane Carrez ([email protected])\n--\n-- Licensed under",
"end": 189,
"score": 0.9998836517333984,
"start": 174,
"tag": "NAME",
"value": "Stephane Carrez"
},
{
"context": "3 Stephane Carrez\n-- Written by Stephane Carrez ([email protected])\n--\n-- Licensed under the Apache License, Versio",
"end": 216,
"score": 0.9999297857284546,
"start": 191,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
src/asf-views-nodes-reader.ads
|
Letractively/ada-asf
| 0 |
-----------------------------------------------------------------------
-- asf -- XHTML Reader
-- Copyright (C) 2009, 2010, 2011, 2012, 2013 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 Sax.Exceptions;
with Sax.Locators;
with Sax.Readers;
with Sax.Attributes;
with Unicode.CES;
with Input_Sources;
with EL.Contexts;
with EL.Contexts.Default;
with ASF.Factory;
private with EL.Functions;
private with Util.Strings.Maps;
package ASF.Views.Nodes.Reader is
type Xhtml_Reader is new Sax.Readers.Reader with private;
overriding
procedure Warning (Handler : in out Xhtml_Reader;
Except : in Sax.Exceptions.Sax_Parse_Exception'Class);
overriding
procedure Error (Handler : in out Xhtml_Reader;
Except : in Sax.Exceptions.Sax_Parse_Exception'Class);
overriding
procedure Fatal_Error (Handler : in out Xhtml_Reader;
Except : in Sax.Exceptions.Sax_Parse_Exception'Class);
overriding
procedure Set_Document_Locator (Handler : in out Xhtml_Reader;
Loc : in out Sax.Locators.Locator);
overriding
procedure Start_Document (Handler : in out Xhtml_Reader);
overriding
procedure End_Document (Handler : in out Xhtml_Reader);
overriding
procedure Start_Prefix_Mapping (Handler : in out Xhtml_Reader;
Prefix : in Unicode.CES.Byte_Sequence;
URI : in Unicode.CES.Byte_Sequence);
overriding
procedure End_Prefix_Mapping (Handler : in out Xhtml_Reader;
Prefix : in Unicode.CES.Byte_Sequence);
overriding
procedure Start_Element (Handler : in out Xhtml_Reader;
Namespace_URI : in Unicode.CES.Byte_Sequence := "";
Local_Name : in Unicode.CES.Byte_Sequence := "";
Qname : in Unicode.CES.Byte_Sequence := "";
Atts : in Sax.Attributes.Attributes'Class);
overriding
procedure End_Element (Handler : in out Xhtml_Reader;
Namespace_URI : in Unicode.CES.Byte_Sequence := "";
Local_Name : in Unicode.CES.Byte_Sequence := "";
Qname : in Unicode.CES.Byte_Sequence := "");
overriding
procedure Characters (Handler : in out Xhtml_Reader;
Ch : in Unicode.CES.Byte_Sequence);
overriding
procedure Ignorable_Whitespace (Handler : in out Xhtml_Reader;
Ch : in Unicode.CES.Byte_Sequence);
overriding
procedure Processing_Instruction (Handler : in out Xhtml_Reader;
Target : in Unicode.CES.Byte_Sequence;
Data : in Unicode.CES.Byte_Sequence);
overriding
procedure Skipped_Entity (Handler : in out Xhtml_Reader;
Name : in Unicode.CES.Byte_Sequence);
overriding
procedure Start_Cdata (Handler : in out Xhtml_Reader);
overriding
procedure End_Cdata (Handler : in out Xhtml_Reader);
overriding
function Resolve_Entity (Handler : Xhtml_Reader;
Public_Id : Unicode.CES.Byte_Sequence;
System_Id : Unicode.CES.Byte_Sequence)
return Input_Sources.Input_Source_Access;
overriding
procedure Start_DTD (Handler : in out Xhtml_Reader;
Name : Unicode.CES.Byte_Sequence;
Public_Id : Unicode.CES.Byte_Sequence := "";
System_Id : Unicode.CES.Byte_Sequence := "");
-- Get the root node that was created upon parsing of the XHTML file.
function Get_Root (Reader : Xhtml_Reader) return Tag_Node_Access;
-- Set the XHTML reader to ignore or not the white spaces.
-- When set to True, the ignorable white spaces will not be kept.
procedure Set_Ignore_White_Spaces (Reader : in out Xhtml_Reader;
Value : in Boolean);
-- Set the XHTML reader to escape or not the unknown tags.
-- When set to True, the tags which are not recognized will be
-- emitted as a raw text component and they will be escaped using
-- the XML escape rules.
procedure Set_Escape_Unknown_Tags (Reader : in out Xhtml_Reader;
Value : in Boolean);
-- Set the XHTML reader to ignore empty lines.
procedure Set_Ignore_Empty_Lines (Reader : in out Xhtml_Reader;
Value : in Boolean);
-- Parse an XML stream, and calls the appropriate SAX callbacks for each
-- event.
-- This is not re-entrant: you can not call Parse with the same Parser
-- argument in one of the SAX callbacks. This has undefined behavior.
procedure Parse (Parser : in out Xhtml_Reader;
Name : in ASF.Views.File_Info_Access;
Input : in out Input_Sources.Input_Source'Class;
Factory : access ASF.Factory.Component_Factory;
Context : in EL.Contexts.ELContext_Access);
private
-- Collect the text for an EL expression. The EL expression starts
-- with either '#{' or with '${' and ends with the matching '}'.
-- If the <b>Value</b> string does not contain the whole EL experssion
-- the <b>Expr_Buffer</b> stored in the reader is used to collect
-- that expression.
procedure Collect_Expression (Handler : in out Xhtml_Reader);
-- Collect the raw-text in a buffer. The text must be flushed
-- when a new element is started or when an exiting element is closed.
procedure Collect_Text (Handler : in out Xhtml_Reader;
Value : in Unicode.CES.Byte_Sequence);
use EL.Functions;
-- use ASF.Components.Factory;
package NS_Mapping renames Util.Strings.Maps;
-- Skip indicates the number of frames to skip in the saved locations
-- stack
type NS_Function_Mapper is new Function_Mapper with record
Mapping : NS_Mapping.Map;
Mapper : Function_Mapper_Access;
Factory : access ASF.Factory.Component_Factory;
end record;
-- Find the function knowing its name.
overriding
function Get_Function (Mapper : NS_Function_Mapper;
Namespace : String;
Name : String) return Function_Access;
-- Bind a name to a function in the given namespace.
overriding
procedure Set_Function (Mapper : in out NS_Function_Mapper;
Namespace : in String;
Name : in String;
Func : in Function_Access);
-- Find the create function in bound to the name in the given namespace.
-- Returns null if no such binding exist.
function Find (Mapper : in NS_Function_Mapper;
Namespace : in String;
Name : in String) return ASF.Views.Nodes.Binding_Access;
procedure Set_Namespace (Mapper : in out NS_Function_Mapper;
Prefix : in String;
URI : in String);
-- Remove the namespace prefix binding.
procedure Remove_Namespace (Mapper : in out NS_Function_Mapper;
Prefix : in String);
type Element_Context is record
Parent : Tag_Node_Access;
Text : Boolean;
end record;
type Element_Context_Access is access all Element_Context;
type Element_Context_Array is array (Natural range <>) of aliased Element_Context;
type Element_Context_Array_Access is access all Element_Context_Array;
type Text_State is (NO_CONTENT, HAS_CONTENT, PARSE_EXPR);
type Xhtml_Reader is new Sax.Readers.Reader with record
Locator : Sax.Locators.Locator;
Root : Tag_Node_Access;
Text : Text_Tag_Node_Access;
Current : Element_Context_Access;
ELContext : EL.Contexts.ELContext_Access;
Functions : aliased NS_Function_Mapper;
Context : aliased EL.Contexts.Default.Default_Context;
Stack : Element_Context_Array_Access;
Stack_Pos : Natural := 0;
-- The line and file information.
Line : Line_Info;
State : Text_State := NO_CONTENT;
Default_State : Text_State := NO_CONTENT;
-- Current expression buffer (See Collect_Expression)
Expr_Buffer : Unbounded_String;
-- Some pending white spaces to append to the current text.
Spaces : Unbounded_String;
-- When not empty, the 'xmlns' attribute to insert in the element. The XML Sax parser
-- notifies us about 'xmlns' attributes through the Start_Prefix_Mapping operation.
-- When the default namespace with empty prefix is found, we have to add the corresponding
-- attribute in Start_Element so that it is written in the facelet tree.
Add_NS : Unbounded_String;
-- Whether the unknown tags are escaped using XML escape rules.
Escape_Unknown_Tags : Boolean := True;
-- Whether white spaces can be ignored.
Ignore_White_Spaces : Boolean := True;
-- Whether empty lines should be ignored (when white spaces are kept).
Ignore_Empty_Lines : Boolean := True;
end record;
end ASF.Views.Nodes.Reader;
|
26304
|
-----------------------------------------------------------------------
-- asf -- XHTML Reader
-- Copyright (C) 2009, 2010, 2011, 2012, 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- 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 Sax.Exceptions;
with Sax.Locators;
with Sax.Readers;
with Sax.Attributes;
with Unicode.CES;
with Input_Sources;
with EL.Contexts;
with EL.Contexts.Default;
with ASF.Factory;
private with EL.Functions;
private with Util.Strings.Maps;
package ASF.Views.Nodes.Reader is
type Xhtml_Reader is new Sax.Readers.Reader with private;
overriding
procedure Warning (Handler : in out Xhtml_Reader;
Except : in Sax.Exceptions.Sax_Parse_Exception'Class);
overriding
procedure Error (Handler : in out Xhtml_Reader;
Except : in Sax.Exceptions.Sax_Parse_Exception'Class);
overriding
procedure Fatal_Error (Handler : in out Xhtml_Reader;
Except : in Sax.Exceptions.Sax_Parse_Exception'Class);
overriding
procedure Set_Document_Locator (Handler : in out Xhtml_Reader;
Loc : in out Sax.Locators.Locator);
overriding
procedure Start_Document (Handler : in out Xhtml_Reader);
overriding
procedure End_Document (Handler : in out Xhtml_Reader);
overriding
procedure Start_Prefix_Mapping (Handler : in out Xhtml_Reader;
Prefix : in Unicode.CES.Byte_Sequence;
URI : in Unicode.CES.Byte_Sequence);
overriding
procedure End_Prefix_Mapping (Handler : in out Xhtml_Reader;
Prefix : in Unicode.CES.Byte_Sequence);
overriding
procedure Start_Element (Handler : in out Xhtml_Reader;
Namespace_URI : in Unicode.CES.Byte_Sequence := "";
Local_Name : in Unicode.CES.Byte_Sequence := "";
Qname : in Unicode.CES.Byte_Sequence := "";
Atts : in Sax.Attributes.Attributes'Class);
overriding
procedure End_Element (Handler : in out Xhtml_Reader;
Namespace_URI : in Unicode.CES.Byte_Sequence := "";
Local_Name : in Unicode.CES.Byte_Sequence := "";
Qname : in Unicode.CES.Byte_Sequence := "");
overriding
procedure Characters (Handler : in out Xhtml_Reader;
Ch : in Unicode.CES.Byte_Sequence);
overriding
procedure Ignorable_Whitespace (Handler : in out Xhtml_Reader;
Ch : in Unicode.CES.Byte_Sequence);
overriding
procedure Processing_Instruction (Handler : in out Xhtml_Reader;
Target : in Unicode.CES.Byte_Sequence;
Data : in Unicode.CES.Byte_Sequence);
overriding
procedure Skipped_Entity (Handler : in out Xhtml_Reader;
Name : in Unicode.CES.Byte_Sequence);
overriding
procedure Start_Cdata (Handler : in out Xhtml_Reader);
overriding
procedure End_Cdata (Handler : in out Xhtml_Reader);
overriding
function Resolve_Entity (Handler : Xhtml_Reader;
Public_Id : Unicode.CES.Byte_Sequence;
System_Id : Unicode.CES.Byte_Sequence)
return Input_Sources.Input_Source_Access;
overriding
procedure Start_DTD (Handler : in out Xhtml_Reader;
Name : Unicode.CES.Byte_Sequence;
Public_Id : Unicode.CES.Byte_Sequence := "";
System_Id : Unicode.CES.Byte_Sequence := "");
-- Get the root node that was created upon parsing of the XHTML file.
function Get_Root (Reader : Xhtml_Reader) return Tag_Node_Access;
-- Set the XHTML reader to ignore or not the white spaces.
-- When set to True, the ignorable white spaces will not be kept.
procedure Set_Ignore_White_Spaces (Reader : in out Xhtml_Reader;
Value : in Boolean);
-- Set the XHTML reader to escape or not the unknown tags.
-- When set to True, the tags which are not recognized will be
-- emitted as a raw text component and they will be escaped using
-- the XML escape rules.
procedure Set_Escape_Unknown_Tags (Reader : in out Xhtml_Reader;
Value : in Boolean);
-- Set the XHTML reader to ignore empty lines.
procedure Set_Ignore_Empty_Lines (Reader : in out Xhtml_Reader;
Value : in Boolean);
-- Parse an XML stream, and calls the appropriate SAX callbacks for each
-- event.
-- This is not re-entrant: you can not call Parse with the same Parser
-- argument in one of the SAX callbacks. This has undefined behavior.
procedure Parse (Parser : in out Xhtml_Reader;
Name : in ASF.Views.File_Info_Access;
Input : in out Input_Sources.Input_Source'Class;
Factory : access ASF.Factory.Component_Factory;
Context : in EL.Contexts.ELContext_Access);
private
-- Collect the text for an EL expression. The EL expression starts
-- with either '#{' or with '${' and ends with the matching '}'.
-- If the <b>Value</b> string does not contain the whole EL experssion
-- the <b>Expr_Buffer</b> stored in the reader is used to collect
-- that expression.
procedure Collect_Expression (Handler : in out Xhtml_Reader);
-- Collect the raw-text in a buffer. The text must be flushed
-- when a new element is started or when an exiting element is closed.
procedure Collect_Text (Handler : in out Xhtml_Reader;
Value : in Unicode.CES.Byte_Sequence);
use EL.Functions;
-- use ASF.Components.Factory;
package NS_Mapping renames Util.Strings.Maps;
-- Skip indicates the number of frames to skip in the saved locations
-- stack
type NS_Function_Mapper is new Function_Mapper with record
Mapping : NS_Mapping.Map;
Mapper : Function_Mapper_Access;
Factory : access ASF.Factory.Component_Factory;
end record;
-- Find the function knowing its name.
overriding
function Get_Function (Mapper : NS_Function_Mapper;
Namespace : String;
Name : String) return Function_Access;
-- Bind a name to a function in the given namespace.
overriding
procedure Set_Function (Mapper : in out NS_Function_Mapper;
Namespace : in String;
Name : in String;
Func : in Function_Access);
-- Find the create function in bound to the name in the given namespace.
-- Returns null if no such binding exist.
function Find (Mapper : in NS_Function_Mapper;
Namespace : in String;
Name : in String) return ASF.Views.Nodes.Binding_Access;
procedure Set_Namespace (Mapper : in out NS_Function_Mapper;
Prefix : in String;
URI : in String);
-- Remove the namespace prefix binding.
procedure Remove_Namespace (Mapper : in out NS_Function_Mapper;
Prefix : in String);
type Element_Context is record
Parent : Tag_Node_Access;
Text : Boolean;
end record;
type Element_Context_Access is access all Element_Context;
type Element_Context_Array is array (Natural range <>) of aliased Element_Context;
type Element_Context_Array_Access is access all Element_Context_Array;
type Text_State is (NO_CONTENT, HAS_CONTENT, PARSE_EXPR);
type Xhtml_Reader is new Sax.Readers.Reader with record
Locator : Sax.Locators.Locator;
Root : Tag_Node_Access;
Text : Text_Tag_Node_Access;
Current : Element_Context_Access;
ELContext : EL.Contexts.ELContext_Access;
Functions : aliased NS_Function_Mapper;
Context : aliased EL.Contexts.Default.Default_Context;
Stack : Element_Context_Array_Access;
Stack_Pos : Natural := 0;
-- The line and file information.
Line : Line_Info;
State : Text_State := NO_CONTENT;
Default_State : Text_State := NO_CONTENT;
-- Current expression buffer (See Collect_Expression)
Expr_Buffer : Unbounded_String;
-- Some pending white spaces to append to the current text.
Spaces : Unbounded_String;
-- When not empty, the 'xmlns' attribute to insert in the element. The XML Sax parser
-- notifies us about 'xmlns' attributes through the Start_Prefix_Mapping operation.
-- When the default namespace with empty prefix is found, we have to add the corresponding
-- attribute in Start_Element so that it is written in the facelet tree.
Add_NS : Unbounded_String;
-- Whether the unknown tags are escaped using XML escape rules.
Escape_Unknown_Tags : Boolean := True;
-- Whether white spaces can be ignored.
Ignore_White_Spaces : Boolean := True;
-- Whether empty lines should be ignored (when white spaces are kept).
Ignore_Empty_Lines : Boolean := True;
end record;
end ASF.Views.Nodes.Reader;
| true |
-----------------------------------------------------------------------
-- asf -- XHTML Reader
-- Copyright (C) 2009, 2010, 2011, 2012, 2013 PI:NAME:<NAME>END_PI
-- Written by PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
--
-- 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 Sax.Exceptions;
with Sax.Locators;
with Sax.Readers;
with Sax.Attributes;
with Unicode.CES;
with Input_Sources;
with EL.Contexts;
with EL.Contexts.Default;
with ASF.Factory;
private with EL.Functions;
private with Util.Strings.Maps;
package ASF.Views.Nodes.Reader is
type Xhtml_Reader is new Sax.Readers.Reader with private;
overriding
procedure Warning (Handler : in out Xhtml_Reader;
Except : in Sax.Exceptions.Sax_Parse_Exception'Class);
overriding
procedure Error (Handler : in out Xhtml_Reader;
Except : in Sax.Exceptions.Sax_Parse_Exception'Class);
overriding
procedure Fatal_Error (Handler : in out Xhtml_Reader;
Except : in Sax.Exceptions.Sax_Parse_Exception'Class);
overriding
procedure Set_Document_Locator (Handler : in out Xhtml_Reader;
Loc : in out Sax.Locators.Locator);
overriding
procedure Start_Document (Handler : in out Xhtml_Reader);
overriding
procedure End_Document (Handler : in out Xhtml_Reader);
overriding
procedure Start_Prefix_Mapping (Handler : in out Xhtml_Reader;
Prefix : in Unicode.CES.Byte_Sequence;
URI : in Unicode.CES.Byte_Sequence);
overriding
procedure End_Prefix_Mapping (Handler : in out Xhtml_Reader;
Prefix : in Unicode.CES.Byte_Sequence);
overriding
procedure Start_Element (Handler : in out Xhtml_Reader;
Namespace_URI : in Unicode.CES.Byte_Sequence := "";
Local_Name : in Unicode.CES.Byte_Sequence := "";
Qname : in Unicode.CES.Byte_Sequence := "";
Atts : in Sax.Attributes.Attributes'Class);
overriding
procedure End_Element (Handler : in out Xhtml_Reader;
Namespace_URI : in Unicode.CES.Byte_Sequence := "";
Local_Name : in Unicode.CES.Byte_Sequence := "";
Qname : in Unicode.CES.Byte_Sequence := "");
overriding
procedure Characters (Handler : in out Xhtml_Reader;
Ch : in Unicode.CES.Byte_Sequence);
overriding
procedure Ignorable_Whitespace (Handler : in out Xhtml_Reader;
Ch : in Unicode.CES.Byte_Sequence);
overriding
procedure Processing_Instruction (Handler : in out Xhtml_Reader;
Target : in Unicode.CES.Byte_Sequence;
Data : in Unicode.CES.Byte_Sequence);
overriding
procedure Skipped_Entity (Handler : in out Xhtml_Reader;
Name : in Unicode.CES.Byte_Sequence);
overriding
procedure Start_Cdata (Handler : in out Xhtml_Reader);
overriding
procedure End_Cdata (Handler : in out Xhtml_Reader);
overriding
function Resolve_Entity (Handler : Xhtml_Reader;
Public_Id : Unicode.CES.Byte_Sequence;
System_Id : Unicode.CES.Byte_Sequence)
return Input_Sources.Input_Source_Access;
overriding
procedure Start_DTD (Handler : in out Xhtml_Reader;
Name : Unicode.CES.Byte_Sequence;
Public_Id : Unicode.CES.Byte_Sequence := "";
System_Id : Unicode.CES.Byte_Sequence := "");
-- Get the root node that was created upon parsing of the XHTML file.
function Get_Root (Reader : Xhtml_Reader) return Tag_Node_Access;
-- Set the XHTML reader to ignore or not the white spaces.
-- When set to True, the ignorable white spaces will not be kept.
procedure Set_Ignore_White_Spaces (Reader : in out Xhtml_Reader;
Value : in Boolean);
-- Set the XHTML reader to escape or not the unknown tags.
-- When set to True, the tags which are not recognized will be
-- emitted as a raw text component and they will be escaped using
-- the XML escape rules.
procedure Set_Escape_Unknown_Tags (Reader : in out Xhtml_Reader;
Value : in Boolean);
-- Set the XHTML reader to ignore empty lines.
procedure Set_Ignore_Empty_Lines (Reader : in out Xhtml_Reader;
Value : in Boolean);
-- Parse an XML stream, and calls the appropriate SAX callbacks for each
-- event.
-- This is not re-entrant: you can not call Parse with the same Parser
-- argument in one of the SAX callbacks. This has undefined behavior.
procedure Parse (Parser : in out Xhtml_Reader;
Name : in ASF.Views.File_Info_Access;
Input : in out Input_Sources.Input_Source'Class;
Factory : access ASF.Factory.Component_Factory;
Context : in EL.Contexts.ELContext_Access);
private
-- Collect the text for an EL expression. The EL expression starts
-- with either '#{' or with '${' and ends with the matching '}'.
-- If the <b>Value</b> string does not contain the whole EL experssion
-- the <b>Expr_Buffer</b> stored in the reader is used to collect
-- that expression.
procedure Collect_Expression (Handler : in out Xhtml_Reader);
-- Collect the raw-text in a buffer. The text must be flushed
-- when a new element is started or when an exiting element is closed.
procedure Collect_Text (Handler : in out Xhtml_Reader;
Value : in Unicode.CES.Byte_Sequence);
use EL.Functions;
-- use ASF.Components.Factory;
package NS_Mapping renames Util.Strings.Maps;
-- Skip indicates the number of frames to skip in the saved locations
-- stack
type NS_Function_Mapper is new Function_Mapper with record
Mapping : NS_Mapping.Map;
Mapper : Function_Mapper_Access;
Factory : access ASF.Factory.Component_Factory;
end record;
-- Find the function knowing its name.
overriding
function Get_Function (Mapper : NS_Function_Mapper;
Namespace : String;
Name : String) return Function_Access;
-- Bind a name to a function in the given namespace.
overriding
procedure Set_Function (Mapper : in out NS_Function_Mapper;
Namespace : in String;
Name : in String;
Func : in Function_Access);
-- Find the create function in bound to the name in the given namespace.
-- Returns null if no such binding exist.
function Find (Mapper : in NS_Function_Mapper;
Namespace : in String;
Name : in String) return ASF.Views.Nodes.Binding_Access;
procedure Set_Namespace (Mapper : in out NS_Function_Mapper;
Prefix : in String;
URI : in String);
-- Remove the namespace prefix binding.
procedure Remove_Namespace (Mapper : in out NS_Function_Mapper;
Prefix : in String);
type Element_Context is record
Parent : Tag_Node_Access;
Text : Boolean;
end record;
type Element_Context_Access is access all Element_Context;
type Element_Context_Array is array (Natural range <>) of aliased Element_Context;
type Element_Context_Array_Access is access all Element_Context_Array;
type Text_State is (NO_CONTENT, HAS_CONTENT, PARSE_EXPR);
type Xhtml_Reader is new Sax.Readers.Reader with record
Locator : Sax.Locators.Locator;
Root : Tag_Node_Access;
Text : Text_Tag_Node_Access;
Current : Element_Context_Access;
ELContext : EL.Contexts.ELContext_Access;
Functions : aliased NS_Function_Mapper;
Context : aliased EL.Contexts.Default.Default_Context;
Stack : Element_Context_Array_Access;
Stack_Pos : Natural := 0;
-- The line and file information.
Line : Line_Info;
State : Text_State := NO_CONTENT;
Default_State : Text_State := NO_CONTENT;
-- Current expression buffer (See Collect_Expression)
Expr_Buffer : Unbounded_String;
-- Some pending white spaces to append to the current text.
Spaces : Unbounded_String;
-- When not empty, the 'xmlns' attribute to insert in the element. The XML Sax parser
-- notifies us about 'xmlns' attributes through the Start_Prefix_Mapping operation.
-- When the default namespace with empty prefix is found, we have to add the corresponding
-- attribute in Start_Element so that it is written in the facelet tree.
Add_NS : Unbounded_String;
-- Whether the unknown tags are escaped using XML escape rules.
Escape_Unknown_Tags : Boolean := True;
-- Whether white spaces can be ignored.
Ignore_White_Spaces : Boolean := True;
-- Whether empty lines should be ignored (when white spaces are kept).
Ignore_Empty_Lines : Boolean := True;
end record;
end ASF.Views.Nodes.Reader;
|
[
{
"context": "right (C) 2001, 2002, 2003, 2006, 2008, 2009, 2010 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@g",
"end": 204,
"score": 0.9998812675476074,
"start": 189,
"tag": "NAME",
"value": "Stephane Carrez"
},
{
"context": "6, 2008, 2009, 2010 Stephane Carrez\n-- Written by Stephane Carrez ([email protected])\n--\n-- Licensed under",
"end": 235,
"score": 0.9998936653137207,
"start": 220,
"tag": "NAME",
"value": "Stephane Carrez"
},
{
"context": "0 Stephane Carrez\n-- Written by Stephane Carrez ([email protected])\n--\n-- Licensed under the Apache License, Versio",
"end": 262,
"score": 0.999930202960968,
"start": 237,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
src/util-properties-hash.ads
|
Letractively/ada-util
| 0 |
-----------------------------------------------------------------------
-- properties.hash -- Hash-based property implementation
-- Copyright (C) 2001, 2002, 2003, 2006, 2008, 2009, 2010 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.Unbounded;
with Ada.Containers;
with Ada.Containers.Hashed_Maps;
with Ada.Strings.Unbounded.Hash;
private package Util.Properties.Hash is
type Manager is new Util.Properties.Interface_P.Manager with private;
type Manager_Access is access all Manager'Class;
-- Returns TRUE if the property exists.
function Exists (Self : in Manager; Name : in Value)
return Boolean;
-- Returns the property value. Raises an exception if not found.
function Get (Self : in Manager; Name : in Value)
return Value;
procedure Insert (Self : in out Manager; Name : in Value;
Item : in Value);
-- Set the value of the property. The property is created if it
-- does not exists.
procedure Set (Self : in out Manager; Name : in Value;
Item : in Value);
-- Remove the property given its name.
procedure Remove (Self : in out Manager; Name : in Value);
-- Iterate over the properties and execute the given procedure passing the
-- property name and its value.
procedure Iterate (Self : in Manager;
Process : access procedure (Name, Item : Value));
-- Deep copy of properties stored in 'From' to 'To'.
function Create_Copy (Self : in Manager) return Interface_P.Manager_Access;
procedure Delete (Self : in Manager; Obj : in out Interface_P.Manager_Access);
function Get_Names (Self : in Manager;
Prefix : in String) return Name_Array;
private
function Equivalent_Keys (Left : Value; Right : Value)
return Boolean;
package PropertyMap is
new Ada.Containers.Hashed_Maps
(Element_Type => Value,
Key_Type => Value,
Hash => Ada.Strings.Unbounded.Hash,
Equivalent_Keys => Equivalent_Keys,
"=" => Ada.Strings.Unbounded."=");
type Manager is new Util.Properties.Interface_P.Manager with record
Content : PropertyMap.Map;
end record;
end Util.Properties.Hash;
|
21549
|
-----------------------------------------------------------------------
-- properties.hash -- Hash-based property implementation
-- Copyright (C) 2001, 2002, 2003, 2006, 2008, 2009, 2010 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- 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.Unbounded;
with Ada.Containers;
with Ada.Containers.Hashed_Maps;
with Ada.Strings.Unbounded.Hash;
private package Util.Properties.Hash is
type Manager is new Util.Properties.Interface_P.Manager with private;
type Manager_Access is access all Manager'Class;
-- Returns TRUE if the property exists.
function Exists (Self : in Manager; Name : in Value)
return Boolean;
-- Returns the property value. Raises an exception if not found.
function Get (Self : in Manager; Name : in Value)
return Value;
procedure Insert (Self : in out Manager; Name : in Value;
Item : in Value);
-- Set the value of the property. The property is created if it
-- does not exists.
procedure Set (Self : in out Manager; Name : in Value;
Item : in Value);
-- Remove the property given its name.
procedure Remove (Self : in out Manager; Name : in Value);
-- Iterate over the properties and execute the given procedure passing the
-- property name and its value.
procedure Iterate (Self : in Manager;
Process : access procedure (Name, Item : Value));
-- Deep copy of properties stored in 'From' to 'To'.
function Create_Copy (Self : in Manager) return Interface_P.Manager_Access;
procedure Delete (Self : in Manager; Obj : in out Interface_P.Manager_Access);
function Get_Names (Self : in Manager;
Prefix : in String) return Name_Array;
private
function Equivalent_Keys (Left : Value; Right : Value)
return Boolean;
package PropertyMap is
new Ada.Containers.Hashed_Maps
(Element_Type => Value,
Key_Type => Value,
Hash => Ada.Strings.Unbounded.Hash,
Equivalent_Keys => Equivalent_Keys,
"=" => Ada.Strings.Unbounded."=");
type Manager is new Util.Properties.Interface_P.Manager with record
Content : PropertyMap.Map;
end record;
end Util.Properties.Hash;
| true |
-----------------------------------------------------------------------
-- properties.hash -- Hash-based property implementation
-- Copyright (C) 2001, 2002, 2003, 2006, 2008, 2009, 2010 PI:NAME:<NAME>END_PI
-- Written by PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
--
-- 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.Unbounded;
with Ada.Containers;
with Ada.Containers.Hashed_Maps;
with Ada.Strings.Unbounded.Hash;
private package Util.Properties.Hash is
type Manager is new Util.Properties.Interface_P.Manager with private;
type Manager_Access is access all Manager'Class;
-- Returns TRUE if the property exists.
function Exists (Self : in Manager; Name : in Value)
return Boolean;
-- Returns the property value. Raises an exception if not found.
function Get (Self : in Manager; Name : in Value)
return Value;
procedure Insert (Self : in out Manager; Name : in Value;
Item : in Value);
-- Set the value of the property. The property is created if it
-- does not exists.
procedure Set (Self : in out Manager; Name : in Value;
Item : in Value);
-- Remove the property given its name.
procedure Remove (Self : in out Manager; Name : in Value);
-- Iterate over the properties and execute the given procedure passing the
-- property name and its value.
procedure Iterate (Self : in Manager;
Process : access procedure (Name, Item : Value));
-- Deep copy of properties stored in 'From' to 'To'.
function Create_Copy (Self : in Manager) return Interface_P.Manager_Access;
procedure Delete (Self : in Manager; Obj : in out Interface_P.Manager_Access);
function Get_Names (Self : in Manager;
Prefix : in String) return Name_Array;
private
function Equivalent_Keys (Left : Value; Right : Value)
return Boolean;
package PropertyMap is
new Ada.Containers.Hashed_Maps
(Element_Type => Value,
Key_Type => Value,
Hash => Ada.Strings.Unbounded.Hash,
Equivalent_Keys => Equivalent_Keys,
"=" => Ada.Strings.Unbounded."=");
type Manager is new Util.Properties.Interface_P.Manager with record
Content : PropertyMap.Map;
end record;
end Util.Properties.Hash;
|
[
{
"context": "-------------------------------------\n --| Name: Jon Spohn\n --| David Rogina\n --| \n ------------",
"end": 241,
"score": 0.999805212020874,
"start": 232,
"tag": "NAME",
"value": "Jon Spohn"
},
{
"context": "--------------\n --| Name: Jon Spohn\n --| David Rogina\n --| \n --------------------------------------",
"end": 267,
"score": 0.9998753666877747,
"start": 255,
"tag": "NAME",
"value": "David Rogina"
}
] |
list_lib.adb
|
Spohn/LegendOfZelba
| 2 |
WITH Unchecked_Deallocation;
with ada.integer_text_io; use ada.integer_text_io;
with ada.text_io; use ada.text_io;
PACKAGE BODY List_Lib IS
--------------------------------------------------------------------------
--| Name: Jon Spohn
--| David Rogina
--|
--------------------------------------------------------------------------
PROCEDURE Dispose IS
NEW Unchecked_Deallocation(Object => Node, Name => Node_Pointer);
FUNCTION Allocate (Xpos: integer;
Ypos: integer;
P: Node_Pointer) RETURN Node_Pointer IS
Result: Node_Pointer;
BEGIN
Result := NEW Node'(X => Xpos,Y => Ypos,Next => P);
RETURN Result;
EXCEPTION
WHEN STORAGE_ERROR =>
RAISE OUT_OF_SPACE;
END Allocate;
PROCEDURE Deallocate (P: IN OUT Node_Pointer) IS
BEGIN
Dispose (X => P);
END Deallocate;
--------------------------------------------------------------------------
-- Constructors
--------------------------------------------------------------------------
PROCEDURE InitLL (One_LL: IN OUT LL_Type) IS
BEGIN
One_LL := (Head => NULL, Tail => NULL, Current => NULL);
END InitLL;
PROCEDURE Add(One_LL: IN OUT LL_Type; X: IN integer; Y : In integer) IS
P: Node_Pointer;
BEGIN
P := Allocate(X, Y, NULL);
IF One_LL.Head = NULL THEN
One_LL.Head := P;
One_LL.Tail := P;
One_LL.Current := P;
ELSE
One_LL.Tail.Next := P;
END IF;
One_LL.Tail := P;
END Add;
--------------------------------------------------------------------------
--Check is current key node is correct key
Function CheckCurrent(L : LL_type; Xpos : integer; Ypos : Integer) Return integer is
begin
if (L.Current.X = Xpos and L.Current.Y = Ypos) then
return 1;
else
return 0;
end if;
end CheckCurrent;
------------------------------------------------------------------------
--traverse to next key in list
PROCEDURE Next_key(L : IN OUT LL_type) is
begin
L.Current := L.Current.next;
end Next_key;
-------------------------------------------------------------------------
--current = No Key
Function NoKey(L : LL_type) return integer is
begin
if L.Current = NULL then
return 0;
else
return 1;
end if;
end NoKey;
---------------------------------------------------------------------------
--Print Key List
procedure PrintL(L : In out LL_type) is
position : node_pointer;
begin
position := L.current;
while (position /= NULL) loop
put(position.x);
put(position.y);
position := position.next;
new_line;
end loop;
end PrintL;
END List_Lib;
|
15257
|
WITH Unchecked_Deallocation;
with ada.integer_text_io; use ada.integer_text_io;
with ada.text_io; use ada.text_io;
PACKAGE BODY List_Lib IS
--------------------------------------------------------------------------
--| Name: <NAME>
--| <NAME>
--|
--------------------------------------------------------------------------
PROCEDURE Dispose IS
NEW Unchecked_Deallocation(Object => Node, Name => Node_Pointer);
FUNCTION Allocate (Xpos: integer;
Ypos: integer;
P: Node_Pointer) RETURN Node_Pointer IS
Result: Node_Pointer;
BEGIN
Result := NEW Node'(X => Xpos,Y => Ypos,Next => P);
RETURN Result;
EXCEPTION
WHEN STORAGE_ERROR =>
RAISE OUT_OF_SPACE;
END Allocate;
PROCEDURE Deallocate (P: IN OUT Node_Pointer) IS
BEGIN
Dispose (X => P);
END Deallocate;
--------------------------------------------------------------------------
-- Constructors
--------------------------------------------------------------------------
PROCEDURE InitLL (One_LL: IN OUT LL_Type) IS
BEGIN
One_LL := (Head => NULL, Tail => NULL, Current => NULL);
END InitLL;
PROCEDURE Add(One_LL: IN OUT LL_Type; X: IN integer; Y : In integer) IS
P: Node_Pointer;
BEGIN
P := Allocate(X, Y, NULL);
IF One_LL.Head = NULL THEN
One_LL.Head := P;
One_LL.Tail := P;
One_LL.Current := P;
ELSE
One_LL.Tail.Next := P;
END IF;
One_LL.Tail := P;
END Add;
--------------------------------------------------------------------------
--Check is current key node is correct key
Function CheckCurrent(L : LL_type; Xpos : integer; Ypos : Integer) Return integer is
begin
if (L.Current.X = Xpos and L.Current.Y = Ypos) then
return 1;
else
return 0;
end if;
end CheckCurrent;
------------------------------------------------------------------------
--traverse to next key in list
PROCEDURE Next_key(L : IN OUT LL_type) is
begin
L.Current := L.Current.next;
end Next_key;
-------------------------------------------------------------------------
--current = No Key
Function NoKey(L : LL_type) return integer is
begin
if L.Current = NULL then
return 0;
else
return 1;
end if;
end NoKey;
---------------------------------------------------------------------------
--Print Key List
procedure PrintL(L : In out LL_type) is
position : node_pointer;
begin
position := L.current;
while (position /= NULL) loop
put(position.x);
put(position.y);
position := position.next;
new_line;
end loop;
end PrintL;
END List_Lib;
| true |
WITH Unchecked_Deallocation;
with ada.integer_text_io; use ada.integer_text_io;
with ada.text_io; use ada.text_io;
PACKAGE BODY List_Lib IS
--------------------------------------------------------------------------
--| Name: PI:NAME:<NAME>END_PI
--| PI:NAME:<NAME>END_PI
--|
--------------------------------------------------------------------------
PROCEDURE Dispose IS
NEW Unchecked_Deallocation(Object => Node, Name => Node_Pointer);
FUNCTION Allocate (Xpos: integer;
Ypos: integer;
P: Node_Pointer) RETURN Node_Pointer IS
Result: Node_Pointer;
BEGIN
Result := NEW Node'(X => Xpos,Y => Ypos,Next => P);
RETURN Result;
EXCEPTION
WHEN STORAGE_ERROR =>
RAISE OUT_OF_SPACE;
END Allocate;
PROCEDURE Deallocate (P: IN OUT Node_Pointer) IS
BEGIN
Dispose (X => P);
END Deallocate;
--------------------------------------------------------------------------
-- Constructors
--------------------------------------------------------------------------
PROCEDURE InitLL (One_LL: IN OUT LL_Type) IS
BEGIN
One_LL := (Head => NULL, Tail => NULL, Current => NULL);
END InitLL;
PROCEDURE Add(One_LL: IN OUT LL_Type; X: IN integer; Y : In integer) IS
P: Node_Pointer;
BEGIN
P := Allocate(X, Y, NULL);
IF One_LL.Head = NULL THEN
One_LL.Head := P;
One_LL.Tail := P;
One_LL.Current := P;
ELSE
One_LL.Tail.Next := P;
END IF;
One_LL.Tail := P;
END Add;
--------------------------------------------------------------------------
--Check is current key node is correct key
Function CheckCurrent(L : LL_type; Xpos : integer; Ypos : Integer) Return integer is
begin
if (L.Current.X = Xpos and L.Current.Y = Ypos) then
return 1;
else
return 0;
end if;
end CheckCurrent;
------------------------------------------------------------------------
--traverse to next key in list
PROCEDURE Next_key(L : IN OUT LL_type) is
begin
L.Current := L.Current.next;
end Next_key;
-------------------------------------------------------------------------
--current = No Key
Function NoKey(L : LL_type) return integer is
begin
if L.Current = NULL then
return 0;
else
return 1;
end if;
end NoKey;
---------------------------------------------------------------------------
--Print Key List
procedure PrintL(L : In out LL_type) is
position : node_pointer;
begin
position := L.current;
while (position /= NULL) loop
put(position.x);
put(position.y);
position := position.next;
new_line;
end loop;
end PrintL;
END List_Lib;
|
[
{
"context": " library specification\n-- Copyright (c) 2003-2018 Maxim Reznik <[email protected]>\n-- Copyright (c) 2004-2016 ",
"end": 97,
"score": 0.9997822046279907,
"start": 85,
"tag": "NAME",
"value": "Maxim Reznik"
},
{
"context": "ication\n-- Copyright (c) 2003-2018 Maxim Reznik <[email protected]>\n-- Copyright (c) 2004-2016 AXE Consultants\n-- ",
"end": 117,
"score": 0.9999299645423889,
"start": 99,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
ada-real_time.ads
|
mgrojo/adalib
| 15 |
-- Standard Ada library specification
-- Copyright (c) 2003-2018 Maxim Reznik <[email protected]>
-- Copyright (c) 2004-2016 AXE Consultants
-- Copyright (c) 2004, 2005, 2006 Ada-Europe
-- Copyright (c) 2000 The MITRE Corporation, Inc.
-- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc.
-- SPDX-License-Identifier: BSD-3-Clause and LicenseRef-AdaReferenceManual
---------------------------------------------------------------------------
package Ada.Real_Time is
type Time is private;
Time_First : constant Time;
Time_Last : constant Time;
Time_Unit : constant := implementation_defined;
type Time_Span is private;
Time_Span_First : constant Time_Span;
Time_Span_Last : constant Time_Span;
Time_Span_Zero : constant Time_Span;
Time_Span_Unit : constant Time_Span;
Tick : constant Time_Span;
function Clock return Time;
function "+" (Left : in Time;
Right : in Time_Span)
return Time;
function "+" (Left : in Time_Span;
Right : in Time)
return Time;
function "-" (Left : in Time;
Right : in Time_Span)
return Time;
function "-" (Left : in Time;
Right : in Time)
return Time_Span;
function "<" (Left : in Time;
Right : in Time)
return Boolean;
function "<=" (Left : in Time;
Right : in Time)
return Boolean;
function ">" (Left : in Time;
Right : in Time)
return Boolean;
function ">=" (Left : in Time;
Right : in Time)
return Boolean;
function "+" (Left : in Time_Span;
Right : in Time_Span)
return Time_Span;
function "-" (Left : in Time_Span;
Right : in Time_Span)
return Time_Span;
function "-" (Right : in Time_Span) return Time_Span;
function "*" (Left : in Time_Span;
Right : in Integer)
return Time_Span;
function "*" (Left : in Integer;
Right : Time_Span)
return Time_Span;
function "/" (Left : in Time_Span;
Right : in Time_Span)
return Integer;
function "/" (Left : in Time_Span;
Right : in Integer)
return Time_Span;
function "abs" (Right : in Time_Span) return Time_Span;
function "<" (Left : in Time_Span;
Right : in Time_Span)
return Boolean;
function "<=" (Left : in Time_Span;
Right : in Time_Span)
return Boolean;
function ">" (Left : in Time_Span;
Right : in Time_Span)
return Boolean;
function ">=" (Left : in Time_Span;
Right : in Time_Span)
return Boolean;
function To_Duration (TS : in Time_Span) return Duration;
function To_Time_Span (D : in Duration) return Time_Span;
function Nanoseconds (NS : in Integer) return Time_Span;
function Microseconds (US : in Integer) return Time_Span;
function Milliseconds (MS : in Integer) return Time_Span;
function Seconds (S : in Integer) return Time_Span;
function Minutes (M : in Integer) return Time_Span;
type Seconds_Count is
range implementation_defined .. implementation_defined;
procedure Split (T : in Time;
SC : out Seconds_Count;
TS : out Time_Span);
function Time_Of (SC : in Seconds_Count;
TS : in Time_Span)
return Time;
private
pragma Import (Ada, Time);
pragma Import (Ada, Time_First);
pragma Import (Ada, Time_Last);
pragma Import (Ada, Time_Span);
pragma Import (Ada, Time_Span_First);
pragma Import (Ada, Time_Span_Last);
pragma Import (Ada, Time_Span_Zero);
pragma Import (Ada, Time_Span_Unit);
pragma Import (Ada, Tick);
end Ada.Real_Time;
|
22209
|
-- Standard Ada library specification
-- Copyright (c) 2003-2018 <NAME> <<EMAIL>>
-- Copyright (c) 2004-2016 AXE Consultants
-- Copyright (c) 2004, 2005, 2006 Ada-Europe
-- Copyright (c) 2000 The MITRE Corporation, Inc.
-- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc.
-- SPDX-License-Identifier: BSD-3-Clause and LicenseRef-AdaReferenceManual
---------------------------------------------------------------------------
package Ada.Real_Time is
type Time is private;
Time_First : constant Time;
Time_Last : constant Time;
Time_Unit : constant := implementation_defined;
type Time_Span is private;
Time_Span_First : constant Time_Span;
Time_Span_Last : constant Time_Span;
Time_Span_Zero : constant Time_Span;
Time_Span_Unit : constant Time_Span;
Tick : constant Time_Span;
function Clock return Time;
function "+" (Left : in Time;
Right : in Time_Span)
return Time;
function "+" (Left : in Time_Span;
Right : in Time)
return Time;
function "-" (Left : in Time;
Right : in Time_Span)
return Time;
function "-" (Left : in Time;
Right : in Time)
return Time_Span;
function "<" (Left : in Time;
Right : in Time)
return Boolean;
function "<=" (Left : in Time;
Right : in Time)
return Boolean;
function ">" (Left : in Time;
Right : in Time)
return Boolean;
function ">=" (Left : in Time;
Right : in Time)
return Boolean;
function "+" (Left : in Time_Span;
Right : in Time_Span)
return Time_Span;
function "-" (Left : in Time_Span;
Right : in Time_Span)
return Time_Span;
function "-" (Right : in Time_Span) return Time_Span;
function "*" (Left : in Time_Span;
Right : in Integer)
return Time_Span;
function "*" (Left : in Integer;
Right : Time_Span)
return Time_Span;
function "/" (Left : in Time_Span;
Right : in Time_Span)
return Integer;
function "/" (Left : in Time_Span;
Right : in Integer)
return Time_Span;
function "abs" (Right : in Time_Span) return Time_Span;
function "<" (Left : in Time_Span;
Right : in Time_Span)
return Boolean;
function "<=" (Left : in Time_Span;
Right : in Time_Span)
return Boolean;
function ">" (Left : in Time_Span;
Right : in Time_Span)
return Boolean;
function ">=" (Left : in Time_Span;
Right : in Time_Span)
return Boolean;
function To_Duration (TS : in Time_Span) return Duration;
function To_Time_Span (D : in Duration) return Time_Span;
function Nanoseconds (NS : in Integer) return Time_Span;
function Microseconds (US : in Integer) return Time_Span;
function Milliseconds (MS : in Integer) return Time_Span;
function Seconds (S : in Integer) return Time_Span;
function Minutes (M : in Integer) return Time_Span;
type Seconds_Count is
range implementation_defined .. implementation_defined;
procedure Split (T : in Time;
SC : out Seconds_Count;
TS : out Time_Span);
function Time_Of (SC : in Seconds_Count;
TS : in Time_Span)
return Time;
private
pragma Import (Ada, Time);
pragma Import (Ada, Time_First);
pragma Import (Ada, Time_Last);
pragma Import (Ada, Time_Span);
pragma Import (Ada, Time_Span_First);
pragma Import (Ada, Time_Span_Last);
pragma Import (Ada, Time_Span_Zero);
pragma Import (Ada, Time_Span_Unit);
pragma Import (Ada, Tick);
end Ada.Real_Time;
| true |
-- Standard Ada library specification
-- Copyright (c) 2003-2018 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
-- Copyright (c) 2004-2016 AXE Consultants
-- Copyright (c) 2004, 2005, 2006 Ada-Europe
-- Copyright (c) 2000 The MITRE Corporation, Inc.
-- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc.
-- SPDX-License-Identifier: BSD-3-Clause and LicenseRef-AdaReferenceManual
---------------------------------------------------------------------------
package Ada.Real_Time is
type Time is private;
Time_First : constant Time;
Time_Last : constant Time;
Time_Unit : constant := implementation_defined;
type Time_Span is private;
Time_Span_First : constant Time_Span;
Time_Span_Last : constant Time_Span;
Time_Span_Zero : constant Time_Span;
Time_Span_Unit : constant Time_Span;
Tick : constant Time_Span;
function Clock return Time;
function "+" (Left : in Time;
Right : in Time_Span)
return Time;
function "+" (Left : in Time_Span;
Right : in Time)
return Time;
function "-" (Left : in Time;
Right : in Time_Span)
return Time;
function "-" (Left : in Time;
Right : in Time)
return Time_Span;
function "<" (Left : in Time;
Right : in Time)
return Boolean;
function "<=" (Left : in Time;
Right : in Time)
return Boolean;
function ">" (Left : in Time;
Right : in Time)
return Boolean;
function ">=" (Left : in Time;
Right : in Time)
return Boolean;
function "+" (Left : in Time_Span;
Right : in Time_Span)
return Time_Span;
function "-" (Left : in Time_Span;
Right : in Time_Span)
return Time_Span;
function "-" (Right : in Time_Span) return Time_Span;
function "*" (Left : in Time_Span;
Right : in Integer)
return Time_Span;
function "*" (Left : in Integer;
Right : Time_Span)
return Time_Span;
function "/" (Left : in Time_Span;
Right : in Time_Span)
return Integer;
function "/" (Left : in Time_Span;
Right : in Integer)
return Time_Span;
function "abs" (Right : in Time_Span) return Time_Span;
function "<" (Left : in Time_Span;
Right : in Time_Span)
return Boolean;
function "<=" (Left : in Time_Span;
Right : in Time_Span)
return Boolean;
function ">" (Left : in Time_Span;
Right : in Time_Span)
return Boolean;
function ">=" (Left : in Time_Span;
Right : in Time_Span)
return Boolean;
function To_Duration (TS : in Time_Span) return Duration;
function To_Time_Span (D : in Duration) return Time_Span;
function Nanoseconds (NS : in Integer) return Time_Span;
function Microseconds (US : in Integer) return Time_Span;
function Milliseconds (MS : in Integer) return Time_Span;
function Seconds (S : in Integer) return Time_Span;
function Minutes (M : in Integer) return Time_Span;
type Seconds_Count is
range implementation_defined .. implementation_defined;
procedure Split (T : in Time;
SC : out Seconds_Count;
TS : out Time_Span);
function Time_Of (SC : in Seconds_Count;
TS : in Time_Span)
return Time;
private
pragma Import (Ada, Time);
pragma Import (Ada, Time_First);
pragma Import (Ada, Time_Last);
pragma Import (Ada, Time_Span);
pragma Import (Ada, Time_Span_First);
pragma Import (Ada, Time_Span_Last);
pragma Import (Ada, Time_Span_Zero);
pragma Import (Ada, Time_Span_Unit);
pragma Import (Ada, Tick);
end Ada.Real_Time;
|
[
{
"context": "on applications\n-- Copyright (C) 2016, 2018, 2021 Stephane.Carrez\n-- Written by Stephane.Carrez (Stephane.Carrez@g",
"end": 154,
"score": 0.9998767971992493,
"start": 139,
"tag": "NAME",
"value": "Stephane.Carrez"
},
{
"context": "C) 2016, 2018, 2021 Stephane.Carrez\n-- Written by Stephane.Carrez ([email protected])\n--\n-- Licensed under",
"end": 185,
"score": 0.9998791217803955,
"start": 170,
"tag": "NAME",
"value": "Stephane.Carrez"
},
{
"context": "1 Stephane.Carrez\n-- Written by Stephane.Carrez ([email protected])\n--\n-- Licensed under the Apache License, Versio",
"end": 212,
"score": 0.9999278783798218,
"start": 187,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
server/jason-applications.adb
|
stcarrez/jason
| 2 |
-----------------------------------------------------------------------
-- jason -- jason applications
-- Copyright (C) 2016, 2018, 2021 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.IO_Exceptions;
with Util.Log.Loggers;
with Util.Properties;
with ASF.Applications;
with AWA.Applications.Factory;
package body Jason.Applications is
use AWA.Applications;
Log : constant Util.Log.Loggers.Logger := Util.Log.Loggers.Create ("Jason");
-- ------------------------------
-- Create the Jason application instance.
-- ------------------------------
function Create return Application_Access is
App : constant Application_Access := new Application;
begin
App.Self := App;
return App;
end Create;
-- ------------------------------
-- Initialize the application:
-- <ul>
-- <li>Register the servlets and filters.
-- <li>Register the application modules.
-- <li>Define the servlet and filter mappings.
-- </ul>
-- ------------------------------
procedure Initialize (App : in Application_Access) is
Fact : AWA.Applications.Factory.Application_Factory;
C : ASF.Applications.Config;
begin
App.Self := App;
begin
C.Load_Properties ("jason.properties");
Util.Log.Loggers.Initialize (Util.Properties.Manager (C));
exception
when Ada.IO_Exceptions.Name_Error =>
Log.Error ("Cannot read application configuration file {0}", CONFIG_PATH);
end;
App.Initialize (C, Fact);
App.Set_Global ("contextPath", CONTEXT_PATH);
end Initialize;
-- ------------------------------
-- Initialize the servlets provided by the application.
-- This procedure is called by <b>Initialize</b>.
-- It should register the application servlets.
-- ------------------------------
overriding
procedure Initialize_Servlets (App : in out Application) is
begin
Log.Info ("Initializing application servlets...");
AWA.Applications.Application (App).Initialize_Servlets;
App.Add_Servlet (Name => "faces", Server => App.Self.Faces'Access);
App.Add_Servlet (Name => "files", Server => App.Self.Files'Access);
App.Add_Servlet (Name => "ajax", Server => App.Self.Ajax'Access);
App.Add_Servlet (Name => "measures", Server => App.Self.Measures'Access);
App.Add_Servlet (Name => "auth", Server => App.Self.Auth'Access);
App.Add_Servlet (Name => "verify-auth", Server => App.Self.Verify_Auth'Access);
end Initialize_Servlets;
-- ------------------------------
-- Initialize the filters provided by the application.
-- This procedure is called by <b>Initialize</b>.
-- It should register the application filters.
-- ------------------------------
overriding
procedure Initialize_Filters (App : in out Application) is
begin
Log.Info ("Initializing application filters...");
AWA.Applications.Application (App).Initialize_Filters;
App.Add_Filter (Name => "dump", Filter => App.Self.Dump'Access);
App.Add_Filter (Name => "measures", Filter => App.Self.Measures'Access);
App.Add_Filter (Name => "service", Filter => App.Self.Service_Filter'Access);
end Initialize_Filters;
-- ------------------------------
-- Initialize the AWA modules provided by the application.
-- This procedure is called by <b>Initialize</b>.
-- It should register the modules used by the application.
-- ------------------------------
overriding
procedure Initialize_Modules (App : in out Application) is
begin
Log.Info ("Initializing application modules...");
Register (App => App.Self.all'Access,
Name => AWA.Users.Modules.NAME,
URI => "user",
Module => App.User_Module'Access);
Register (App => App.Self.all'Access,
Name => AWA.Workspaces.Modules.NAME,
URI => "workspaces",
Module => App.Workspace_Module'Access);
Register (App => App.Self.all'Access,
Name => AWA.Mail.Modules.NAME,
URI => "mail",
Module => App.Mail_Module'Access);
Register (App => App.Self.all'Access,
Name => AWA.Comments.Modules.NAME,
URI => "comments",
Module => App.Comment_Module'Access);
Register (App => App.Self.all'Access,
Name => AWA.Tags.Modules.NAME,
URI => "tags",
Module => App.Tag_Module'Access);
Register (App => App.Self.all'Access,
Name => AWA.Storages.Modules.NAME,
URI => "storages",
Module => App.Storage_Module'Access);
Register (App => App.Self.all'Access,
Name => Jason.Projects.Modules.NAME,
URI => "projects",
Module => App.Project_Module'Access);
Register (App => App.Self.all'Access,
Name => Jason.Tickets.Modules.NAME,
URI => "tickets",
Module => App.Ticket_Module'Access);
end Initialize_Modules;
end Jason.Applications;
|
11604
|
-----------------------------------------------------------------------
-- jason -- jason applications
-- Copyright (C) 2016, 2018, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- 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.IO_Exceptions;
with Util.Log.Loggers;
with Util.Properties;
with ASF.Applications;
with AWA.Applications.Factory;
package body Jason.Applications is
use AWA.Applications;
Log : constant Util.Log.Loggers.Logger := Util.Log.Loggers.Create ("Jason");
-- ------------------------------
-- Create the Jason application instance.
-- ------------------------------
function Create return Application_Access is
App : constant Application_Access := new Application;
begin
App.Self := App;
return App;
end Create;
-- ------------------------------
-- Initialize the application:
-- <ul>
-- <li>Register the servlets and filters.
-- <li>Register the application modules.
-- <li>Define the servlet and filter mappings.
-- </ul>
-- ------------------------------
procedure Initialize (App : in Application_Access) is
Fact : AWA.Applications.Factory.Application_Factory;
C : ASF.Applications.Config;
begin
App.Self := App;
begin
C.Load_Properties ("jason.properties");
Util.Log.Loggers.Initialize (Util.Properties.Manager (C));
exception
when Ada.IO_Exceptions.Name_Error =>
Log.Error ("Cannot read application configuration file {0}", CONFIG_PATH);
end;
App.Initialize (C, Fact);
App.Set_Global ("contextPath", CONTEXT_PATH);
end Initialize;
-- ------------------------------
-- Initialize the servlets provided by the application.
-- This procedure is called by <b>Initialize</b>.
-- It should register the application servlets.
-- ------------------------------
overriding
procedure Initialize_Servlets (App : in out Application) is
begin
Log.Info ("Initializing application servlets...");
AWA.Applications.Application (App).Initialize_Servlets;
App.Add_Servlet (Name => "faces", Server => App.Self.Faces'Access);
App.Add_Servlet (Name => "files", Server => App.Self.Files'Access);
App.Add_Servlet (Name => "ajax", Server => App.Self.Ajax'Access);
App.Add_Servlet (Name => "measures", Server => App.Self.Measures'Access);
App.Add_Servlet (Name => "auth", Server => App.Self.Auth'Access);
App.Add_Servlet (Name => "verify-auth", Server => App.Self.Verify_Auth'Access);
end Initialize_Servlets;
-- ------------------------------
-- Initialize the filters provided by the application.
-- This procedure is called by <b>Initialize</b>.
-- It should register the application filters.
-- ------------------------------
overriding
procedure Initialize_Filters (App : in out Application) is
begin
Log.Info ("Initializing application filters...");
AWA.Applications.Application (App).Initialize_Filters;
App.Add_Filter (Name => "dump", Filter => App.Self.Dump'Access);
App.Add_Filter (Name => "measures", Filter => App.Self.Measures'Access);
App.Add_Filter (Name => "service", Filter => App.Self.Service_Filter'Access);
end Initialize_Filters;
-- ------------------------------
-- Initialize the AWA modules provided by the application.
-- This procedure is called by <b>Initialize</b>.
-- It should register the modules used by the application.
-- ------------------------------
overriding
procedure Initialize_Modules (App : in out Application) is
begin
Log.Info ("Initializing application modules...");
Register (App => App.Self.all'Access,
Name => AWA.Users.Modules.NAME,
URI => "user",
Module => App.User_Module'Access);
Register (App => App.Self.all'Access,
Name => AWA.Workspaces.Modules.NAME,
URI => "workspaces",
Module => App.Workspace_Module'Access);
Register (App => App.Self.all'Access,
Name => AWA.Mail.Modules.NAME,
URI => "mail",
Module => App.Mail_Module'Access);
Register (App => App.Self.all'Access,
Name => AWA.Comments.Modules.NAME,
URI => "comments",
Module => App.Comment_Module'Access);
Register (App => App.Self.all'Access,
Name => AWA.Tags.Modules.NAME,
URI => "tags",
Module => App.Tag_Module'Access);
Register (App => App.Self.all'Access,
Name => AWA.Storages.Modules.NAME,
URI => "storages",
Module => App.Storage_Module'Access);
Register (App => App.Self.all'Access,
Name => Jason.Projects.Modules.NAME,
URI => "projects",
Module => App.Project_Module'Access);
Register (App => App.Self.all'Access,
Name => Jason.Tickets.Modules.NAME,
URI => "tickets",
Module => App.Ticket_Module'Access);
end Initialize_Modules;
end Jason.Applications;
| true |
-----------------------------------------------------------------------
-- jason -- jason applications
-- Copyright (C) 2016, 2018, 2021 PI:NAME:<NAME>END_PI
-- Written by PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
--
-- 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.IO_Exceptions;
with Util.Log.Loggers;
with Util.Properties;
with ASF.Applications;
with AWA.Applications.Factory;
package body Jason.Applications is
use AWA.Applications;
Log : constant Util.Log.Loggers.Logger := Util.Log.Loggers.Create ("Jason");
-- ------------------------------
-- Create the Jason application instance.
-- ------------------------------
function Create return Application_Access is
App : constant Application_Access := new Application;
begin
App.Self := App;
return App;
end Create;
-- ------------------------------
-- Initialize the application:
-- <ul>
-- <li>Register the servlets and filters.
-- <li>Register the application modules.
-- <li>Define the servlet and filter mappings.
-- </ul>
-- ------------------------------
procedure Initialize (App : in Application_Access) is
Fact : AWA.Applications.Factory.Application_Factory;
C : ASF.Applications.Config;
begin
App.Self := App;
begin
C.Load_Properties ("jason.properties");
Util.Log.Loggers.Initialize (Util.Properties.Manager (C));
exception
when Ada.IO_Exceptions.Name_Error =>
Log.Error ("Cannot read application configuration file {0}", CONFIG_PATH);
end;
App.Initialize (C, Fact);
App.Set_Global ("contextPath", CONTEXT_PATH);
end Initialize;
-- ------------------------------
-- Initialize the servlets provided by the application.
-- This procedure is called by <b>Initialize</b>.
-- It should register the application servlets.
-- ------------------------------
overriding
procedure Initialize_Servlets (App : in out Application) is
begin
Log.Info ("Initializing application servlets...");
AWA.Applications.Application (App).Initialize_Servlets;
App.Add_Servlet (Name => "faces", Server => App.Self.Faces'Access);
App.Add_Servlet (Name => "files", Server => App.Self.Files'Access);
App.Add_Servlet (Name => "ajax", Server => App.Self.Ajax'Access);
App.Add_Servlet (Name => "measures", Server => App.Self.Measures'Access);
App.Add_Servlet (Name => "auth", Server => App.Self.Auth'Access);
App.Add_Servlet (Name => "verify-auth", Server => App.Self.Verify_Auth'Access);
end Initialize_Servlets;
-- ------------------------------
-- Initialize the filters provided by the application.
-- This procedure is called by <b>Initialize</b>.
-- It should register the application filters.
-- ------------------------------
overriding
procedure Initialize_Filters (App : in out Application) is
begin
Log.Info ("Initializing application filters...");
AWA.Applications.Application (App).Initialize_Filters;
App.Add_Filter (Name => "dump", Filter => App.Self.Dump'Access);
App.Add_Filter (Name => "measures", Filter => App.Self.Measures'Access);
App.Add_Filter (Name => "service", Filter => App.Self.Service_Filter'Access);
end Initialize_Filters;
-- ------------------------------
-- Initialize the AWA modules provided by the application.
-- This procedure is called by <b>Initialize</b>.
-- It should register the modules used by the application.
-- ------------------------------
overriding
procedure Initialize_Modules (App : in out Application) is
begin
Log.Info ("Initializing application modules...");
Register (App => App.Self.all'Access,
Name => AWA.Users.Modules.NAME,
URI => "user",
Module => App.User_Module'Access);
Register (App => App.Self.all'Access,
Name => AWA.Workspaces.Modules.NAME,
URI => "workspaces",
Module => App.Workspace_Module'Access);
Register (App => App.Self.all'Access,
Name => AWA.Mail.Modules.NAME,
URI => "mail",
Module => App.Mail_Module'Access);
Register (App => App.Self.all'Access,
Name => AWA.Comments.Modules.NAME,
URI => "comments",
Module => App.Comment_Module'Access);
Register (App => App.Self.all'Access,
Name => AWA.Tags.Modules.NAME,
URI => "tags",
Module => App.Tag_Module'Access);
Register (App => App.Self.all'Access,
Name => AWA.Storages.Modules.NAME,
URI => "storages",
Module => App.Storage_Module'Access);
Register (App => App.Self.all'Access,
Name => Jason.Projects.Modules.NAME,
URI => "projects",
Module => App.Project_Module'Access);
Register (App => App.Self.all'Access,
Name => Jason.Tickets.Modules.NAME,
URI => "tickets",
Module => App.Ticket_Module'Access);
end Initialize_Modules;
end Jason.Applications;
|
[
{
"context": " parsers and renderer\n-- Copyright (C) 2016, 2020 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@g",
"end": 184,
"score": 0.9998879432678223,
"start": 169,
"tag": "NAME",
"value": "Stephane Carrez"
},
{
"context": "ight (C) 2016, 2020 Stephane Carrez\n-- Written by Stephane Carrez ([email protected])\n--\n-- Licensed under",
"end": 215,
"score": 0.9998933672904968,
"start": 200,
"tag": "NAME",
"value": "Stephane Carrez"
},
{
"context": "0 Stephane Carrez\n-- Written by Stephane Carrez ([email protected])\n--\n-- Licensed under the Apache License, Versio",
"end": 242,
"score": 0.9999259114265442,
"start": 217,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
src/wiki-helpers.adb
|
jquorning/ada-wiki
| 18 |
-----------------------------------------------------------------------
-- wiki-helpers -- Helper operations for wiki parsers and renderer
-- Copyright (C) 2016, 2020 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.Wide_Wide_Characters.Handling;
package body Wiki.Helpers is
-- ------------------------------
-- Returns True if the character is a space or tab.
-- ------------------------------
function Is_Space (C : in Wiki.Strings.WChar) return Boolean is
begin
return Ada.Wide_Wide_Characters.Handling.Is_Space (C) or C = HT or C = NBSP;
end Is_Space;
-- ------------------------------
-- Returns True if the character is a space, tab or a newline.
-- ------------------------------
function Is_Space_Or_Newline (C : in Wiki.Strings.WChar) return Boolean is
begin
return Is_Space (C) or Ada.Wide_Wide_Characters.Handling.Is_Line_Terminator (C);
end Is_Space_Or_Newline;
-- ------------------------------
-- Returns True if the character is a line terminator.
-- ------------------------------
function Is_Newline (C : in Wiki.Strings.WChar) return Boolean is
begin
return Ada.Wide_Wide_Characters.Handling.Is_Line_Terminator (C);
end Is_Newline;
-- ------------------------------
-- Returns True if the text is a valid URL
-- ------------------------------
function Is_Url (Text : in Wiki.Strings.WString) return Boolean is
begin
if Text'Length <= 9 then
return False;
else
return Text (Text'First .. Text'First + 6) = "http://"
or Text (Text'First .. Text'First + 7) = "https://";
end if;
end Is_Url;
-- ------------------------------
-- Returns True if the extension part correspond to an image.
-- Recognized extension are: .png, .gif, .jpg, .jpeg.
-- The extension case is ignored.
-- ------------------------------
function Is_Image_Extension (Ext : in Wiki.Strings.WString) return Boolean is
S : constant Wiki.Strings.WString := Ada.Wide_Wide_Characters.Handling.To_Lower (Ext);
begin
return S = ".png" or S = ".jpg" or S = ".gif" or S = ".jpeg";
end Is_Image_Extension;
-- ------------------------------
-- Given the current tag on the top of the stack and the new tag that will be pushed,
-- decide whether the current tag must be closed or not.
-- Returns True if the current tag must be closed.
-- ------------------------------
function Need_Close (Tag : in Html_Tag;
Current_Tag : in Html_Tag) return Boolean is
begin
if No_End_Tag (Current_Tag) then
return True;
elsif Current_Tag = Tag and Tag_Omission (Current_Tag) then
return True;
else
case Current_Tag is
when DT_TAG | DD_TAG =>
return Tag = DD_TAG or Tag = DL_TAG or Tag = DT_TAG;
when TD_TAG =>
return Tag = TD_TAG or Tag = TR_TAG or Tag = TH_TAG;
when TR_TAG =>
return False;
when others =>
return False;
end case;
end if;
end Need_Close;
-- ------------------------------
-- Get the dimension represented by the string. The string has one of the following
-- formats:
-- original -> Width, Height := Natural'Last
-- default -> Width := 800, Height := 0
-- upright -> Width := 800, Height := 0
-- <width>px -> Width := <width>, Height := 0
-- x<height>px -> Width := 0, Height := <height>
-- <width>x<height>px -> Width := <width>, Height := <height>
-- ------------------------------
procedure Get_Sizes (Dimension : in Wiki.Strings.WString;
Width : out Natural;
Height : out Natural) is
Pos : Natural;
Last : Natural;
begin
if Dimension = "original" then
Width := Natural'Last;
Height := Natural'Last;
elsif Dimension = "default" or Dimension = "upright" then
Width := 800;
Height := 0;
else
Pos := Wiki.Strings.Index (Dimension, "x");
Last := Wiki.Strings.Index (Dimension, "px");
if Pos > Dimension'First and Last + 1 /= Pos then
Width := Natural'Wide_Wide_Value (Dimension (Dimension'First .. Pos - 1));
elsif Last > 0 then
Width := Natural'Wide_Wide_Value (Dimension (Dimension'First .. Last - 1));
else
Width := 0;
end if;
if Pos < Dimension'Last then
Height := Natural'Wide_Wide_Value (Dimension (Pos + 1 .. Last - 1));
else
Height := 0;
end if;
end if;
exception
when Constraint_Error =>
Width := 0;
Height := 0;
end Get_Sizes;
end Wiki.Helpers;
|
12023
|
-----------------------------------------------------------------------
-- wiki-helpers -- Helper operations for wiki parsers and renderer
-- Copyright (C) 2016, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- 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.Wide_Wide_Characters.Handling;
package body Wiki.Helpers is
-- ------------------------------
-- Returns True if the character is a space or tab.
-- ------------------------------
function Is_Space (C : in Wiki.Strings.WChar) return Boolean is
begin
return Ada.Wide_Wide_Characters.Handling.Is_Space (C) or C = HT or C = NBSP;
end Is_Space;
-- ------------------------------
-- Returns True if the character is a space, tab or a newline.
-- ------------------------------
function Is_Space_Or_Newline (C : in Wiki.Strings.WChar) return Boolean is
begin
return Is_Space (C) or Ada.Wide_Wide_Characters.Handling.Is_Line_Terminator (C);
end Is_Space_Or_Newline;
-- ------------------------------
-- Returns True if the character is a line terminator.
-- ------------------------------
function Is_Newline (C : in Wiki.Strings.WChar) return Boolean is
begin
return Ada.Wide_Wide_Characters.Handling.Is_Line_Terminator (C);
end Is_Newline;
-- ------------------------------
-- Returns True if the text is a valid URL
-- ------------------------------
function Is_Url (Text : in Wiki.Strings.WString) return Boolean is
begin
if Text'Length <= 9 then
return False;
else
return Text (Text'First .. Text'First + 6) = "http://"
or Text (Text'First .. Text'First + 7) = "https://";
end if;
end Is_Url;
-- ------------------------------
-- Returns True if the extension part correspond to an image.
-- Recognized extension are: .png, .gif, .jpg, .jpeg.
-- The extension case is ignored.
-- ------------------------------
function Is_Image_Extension (Ext : in Wiki.Strings.WString) return Boolean is
S : constant Wiki.Strings.WString := Ada.Wide_Wide_Characters.Handling.To_Lower (Ext);
begin
return S = ".png" or S = ".jpg" or S = ".gif" or S = ".jpeg";
end Is_Image_Extension;
-- ------------------------------
-- Given the current tag on the top of the stack and the new tag that will be pushed,
-- decide whether the current tag must be closed or not.
-- Returns True if the current tag must be closed.
-- ------------------------------
function Need_Close (Tag : in Html_Tag;
Current_Tag : in Html_Tag) return Boolean is
begin
if No_End_Tag (Current_Tag) then
return True;
elsif Current_Tag = Tag and Tag_Omission (Current_Tag) then
return True;
else
case Current_Tag is
when DT_TAG | DD_TAG =>
return Tag = DD_TAG or Tag = DL_TAG or Tag = DT_TAG;
when TD_TAG =>
return Tag = TD_TAG or Tag = TR_TAG or Tag = TH_TAG;
when TR_TAG =>
return False;
when others =>
return False;
end case;
end if;
end Need_Close;
-- ------------------------------
-- Get the dimension represented by the string. The string has one of the following
-- formats:
-- original -> Width, Height := Natural'Last
-- default -> Width := 800, Height := 0
-- upright -> Width := 800, Height := 0
-- <width>px -> Width := <width>, Height := 0
-- x<height>px -> Width := 0, Height := <height>
-- <width>x<height>px -> Width := <width>, Height := <height>
-- ------------------------------
procedure Get_Sizes (Dimension : in Wiki.Strings.WString;
Width : out Natural;
Height : out Natural) is
Pos : Natural;
Last : Natural;
begin
if Dimension = "original" then
Width := Natural'Last;
Height := Natural'Last;
elsif Dimension = "default" or Dimension = "upright" then
Width := 800;
Height := 0;
else
Pos := Wiki.Strings.Index (Dimension, "x");
Last := Wiki.Strings.Index (Dimension, "px");
if Pos > Dimension'First and Last + 1 /= Pos then
Width := Natural'Wide_Wide_Value (Dimension (Dimension'First .. Pos - 1));
elsif Last > 0 then
Width := Natural'Wide_Wide_Value (Dimension (Dimension'First .. Last - 1));
else
Width := 0;
end if;
if Pos < Dimension'Last then
Height := Natural'Wide_Wide_Value (Dimension (Pos + 1 .. Last - 1));
else
Height := 0;
end if;
end if;
exception
when Constraint_Error =>
Width := 0;
Height := 0;
end Get_Sizes;
end Wiki.Helpers;
| true |
-----------------------------------------------------------------------
-- wiki-helpers -- Helper operations for wiki parsers and renderer
-- Copyright (C) 2016, 2020 PI:NAME:<NAME>END_PI
-- Written by PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
--
-- 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.Wide_Wide_Characters.Handling;
package body Wiki.Helpers is
-- ------------------------------
-- Returns True if the character is a space or tab.
-- ------------------------------
function Is_Space (C : in Wiki.Strings.WChar) return Boolean is
begin
return Ada.Wide_Wide_Characters.Handling.Is_Space (C) or C = HT or C = NBSP;
end Is_Space;
-- ------------------------------
-- Returns True if the character is a space, tab or a newline.
-- ------------------------------
function Is_Space_Or_Newline (C : in Wiki.Strings.WChar) return Boolean is
begin
return Is_Space (C) or Ada.Wide_Wide_Characters.Handling.Is_Line_Terminator (C);
end Is_Space_Or_Newline;
-- ------------------------------
-- Returns True if the character is a line terminator.
-- ------------------------------
function Is_Newline (C : in Wiki.Strings.WChar) return Boolean is
begin
return Ada.Wide_Wide_Characters.Handling.Is_Line_Terminator (C);
end Is_Newline;
-- ------------------------------
-- Returns True if the text is a valid URL
-- ------------------------------
function Is_Url (Text : in Wiki.Strings.WString) return Boolean is
begin
if Text'Length <= 9 then
return False;
else
return Text (Text'First .. Text'First + 6) = "http://"
or Text (Text'First .. Text'First + 7) = "https://";
end if;
end Is_Url;
-- ------------------------------
-- Returns True if the extension part correspond to an image.
-- Recognized extension are: .png, .gif, .jpg, .jpeg.
-- The extension case is ignored.
-- ------------------------------
function Is_Image_Extension (Ext : in Wiki.Strings.WString) return Boolean is
S : constant Wiki.Strings.WString := Ada.Wide_Wide_Characters.Handling.To_Lower (Ext);
begin
return S = ".png" or S = ".jpg" or S = ".gif" or S = ".jpeg";
end Is_Image_Extension;
-- ------------------------------
-- Given the current tag on the top of the stack and the new tag that will be pushed,
-- decide whether the current tag must be closed or not.
-- Returns True if the current tag must be closed.
-- ------------------------------
function Need_Close (Tag : in Html_Tag;
Current_Tag : in Html_Tag) return Boolean is
begin
if No_End_Tag (Current_Tag) then
return True;
elsif Current_Tag = Tag and Tag_Omission (Current_Tag) then
return True;
else
case Current_Tag is
when DT_TAG | DD_TAG =>
return Tag = DD_TAG or Tag = DL_TAG or Tag = DT_TAG;
when TD_TAG =>
return Tag = TD_TAG or Tag = TR_TAG or Tag = TH_TAG;
when TR_TAG =>
return False;
when others =>
return False;
end case;
end if;
end Need_Close;
-- ------------------------------
-- Get the dimension represented by the string. The string has one of the following
-- formats:
-- original -> Width, Height := Natural'Last
-- default -> Width := 800, Height := 0
-- upright -> Width := 800, Height := 0
-- <width>px -> Width := <width>, Height := 0
-- x<height>px -> Width := 0, Height := <height>
-- <width>x<height>px -> Width := <width>, Height := <height>
-- ------------------------------
procedure Get_Sizes (Dimension : in Wiki.Strings.WString;
Width : out Natural;
Height : out Natural) is
Pos : Natural;
Last : Natural;
begin
if Dimension = "original" then
Width := Natural'Last;
Height := Natural'Last;
elsif Dimension = "default" or Dimension = "upright" then
Width := 800;
Height := 0;
else
Pos := Wiki.Strings.Index (Dimension, "x");
Last := Wiki.Strings.Index (Dimension, "px");
if Pos > Dimension'First and Last + 1 /= Pos then
Width := Natural'Wide_Wide_Value (Dimension (Dimension'First .. Pos - 1));
elsif Last > 0 then
Width := Natural'Wide_Wide_Value (Dimension (Dimension'First .. Last - 1));
else
Width := 0;
end if;
if Pos < Dimension'Last then
Height := Natural'Wide_Wide_Value (Dimension (Pos + 1 .. Last - 1));
else
Height := 0;
end if;
end if;
exception
when Constraint_Error =>
Width := 0;
Height := 0;
end Get_Sizes;
end Wiki.Helpers;
|
[
{
"context": "by AdaCore --\n-- (http://www.adacore.com). ",
"end": 2791,
"score": 0.8809906840324402,
"start": 2782,
"tag": "EMAIL",
"value": "acore.com"
}
] |
src/asis/a4g-encl_el.ads
|
My-Colaborations/dynamo
| 15 |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- A 4 G . E N C L _ E L --
-- --
-- S p e c --
-- --
-- Copyright (C) 1995-2010, Free Software Foundation, Inc. --
-- --
-- ASIS-for-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 --
-- Software Foundation; either version 2, or (at your option) any later --
-- version. ASIS-for-GNAT is distributed in the hope that it will be use- --
-- ful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- --
-- CHANTABILITY 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 ASIS-for-GNAT; see file --
-- COPYING. If not, write to the Free Software Foundation, 51 Franklin --
-- Street, Fifth Floor, Boston, MA 02110-1301, USA. --
-- --
-- --
-- --
-- --
-- --
-- --
-- --
-- --
-- ASIS-for-GNAT was originally developed by the ASIS-for-GNAT team at the --
-- Software Engineering Laboratory of the Swiss Federal Institute of --
-- Technology (LGL-EPFL) in Lausanne, Switzerland, in cooperation with the --
-- Scientific Research Computer Center of Moscow State University (SRCC --
-- MSU), Russia, with funding partially provided by grants from the Swiss --
-- National Science Foundation and the Swiss Academy of Engineering --
-- Sciences. ASIS-for-GNAT is now maintained by AdaCore --
-- (http://www.adacore.com). --
-- --
------------------------------------------------------------------------------
-- This package contains routines for computing the enclosing element
-- for the Asis.Elements.Enclosing_Element function
with Asis;
package A4G.Encl_El is
function Corresponding_Instantiation
(Element : Asis.Element)
return Asis.Element;
-- This function accepts an Element representing an expanded generic
-- declaration as an argument and returns the generic instantiation
-- which was expanded in the argument declaration. According to subclause
-- 15.26, this instantiation should be returned as the Enclosing_Element
-- for the expanded generic declaration.
--
-- Should we move this function in Asis.Extensions?
function Enclosing_For_Explicit_Instance_Component
(Element : Asis.Element)
return Asis.Element;
-- Computes the Enclosing Element for an explicit component of an
-- expanded generic declaration. The problem in this case is, that if
-- the result represents the whole expanded declaration, the
-- Special_Case field of the result should be properly set
function Enclosing_Element_For_Explicit
(Element : Asis.Element)
return Asis.Element;
-- This is the general constructor of enclosing element for explicit
-- elements
function Enclosing_Element_For_Implicit
(Element : Asis.Element)
return Asis.Element;
-- This is the general constructor of enclosing element for implicit
-- elements. It's only partially implemented for now.
function Enclosing_Element_For_Limited_View
(Element : Asis.Element)
return Asis.Element;
-- This is the general constructor of enclosing element for elements from
-- limited view.
end A4G.Encl_El;
|
12803
|
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- A 4 G . E N C L _ E L --
-- --
-- S p e c --
-- --
-- Copyright (C) 1995-2010, Free Software Foundation, Inc. --
-- --
-- ASIS-for-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 --
-- Software Foundation; either version 2, or (at your option) any later --
-- version. ASIS-for-GNAT is distributed in the hope that it will be use- --
-- ful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- --
-- CHANTABILITY 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 ASIS-for-GNAT; see file --
-- COPYING. If not, write to the Free Software Foundation, 51 Franklin --
-- Street, Fifth Floor, Boston, MA 02110-1301, USA. --
-- --
-- --
-- --
-- --
-- --
-- --
-- --
-- --
-- ASIS-for-GNAT was originally developed by the ASIS-for-GNAT team at the --
-- Software Engineering Laboratory of the Swiss Federal Institute of --
-- Technology (LGL-EPFL) in Lausanne, Switzerland, in cooperation with the --
-- Scientific Research Computer Center of Moscow State University (SRCC --
-- MSU), Russia, with funding partially provided by grants from the Swiss --
-- National Science Foundation and the Swiss Academy of Engineering --
-- Sciences. ASIS-for-GNAT is now maintained by AdaCore --
-- (http://www.ad<EMAIL>). --
-- --
------------------------------------------------------------------------------
-- This package contains routines for computing the enclosing element
-- for the Asis.Elements.Enclosing_Element function
with Asis;
package A4G.Encl_El is
function Corresponding_Instantiation
(Element : Asis.Element)
return Asis.Element;
-- This function accepts an Element representing an expanded generic
-- declaration as an argument and returns the generic instantiation
-- which was expanded in the argument declaration. According to subclause
-- 15.26, this instantiation should be returned as the Enclosing_Element
-- for the expanded generic declaration.
--
-- Should we move this function in Asis.Extensions?
function Enclosing_For_Explicit_Instance_Component
(Element : Asis.Element)
return Asis.Element;
-- Computes the Enclosing Element for an explicit component of an
-- expanded generic declaration. The problem in this case is, that if
-- the result represents the whole expanded declaration, the
-- Special_Case field of the result should be properly set
function Enclosing_Element_For_Explicit
(Element : Asis.Element)
return Asis.Element;
-- This is the general constructor of enclosing element for explicit
-- elements
function Enclosing_Element_For_Implicit
(Element : Asis.Element)
return Asis.Element;
-- This is the general constructor of enclosing element for implicit
-- elements. It's only partially implemented for now.
function Enclosing_Element_For_Limited_View
(Element : Asis.Element)
return Asis.Element;
-- This is the general constructor of enclosing element for elements from
-- limited view.
end A4G.Encl_El;
| true |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- A 4 G . E N C L _ E L --
-- --
-- S p e c --
-- --
-- Copyright (C) 1995-2010, Free Software Foundation, Inc. --
-- --
-- ASIS-for-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 --
-- Software Foundation; either version 2, or (at your option) any later --
-- version. ASIS-for-GNAT is distributed in the hope that it will be use- --
-- ful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- --
-- CHANTABILITY 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 ASIS-for-GNAT; see file --
-- COPYING. If not, write to the Free Software Foundation, 51 Franklin --
-- Street, Fifth Floor, Boston, MA 02110-1301, USA. --
-- --
-- --
-- --
-- --
-- --
-- --
-- --
-- --
-- ASIS-for-GNAT was originally developed by the ASIS-for-GNAT team at the --
-- Software Engineering Laboratory of the Swiss Federal Institute of --
-- Technology (LGL-EPFL) in Lausanne, Switzerland, in cooperation with the --
-- Scientific Research Computer Center of Moscow State University (SRCC --
-- MSU), Russia, with funding partially provided by grants from the Swiss --
-- National Science Foundation and the Swiss Academy of Engineering --
-- Sciences. ASIS-for-GNAT is now maintained by AdaCore --
-- (http://www.adPI:EMAIL:<EMAIL>END_PI). --
-- --
------------------------------------------------------------------------------
-- This package contains routines for computing the enclosing element
-- for the Asis.Elements.Enclosing_Element function
with Asis;
package A4G.Encl_El is
function Corresponding_Instantiation
(Element : Asis.Element)
return Asis.Element;
-- This function accepts an Element representing an expanded generic
-- declaration as an argument and returns the generic instantiation
-- which was expanded in the argument declaration. According to subclause
-- 15.26, this instantiation should be returned as the Enclosing_Element
-- for the expanded generic declaration.
--
-- Should we move this function in Asis.Extensions?
function Enclosing_For_Explicit_Instance_Component
(Element : Asis.Element)
return Asis.Element;
-- Computes the Enclosing Element for an explicit component of an
-- expanded generic declaration. The problem in this case is, that if
-- the result represents the whole expanded declaration, the
-- Special_Case field of the result should be properly set
function Enclosing_Element_For_Explicit
(Element : Asis.Element)
return Asis.Element;
-- This is the general constructor of enclosing element for explicit
-- elements
function Enclosing_Element_For_Implicit
(Element : Asis.Element)
return Asis.Element;
-- This is the general constructor of enclosing element for implicit
-- elements. It's only partially implemented for now.
function Enclosing_Element_For_Limited_View
(Element : Asis.Element)
return Asis.Element;
-- This is the general constructor of enclosing element for elements from
-- limited view.
end A4G.Encl_El;
|
[
{
"context": "--\n-- Raytracer implementation in Ada\n-- by John Perry (github: johnperry-math)\n-- 2021\n--\n-- specificat",
"end": 54,
"score": 0.9998864531517029,
"start": 44,
"tag": "NAME",
"value": "John Perry"
},
{
"context": "er implementation in Ada\n-- by John Perry (github: johnperry-math)\n-- 2021\n--\n-- specification for types, constants",
"end": 78,
"score": 0.999241292476654,
"start": 64,
"tag": "USERNAME",
"value": "johnperry-math"
}
] |
ada/src/raytracing_constants.ads
|
alkalinin/raytracer
| 45 |
--
-- Raytracer implementation in Ada
-- by John Perry (github: johnperry-math)
-- 2021
--
-- specification for types, constants, and operators used throughout
--
-- Ada packages
with Interfaces;
-- @summary types, constants, and operators used throughout the project
-- @description
-- Makes precise the meaning of floating-point and integer types that we need.
--
package RayTracing_Constants is
type Float15 is digits 15;
-- floating point with 15 digit precision; i.e.,
-- 64-bit floating point will suffice
Far_Away: constant Float15 := 1_000_000.0;
-- an point too far away to be considered useful
subtype UInt8 is Interfaces.Unsigned_8;
function "="(First, Second: UInt8) return Boolean renames Interfaces."=";
subtype UInt16 is Interfaces.Unsigned_16;
function "+"(First, Second: UInt16) return UInt16 renames Interfaces."+";
function "*"(First, Second: UInt16) return UInt16 renames Interfaces."*";
subtype UInt32 is Interfaces.Unsigned_32;
function "+"(First, Second: UInt32) return UInt32 renames Interfaces."+";
subtype Int32 is Interfaces.Integer_32;
function "-"(It: Int32) return Int32 renames Interfaces."-";
function "+"(First, Second: Int32) return Int32 renames Interfaces."+";
function "-"(First, Second: Int32) return Int32 renames Interfaces."-";
function "*"(First, Second: Int32) return Int32 renames Interfaces."*";
function "/"(First, Second: Int32) return Int32 renames Interfaces."/";
end RayTracing_Constants;
|
13244
|
--
-- Raytracer implementation in Ada
-- by <NAME> (github: johnperry-math)
-- 2021
--
-- specification for types, constants, and operators used throughout
--
-- Ada packages
with Interfaces;
-- @summary types, constants, and operators used throughout the project
-- @description
-- Makes precise the meaning of floating-point and integer types that we need.
--
package RayTracing_Constants is
type Float15 is digits 15;
-- floating point with 15 digit precision; i.e.,
-- 64-bit floating point will suffice
Far_Away: constant Float15 := 1_000_000.0;
-- an point too far away to be considered useful
subtype UInt8 is Interfaces.Unsigned_8;
function "="(First, Second: UInt8) return Boolean renames Interfaces."=";
subtype UInt16 is Interfaces.Unsigned_16;
function "+"(First, Second: UInt16) return UInt16 renames Interfaces."+";
function "*"(First, Second: UInt16) return UInt16 renames Interfaces."*";
subtype UInt32 is Interfaces.Unsigned_32;
function "+"(First, Second: UInt32) return UInt32 renames Interfaces."+";
subtype Int32 is Interfaces.Integer_32;
function "-"(It: Int32) return Int32 renames Interfaces."-";
function "+"(First, Second: Int32) return Int32 renames Interfaces."+";
function "-"(First, Second: Int32) return Int32 renames Interfaces."-";
function "*"(First, Second: Int32) return Int32 renames Interfaces."*";
function "/"(First, Second: Int32) return Int32 renames Interfaces."/";
end RayTracing_Constants;
| true |
--
-- Raytracer implementation in Ada
-- by PI:NAME:<NAME>END_PI (github: johnperry-math)
-- 2021
--
-- specification for types, constants, and operators used throughout
--
-- Ada packages
with Interfaces;
-- @summary types, constants, and operators used throughout the project
-- @description
-- Makes precise the meaning of floating-point and integer types that we need.
--
package RayTracing_Constants is
type Float15 is digits 15;
-- floating point with 15 digit precision; i.e.,
-- 64-bit floating point will suffice
Far_Away: constant Float15 := 1_000_000.0;
-- an point too far away to be considered useful
subtype UInt8 is Interfaces.Unsigned_8;
function "="(First, Second: UInt8) return Boolean renames Interfaces."=";
subtype UInt16 is Interfaces.Unsigned_16;
function "+"(First, Second: UInt16) return UInt16 renames Interfaces."+";
function "*"(First, Second: UInt16) return UInt16 renames Interfaces."*";
subtype UInt32 is Interfaces.Unsigned_32;
function "+"(First, Second: UInt32) return UInt32 renames Interfaces."+";
subtype Int32 is Interfaces.Integer_32;
function "-"(It: Int32) return Int32 renames Interfaces."-";
function "+"(First, Second: Int32) return Int32 renames Interfaces."+";
function "-"(First, Second: Int32) return Int32 renames Interfaces."-";
function "*"(First, Second: Int32) return Int32 renames Interfaces."*";
function "/"(First, Second: Int32) return Int32 renames Interfaces."/";
end RayTracing_Constants;
|
[
{
"context": "- Software Manual for the Elementary Functions by William J. Cody, Jr.\n-- and William Waite, published by Prentice",
"end": 2566,
"score": 0.9992696642875671,
"start": 2551,
"tag": "NAME",
"value": "William J. Cody"
},
{
"context": "ementary Functions by William J. Cody, Jr.\n-- and William Waite, published by Prentice-Hall Series in Computation",
"end": 2593,
"score": 0.996179461479187,
"start": 2580,
"tag": "NAME",
"value": "William Waite"
},
{
"context": "ted, it refers to\n-- \"Computer Approximations\" by John F. Hart, published by Krieger.\n-- Copyright 1968, Reprin",
"end": 2797,
"score": 0.9995168447494507,
"start": 2785,
"tag": "NAME",
"value": "John F. Hart"
}
] |
bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-libm.adb
|
JCGobbi/Nucleo-STM32G474RE
| 0 |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S Y S T E M . L I B M --
-- --
-- B o d y --
-- --
-- Copyright (C) 2014-2021, 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. --
-- --
-- --
-- --
-- --
-- --
-- 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 is the Ada Cert Math specific version of s-libm.adb
-- When Cody and Waite implementation is cited, it refers to the
-- Software Manual for the Elementary Functions by William J. Cody, Jr.
-- and William Waite, published by Prentice-Hall Series in Computational
-- Mathematics. Copyright 1980. ISBN 0-13-822064-6.
-- When Hart implementation is cited, it refers to
-- "Computer Approximations" by John F. Hart, published by Krieger.
-- Copyright 1968, Reprinted 1978 w/ corrections. ISBN 0-88275-642-7.
with Ada.Numerics; use Ada.Numerics;
package body System.Libm is
type Unsigned_64 is mod 2**64;
generic
type T is private;
with function Multiply_Add (X, Y, Z : T) return T is <>;
-- The Multiply_Add function returns the value of X * Y + Z, ideally
-- (but not necessarily) using a wider intermediate type, or a fused
-- multiply-add operation with only a single rounding. They are used
-- for evaluating polynomials.
package Generic_Polynomials is
type Polynomial is array (Natural range <>) of T;
-- A value P of type PolynomialRepresents the polynomial
-- P (X) = P_0 + P_1 * X + ... + P_(n-1) * X**(n-1) + P_n * X**n,
--
-- where n = P'Length - 1, P_0 is P (P'First) and P_n is P (P'Last)
-- P (X) = P_0 + X * (P_1 + X * (P_2 + X * (... + X * P_n)))
function Compute_Horner (P : Polynomial; X : T) return T with Inline;
-- Computes the polynomial P using the Horner scheme:
-- P (X) = P_0 + X * (P_1 + X * (P_2 + X * (... + X * P_n)))
end Generic_Polynomials;
-------------------------
-- Generic_Polynomials --
-------------------------
package body Generic_Polynomials is
--------------------
-- Compute_Horner --
---------------------
function Compute_Horner (P : Polynomial; X : T) return T is
Result : T := P (P'Last);
begin
for P_j of reverse P (P'First .. P'Last - 1) loop
Result := Multiply_Add (Result, X, P_j);
end loop;
return Result;
end Compute_Horner;
end Generic_Polynomials;
----------------------------
-- Generic_Approximations --
----------------------------
package body Generic_Approximations is
function Multiply_Add (X, Y, Z : T) return T is (X * Y + Z);
package Float_Polynomials is new Generic_Polynomials (T);
use Float_Polynomials;
-----------------
-- Approx_Asin --
-----------------
function Approx_Asin (X : T) return T is
P : T;
Q : T;
begin
if Mantissa <= 24 then
declare
-- Approximation MRE = 6.0128E-9
P1 : constant T := Exact (0.93393_5835);
P2 : constant T := Exact (-0.50440_0557);
Q0 : constant T := Exact (5.6036_3004);
Q1 : constant T := Exact (-5.5484_6723);
begin
P := Compute_Horner ((P1, P2), X);
Q := Compute_Horner ((Q0, Q1 + X), X);
end;
else
declare
-- Approximation MRE = 2.0975E-18
P1 : constant T := Exact (-0.27368_49452_41642_55994E+2);
P2 : constant T := Exact (+0.57208_22787_78917_31407E+2);
P3 : constant T := Exact (-0.39688_86299_75048_77339E+2);
P4 : constant T := Exact (+0.10152_52223_38064_63645E+2);
P5 : constant T := Exact (-0.69674_57344_73506_46411);
Q0 : constant T := Exact (-0.16421_09671_44985_60795E+3);
Q1 : constant T := Exact (+0.41714_43024_82604_12556E+3);
Q2 : constant T := Exact (-0.38186_30336_17501_49284E+3);
Q3 : constant T := Exact (+0.15095_27084_10306_04719E+3);
Q4 : constant T := Exact (-0.23823_85915_36702_38830E+2);
begin
P := Compute_Horner ((P1, P2, P3, P4, P5), X);
Q := Compute_Horner ((Q0, Q1, Q2, Q3, Q4 + X), X);
end;
end if;
return X * P / Q;
end Approx_Asin;
-----------------
-- Approx_Atan --
-----------------
function Approx_Atan (X : T) return T is
G : constant T := X * X;
P, Q : T;
begin
if Mantissa <= 24 then
declare
-- Approximation MRE = 3.2002E-9
P0 : constant T := Exact (-0.47083_25141);
P1 : constant T := Exact (-0.50909_58253E-1);
Q0 : constant T := Exact (0.14125_00740E1);
begin
P := Compute_Horner ((P0, P1), G);
Q := Q0 + G;
end;
else
declare
-- Approximation MRE = 1.8154E-18
P0 : constant T := Exact (-0.13688_76889_41919_26929E2);
P1 : constant T := Exact (-0.20505_85519_58616_51981E2);
P2 : constant T := Exact (-0.84946_24035_13206_83534E1);
P3 : constant T := Exact (-0.83758_29936_81500_59274);
Q0 : constant T := Exact (0.41066_30668_25757_81263E2);
Q1 : constant T := Exact (0.86157_34959_71302_42515E2);
Q2 : constant T := Exact (0.59578_43614_25973_44465E2);
Q3 : constant T := Exact (0.15024_00116_00285_76121E2);
begin
P := Compute_Horner ((P0, P1, P2, P3), G);
Q := Compute_Horner ((Q0, Q1, Q2, Q3 + G), G);
end;
end if;
return Multiply_Add (X, (G * P / Q), X);
end Approx_Atan;
function Approx_Cos (X : T) return T is
-- Note: The reference tables named below for cosine lists
-- constants for cos((pi/4) * x) ~= P (x^2), in order to get
-- cos (x), the constants have been adjusted by division of
-- appropriate powers of (pi/4) ^ n, for n 0,2,4,6 etc.
Cos_P : constant Polynomial :=
(if Mantissa <= 24
then
-- Hart's constants : #COS 3821# (p. 209)
-- Approximation MRE = 8.1948E-9 ???
(0 => Exact (0.99999_99999),
1 => Exact (-0.49999_99957),
2 => Exact (0.41666_61323E-1),
3 => Exact (-0.13888_52915E-2),
4 => Exact (0.24372_67909E-4))
elsif Mantissa <= 53
then
-- Hart's constants : #COS 3824# (p. 209)
-- Approximation MRE = 1.2548E-18
(0 => Exact (0.99999_99999_99999_99995),
1 => Exact (-0.49999_99999_99999_99279),
2 => Exact (+0.04166_66666_66666_430254),
3 => Exact (-0.13888_88888_88589_60433E-2),
4 => Exact (+0.24801_58728_28994_63022E-4),
5 => Exact (-0.27557_31286_56960_82219E-6),
6 => Exact (+0.20875_55514_56778_82872E-8),
7 => Exact (-0.11352_12320_57839_39582E-10))
else
-- Hart's constants : #COS 3825# (p. 209-210)
-- Approximation MRE = ???
(0 => Exact (+1.0),
1 => Exact (-0.49999_99999_99999_99994_57899),
2 => Exact (+0.41666_66666_66666_66467_89627E-1),
3 => Exact (-0.13888_88888_88888_57508_03579E-2),
4 => Exact (+0.24801_58730_15616_31808_80662E-4),
5 => Exact (-0.27557_31921_21557_14660_22522E-6),
6 => Exact (+0.20876_75377_75228_35357_18906E-8),
7 => Exact (-0.11470_23678_56189_18819_10735E-10),
8 => Exact (+0.47358_93914_72413_21156_01793E-13)));
begin
return Compute_Horner (Cos_P, X * X);
end Approx_Cos;
----------------
-- Approx_Exp --
----------------
function Approx_Exp (X : T) return T is
-- Cody and Waite implementation (page 69)
Exp_P : constant Polynomial :=
(if Mantissa <= 24
then -- Approximation MRE = 8.1529E-10
(0 => Exact (0.24999_99995_0),
1 => Exact (0.41602_88626_0E-2))
elsif Mantissa <= 53
then -- Approximation MRE = 1.0259E-17
(0 => Exact (0.24999_99999_99999_993),
1 => Exact (0.69436_00015_11792_852E-2),
2 => Exact (0.16520_33002_68279_130E-4))
else
(0 => Exact (0.25),
1 => Exact (0.75753_18015_94227_76666E-2),
2 => Exact (0.31555_19276_56846_46356E-4)));
Exp_Q : constant Polynomial :=
(if Mantissa <= 24
then
(0 => Exact (0.5),
1 => Exact (0.49987_17877_8E-1))
elsif Mantissa <= 53
then
(0 => Exact (0.5),
1 => Exact (0.55553_86669_69001_188E-1),
2 => Exact (0.49586_28849_05441_294E-3))
else
(0 => Exact (0.5),
1 => Exact (0.56817_30269_85512_21787E-1),
2 => Exact (0.63121_89437_43985_03557E-3),
3 => Exact (0.75104_02839_98700_46114E-6)));
G : constant T := X * X;
P : T;
Q : T;
begin
P := Compute_Horner (Exp_P, G);
Q := Compute_Horner (Exp_Q, G);
return Exact (2.0) * Multiply_Add (X, P / (Multiply_Add (-X, P, Q)),
Exact (0.5));
end Approx_Exp;
----------------
-- Approx_Log --
----------------
function Approx_Log (X : T) return T is
Log_P : constant Polynomial :=
(if Mantissa <= 24
then -- Approximation MRE = 1.0368E-10
(0 => Exact (-0.46490_62303_464),
1 => Exact (0.013600_95468_621))
else -- Approximation MRE = 4.7849E-19
(0 => Exact (-0.64124_94342_37455_81147E+2),
1 => Exact (0.16383_94356_30215_34222E+2),
2 => Exact (-0.78956_11288_74912_57267)));
Log_Q : constant Polynomial :=
(if Mantissa <= 24
then
(0 => Exact (-5.5788_73750_242),
1 => Exact (1.0))
else
(0 => Exact (-0.76949_93210_84948_79777E+3),
1 => Exact (0.31203_22209_19245_32844E+3),
2 => Exact (-0.35667_97773_90346_46171E+2),
3 => Exact (1.0)));
G : T;
P : T;
Q : T;
ZNum, ZDen, Z : T;
begin
ZNum := (X + Exact (-0.5)) + Exact (-0.5);
ZDen := X * Exact (0.5) + Exact (0.5);
Z := ZNum / ZDen;
G := Z * Z;
P := Compute_Horner (Log_P, G);
Q := Compute_Horner (Log_Q, G);
return Multiply_Add (Z, G * (P / Q), Z);
end Approx_Log;
----------------------
-- Approx_Power Log --
----------------------
function Approx_Power_Log (X : T) return T is
Power_Log_P : constant Polynomial :=
(if Mantissa <= 24
then -- Approximation MRE = 7.9529E-4
(1 => Exact (0.83357_541E-1))
else -- Approximation MRE = 8.7973E-8
(1 => Exact (0.83333_33333_33332_11405E-1),
2 => Exact (0.12500_00000_05037_99174E-1),
3 => Exact (0.22321_42128_59242_58967E-2),
4 => Exact (0.43445_77567_21631_19635E-3)));
K : constant T := Exact (0.44269_50408_88963_40736);
G : constant T := X * X;
P : T;
begin
P := Compute_Horner (Power_Log_P, G);
P := (P * G) * X;
P := Multiply_Add (P, K, P);
return Multiply_Add (X, K, P) + X;
end Approx_Power_Log;
-----------------
-- Approx_Exp2 --
-----------------
function Approx_Exp2 (X : T) return T is
Exp2_P : constant Polynomial :=
(if Mantissa > 24
then -- Approximation MRE = 1.7418E-17
(1 => Exact (0.69314_71805_59945_29629),
2 => Exact (0.24022_65069_59095_37056),
3 => Exact (0.55504_10866_40855_95326E-1),
4 => Exact (0.96181_29059_51724_16964E-2),
5 => Exact (0.13333_54131_35857_84703E-2),
6 => Exact (0.15400_29044_09897_64601E-3),
7 => Exact (0.14928_85268_05956_08186E-4))
else -- Approximation MRE = 3.3642E-9
(1 => Exact (0.69314_675),
2 => Exact (0.24018_510),
3 => Exact (0.54360_383E-1)));
begin
return Exact (1.0) + Compute_Horner (Exp2_P, X) * X;
end Approx_Exp2;
----------------
-- Approx_Sin --
----------------
function Approx_Sin (X : T) return T is
-- Note: The reference tables named below for sine lists constants
-- for sin((pi/4) * x) ~= x * P (x^2), in order to get sin (x),
-- the constants have been adjusted by division of appropriate
-- powers of (pi/4) ^ n, for n 1,3,5, etc.
Sin_P : constant Polynomial :=
(if Mantissa <= 24
then
-- Hart's constants: #SIN 3040# (p. 199)
(1 => Exact (-0.16666_65022),
2 => Exact (0.83320_16396E-2),
3 => Exact (-0.19501_81843E-3))
else
-- Hart's constants: #SIN 3044# (p. 199)
-- Approximation MRE = 2.4262E-18 ???
(1 => Exact (-0.16666_66666_66666_66628),
2 => Exact (0.83333_33333_33332_03335E-2),
3 => Exact (-0.19841_26984_12531_05860E-3),
4 => Exact (0.27557_31921_33901_68712E-5),
5 => Exact (-0.25052_10473_82673_30950E-7),
6 => Exact (0.16058_34762_32246_06553E-9),
7 => Exact (-0.75778_67884_01271_15607E-12)));
Sqrt_Epsilon_LLF : constant Long_Long_Float :=
Sqrt_2 ** (1 - Long_Long_Float'Machine_Mantissa);
G : constant T := X * X;
begin
if abs X <= Exact (Sqrt_Epsilon_LLF) then
return X;
end if;
return Multiply_Add (X, Compute_Horner (Sin_P, G) * G, X);
end Approx_Sin;
-----------------
-- Approx_Sinh --
-----------------
function Approx_Sinh (X : T) return T is
Sinh_P : constant Polynomial :=
(if Mantissa <= 24
then -- Approximation MRE = 2.6841E-8
(0 => Exact (-0.71379_3159E1),
1 => Exact (-0.19033_3300))
else -- Approximation MRE = 4.6429E-18
(0 => Exact (-0.35181_28343_01771_17881E6),
1 => Exact (-0.11563_52119_68517_68270E5),
2 => Exact (-0.16375_79820_26307_51372E3),
3 => Exact (-0.78966_12741_73570_99479)));
Sinh_Q : constant Polynomial :=
(if Mantissa <= 24
then
(0 => Exact (-0.42827_7109E2),
1 => Exact (1.0))
else
(0 => Exact (-0.21108_77005_81062_71242E7),
1 => Exact (0.36162_72310_94218_36460E5),
2 => Exact (-0.27773_52311_96507_01667E3),
3 => Exact (1.0)));
G : constant T := X * X;
P : T;
Q : T;
begin
P := Compute_Horner (Sinh_P, G);
Q := Compute_Horner (Sinh_Q, G);
return Multiply_Add (X, (G * P / Q), X);
end Approx_Sinh;
----------------
-- Approx_Tan --
----------------
function Approx_Tan (X : T) return T is
Tan_P : constant Polynomial :=
(if Mantissa <= 24
then -- Approximation MRE = 2.7824E-8
(1 => Exact (-0.95801_7723E-1))
else -- Approximation MRE = 3.5167E-18
(1 => Exact (-0.13338_35000_64219_60681),
2 => Exact (0.34248_87823_58905_89960E-2),
3 => Exact (-0.17861_70734_22544_26711E-4)));
Tan_Q : constant Polynomial :=
(if Mantissa <= 24
then
(0 => Exact (1.0),
1 => Exact (-0.42913_5777),
2 => Exact (0.97168_5835E-2))
else
(0 => Exact (1.0),
1 => Exact (-0.46671_68333_97552_94240),
2 => Exact (0.25663_83228_94401_12864E-1),
3 => Exact (-0.31181_53190_70100_27307E-3),
4 => Exact (0.49819_43399_37865_12270E-6)));
G : constant T := X * X;
P : constant T := Multiply_Add (X, G * Compute_Horner (Tan_P, G), X);
Q : constant T := Compute_Horner (Tan_Q, G);
begin
return P / Q;
end Approx_Tan;
----------------
-- Approx_Cot --
----------------
function Approx_Cot (X : T) return T is
Tan_P : constant Polynomial :=
(if Mantissa <= 24
then -- Approxmiation MRE = 1.5113E-17
(1 => Exact (-0.95801_7723E-1))
else
(1 => Exact (-0.13338_35000_64219_60681),
2 => Exact (0.34248_87823_58905_89960E-2),
3 => Exact (-0.17861_70734_22544_26711E-4)));
Tan_Q : constant Polynomial :=
(if Mantissa <= 24
then
(0 => Exact (1.0),
1 => Exact (-0.42913_5777),
2 => Exact (0.97168_5835E-2))
else
(0 => Exact (1.0),
1 => Exact (-0.46671_68333_97552_94240),
2 => Exact (0.25663_83228_94401_12864E-1),
3 => Exact (-0.31181_53190_70100_27307E-3),
4 => Exact (0.49819_43399_37865_12270E-6)));
G : constant T := X * X;
P : constant T := Multiply_Add (X, G * Compute_Horner (Tan_P, G), X);
Q : constant T := Compute_Horner (Tan_Q, G);
begin
return -Q / P;
end Approx_Cot;
-----------------
-- Approx_Tanh --
-----------------
function Approx_Tanh (X : T) return T is
Tanh_P : constant Polynomial :=
(if Mantissa <= 24
then -- Approximation MRE = 2.7166E-9
(0 => Exact (-0.82377_28127),
1 => Exact (-0.38310_10665E-2))
else -- Approximation MRE = 3.2436E-18
(0 => Exact (-0.16134_11902_39962_28053E4),
1 => Exact (-0.99225_92967_22360_83313E2),
2 => Exact (-0.96437_49277_72254_69787)));
Tanh_Q : constant Polynomial :=
(if Mantissa <= 24
then
(0 => Exact (2.4713_19654),
1 => Exact (1.0))
else
(0 => Exact (0.48402_35707_19886_88686E4),
1 => Exact (0.22337_72071_89623_12926E4),
2 => Exact (0.11274_47438_05349_49335E3),
3 => Exact (1.0)));
G : constant T := X * X;
P, Q : T;
begin
P := Compute_Horner (Tanh_P, G);
Q := Compute_Horner (Tanh_Q, G);
return Multiply_Add (X, G * P / Q, X);
end Approx_Tanh;
----------
-- Asin --
----------
function Asin (X : T) return T is
-- Cody and Waite implementation (page 174)
Y : T := abs X;
G : T;
Result : T;
begin
if Y <= Exact (0.5) then
Result := X + X * Approx_Asin (X * X);
else
G := (Exact (1.0) + (-Y)) * Exact (0.5);
Y := Sqrt (G);
Result :=
Exact (Pi / 2.0) - Exact (2.0) * (Y + Y * Approx_Asin (G));
if not (Exact (0.0) <= X) then
Result := -Result;
end if;
end if;
return Result;
end Asin;
end Generic_Approximations;
------------------
-- Generic_Acos --
------------------
function Generic_Acos (X : T) return T is
-- Cody and Waite implementation (page 174)
Y : T := abs (X);
G : T;
Result : T;
begin
if Y <= 0.5 then
-- No reduction needed
G := Y * Y;
Result := T'Copy_Sign (Y + Y * Approx_Asin (G), X);
return 0.5 * Pi - Result;
end if;
-- In the reduction step that follows, it is not Y, but rather G that
-- is reduced. The reduced G is in 0.0 .. 0.25.
G := (1.0 - Y) / 2.0;
Y := -2.0 * Sqrt (G);
Result := Y + Y * Approx_Asin (G);
return (if X < 0.0 then Pi + Result else -Result);
end Generic_Acos;
-------------------
-- Generic_Atan2 --
-------------------
-- Ada expected values:
-- Atan2 (y, x) returns a result in [-Pi, Pi]
function Generic_Atan2 (Y, X : T) return T is
-- Cody and Waite implementation (page 194)
F : T;
N : Integer := -1;
-- Default value for N is -1 so that if X=0 or over/underflow
-- tests on N are all false.
Result : T;
begin
if Y = 0.0 and then X = 0.0 then
-- Atan2 (+-0, -0) = +-Pi
-- Atan2 (+-0, +0) = +-0
if T'Copy_Sign (1.0, X) < 0.0 then
return T'Copy_Sign (Pi, Y);
else
return T'Copy_Sign (0.0, Y);
end if;
elsif Y = 0.0 and then abs (X) > 0.0 then
-- Atan2 (+-0, x) = +-Pi, if x < 0
-- Atan2 (+-0, x) = +-0, if x > 0
if X < 0.0 then
return T'Copy_Sign (Pi, Y);
else
return T'Copy_Sign (0.0, Y);
end if;
elsif X = 0.0 then
-- Atan2 (y, +-0) = -0.5 * Pi, if y < 0
-- Atan2 (y, +-0) = 0.5 * Pi, if y > 0
return T'Copy_Sign (Half_Pi, Y);
elsif abs (Y) > 0.0 and then abs (Y) <= T'Last
and then abs (X) = Infinity
then
-- Atan2 (+-y, -INF) = +-Pi, if x < 0 and y is finite
-- (tightly approximated)
-- Atan2 (+-y, +INF) = +-0, if x > 0 and y is finite
if X < 0.0 then
Result := T'Copy_Sign (Pi, Y);
else
Result := T'Copy_Sign (0.0, Y);
end if;
elsif abs (X) <= T'Last and then abs (Y) = Infinity then
-- Atan2 (+-INF, x) = +-0.5 * Pi, if x is finite
-- (tightly approximated)
Result := T'Copy_Sign (Half_Pi, Y);
elsif abs (X) = Infinity and then abs (Y) = Infinity then
-- Atan2 (+-INF, -INF) = +-0.75 * Pi (tightly approximated)
-- Atan2 (+-INF, +INF) = +-0.25 * Pi (tightly approximated)
if X < 0.0 then
return T'Copy_Sign (3.0 * Pi / 4.0, Y);
else
return T'Copy_Sign (Pi / 4.0, Y);
end if;
else
-- Be careful not to divide Y/X until we know it won't overflow
if abs (Y) > abs (X) then
F := abs (X / Y);
N := 2;
else
F := abs (Y / X);
N := 0;
end if;
if F > 2.0 - Sqrt_3 then
F := (((Sqrt_3 - 1.0) * F - 1.0) + F) / (Sqrt_3 + F);
N := N + 1;
end if;
Result := Approx_Atan (F);
end if;
if N > 1 then
Result := -Result;
end if;
case N is
when 1 => Result := Result + Sixth_Pi;
when 2 => Result := Result + Half_Pi;
when 3 => Result := Result + Third_Pi;
when others => null;
end case;
if T'Copy_Sign (1.0, X) < 0.0 then
Result := Pi - Result;
end if;
return T'Copy_Sign (Result, Y);
end Generic_Atan2;
procedure Generic_Pow_Special_Cases
(Left : T;
Right : T;
Is_Special : out Boolean;
Negate : out Boolean;
Result : out T)
is
------------
-- Is_Even --
------------
function Is_Even (X : T) return Boolean is
(abs X >= 2.0**T'Machine_Mantissa
or else Unsigned_64 (abs X) mod 2 = 0);
pragma Assert (T'Machine_Mantissa <= 64);
-- If X is large enough, then X is a multiple of 2. Otherwise,
-- conversion to Unsigned_64 is safe, assuming a mantissa of at
-- most 64 bits.
begin
Is_Special := True;
Negate := False;
Result := 0.0;
-- value 'Result' is not used if the input is
-- not a couple of special values
if Right = 0.0 or else not (Left /= 1.0) then
Result := (if Right = 0.0 then 1.0 else Left);
elsif Left = 0.0 then
if Right < 0.0 then
if Right = T'Rounding (Right) and then not Is_Even (Right) then
Result := 1.0 / Left; -- Infinity with sign of Left
else
Result := 1.0 / abs Left; -- +Infinity
end if;
else
if Right = T'Rounding (Right)
and then not Is_Even (Right)
then
Result := Left;
else
Result := +0.0;
end if;
end if;
elsif abs (Right) > T'Last and then Left = -1.0 then
Result := 1.0;
elsif Left < 0.0
and then Left >= T'First
and then abs (Right) <= T'Last
and then Right /= T'Rounding (Right)
then
Result := 0.0 / (Left - Left); -- NaN
elsif Right < T'First then
if abs (Left) < 1.0 then
Result := -Right; -- Infinity
else
Result := 0.0; -- Cases where Left=+-1 are dealt with above
end if;
elsif Right > T'Last then
if abs (Left) < 1.0 then
Result := 0.0;
else
Result := Right;
end if;
elsif Left > T'Last then
if Right < 0.0 then
Result := 0.0;
else
Result := Left;
end if;
elsif Left < T'First then
if Right > 0.0 then
if Right = T'Rounding (Right)
and then not Is_Even (Right)
then
Result := Left;
else
Result := -Left; -- -Left = +INF
end if;
else
if Right = T'Rounding (Right)
and then not Is_Even (Right)
then
Result := -0.0;
else
Result := +0.0;
end if;
end if;
else
Is_Special := False;
if Left < 0.0
and then Left >= T'First
and then abs (Right) <= T'Last
and then Right = T'Rounding (Right)
and then not Is_Even (Right)
then
Negate := True;
end if;
end if;
end Generic_Pow_Special_Cases;
end System.Libm;
|
25684
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S Y S T E M . L I B M --
-- --
-- B o d y --
-- --
-- Copyright (C) 2014-2021, 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. --
-- --
-- --
-- --
-- --
-- --
-- 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 is the Ada Cert Math specific version of s-libm.adb
-- When Cody and Waite implementation is cited, it refers to the
-- Software Manual for the Elementary Functions by <NAME>, Jr.
-- and <NAME>, published by Prentice-Hall Series in Computational
-- Mathematics. Copyright 1980. ISBN 0-13-822064-6.
-- When Hart implementation is cited, it refers to
-- "Computer Approximations" by <NAME>, published by Krieger.
-- Copyright 1968, Reprinted 1978 w/ corrections. ISBN 0-88275-642-7.
with Ada.Numerics; use Ada.Numerics;
package body System.Libm is
type Unsigned_64 is mod 2**64;
generic
type T is private;
with function Multiply_Add (X, Y, Z : T) return T is <>;
-- The Multiply_Add function returns the value of X * Y + Z, ideally
-- (but not necessarily) using a wider intermediate type, or a fused
-- multiply-add operation with only a single rounding. They are used
-- for evaluating polynomials.
package Generic_Polynomials is
type Polynomial is array (Natural range <>) of T;
-- A value P of type PolynomialRepresents the polynomial
-- P (X) = P_0 + P_1 * X + ... + P_(n-1) * X**(n-1) + P_n * X**n,
--
-- where n = P'Length - 1, P_0 is P (P'First) and P_n is P (P'Last)
-- P (X) = P_0 + X * (P_1 + X * (P_2 + X * (... + X * P_n)))
function Compute_Horner (P : Polynomial; X : T) return T with Inline;
-- Computes the polynomial P using the Horner scheme:
-- P (X) = P_0 + X * (P_1 + X * (P_2 + X * (... + X * P_n)))
end Generic_Polynomials;
-------------------------
-- Generic_Polynomials --
-------------------------
package body Generic_Polynomials is
--------------------
-- Compute_Horner --
---------------------
function Compute_Horner (P : Polynomial; X : T) return T is
Result : T := P (P'Last);
begin
for P_j of reverse P (P'First .. P'Last - 1) loop
Result := Multiply_Add (Result, X, P_j);
end loop;
return Result;
end Compute_Horner;
end Generic_Polynomials;
----------------------------
-- Generic_Approximations --
----------------------------
package body Generic_Approximations is
function Multiply_Add (X, Y, Z : T) return T is (X * Y + Z);
package Float_Polynomials is new Generic_Polynomials (T);
use Float_Polynomials;
-----------------
-- Approx_Asin --
-----------------
function Approx_Asin (X : T) return T is
P : T;
Q : T;
begin
if Mantissa <= 24 then
declare
-- Approximation MRE = 6.0128E-9
P1 : constant T := Exact (0.93393_5835);
P2 : constant T := Exact (-0.50440_0557);
Q0 : constant T := Exact (5.6036_3004);
Q1 : constant T := Exact (-5.5484_6723);
begin
P := Compute_Horner ((P1, P2), X);
Q := Compute_Horner ((Q0, Q1 + X), X);
end;
else
declare
-- Approximation MRE = 2.0975E-18
P1 : constant T := Exact (-0.27368_49452_41642_55994E+2);
P2 : constant T := Exact (+0.57208_22787_78917_31407E+2);
P3 : constant T := Exact (-0.39688_86299_75048_77339E+2);
P4 : constant T := Exact (+0.10152_52223_38064_63645E+2);
P5 : constant T := Exact (-0.69674_57344_73506_46411);
Q0 : constant T := Exact (-0.16421_09671_44985_60795E+3);
Q1 : constant T := Exact (+0.41714_43024_82604_12556E+3);
Q2 : constant T := Exact (-0.38186_30336_17501_49284E+3);
Q3 : constant T := Exact (+0.15095_27084_10306_04719E+3);
Q4 : constant T := Exact (-0.23823_85915_36702_38830E+2);
begin
P := Compute_Horner ((P1, P2, P3, P4, P5), X);
Q := Compute_Horner ((Q0, Q1, Q2, Q3, Q4 + X), X);
end;
end if;
return X * P / Q;
end Approx_Asin;
-----------------
-- Approx_Atan --
-----------------
function Approx_Atan (X : T) return T is
G : constant T := X * X;
P, Q : T;
begin
if Mantissa <= 24 then
declare
-- Approximation MRE = 3.2002E-9
P0 : constant T := Exact (-0.47083_25141);
P1 : constant T := Exact (-0.50909_58253E-1);
Q0 : constant T := Exact (0.14125_00740E1);
begin
P := Compute_Horner ((P0, P1), G);
Q := Q0 + G;
end;
else
declare
-- Approximation MRE = 1.8154E-18
P0 : constant T := Exact (-0.13688_76889_41919_26929E2);
P1 : constant T := Exact (-0.20505_85519_58616_51981E2);
P2 : constant T := Exact (-0.84946_24035_13206_83534E1);
P3 : constant T := Exact (-0.83758_29936_81500_59274);
Q0 : constant T := Exact (0.41066_30668_25757_81263E2);
Q1 : constant T := Exact (0.86157_34959_71302_42515E2);
Q2 : constant T := Exact (0.59578_43614_25973_44465E2);
Q3 : constant T := Exact (0.15024_00116_00285_76121E2);
begin
P := Compute_Horner ((P0, P1, P2, P3), G);
Q := Compute_Horner ((Q0, Q1, Q2, Q3 + G), G);
end;
end if;
return Multiply_Add (X, (G * P / Q), X);
end Approx_Atan;
function Approx_Cos (X : T) return T is
-- Note: The reference tables named below for cosine lists
-- constants for cos((pi/4) * x) ~= P (x^2), in order to get
-- cos (x), the constants have been adjusted by division of
-- appropriate powers of (pi/4) ^ n, for n 0,2,4,6 etc.
Cos_P : constant Polynomial :=
(if Mantissa <= 24
then
-- Hart's constants : #COS 3821# (p. 209)
-- Approximation MRE = 8.1948E-9 ???
(0 => Exact (0.99999_99999),
1 => Exact (-0.49999_99957),
2 => Exact (0.41666_61323E-1),
3 => Exact (-0.13888_52915E-2),
4 => Exact (0.24372_67909E-4))
elsif Mantissa <= 53
then
-- Hart's constants : #COS 3824# (p. 209)
-- Approximation MRE = 1.2548E-18
(0 => Exact (0.99999_99999_99999_99995),
1 => Exact (-0.49999_99999_99999_99279),
2 => Exact (+0.04166_66666_66666_430254),
3 => Exact (-0.13888_88888_88589_60433E-2),
4 => Exact (+0.24801_58728_28994_63022E-4),
5 => Exact (-0.27557_31286_56960_82219E-6),
6 => Exact (+0.20875_55514_56778_82872E-8),
7 => Exact (-0.11352_12320_57839_39582E-10))
else
-- Hart's constants : #COS 3825# (p. 209-210)
-- Approximation MRE = ???
(0 => Exact (+1.0),
1 => Exact (-0.49999_99999_99999_99994_57899),
2 => Exact (+0.41666_66666_66666_66467_89627E-1),
3 => Exact (-0.13888_88888_88888_57508_03579E-2),
4 => Exact (+0.24801_58730_15616_31808_80662E-4),
5 => Exact (-0.27557_31921_21557_14660_22522E-6),
6 => Exact (+0.20876_75377_75228_35357_18906E-8),
7 => Exact (-0.11470_23678_56189_18819_10735E-10),
8 => Exact (+0.47358_93914_72413_21156_01793E-13)));
begin
return Compute_Horner (Cos_P, X * X);
end Approx_Cos;
----------------
-- Approx_Exp --
----------------
function Approx_Exp (X : T) return T is
-- Cody and Waite implementation (page 69)
Exp_P : constant Polynomial :=
(if Mantissa <= 24
then -- Approximation MRE = 8.1529E-10
(0 => Exact (0.24999_99995_0),
1 => Exact (0.41602_88626_0E-2))
elsif Mantissa <= 53
then -- Approximation MRE = 1.0259E-17
(0 => Exact (0.24999_99999_99999_993),
1 => Exact (0.69436_00015_11792_852E-2),
2 => Exact (0.16520_33002_68279_130E-4))
else
(0 => Exact (0.25),
1 => Exact (0.75753_18015_94227_76666E-2),
2 => Exact (0.31555_19276_56846_46356E-4)));
Exp_Q : constant Polynomial :=
(if Mantissa <= 24
then
(0 => Exact (0.5),
1 => Exact (0.49987_17877_8E-1))
elsif Mantissa <= 53
then
(0 => Exact (0.5),
1 => Exact (0.55553_86669_69001_188E-1),
2 => Exact (0.49586_28849_05441_294E-3))
else
(0 => Exact (0.5),
1 => Exact (0.56817_30269_85512_21787E-1),
2 => Exact (0.63121_89437_43985_03557E-3),
3 => Exact (0.75104_02839_98700_46114E-6)));
G : constant T := X * X;
P : T;
Q : T;
begin
P := Compute_Horner (Exp_P, G);
Q := Compute_Horner (Exp_Q, G);
return Exact (2.0) * Multiply_Add (X, P / (Multiply_Add (-X, P, Q)),
Exact (0.5));
end Approx_Exp;
----------------
-- Approx_Log --
----------------
function Approx_Log (X : T) return T is
Log_P : constant Polynomial :=
(if Mantissa <= 24
then -- Approximation MRE = 1.0368E-10
(0 => Exact (-0.46490_62303_464),
1 => Exact (0.013600_95468_621))
else -- Approximation MRE = 4.7849E-19
(0 => Exact (-0.64124_94342_37455_81147E+2),
1 => Exact (0.16383_94356_30215_34222E+2),
2 => Exact (-0.78956_11288_74912_57267)));
Log_Q : constant Polynomial :=
(if Mantissa <= 24
then
(0 => Exact (-5.5788_73750_242),
1 => Exact (1.0))
else
(0 => Exact (-0.76949_93210_84948_79777E+3),
1 => Exact (0.31203_22209_19245_32844E+3),
2 => Exact (-0.35667_97773_90346_46171E+2),
3 => Exact (1.0)));
G : T;
P : T;
Q : T;
ZNum, ZDen, Z : T;
begin
ZNum := (X + Exact (-0.5)) + Exact (-0.5);
ZDen := X * Exact (0.5) + Exact (0.5);
Z := ZNum / ZDen;
G := Z * Z;
P := Compute_Horner (Log_P, G);
Q := Compute_Horner (Log_Q, G);
return Multiply_Add (Z, G * (P / Q), Z);
end Approx_Log;
----------------------
-- Approx_Power Log --
----------------------
function Approx_Power_Log (X : T) return T is
Power_Log_P : constant Polynomial :=
(if Mantissa <= 24
then -- Approximation MRE = 7.9529E-4
(1 => Exact (0.83357_541E-1))
else -- Approximation MRE = 8.7973E-8
(1 => Exact (0.83333_33333_33332_11405E-1),
2 => Exact (0.12500_00000_05037_99174E-1),
3 => Exact (0.22321_42128_59242_58967E-2),
4 => Exact (0.43445_77567_21631_19635E-3)));
K : constant T := Exact (0.44269_50408_88963_40736);
G : constant T := X * X;
P : T;
begin
P := Compute_Horner (Power_Log_P, G);
P := (P * G) * X;
P := Multiply_Add (P, K, P);
return Multiply_Add (X, K, P) + X;
end Approx_Power_Log;
-----------------
-- Approx_Exp2 --
-----------------
function Approx_Exp2 (X : T) return T is
Exp2_P : constant Polynomial :=
(if Mantissa > 24
then -- Approximation MRE = 1.7418E-17
(1 => Exact (0.69314_71805_59945_29629),
2 => Exact (0.24022_65069_59095_37056),
3 => Exact (0.55504_10866_40855_95326E-1),
4 => Exact (0.96181_29059_51724_16964E-2),
5 => Exact (0.13333_54131_35857_84703E-2),
6 => Exact (0.15400_29044_09897_64601E-3),
7 => Exact (0.14928_85268_05956_08186E-4))
else -- Approximation MRE = 3.3642E-9
(1 => Exact (0.69314_675),
2 => Exact (0.24018_510),
3 => Exact (0.54360_383E-1)));
begin
return Exact (1.0) + Compute_Horner (Exp2_P, X) * X;
end Approx_Exp2;
----------------
-- Approx_Sin --
----------------
function Approx_Sin (X : T) return T is
-- Note: The reference tables named below for sine lists constants
-- for sin((pi/4) * x) ~= x * P (x^2), in order to get sin (x),
-- the constants have been adjusted by division of appropriate
-- powers of (pi/4) ^ n, for n 1,3,5, etc.
Sin_P : constant Polynomial :=
(if Mantissa <= 24
then
-- Hart's constants: #SIN 3040# (p. 199)
(1 => Exact (-0.16666_65022),
2 => Exact (0.83320_16396E-2),
3 => Exact (-0.19501_81843E-3))
else
-- Hart's constants: #SIN 3044# (p. 199)
-- Approximation MRE = 2.4262E-18 ???
(1 => Exact (-0.16666_66666_66666_66628),
2 => Exact (0.83333_33333_33332_03335E-2),
3 => Exact (-0.19841_26984_12531_05860E-3),
4 => Exact (0.27557_31921_33901_68712E-5),
5 => Exact (-0.25052_10473_82673_30950E-7),
6 => Exact (0.16058_34762_32246_06553E-9),
7 => Exact (-0.75778_67884_01271_15607E-12)));
Sqrt_Epsilon_LLF : constant Long_Long_Float :=
Sqrt_2 ** (1 - Long_Long_Float'Machine_Mantissa);
G : constant T := X * X;
begin
if abs X <= Exact (Sqrt_Epsilon_LLF) then
return X;
end if;
return Multiply_Add (X, Compute_Horner (Sin_P, G) * G, X);
end Approx_Sin;
-----------------
-- Approx_Sinh --
-----------------
function Approx_Sinh (X : T) return T is
Sinh_P : constant Polynomial :=
(if Mantissa <= 24
then -- Approximation MRE = 2.6841E-8
(0 => Exact (-0.71379_3159E1),
1 => Exact (-0.19033_3300))
else -- Approximation MRE = 4.6429E-18
(0 => Exact (-0.35181_28343_01771_17881E6),
1 => Exact (-0.11563_52119_68517_68270E5),
2 => Exact (-0.16375_79820_26307_51372E3),
3 => Exact (-0.78966_12741_73570_99479)));
Sinh_Q : constant Polynomial :=
(if Mantissa <= 24
then
(0 => Exact (-0.42827_7109E2),
1 => Exact (1.0))
else
(0 => Exact (-0.21108_77005_81062_71242E7),
1 => Exact (0.36162_72310_94218_36460E5),
2 => Exact (-0.27773_52311_96507_01667E3),
3 => Exact (1.0)));
G : constant T := X * X;
P : T;
Q : T;
begin
P := Compute_Horner (Sinh_P, G);
Q := Compute_Horner (Sinh_Q, G);
return Multiply_Add (X, (G * P / Q), X);
end Approx_Sinh;
----------------
-- Approx_Tan --
----------------
function Approx_Tan (X : T) return T is
Tan_P : constant Polynomial :=
(if Mantissa <= 24
then -- Approximation MRE = 2.7824E-8
(1 => Exact (-0.95801_7723E-1))
else -- Approximation MRE = 3.5167E-18
(1 => Exact (-0.13338_35000_64219_60681),
2 => Exact (0.34248_87823_58905_89960E-2),
3 => Exact (-0.17861_70734_22544_26711E-4)));
Tan_Q : constant Polynomial :=
(if Mantissa <= 24
then
(0 => Exact (1.0),
1 => Exact (-0.42913_5777),
2 => Exact (0.97168_5835E-2))
else
(0 => Exact (1.0),
1 => Exact (-0.46671_68333_97552_94240),
2 => Exact (0.25663_83228_94401_12864E-1),
3 => Exact (-0.31181_53190_70100_27307E-3),
4 => Exact (0.49819_43399_37865_12270E-6)));
G : constant T := X * X;
P : constant T := Multiply_Add (X, G * Compute_Horner (Tan_P, G), X);
Q : constant T := Compute_Horner (Tan_Q, G);
begin
return P / Q;
end Approx_Tan;
----------------
-- Approx_Cot --
----------------
function Approx_Cot (X : T) return T is
Tan_P : constant Polynomial :=
(if Mantissa <= 24
then -- Approxmiation MRE = 1.5113E-17
(1 => Exact (-0.95801_7723E-1))
else
(1 => Exact (-0.13338_35000_64219_60681),
2 => Exact (0.34248_87823_58905_89960E-2),
3 => Exact (-0.17861_70734_22544_26711E-4)));
Tan_Q : constant Polynomial :=
(if Mantissa <= 24
then
(0 => Exact (1.0),
1 => Exact (-0.42913_5777),
2 => Exact (0.97168_5835E-2))
else
(0 => Exact (1.0),
1 => Exact (-0.46671_68333_97552_94240),
2 => Exact (0.25663_83228_94401_12864E-1),
3 => Exact (-0.31181_53190_70100_27307E-3),
4 => Exact (0.49819_43399_37865_12270E-6)));
G : constant T := X * X;
P : constant T := Multiply_Add (X, G * Compute_Horner (Tan_P, G), X);
Q : constant T := Compute_Horner (Tan_Q, G);
begin
return -Q / P;
end Approx_Cot;
-----------------
-- Approx_Tanh --
-----------------
function Approx_Tanh (X : T) return T is
Tanh_P : constant Polynomial :=
(if Mantissa <= 24
then -- Approximation MRE = 2.7166E-9
(0 => Exact (-0.82377_28127),
1 => Exact (-0.38310_10665E-2))
else -- Approximation MRE = 3.2436E-18
(0 => Exact (-0.16134_11902_39962_28053E4),
1 => Exact (-0.99225_92967_22360_83313E2),
2 => Exact (-0.96437_49277_72254_69787)));
Tanh_Q : constant Polynomial :=
(if Mantissa <= 24
then
(0 => Exact (2.4713_19654),
1 => Exact (1.0))
else
(0 => Exact (0.48402_35707_19886_88686E4),
1 => Exact (0.22337_72071_89623_12926E4),
2 => Exact (0.11274_47438_05349_49335E3),
3 => Exact (1.0)));
G : constant T := X * X;
P, Q : T;
begin
P := Compute_Horner (Tanh_P, G);
Q := Compute_Horner (Tanh_Q, G);
return Multiply_Add (X, G * P / Q, X);
end Approx_Tanh;
----------
-- Asin --
----------
function Asin (X : T) return T is
-- Cody and Waite implementation (page 174)
Y : T := abs X;
G : T;
Result : T;
begin
if Y <= Exact (0.5) then
Result := X + X * Approx_Asin (X * X);
else
G := (Exact (1.0) + (-Y)) * Exact (0.5);
Y := Sqrt (G);
Result :=
Exact (Pi / 2.0) - Exact (2.0) * (Y + Y * Approx_Asin (G));
if not (Exact (0.0) <= X) then
Result := -Result;
end if;
end if;
return Result;
end Asin;
end Generic_Approximations;
------------------
-- Generic_Acos --
------------------
function Generic_Acos (X : T) return T is
-- Cody and Waite implementation (page 174)
Y : T := abs (X);
G : T;
Result : T;
begin
if Y <= 0.5 then
-- No reduction needed
G := Y * Y;
Result := T'Copy_Sign (Y + Y * Approx_Asin (G), X);
return 0.5 * Pi - Result;
end if;
-- In the reduction step that follows, it is not Y, but rather G that
-- is reduced. The reduced G is in 0.0 .. 0.25.
G := (1.0 - Y) / 2.0;
Y := -2.0 * Sqrt (G);
Result := Y + Y * Approx_Asin (G);
return (if X < 0.0 then Pi + Result else -Result);
end Generic_Acos;
-------------------
-- Generic_Atan2 --
-------------------
-- Ada expected values:
-- Atan2 (y, x) returns a result in [-Pi, Pi]
function Generic_Atan2 (Y, X : T) return T is
-- Cody and Waite implementation (page 194)
F : T;
N : Integer := -1;
-- Default value for N is -1 so that if X=0 or over/underflow
-- tests on N are all false.
Result : T;
begin
if Y = 0.0 and then X = 0.0 then
-- Atan2 (+-0, -0) = +-Pi
-- Atan2 (+-0, +0) = +-0
if T'Copy_Sign (1.0, X) < 0.0 then
return T'Copy_Sign (Pi, Y);
else
return T'Copy_Sign (0.0, Y);
end if;
elsif Y = 0.0 and then abs (X) > 0.0 then
-- Atan2 (+-0, x) = +-Pi, if x < 0
-- Atan2 (+-0, x) = +-0, if x > 0
if X < 0.0 then
return T'Copy_Sign (Pi, Y);
else
return T'Copy_Sign (0.0, Y);
end if;
elsif X = 0.0 then
-- Atan2 (y, +-0) = -0.5 * Pi, if y < 0
-- Atan2 (y, +-0) = 0.5 * Pi, if y > 0
return T'Copy_Sign (Half_Pi, Y);
elsif abs (Y) > 0.0 and then abs (Y) <= T'Last
and then abs (X) = Infinity
then
-- Atan2 (+-y, -INF) = +-Pi, if x < 0 and y is finite
-- (tightly approximated)
-- Atan2 (+-y, +INF) = +-0, if x > 0 and y is finite
if X < 0.0 then
Result := T'Copy_Sign (Pi, Y);
else
Result := T'Copy_Sign (0.0, Y);
end if;
elsif abs (X) <= T'Last and then abs (Y) = Infinity then
-- Atan2 (+-INF, x) = +-0.5 * Pi, if x is finite
-- (tightly approximated)
Result := T'Copy_Sign (Half_Pi, Y);
elsif abs (X) = Infinity and then abs (Y) = Infinity then
-- Atan2 (+-INF, -INF) = +-0.75 * Pi (tightly approximated)
-- Atan2 (+-INF, +INF) = +-0.25 * Pi (tightly approximated)
if X < 0.0 then
return T'Copy_Sign (3.0 * Pi / 4.0, Y);
else
return T'Copy_Sign (Pi / 4.0, Y);
end if;
else
-- Be careful not to divide Y/X until we know it won't overflow
if abs (Y) > abs (X) then
F := abs (X / Y);
N := 2;
else
F := abs (Y / X);
N := 0;
end if;
if F > 2.0 - Sqrt_3 then
F := (((Sqrt_3 - 1.0) * F - 1.0) + F) / (Sqrt_3 + F);
N := N + 1;
end if;
Result := Approx_Atan (F);
end if;
if N > 1 then
Result := -Result;
end if;
case N is
when 1 => Result := Result + Sixth_Pi;
when 2 => Result := Result + Half_Pi;
when 3 => Result := Result + Third_Pi;
when others => null;
end case;
if T'Copy_Sign (1.0, X) < 0.0 then
Result := Pi - Result;
end if;
return T'Copy_Sign (Result, Y);
end Generic_Atan2;
procedure Generic_Pow_Special_Cases
(Left : T;
Right : T;
Is_Special : out Boolean;
Negate : out Boolean;
Result : out T)
is
------------
-- Is_Even --
------------
function Is_Even (X : T) return Boolean is
(abs X >= 2.0**T'Machine_Mantissa
or else Unsigned_64 (abs X) mod 2 = 0);
pragma Assert (T'Machine_Mantissa <= 64);
-- If X is large enough, then X is a multiple of 2. Otherwise,
-- conversion to Unsigned_64 is safe, assuming a mantissa of at
-- most 64 bits.
begin
Is_Special := True;
Negate := False;
Result := 0.0;
-- value 'Result' is not used if the input is
-- not a couple of special values
if Right = 0.0 or else not (Left /= 1.0) then
Result := (if Right = 0.0 then 1.0 else Left);
elsif Left = 0.0 then
if Right < 0.0 then
if Right = T'Rounding (Right) and then not Is_Even (Right) then
Result := 1.0 / Left; -- Infinity with sign of Left
else
Result := 1.0 / abs Left; -- +Infinity
end if;
else
if Right = T'Rounding (Right)
and then not Is_Even (Right)
then
Result := Left;
else
Result := +0.0;
end if;
end if;
elsif abs (Right) > T'Last and then Left = -1.0 then
Result := 1.0;
elsif Left < 0.0
and then Left >= T'First
and then abs (Right) <= T'Last
and then Right /= T'Rounding (Right)
then
Result := 0.0 / (Left - Left); -- NaN
elsif Right < T'First then
if abs (Left) < 1.0 then
Result := -Right; -- Infinity
else
Result := 0.0; -- Cases where Left=+-1 are dealt with above
end if;
elsif Right > T'Last then
if abs (Left) < 1.0 then
Result := 0.0;
else
Result := Right;
end if;
elsif Left > T'Last then
if Right < 0.0 then
Result := 0.0;
else
Result := Left;
end if;
elsif Left < T'First then
if Right > 0.0 then
if Right = T'Rounding (Right)
and then not Is_Even (Right)
then
Result := Left;
else
Result := -Left; -- -Left = +INF
end if;
else
if Right = T'Rounding (Right)
and then not Is_Even (Right)
then
Result := -0.0;
else
Result := +0.0;
end if;
end if;
else
Is_Special := False;
if Left < 0.0
and then Left >= T'First
and then abs (Right) <= T'Last
and then Right = T'Rounding (Right)
and then not Is_Even (Right)
then
Negate := True;
end if;
end if;
end Generic_Pow_Special_Cases;
end System.Libm;
| true |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- S Y S T E M . L I B M --
-- --
-- B o d y --
-- --
-- Copyright (C) 2014-2021, 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. --
-- --
-- --
-- --
-- --
-- --
-- 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 is the Ada Cert Math specific version of s-libm.adb
-- When Cody and Waite implementation is cited, it refers to the
-- Software Manual for the Elementary Functions by PI:NAME:<NAME>END_PI, Jr.
-- and PI:NAME:<NAME>END_PI, published by Prentice-Hall Series in Computational
-- Mathematics. Copyright 1980. ISBN 0-13-822064-6.
-- When Hart implementation is cited, it refers to
-- "Computer Approximations" by PI:NAME:<NAME>END_PI, published by Krieger.
-- Copyright 1968, Reprinted 1978 w/ corrections. ISBN 0-88275-642-7.
with Ada.Numerics; use Ada.Numerics;
package body System.Libm is
type Unsigned_64 is mod 2**64;
generic
type T is private;
with function Multiply_Add (X, Y, Z : T) return T is <>;
-- The Multiply_Add function returns the value of X * Y + Z, ideally
-- (but not necessarily) using a wider intermediate type, or a fused
-- multiply-add operation with only a single rounding. They are used
-- for evaluating polynomials.
package Generic_Polynomials is
type Polynomial is array (Natural range <>) of T;
-- A value P of type PolynomialRepresents the polynomial
-- P (X) = P_0 + P_1 * X + ... + P_(n-1) * X**(n-1) + P_n * X**n,
--
-- where n = P'Length - 1, P_0 is P (P'First) and P_n is P (P'Last)
-- P (X) = P_0 + X * (P_1 + X * (P_2 + X * (... + X * P_n)))
function Compute_Horner (P : Polynomial; X : T) return T with Inline;
-- Computes the polynomial P using the Horner scheme:
-- P (X) = P_0 + X * (P_1 + X * (P_2 + X * (... + X * P_n)))
end Generic_Polynomials;
-------------------------
-- Generic_Polynomials --
-------------------------
package body Generic_Polynomials is
--------------------
-- Compute_Horner --
---------------------
function Compute_Horner (P : Polynomial; X : T) return T is
Result : T := P (P'Last);
begin
for P_j of reverse P (P'First .. P'Last - 1) loop
Result := Multiply_Add (Result, X, P_j);
end loop;
return Result;
end Compute_Horner;
end Generic_Polynomials;
----------------------------
-- Generic_Approximations --
----------------------------
package body Generic_Approximations is
function Multiply_Add (X, Y, Z : T) return T is (X * Y + Z);
package Float_Polynomials is new Generic_Polynomials (T);
use Float_Polynomials;
-----------------
-- Approx_Asin --
-----------------
function Approx_Asin (X : T) return T is
P : T;
Q : T;
begin
if Mantissa <= 24 then
declare
-- Approximation MRE = 6.0128E-9
P1 : constant T := Exact (0.93393_5835);
P2 : constant T := Exact (-0.50440_0557);
Q0 : constant T := Exact (5.6036_3004);
Q1 : constant T := Exact (-5.5484_6723);
begin
P := Compute_Horner ((P1, P2), X);
Q := Compute_Horner ((Q0, Q1 + X), X);
end;
else
declare
-- Approximation MRE = 2.0975E-18
P1 : constant T := Exact (-0.27368_49452_41642_55994E+2);
P2 : constant T := Exact (+0.57208_22787_78917_31407E+2);
P3 : constant T := Exact (-0.39688_86299_75048_77339E+2);
P4 : constant T := Exact (+0.10152_52223_38064_63645E+2);
P5 : constant T := Exact (-0.69674_57344_73506_46411);
Q0 : constant T := Exact (-0.16421_09671_44985_60795E+3);
Q1 : constant T := Exact (+0.41714_43024_82604_12556E+3);
Q2 : constant T := Exact (-0.38186_30336_17501_49284E+3);
Q3 : constant T := Exact (+0.15095_27084_10306_04719E+3);
Q4 : constant T := Exact (-0.23823_85915_36702_38830E+2);
begin
P := Compute_Horner ((P1, P2, P3, P4, P5), X);
Q := Compute_Horner ((Q0, Q1, Q2, Q3, Q4 + X), X);
end;
end if;
return X * P / Q;
end Approx_Asin;
-----------------
-- Approx_Atan --
-----------------
function Approx_Atan (X : T) return T is
G : constant T := X * X;
P, Q : T;
begin
if Mantissa <= 24 then
declare
-- Approximation MRE = 3.2002E-9
P0 : constant T := Exact (-0.47083_25141);
P1 : constant T := Exact (-0.50909_58253E-1);
Q0 : constant T := Exact (0.14125_00740E1);
begin
P := Compute_Horner ((P0, P1), G);
Q := Q0 + G;
end;
else
declare
-- Approximation MRE = 1.8154E-18
P0 : constant T := Exact (-0.13688_76889_41919_26929E2);
P1 : constant T := Exact (-0.20505_85519_58616_51981E2);
P2 : constant T := Exact (-0.84946_24035_13206_83534E1);
P3 : constant T := Exact (-0.83758_29936_81500_59274);
Q0 : constant T := Exact (0.41066_30668_25757_81263E2);
Q1 : constant T := Exact (0.86157_34959_71302_42515E2);
Q2 : constant T := Exact (0.59578_43614_25973_44465E2);
Q3 : constant T := Exact (0.15024_00116_00285_76121E2);
begin
P := Compute_Horner ((P0, P1, P2, P3), G);
Q := Compute_Horner ((Q0, Q1, Q2, Q3 + G), G);
end;
end if;
return Multiply_Add (X, (G * P / Q), X);
end Approx_Atan;
function Approx_Cos (X : T) return T is
-- Note: The reference tables named below for cosine lists
-- constants for cos((pi/4) * x) ~= P (x^2), in order to get
-- cos (x), the constants have been adjusted by division of
-- appropriate powers of (pi/4) ^ n, for n 0,2,4,6 etc.
Cos_P : constant Polynomial :=
(if Mantissa <= 24
then
-- Hart's constants : #COS 3821# (p. 209)
-- Approximation MRE = 8.1948E-9 ???
(0 => Exact (0.99999_99999),
1 => Exact (-0.49999_99957),
2 => Exact (0.41666_61323E-1),
3 => Exact (-0.13888_52915E-2),
4 => Exact (0.24372_67909E-4))
elsif Mantissa <= 53
then
-- Hart's constants : #COS 3824# (p. 209)
-- Approximation MRE = 1.2548E-18
(0 => Exact (0.99999_99999_99999_99995),
1 => Exact (-0.49999_99999_99999_99279),
2 => Exact (+0.04166_66666_66666_430254),
3 => Exact (-0.13888_88888_88589_60433E-2),
4 => Exact (+0.24801_58728_28994_63022E-4),
5 => Exact (-0.27557_31286_56960_82219E-6),
6 => Exact (+0.20875_55514_56778_82872E-8),
7 => Exact (-0.11352_12320_57839_39582E-10))
else
-- Hart's constants : #COS 3825# (p. 209-210)
-- Approximation MRE = ???
(0 => Exact (+1.0),
1 => Exact (-0.49999_99999_99999_99994_57899),
2 => Exact (+0.41666_66666_66666_66467_89627E-1),
3 => Exact (-0.13888_88888_88888_57508_03579E-2),
4 => Exact (+0.24801_58730_15616_31808_80662E-4),
5 => Exact (-0.27557_31921_21557_14660_22522E-6),
6 => Exact (+0.20876_75377_75228_35357_18906E-8),
7 => Exact (-0.11470_23678_56189_18819_10735E-10),
8 => Exact (+0.47358_93914_72413_21156_01793E-13)));
begin
return Compute_Horner (Cos_P, X * X);
end Approx_Cos;
----------------
-- Approx_Exp --
----------------
function Approx_Exp (X : T) return T is
-- Cody and Waite implementation (page 69)
Exp_P : constant Polynomial :=
(if Mantissa <= 24
then -- Approximation MRE = 8.1529E-10
(0 => Exact (0.24999_99995_0),
1 => Exact (0.41602_88626_0E-2))
elsif Mantissa <= 53
then -- Approximation MRE = 1.0259E-17
(0 => Exact (0.24999_99999_99999_993),
1 => Exact (0.69436_00015_11792_852E-2),
2 => Exact (0.16520_33002_68279_130E-4))
else
(0 => Exact (0.25),
1 => Exact (0.75753_18015_94227_76666E-2),
2 => Exact (0.31555_19276_56846_46356E-4)));
Exp_Q : constant Polynomial :=
(if Mantissa <= 24
then
(0 => Exact (0.5),
1 => Exact (0.49987_17877_8E-1))
elsif Mantissa <= 53
then
(0 => Exact (0.5),
1 => Exact (0.55553_86669_69001_188E-1),
2 => Exact (0.49586_28849_05441_294E-3))
else
(0 => Exact (0.5),
1 => Exact (0.56817_30269_85512_21787E-1),
2 => Exact (0.63121_89437_43985_03557E-3),
3 => Exact (0.75104_02839_98700_46114E-6)));
G : constant T := X * X;
P : T;
Q : T;
begin
P := Compute_Horner (Exp_P, G);
Q := Compute_Horner (Exp_Q, G);
return Exact (2.0) * Multiply_Add (X, P / (Multiply_Add (-X, P, Q)),
Exact (0.5));
end Approx_Exp;
----------------
-- Approx_Log --
----------------
function Approx_Log (X : T) return T is
Log_P : constant Polynomial :=
(if Mantissa <= 24
then -- Approximation MRE = 1.0368E-10
(0 => Exact (-0.46490_62303_464),
1 => Exact (0.013600_95468_621))
else -- Approximation MRE = 4.7849E-19
(0 => Exact (-0.64124_94342_37455_81147E+2),
1 => Exact (0.16383_94356_30215_34222E+2),
2 => Exact (-0.78956_11288_74912_57267)));
Log_Q : constant Polynomial :=
(if Mantissa <= 24
then
(0 => Exact (-5.5788_73750_242),
1 => Exact (1.0))
else
(0 => Exact (-0.76949_93210_84948_79777E+3),
1 => Exact (0.31203_22209_19245_32844E+3),
2 => Exact (-0.35667_97773_90346_46171E+2),
3 => Exact (1.0)));
G : T;
P : T;
Q : T;
ZNum, ZDen, Z : T;
begin
ZNum := (X + Exact (-0.5)) + Exact (-0.5);
ZDen := X * Exact (0.5) + Exact (0.5);
Z := ZNum / ZDen;
G := Z * Z;
P := Compute_Horner (Log_P, G);
Q := Compute_Horner (Log_Q, G);
return Multiply_Add (Z, G * (P / Q), Z);
end Approx_Log;
----------------------
-- Approx_Power Log --
----------------------
function Approx_Power_Log (X : T) return T is
Power_Log_P : constant Polynomial :=
(if Mantissa <= 24
then -- Approximation MRE = 7.9529E-4
(1 => Exact (0.83357_541E-1))
else -- Approximation MRE = 8.7973E-8
(1 => Exact (0.83333_33333_33332_11405E-1),
2 => Exact (0.12500_00000_05037_99174E-1),
3 => Exact (0.22321_42128_59242_58967E-2),
4 => Exact (0.43445_77567_21631_19635E-3)));
K : constant T := Exact (0.44269_50408_88963_40736);
G : constant T := X * X;
P : T;
begin
P := Compute_Horner (Power_Log_P, G);
P := (P * G) * X;
P := Multiply_Add (P, K, P);
return Multiply_Add (X, K, P) + X;
end Approx_Power_Log;
-----------------
-- Approx_Exp2 --
-----------------
function Approx_Exp2 (X : T) return T is
Exp2_P : constant Polynomial :=
(if Mantissa > 24
then -- Approximation MRE = 1.7418E-17
(1 => Exact (0.69314_71805_59945_29629),
2 => Exact (0.24022_65069_59095_37056),
3 => Exact (0.55504_10866_40855_95326E-1),
4 => Exact (0.96181_29059_51724_16964E-2),
5 => Exact (0.13333_54131_35857_84703E-2),
6 => Exact (0.15400_29044_09897_64601E-3),
7 => Exact (0.14928_85268_05956_08186E-4))
else -- Approximation MRE = 3.3642E-9
(1 => Exact (0.69314_675),
2 => Exact (0.24018_510),
3 => Exact (0.54360_383E-1)));
begin
return Exact (1.0) + Compute_Horner (Exp2_P, X) * X;
end Approx_Exp2;
----------------
-- Approx_Sin --
----------------
function Approx_Sin (X : T) return T is
-- Note: The reference tables named below for sine lists constants
-- for sin((pi/4) * x) ~= x * P (x^2), in order to get sin (x),
-- the constants have been adjusted by division of appropriate
-- powers of (pi/4) ^ n, for n 1,3,5, etc.
Sin_P : constant Polynomial :=
(if Mantissa <= 24
then
-- Hart's constants: #SIN 3040# (p. 199)
(1 => Exact (-0.16666_65022),
2 => Exact (0.83320_16396E-2),
3 => Exact (-0.19501_81843E-3))
else
-- Hart's constants: #SIN 3044# (p. 199)
-- Approximation MRE = 2.4262E-18 ???
(1 => Exact (-0.16666_66666_66666_66628),
2 => Exact (0.83333_33333_33332_03335E-2),
3 => Exact (-0.19841_26984_12531_05860E-3),
4 => Exact (0.27557_31921_33901_68712E-5),
5 => Exact (-0.25052_10473_82673_30950E-7),
6 => Exact (0.16058_34762_32246_06553E-9),
7 => Exact (-0.75778_67884_01271_15607E-12)));
Sqrt_Epsilon_LLF : constant Long_Long_Float :=
Sqrt_2 ** (1 - Long_Long_Float'Machine_Mantissa);
G : constant T := X * X;
begin
if abs X <= Exact (Sqrt_Epsilon_LLF) then
return X;
end if;
return Multiply_Add (X, Compute_Horner (Sin_P, G) * G, X);
end Approx_Sin;
-----------------
-- Approx_Sinh --
-----------------
function Approx_Sinh (X : T) return T is
Sinh_P : constant Polynomial :=
(if Mantissa <= 24
then -- Approximation MRE = 2.6841E-8
(0 => Exact (-0.71379_3159E1),
1 => Exact (-0.19033_3300))
else -- Approximation MRE = 4.6429E-18
(0 => Exact (-0.35181_28343_01771_17881E6),
1 => Exact (-0.11563_52119_68517_68270E5),
2 => Exact (-0.16375_79820_26307_51372E3),
3 => Exact (-0.78966_12741_73570_99479)));
Sinh_Q : constant Polynomial :=
(if Mantissa <= 24
then
(0 => Exact (-0.42827_7109E2),
1 => Exact (1.0))
else
(0 => Exact (-0.21108_77005_81062_71242E7),
1 => Exact (0.36162_72310_94218_36460E5),
2 => Exact (-0.27773_52311_96507_01667E3),
3 => Exact (1.0)));
G : constant T := X * X;
P : T;
Q : T;
begin
P := Compute_Horner (Sinh_P, G);
Q := Compute_Horner (Sinh_Q, G);
return Multiply_Add (X, (G * P / Q), X);
end Approx_Sinh;
----------------
-- Approx_Tan --
----------------
function Approx_Tan (X : T) return T is
Tan_P : constant Polynomial :=
(if Mantissa <= 24
then -- Approximation MRE = 2.7824E-8
(1 => Exact (-0.95801_7723E-1))
else -- Approximation MRE = 3.5167E-18
(1 => Exact (-0.13338_35000_64219_60681),
2 => Exact (0.34248_87823_58905_89960E-2),
3 => Exact (-0.17861_70734_22544_26711E-4)));
Tan_Q : constant Polynomial :=
(if Mantissa <= 24
then
(0 => Exact (1.0),
1 => Exact (-0.42913_5777),
2 => Exact (0.97168_5835E-2))
else
(0 => Exact (1.0),
1 => Exact (-0.46671_68333_97552_94240),
2 => Exact (0.25663_83228_94401_12864E-1),
3 => Exact (-0.31181_53190_70100_27307E-3),
4 => Exact (0.49819_43399_37865_12270E-6)));
G : constant T := X * X;
P : constant T := Multiply_Add (X, G * Compute_Horner (Tan_P, G), X);
Q : constant T := Compute_Horner (Tan_Q, G);
begin
return P / Q;
end Approx_Tan;
----------------
-- Approx_Cot --
----------------
function Approx_Cot (X : T) return T is
Tan_P : constant Polynomial :=
(if Mantissa <= 24
then -- Approxmiation MRE = 1.5113E-17
(1 => Exact (-0.95801_7723E-1))
else
(1 => Exact (-0.13338_35000_64219_60681),
2 => Exact (0.34248_87823_58905_89960E-2),
3 => Exact (-0.17861_70734_22544_26711E-4)));
Tan_Q : constant Polynomial :=
(if Mantissa <= 24
then
(0 => Exact (1.0),
1 => Exact (-0.42913_5777),
2 => Exact (0.97168_5835E-2))
else
(0 => Exact (1.0),
1 => Exact (-0.46671_68333_97552_94240),
2 => Exact (0.25663_83228_94401_12864E-1),
3 => Exact (-0.31181_53190_70100_27307E-3),
4 => Exact (0.49819_43399_37865_12270E-6)));
G : constant T := X * X;
P : constant T := Multiply_Add (X, G * Compute_Horner (Tan_P, G), X);
Q : constant T := Compute_Horner (Tan_Q, G);
begin
return -Q / P;
end Approx_Cot;
-----------------
-- Approx_Tanh --
-----------------
function Approx_Tanh (X : T) return T is
Tanh_P : constant Polynomial :=
(if Mantissa <= 24
then -- Approximation MRE = 2.7166E-9
(0 => Exact (-0.82377_28127),
1 => Exact (-0.38310_10665E-2))
else -- Approximation MRE = 3.2436E-18
(0 => Exact (-0.16134_11902_39962_28053E4),
1 => Exact (-0.99225_92967_22360_83313E2),
2 => Exact (-0.96437_49277_72254_69787)));
Tanh_Q : constant Polynomial :=
(if Mantissa <= 24
then
(0 => Exact (2.4713_19654),
1 => Exact (1.0))
else
(0 => Exact (0.48402_35707_19886_88686E4),
1 => Exact (0.22337_72071_89623_12926E4),
2 => Exact (0.11274_47438_05349_49335E3),
3 => Exact (1.0)));
G : constant T := X * X;
P, Q : T;
begin
P := Compute_Horner (Tanh_P, G);
Q := Compute_Horner (Tanh_Q, G);
return Multiply_Add (X, G * P / Q, X);
end Approx_Tanh;
----------
-- Asin --
----------
function Asin (X : T) return T is
-- Cody and Waite implementation (page 174)
Y : T := abs X;
G : T;
Result : T;
begin
if Y <= Exact (0.5) then
Result := X + X * Approx_Asin (X * X);
else
G := (Exact (1.0) + (-Y)) * Exact (0.5);
Y := Sqrt (G);
Result :=
Exact (Pi / 2.0) - Exact (2.0) * (Y + Y * Approx_Asin (G));
if not (Exact (0.0) <= X) then
Result := -Result;
end if;
end if;
return Result;
end Asin;
end Generic_Approximations;
------------------
-- Generic_Acos --
------------------
function Generic_Acos (X : T) return T is
-- Cody and Waite implementation (page 174)
Y : T := abs (X);
G : T;
Result : T;
begin
if Y <= 0.5 then
-- No reduction needed
G := Y * Y;
Result := T'Copy_Sign (Y + Y * Approx_Asin (G), X);
return 0.5 * Pi - Result;
end if;
-- In the reduction step that follows, it is not Y, but rather G that
-- is reduced. The reduced G is in 0.0 .. 0.25.
G := (1.0 - Y) / 2.0;
Y := -2.0 * Sqrt (G);
Result := Y + Y * Approx_Asin (G);
return (if X < 0.0 then Pi + Result else -Result);
end Generic_Acos;
-------------------
-- Generic_Atan2 --
-------------------
-- Ada expected values:
-- Atan2 (y, x) returns a result in [-Pi, Pi]
function Generic_Atan2 (Y, X : T) return T is
-- Cody and Waite implementation (page 194)
F : T;
N : Integer := -1;
-- Default value for N is -1 so that if X=0 or over/underflow
-- tests on N are all false.
Result : T;
begin
if Y = 0.0 and then X = 0.0 then
-- Atan2 (+-0, -0) = +-Pi
-- Atan2 (+-0, +0) = +-0
if T'Copy_Sign (1.0, X) < 0.0 then
return T'Copy_Sign (Pi, Y);
else
return T'Copy_Sign (0.0, Y);
end if;
elsif Y = 0.0 and then abs (X) > 0.0 then
-- Atan2 (+-0, x) = +-Pi, if x < 0
-- Atan2 (+-0, x) = +-0, if x > 0
if X < 0.0 then
return T'Copy_Sign (Pi, Y);
else
return T'Copy_Sign (0.0, Y);
end if;
elsif X = 0.0 then
-- Atan2 (y, +-0) = -0.5 * Pi, if y < 0
-- Atan2 (y, +-0) = 0.5 * Pi, if y > 0
return T'Copy_Sign (Half_Pi, Y);
elsif abs (Y) > 0.0 and then abs (Y) <= T'Last
and then abs (X) = Infinity
then
-- Atan2 (+-y, -INF) = +-Pi, if x < 0 and y is finite
-- (tightly approximated)
-- Atan2 (+-y, +INF) = +-0, if x > 0 and y is finite
if X < 0.0 then
Result := T'Copy_Sign (Pi, Y);
else
Result := T'Copy_Sign (0.0, Y);
end if;
elsif abs (X) <= T'Last and then abs (Y) = Infinity then
-- Atan2 (+-INF, x) = +-0.5 * Pi, if x is finite
-- (tightly approximated)
Result := T'Copy_Sign (Half_Pi, Y);
elsif abs (X) = Infinity and then abs (Y) = Infinity then
-- Atan2 (+-INF, -INF) = +-0.75 * Pi (tightly approximated)
-- Atan2 (+-INF, +INF) = +-0.25 * Pi (tightly approximated)
if X < 0.0 then
return T'Copy_Sign (3.0 * Pi / 4.0, Y);
else
return T'Copy_Sign (Pi / 4.0, Y);
end if;
else
-- Be careful not to divide Y/X until we know it won't overflow
if abs (Y) > abs (X) then
F := abs (X / Y);
N := 2;
else
F := abs (Y / X);
N := 0;
end if;
if F > 2.0 - Sqrt_3 then
F := (((Sqrt_3 - 1.0) * F - 1.0) + F) / (Sqrt_3 + F);
N := N + 1;
end if;
Result := Approx_Atan (F);
end if;
if N > 1 then
Result := -Result;
end if;
case N is
when 1 => Result := Result + Sixth_Pi;
when 2 => Result := Result + Half_Pi;
when 3 => Result := Result + Third_Pi;
when others => null;
end case;
if T'Copy_Sign (1.0, X) < 0.0 then
Result := Pi - Result;
end if;
return T'Copy_Sign (Result, Y);
end Generic_Atan2;
procedure Generic_Pow_Special_Cases
(Left : T;
Right : T;
Is_Special : out Boolean;
Negate : out Boolean;
Result : out T)
is
------------
-- Is_Even --
------------
function Is_Even (X : T) return Boolean is
(abs X >= 2.0**T'Machine_Mantissa
or else Unsigned_64 (abs X) mod 2 = 0);
pragma Assert (T'Machine_Mantissa <= 64);
-- If X is large enough, then X is a multiple of 2. Otherwise,
-- conversion to Unsigned_64 is safe, assuming a mantissa of at
-- most 64 bits.
begin
Is_Special := True;
Negate := False;
Result := 0.0;
-- value 'Result' is not used if the input is
-- not a couple of special values
if Right = 0.0 or else not (Left /= 1.0) then
Result := (if Right = 0.0 then 1.0 else Left);
elsif Left = 0.0 then
if Right < 0.0 then
if Right = T'Rounding (Right) and then not Is_Even (Right) then
Result := 1.0 / Left; -- Infinity with sign of Left
else
Result := 1.0 / abs Left; -- +Infinity
end if;
else
if Right = T'Rounding (Right)
and then not Is_Even (Right)
then
Result := Left;
else
Result := +0.0;
end if;
end if;
elsif abs (Right) > T'Last and then Left = -1.0 then
Result := 1.0;
elsif Left < 0.0
and then Left >= T'First
and then abs (Right) <= T'Last
and then Right /= T'Rounding (Right)
then
Result := 0.0 / (Left - Left); -- NaN
elsif Right < T'First then
if abs (Left) < 1.0 then
Result := -Right; -- Infinity
else
Result := 0.0; -- Cases where Left=+-1 are dealt with above
end if;
elsif Right > T'Last then
if abs (Left) < 1.0 then
Result := 0.0;
else
Result := Right;
end if;
elsif Left > T'Last then
if Right < 0.0 then
Result := 0.0;
else
Result := Left;
end if;
elsif Left < T'First then
if Right > 0.0 then
if Right = T'Rounding (Right)
and then not Is_Even (Right)
then
Result := Left;
else
Result := -Left; -- -Left = +INF
end if;
else
if Right = T'Rounding (Right)
and then not Is_Even (Right)
then
Result := -0.0;
else
Result := +0.0;
end if;
end if;
else
Is_Special := False;
if Left < 0.0
and then Left >= T'First
and then abs (Right) <= T'Last
and then Right = T'Rounding (Right)
and then not Is_Even (Right)
then
Negate := True;
end if;
end if;
end Generic_Pow_Special_Cases;
end System.Libm;
|
[
{
"context": " Services\n-- Copyright (C) 2011, 2012, 2013, 2014 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@g",
"end": 157,
"score": 0.9998773336410522,
"start": 142,
"tag": "NAME",
"value": "Stephane Carrez"
},
{
"context": "1, 2012, 2013, 2014 Stephane Carrez\n-- Written by Stephane Carrez ([email protected])\n--\n-- Licensed under",
"end": 188,
"score": 0.9998775720596313,
"start": 173,
"tag": "NAME",
"value": "Stephane Carrez"
},
{
"context": "4 Stephane Carrez\n-- Written by Stephane Carrez ([email protected])\n--\n-- Licensed under the Apache License, Versio",
"end": 215,
"score": 0.9999286532402039,
"start": 190,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
awa/src/awa-services-contexts.ads
|
fuzzysloth/ada-awa
| 81 |
-----------------------------------------------------------------------
-- awa-services -- Services
-- Copyright (C) 2011, 2012, 2013, 2014 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 AWA.Applications;
with AWA.Users.Principals;
with AWA.Users.Models;
with ADO;
with ADO.Sessions;
with Util.Beans.Objects;
with Ada.Finalization;
-- The service context provides additional information to a service operation.
-- This context is composed of:
-- <ul>
-- <li>the optional user context which allows to identify the current user invoking the service,
-- <li>the database connections that the service can use,
-- <li>the other services provided by the application.
-- </ul>
package AWA.Services.Contexts is
type Service_Context is new Ada.Finalization.Limited_Controlled with private;
type Service_Context_Access is access all Service_Context'Class;
-- Get the application associated with the current service operation.
function Get_Application (Ctx : in Service_Context) return AWA.Applications.Application_Access;
-- Get the current database connection for reading.
function Get_Session (Ctx : in Service_Context_Access) return ADO.Sessions.Session;
-- Get the current database connection for reading and writing.
function Get_Master_Session (Ctx : in Service_Context_Access)
return ADO.Sessions.Master_Session;
-- Get the current user invoking the service operation.
-- Returns a null user if there is none.
function Get_User (Ctx : in Service_Context) return AWA.Users.Models.User_Ref;
-- Get the current user identifier invoking the service operation.
-- Returns NO_IDENTIFIER if there is none.
function Get_User_Identifier (Ctx : in Service_Context) return ADO.Identifier;
-- Get the current user session from the user invoking the service operation.
-- Returns a null session if there is none.
function Get_User_Session (Ctx : in Service_Context) return AWA.Users.Models.Session_Ref;
-- Starts a transaction.
procedure Start (Ctx : in out Service_Context);
-- Commits the current transaction. The database transaction is really committed by the
-- last <b>Commit</b> called.
procedure Commit (Ctx : in out Service_Context);
-- Rollback the current transaction. The database transaction is rollback at the first
-- call to <b>Rollback</b>.
procedure Rollback (Ctx : in out Service_Context);
-- Get the attribute registered under the given name in the HTTP session.
function Get_Session_Attribute (Ctx : in Service_Context;
Name : in String) return Util.Beans.Objects.Object;
-- Set the attribute registered under the given name in the HTTP session.
procedure Set_Session_Attribute (Ctx : in out Service_Context;
Name : in String;
Value : in Util.Beans.Objects.Object);
-- Initializes the service context.
overriding
procedure Initialize (Ctx : in out Service_Context);
-- Finalize the service context, rollback non-committed transaction, releases any object.
overriding
procedure Finalize (Ctx : in out Service_Context);
-- Set the current application and user context.
procedure Set_Context (Ctx : in out Service_Context;
Application : in AWA.Applications.Application_Access;
Principal : in AWA.Users.Principals.Principal_Access);
-- Get the current service context.
-- Returns null if the current thread is not associated with any service context.
function Current return Service_Context_Access;
-- Run the process procedure on behalf of the specific user and session.
-- This operation changes temporarily the identity of the current user principal and
-- executes the <tt>Process</tt> procedure.
generic
with procedure Process;
procedure Run_As (User : in AWA.Users.Models.User_Ref;
Session : in AWA.Users.Models.Session_Ref);
private
type Service_Context is new Ada.Finalization.Limited_Controlled with record
Previous : Service_Context_Access := null;
Application : AWA.Applications.Application_Access := null;
Principal : AWA.Users.Principals.Principal_Access := null;
Master : ADO.Sessions.Master_Session;
Slave : ADO.Sessions.Session;
Transaction : Integer := 0;
Active_Transaction : Boolean := False;
end record;
end AWA.Services.Contexts;
|
25910
|
-----------------------------------------------------------------------
-- awa-services -- Services
-- Copyright (C) 2011, 2012, 2013, 2014 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- 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 AWA.Applications;
with AWA.Users.Principals;
with AWA.Users.Models;
with ADO;
with ADO.Sessions;
with Util.Beans.Objects;
with Ada.Finalization;
-- The service context provides additional information to a service operation.
-- This context is composed of:
-- <ul>
-- <li>the optional user context which allows to identify the current user invoking the service,
-- <li>the database connections that the service can use,
-- <li>the other services provided by the application.
-- </ul>
package AWA.Services.Contexts is
type Service_Context is new Ada.Finalization.Limited_Controlled with private;
type Service_Context_Access is access all Service_Context'Class;
-- Get the application associated with the current service operation.
function Get_Application (Ctx : in Service_Context) return AWA.Applications.Application_Access;
-- Get the current database connection for reading.
function Get_Session (Ctx : in Service_Context_Access) return ADO.Sessions.Session;
-- Get the current database connection for reading and writing.
function Get_Master_Session (Ctx : in Service_Context_Access)
return ADO.Sessions.Master_Session;
-- Get the current user invoking the service operation.
-- Returns a null user if there is none.
function Get_User (Ctx : in Service_Context) return AWA.Users.Models.User_Ref;
-- Get the current user identifier invoking the service operation.
-- Returns NO_IDENTIFIER if there is none.
function Get_User_Identifier (Ctx : in Service_Context) return ADO.Identifier;
-- Get the current user session from the user invoking the service operation.
-- Returns a null session if there is none.
function Get_User_Session (Ctx : in Service_Context) return AWA.Users.Models.Session_Ref;
-- Starts a transaction.
procedure Start (Ctx : in out Service_Context);
-- Commits the current transaction. The database transaction is really committed by the
-- last <b>Commit</b> called.
procedure Commit (Ctx : in out Service_Context);
-- Rollback the current transaction. The database transaction is rollback at the first
-- call to <b>Rollback</b>.
procedure Rollback (Ctx : in out Service_Context);
-- Get the attribute registered under the given name in the HTTP session.
function Get_Session_Attribute (Ctx : in Service_Context;
Name : in String) return Util.Beans.Objects.Object;
-- Set the attribute registered under the given name in the HTTP session.
procedure Set_Session_Attribute (Ctx : in out Service_Context;
Name : in String;
Value : in Util.Beans.Objects.Object);
-- Initializes the service context.
overriding
procedure Initialize (Ctx : in out Service_Context);
-- Finalize the service context, rollback non-committed transaction, releases any object.
overriding
procedure Finalize (Ctx : in out Service_Context);
-- Set the current application and user context.
procedure Set_Context (Ctx : in out Service_Context;
Application : in AWA.Applications.Application_Access;
Principal : in AWA.Users.Principals.Principal_Access);
-- Get the current service context.
-- Returns null if the current thread is not associated with any service context.
function Current return Service_Context_Access;
-- Run the process procedure on behalf of the specific user and session.
-- This operation changes temporarily the identity of the current user principal and
-- executes the <tt>Process</tt> procedure.
generic
with procedure Process;
procedure Run_As (User : in AWA.Users.Models.User_Ref;
Session : in AWA.Users.Models.Session_Ref);
private
type Service_Context is new Ada.Finalization.Limited_Controlled with record
Previous : Service_Context_Access := null;
Application : AWA.Applications.Application_Access := null;
Principal : AWA.Users.Principals.Principal_Access := null;
Master : ADO.Sessions.Master_Session;
Slave : ADO.Sessions.Session;
Transaction : Integer := 0;
Active_Transaction : Boolean := False;
end record;
end AWA.Services.Contexts;
| true |
-----------------------------------------------------------------------
-- awa-services -- Services
-- Copyright (C) 2011, 2012, 2013, 2014 PI:NAME:<NAME>END_PI
-- Written by PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
--
-- 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 AWA.Applications;
with AWA.Users.Principals;
with AWA.Users.Models;
with ADO;
with ADO.Sessions;
with Util.Beans.Objects;
with Ada.Finalization;
-- The service context provides additional information to a service operation.
-- This context is composed of:
-- <ul>
-- <li>the optional user context which allows to identify the current user invoking the service,
-- <li>the database connections that the service can use,
-- <li>the other services provided by the application.
-- </ul>
package AWA.Services.Contexts is
type Service_Context is new Ada.Finalization.Limited_Controlled with private;
type Service_Context_Access is access all Service_Context'Class;
-- Get the application associated with the current service operation.
function Get_Application (Ctx : in Service_Context) return AWA.Applications.Application_Access;
-- Get the current database connection for reading.
function Get_Session (Ctx : in Service_Context_Access) return ADO.Sessions.Session;
-- Get the current database connection for reading and writing.
function Get_Master_Session (Ctx : in Service_Context_Access)
return ADO.Sessions.Master_Session;
-- Get the current user invoking the service operation.
-- Returns a null user if there is none.
function Get_User (Ctx : in Service_Context) return AWA.Users.Models.User_Ref;
-- Get the current user identifier invoking the service operation.
-- Returns NO_IDENTIFIER if there is none.
function Get_User_Identifier (Ctx : in Service_Context) return ADO.Identifier;
-- Get the current user session from the user invoking the service operation.
-- Returns a null session if there is none.
function Get_User_Session (Ctx : in Service_Context) return AWA.Users.Models.Session_Ref;
-- Starts a transaction.
procedure Start (Ctx : in out Service_Context);
-- Commits the current transaction. The database transaction is really committed by the
-- last <b>Commit</b> called.
procedure Commit (Ctx : in out Service_Context);
-- Rollback the current transaction. The database transaction is rollback at the first
-- call to <b>Rollback</b>.
procedure Rollback (Ctx : in out Service_Context);
-- Get the attribute registered under the given name in the HTTP session.
function Get_Session_Attribute (Ctx : in Service_Context;
Name : in String) return Util.Beans.Objects.Object;
-- Set the attribute registered under the given name in the HTTP session.
procedure Set_Session_Attribute (Ctx : in out Service_Context;
Name : in String;
Value : in Util.Beans.Objects.Object);
-- Initializes the service context.
overriding
procedure Initialize (Ctx : in out Service_Context);
-- Finalize the service context, rollback non-committed transaction, releases any object.
overriding
procedure Finalize (Ctx : in out Service_Context);
-- Set the current application and user context.
procedure Set_Context (Ctx : in out Service_Context;
Application : in AWA.Applications.Application_Access;
Principal : in AWA.Users.Principals.Principal_Access);
-- Get the current service context.
-- Returns null if the current thread is not associated with any service context.
function Current return Service_Context_Access;
-- Run the process procedure on behalf of the specific user and session.
-- This operation changes temporarily the identity of the current user principal and
-- executes the <tt>Process</tt> procedure.
generic
with procedure Process;
procedure Run_As (User : in AWA.Users.Models.User_Ref;
Session : in AWA.Users.Models.Session_Ref);
private
type Service_Context is new Ada.Finalization.Limited_Controlled with record
Previous : Service_Context_Access := null;
Application : AWA.Applications.Application_Access := null;
Principal : AWA.Users.Principals.Principal_Access := null;
Master : ADO.Sessions.Master_Session;
Slave : ADO.Sessions.Session;
Transaction : Integer := 0;
Active_Transaction : Boolean := False;
end record;
end AWA.Services.Contexts;
|
[
{
"context": "-- Motherlode\n-- Copyright (c) 2020 Fabien Chouteau\n\nwith World;\n\npackage Parameters is\n\n FPS : con",
"end": 53,
"score": 0.999838650226593,
"start": 38,
"tag": "NAME",
"value": "Fabien Chouteau"
}
] |
src/parameters.ads
|
Fabien-Chouteau/motherlode
| 2 |
-- Motherlode
-- Copyright (c) 2020 Fabien Chouteau
with World;
package Parameters is
FPS : constant := 30;
Frame_Period : constant := 1000 / FPS;
type Equipment is (Engine, Cargo, Tank, Drill);
type Equipment_Level is range 1 .. 7;
Price : constant array (Equipment, Equipment_Level) of Natural :=
(Engine => (0, 2_000, 6_000, 15_000, 20_000, 45_000, 80_000),
Cargo => (0, 2_000, 6_000, 15_000, 20_000, 45_000, 80_000),
Tank => (0, 2_000, 6_000, 15_000, 20_000, 45_000, 80_000),
Drill => (0, 2_000, 6_000, 15_000, 20_000, 45_000, 80_000));
Engine_Thrust : constant array (Equipment_Level) of Float :=
(1 => 75_000.0,
2 => 150_000.0,
3 => 250_000.0,
4 => 400_000.0,
5 => 550_000.0,
6 => 800_000.0,
7 => 1_300_000.0);
Cargo_Capacity : constant array (Equipment_Level) of Natural :=
(1 => 10,
2 => 20,
3 => 30,
4 => 40,
5 => 50,
6 => 60,
7 => 70);
Tank_Capacity : constant array (Equipment_Level) of Natural :=
(1 => 15,
2 => 20,
3 => 25,
4 => 30,
5 => 35,
6 => 45,
7 => 70);
Value : constant array (World.Valuable_Cell) of Natural :=
(World.Coal => 30,
World.Iron => 100,
World.Gold => 250,
World.Diamond => 750);
Weight : constant array (World.Valuable_Cell) of Natural :=
(World.Coal => 2,
World.Iron => 4,
World.Gold => 8,
World.Diamond => 12);
Empty_Mass : constant := 90.0;
Gravity : constant := 500.0;
Fuel_Per_Step : constant := 0.01;
Fuel_Price : constant := 10.0;
Start_Fuel : constant := 5.0;
Spawn_X : constant := 20 * 17;
Spawn_Y : constant := 8;
end Parameters;
|
21715
|
-- Motherlode
-- Copyright (c) 2020 <NAME>
with World;
package Parameters is
FPS : constant := 30;
Frame_Period : constant := 1000 / FPS;
type Equipment is (Engine, Cargo, Tank, Drill);
type Equipment_Level is range 1 .. 7;
Price : constant array (Equipment, Equipment_Level) of Natural :=
(Engine => (0, 2_000, 6_000, 15_000, 20_000, 45_000, 80_000),
Cargo => (0, 2_000, 6_000, 15_000, 20_000, 45_000, 80_000),
Tank => (0, 2_000, 6_000, 15_000, 20_000, 45_000, 80_000),
Drill => (0, 2_000, 6_000, 15_000, 20_000, 45_000, 80_000));
Engine_Thrust : constant array (Equipment_Level) of Float :=
(1 => 75_000.0,
2 => 150_000.0,
3 => 250_000.0,
4 => 400_000.0,
5 => 550_000.0,
6 => 800_000.0,
7 => 1_300_000.0);
Cargo_Capacity : constant array (Equipment_Level) of Natural :=
(1 => 10,
2 => 20,
3 => 30,
4 => 40,
5 => 50,
6 => 60,
7 => 70);
Tank_Capacity : constant array (Equipment_Level) of Natural :=
(1 => 15,
2 => 20,
3 => 25,
4 => 30,
5 => 35,
6 => 45,
7 => 70);
Value : constant array (World.Valuable_Cell) of Natural :=
(World.Coal => 30,
World.Iron => 100,
World.Gold => 250,
World.Diamond => 750);
Weight : constant array (World.Valuable_Cell) of Natural :=
(World.Coal => 2,
World.Iron => 4,
World.Gold => 8,
World.Diamond => 12);
Empty_Mass : constant := 90.0;
Gravity : constant := 500.0;
Fuel_Per_Step : constant := 0.01;
Fuel_Price : constant := 10.0;
Start_Fuel : constant := 5.0;
Spawn_X : constant := 20 * 17;
Spawn_Y : constant := 8;
end Parameters;
| true |
-- Motherlode
-- Copyright (c) 2020 PI:NAME:<NAME>END_PI
with World;
package Parameters is
FPS : constant := 30;
Frame_Period : constant := 1000 / FPS;
type Equipment is (Engine, Cargo, Tank, Drill);
type Equipment_Level is range 1 .. 7;
Price : constant array (Equipment, Equipment_Level) of Natural :=
(Engine => (0, 2_000, 6_000, 15_000, 20_000, 45_000, 80_000),
Cargo => (0, 2_000, 6_000, 15_000, 20_000, 45_000, 80_000),
Tank => (0, 2_000, 6_000, 15_000, 20_000, 45_000, 80_000),
Drill => (0, 2_000, 6_000, 15_000, 20_000, 45_000, 80_000));
Engine_Thrust : constant array (Equipment_Level) of Float :=
(1 => 75_000.0,
2 => 150_000.0,
3 => 250_000.0,
4 => 400_000.0,
5 => 550_000.0,
6 => 800_000.0,
7 => 1_300_000.0);
Cargo_Capacity : constant array (Equipment_Level) of Natural :=
(1 => 10,
2 => 20,
3 => 30,
4 => 40,
5 => 50,
6 => 60,
7 => 70);
Tank_Capacity : constant array (Equipment_Level) of Natural :=
(1 => 15,
2 => 20,
3 => 25,
4 => 30,
5 => 35,
6 => 45,
7 => 70);
Value : constant array (World.Valuable_Cell) of Natural :=
(World.Coal => 30,
World.Iron => 100,
World.Gold => 250,
World.Diamond => 750);
Weight : constant array (World.Valuable_Cell) of Natural :=
(World.Coal => 2,
World.Iron => 4,
World.Gold => 8,
World.Diamond => 12);
Empty_Mass : constant := 90.0;
Gravity : constant := 500.0;
Fuel_Per_Step : constant := 0.01;
Fuel_Price : constant := 10.0;
Start_Fuel : constant := 5.0;
Spawn_X : constant := 20 * 17;
Spawn_Y : constant := 8;
end Parameters;
|
[
{
"context": "A Event Manager\n-- Copyright (C) 2012, 2016, 2020 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@g",
"end": 167,
"score": 0.999872088432312,
"start": 152,
"tag": "NAME",
"value": "Stephane Carrez"
},
{
"context": "C) 2012, 2016, 2020 Stephane Carrez\n-- Written by Stephane Carrez ([email protected])\n--\n-- Licensed under",
"end": 198,
"score": 0.9998728036880493,
"start": 183,
"tag": "NAME",
"value": "Stephane Carrez"
},
{
"context": "0 Stephane Carrez\n-- Written by Stephane Carrez ([email protected])\n--\n-- Licensed under the Apache License, Versio",
"end": 225,
"score": 0.9999295473098755,
"start": 200,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
awa/src/awa-events-services.ads
|
twdroeger/ada-awa
| 81 |
-----------------------------------------------------------------------
-- awa-events-services -- AWA Event Manager
-- Copyright (C) 2012, 2016, 2020 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.Finalization;
with Ada.Containers.Doubly_Linked_Lists;
with Util.Strings;
with EL.Expressions;
with EL.Beans;
with AWA.Events.Models;
with AWA.Events.Queues;
with AWA.Events.Queues.Maps;
with AWA.Events.Dispatchers;
limited with AWA.Applications;
package AWA.Events.Services is
-- ------------------------------
-- Event manager
-- ------------------------------
-- The `Event_Manager` manages the dispatch of event to the right event queue
-- or to the event action. The event manager holds a list of actions that
-- must be triggered for a particular event/queue pair. Such list is created
-- and initialized when the application is configured. It never changes.
type Event_Manager is tagged limited private;
type Event_Manager_Access is access all Event_Manager'Class;
-- Find the event queue identified by the given name.
function Find_Queue (Manager : in Event_Manager;
Name : in String) return AWA.Events.Queues.Queue_Ref;
-- Add the event queue in the registry.
procedure Add_Queue (Manager : in out Event_Manager;
Queue : in AWA.Events.Queues.Queue_Ref);
-- Send the event to the modules that subscribed to it.
-- The event is sent on each event queue. Event queues will dispatch the event
-- by invoking immediately or later on the `Dispatch`> operation.
-- The synchronous or asynchronous reception of the event depends
-- on the event queue.
procedure Send (Manager : in Event_Manager;
Event : in Module_Event'Class);
-- Set the event message type which correspond to the `Kind` event index.
procedure Set_Message_Type (Manager : in Event_Manager;
Event : in out AWA.Events.Models.Message_Ref;
Kind : in Event_Index);
-- Set the event queue associated with the event message.
-- The event queue identified by `Name` is searched to find the
-- `Queue_Ref` instance.
procedure Set_Event_Queue (Manager : in Event_Manager;
Event : in out AWA.Events.Models.Message_Ref;
Name : in String);
-- Dispatch the event identified by `Event` and associated with the event
-- queue `Queue`. The event actions which are associated with the event are
-- executed synchronously.
procedure Dispatch (Manager : in Event_Manager;
Queue : in AWA.Events.Queues.Queue_Ref;
Event : in Module_Event'Class);
-- Add an action invoked when the event identified by `Event` is sent.
-- The event is posted on the queue identified by `Queue`.
-- When the event queue dispatches the event, the Ada bean identified
-- by the method action represented by `Action` is created and initialized
-- by evaluating and setting the parameters defined in `Params`.
-- The action method is then invoked.
procedure Add_Action (Manager : in out Event_Manager;
Event : in String;
Queue : in AWA.Events.Queues.Queue_Ref;
Action : in EL.Expressions.Method_Expression;
Params : in EL.Beans.Param_Vectors.Vector);
-- Add a dispatcher to process the event queues matching the `Match` string.
-- The dispatcher can create up to `Count` tasks running at the priority
-- `Priority`.
procedure Add_Dispatcher (Manager : in out Event_Manager;
Match : in String;
Count : in Positive;
Priority : in Positive);
type Application_Access is access all AWA.Applications.Application'Class;
-- Initialize the event manager.
procedure Initialize (Manager : in out Event_Manager;
App : in Application_Access);
-- Start the event manager. The dispatchers are configured to dispatch
-- the event queues and tasks are started to process asynchronous events.
procedure Start (Manager : in out Event_Manager);
-- Stop the event manager.
procedure Stop (Manager : in out Event_Manager);
-- Get the application associated with the event manager.
function Get_Application (Manager : in Event_Manager) return Application_Access;
private
use AWA.Events.Queues;
-- An event queue associated with a dispatcher.
type Queue_Dispatcher is record
Queue : AWA.Events.Queues.Queue_Ref;
Dispatcher : AWA.Events.Dispatchers.Dispatcher_Access := null;
Model : AWA.Events.Models.Queue_Ref;
end record;
-- Finalize the queue dispatcher releasing the dispatcher memory.
procedure Finalize (Object : in out Queue_Dispatcher);
-- A list of event queue dispatcher.
package Queue_Dispatcher_Lists is
new Ada.Containers.Doubly_Linked_Lists (Element_Type => Queue_Dispatcher);
-- A list of event queues for a given event.
type Event_Queues is record
Queues : Queue_Dispatcher_Lists.List;
Name : Util.Strings.Name_Access;
Event : AWA.Events.Models.Message_Type_Ref;
end record;
-- Finalize the event queues and the dispatchers.
procedure Finalize (Object : in out Event_Queues);
-- An array of event queue actions.
type Event_Queues_Array is array (Event_Index range <>) of Event_Queues;
type Event_Queues_Array_Access is access all Event_Queues_Array;
type Event_Manager is new Ada.Finalization.Limited_Controlled with record
Actions : Event_Queues_Array_Access := null;
Queues : AWA.Events.Queues.Maps.Map;
Application : Application_Access := null;
Dispatchers : Events.Dispatchers.Dispatcher_Access_Array := (others => null);
end record;
-- Finalize the event manager by releasing the allocated storage.
overriding
procedure Finalize (Manager : in out Event_Manager);
end AWA.Events.Services;
|
10844
|
-----------------------------------------------------------------------
-- awa-events-services -- AWA Event Manager
-- Copyright (C) 2012, 2016, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- 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.Finalization;
with Ada.Containers.Doubly_Linked_Lists;
with Util.Strings;
with EL.Expressions;
with EL.Beans;
with AWA.Events.Models;
with AWA.Events.Queues;
with AWA.Events.Queues.Maps;
with AWA.Events.Dispatchers;
limited with AWA.Applications;
package AWA.Events.Services is
-- ------------------------------
-- Event manager
-- ------------------------------
-- The `Event_Manager` manages the dispatch of event to the right event queue
-- or to the event action. The event manager holds a list of actions that
-- must be triggered for a particular event/queue pair. Such list is created
-- and initialized when the application is configured. It never changes.
type Event_Manager is tagged limited private;
type Event_Manager_Access is access all Event_Manager'Class;
-- Find the event queue identified by the given name.
function Find_Queue (Manager : in Event_Manager;
Name : in String) return AWA.Events.Queues.Queue_Ref;
-- Add the event queue in the registry.
procedure Add_Queue (Manager : in out Event_Manager;
Queue : in AWA.Events.Queues.Queue_Ref);
-- Send the event to the modules that subscribed to it.
-- The event is sent on each event queue. Event queues will dispatch the event
-- by invoking immediately or later on the `Dispatch`> operation.
-- The synchronous or asynchronous reception of the event depends
-- on the event queue.
procedure Send (Manager : in Event_Manager;
Event : in Module_Event'Class);
-- Set the event message type which correspond to the `Kind` event index.
procedure Set_Message_Type (Manager : in Event_Manager;
Event : in out AWA.Events.Models.Message_Ref;
Kind : in Event_Index);
-- Set the event queue associated with the event message.
-- The event queue identified by `Name` is searched to find the
-- `Queue_Ref` instance.
procedure Set_Event_Queue (Manager : in Event_Manager;
Event : in out AWA.Events.Models.Message_Ref;
Name : in String);
-- Dispatch the event identified by `Event` and associated with the event
-- queue `Queue`. The event actions which are associated with the event are
-- executed synchronously.
procedure Dispatch (Manager : in Event_Manager;
Queue : in AWA.Events.Queues.Queue_Ref;
Event : in Module_Event'Class);
-- Add an action invoked when the event identified by `Event` is sent.
-- The event is posted on the queue identified by `Queue`.
-- When the event queue dispatches the event, the Ada bean identified
-- by the method action represented by `Action` is created and initialized
-- by evaluating and setting the parameters defined in `Params`.
-- The action method is then invoked.
procedure Add_Action (Manager : in out Event_Manager;
Event : in String;
Queue : in AWA.Events.Queues.Queue_Ref;
Action : in EL.Expressions.Method_Expression;
Params : in EL.Beans.Param_Vectors.Vector);
-- Add a dispatcher to process the event queues matching the `Match` string.
-- The dispatcher can create up to `Count` tasks running at the priority
-- `Priority`.
procedure Add_Dispatcher (Manager : in out Event_Manager;
Match : in String;
Count : in Positive;
Priority : in Positive);
type Application_Access is access all AWA.Applications.Application'Class;
-- Initialize the event manager.
procedure Initialize (Manager : in out Event_Manager;
App : in Application_Access);
-- Start the event manager. The dispatchers are configured to dispatch
-- the event queues and tasks are started to process asynchronous events.
procedure Start (Manager : in out Event_Manager);
-- Stop the event manager.
procedure Stop (Manager : in out Event_Manager);
-- Get the application associated with the event manager.
function Get_Application (Manager : in Event_Manager) return Application_Access;
private
use AWA.Events.Queues;
-- An event queue associated with a dispatcher.
type Queue_Dispatcher is record
Queue : AWA.Events.Queues.Queue_Ref;
Dispatcher : AWA.Events.Dispatchers.Dispatcher_Access := null;
Model : AWA.Events.Models.Queue_Ref;
end record;
-- Finalize the queue dispatcher releasing the dispatcher memory.
procedure Finalize (Object : in out Queue_Dispatcher);
-- A list of event queue dispatcher.
package Queue_Dispatcher_Lists is
new Ada.Containers.Doubly_Linked_Lists (Element_Type => Queue_Dispatcher);
-- A list of event queues for a given event.
type Event_Queues is record
Queues : Queue_Dispatcher_Lists.List;
Name : Util.Strings.Name_Access;
Event : AWA.Events.Models.Message_Type_Ref;
end record;
-- Finalize the event queues and the dispatchers.
procedure Finalize (Object : in out Event_Queues);
-- An array of event queue actions.
type Event_Queues_Array is array (Event_Index range <>) of Event_Queues;
type Event_Queues_Array_Access is access all Event_Queues_Array;
type Event_Manager is new Ada.Finalization.Limited_Controlled with record
Actions : Event_Queues_Array_Access := null;
Queues : AWA.Events.Queues.Maps.Map;
Application : Application_Access := null;
Dispatchers : Events.Dispatchers.Dispatcher_Access_Array := (others => null);
end record;
-- Finalize the event manager by releasing the allocated storage.
overriding
procedure Finalize (Manager : in out Event_Manager);
end AWA.Events.Services;
| true |
-----------------------------------------------------------------------
-- awa-events-services -- AWA Event Manager
-- Copyright (C) 2012, 2016, 2020 PI:NAME:<NAME>END_PI
-- Written by PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
--
-- 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.Finalization;
with Ada.Containers.Doubly_Linked_Lists;
with Util.Strings;
with EL.Expressions;
with EL.Beans;
with AWA.Events.Models;
with AWA.Events.Queues;
with AWA.Events.Queues.Maps;
with AWA.Events.Dispatchers;
limited with AWA.Applications;
package AWA.Events.Services is
-- ------------------------------
-- Event manager
-- ------------------------------
-- The `Event_Manager` manages the dispatch of event to the right event queue
-- or to the event action. The event manager holds a list of actions that
-- must be triggered for a particular event/queue pair. Such list is created
-- and initialized when the application is configured. It never changes.
type Event_Manager is tagged limited private;
type Event_Manager_Access is access all Event_Manager'Class;
-- Find the event queue identified by the given name.
function Find_Queue (Manager : in Event_Manager;
Name : in String) return AWA.Events.Queues.Queue_Ref;
-- Add the event queue in the registry.
procedure Add_Queue (Manager : in out Event_Manager;
Queue : in AWA.Events.Queues.Queue_Ref);
-- Send the event to the modules that subscribed to it.
-- The event is sent on each event queue. Event queues will dispatch the event
-- by invoking immediately or later on the `Dispatch`> operation.
-- The synchronous or asynchronous reception of the event depends
-- on the event queue.
procedure Send (Manager : in Event_Manager;
Event : in Module_Event'Class);
-- Set the event message type which correspond to the `Kind` event index.
procedure Set_Message_Type (Manager : in Event_Manager;
Event : in out AWA.Events.Models.Message_Ref;
Kind : in Event_Index);
-- Set the event queue associated with the event message.
-- The event queue identified by `Name` is searched to find the
-- `Queue_Ref` instance.
procedure Set_Event_Queue (Manager : in Event_Manager;
Event : in out AWA.Events.Models.Message_Ref;
Name : in String);
-- Dispatch the event identified by `Event` and associated with the event
-- queue `Queue`. The event actions which are associated with the event are
-- executed synchronously.
procedure Dispatch (Manager : in Event_Manager;
Queue : in AWA.Events.Queues.Queue_Ref;
Event : in Module_Event'Class);
-- Add an action invoked when the event identified by `Event` is sent.
-- The event is posted on the queue identified by `Queue`.
-- When the event queue dispatches the event, the Ada bean identified
-- by the method action represented by `Action` is created and initialized
-- by evaluating and setting the parameters defined in `Params`.
-- The action method is then invoked.
procedure Add_Action (Manager : in out Event_Manager;
Event : in String;
Queue : in AWA.Events.Queues.Queue_Ref;
Action : in EL.Expressions.Method_Expression;
Params : in EL.Beans.Param_Vectors.Vector);
-- Add a dispatcher to process the event queues matching the `Match` string.
-- The dispatcher can create up to `Count` tasks running at the priority
-- `Priority`.
procedure Add_Dispatcher (Manager : in out Event_Manager;
Match : in String;
Count : in Positive;
Priority : in Positive);
type Application_Access is access all AWA.Applications.Application'Class;
-- Initialize the event manager.
procedure Initialize (Manager : in out Event_Manager;
App : in Application_Access);
-- Start the event manager. The dispatchers are configured to dispatch
-- the event queues and tasks are started to process asynchronous events.
procedure Start (Manager : in out Event_Manager);
-- Stop the event manager.
procedure Stop (Manager : in out Event_Manager);
-- Get the application associated with the event manager.
function Get_Application (Manager : in Event_Manager) return Application_Access;
private
use AWA.Events.Queues;
-- An event queue associated with a dispatcher.
type Queue_Dispatcher is record
Queue : AWA.Events.Queues.Queue_Ref;
Dispatcher : AWA.Events.Dispatchers.Dispatcher_Access := null;
Model : AWA.Events.Models.Queue_Ref;
end record;
-- Finalize the queue dispatcher releasing the dispatcher memory.
procedure Finalize (Object : in out Queue_Dispatcher);
-- A list of event queue dispatcher.
package Queue_Dispatcher_Lists is
new Ada.Containers.Doubly_Linked_Lists (Element_Type => Queue_Dispatcher);
-- A list of event queues for a given event.
type Event_Queues is record
Queues : Queue_Dispatcher_Lists.List;
Name : Util.Strings.Name_Access;
Event : AWA.Events.Models.Message_Type_Ref;
end record;
-- Finalize the event queues and the dispatchers.
procedure Finalize (Object : in out Event_Queues);
-- An array of event queue actions.
type Event_Queues_Array is array (Event_Index range <>) of Event_Queues;
type Event_Queues_Array_Access is access all Event_Queues_Array;
type Event_Manager is new Ada.Finalization.Limited_Controlled with record
Actions : Event_Queues_Array_Access := null;
Queues : AWA.Events.Queues.Maps.Map;
Application : Application_Access := null;
Dispatchers : Events.Dispatchers.Dispatcher_Access_Array := (others => null);
end record;
-- Finalize the event manager by releasing the allocated storage.
overriding
procedure Finalize (Manager : in out Event_Manager);
end AWA.Events.Services;
|
[
{
"context": "-- Copyright (c) 2019 Maxim Reznik <[email protected]>\n--\n-- SPDX-License-Identifi",
"end": 35,
"score": 0.9998537302017212,
"start": 23,
"tag": "NAME",
"value": "Maxim Reznik"
},
{
"context": "-- Copyright (c) 2019 Maxim Reznik <[email protected]>\n--\n-- SPDX-License-Identifier: MIT\n-- License-",
"end": 55,
"score": 0.9999306201934814,
"start": 37,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
source/nodes/program-nodes-formal_modular_type_definitions.ads
|
optikos/oasis
| 0 |
-- Copyright (c) 2019 Maxim Reznik <[email protected]>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Formal_Modular_Type_Definitions;
with Program.Element_Visitors;
package Program.Nodes.Formal_Modular_Type_Definitions is
pragma Preelaborate;
type Formal_Modular_Type_Definition is
new Program.Nodes.Node
and Program.Elements.Formal_Modular_Type_Definitions
.Formal_Modular_Type_Definition
and Program.Elements.Formal_Modular_Type_Definitions
.Formal_Modular_Type_Definition_Text
with private;
function Create
(Mod_Token : not null Program.Lexical_Elements.Lexical_Element_Access;
Box_Token : not null Program.Lexical_Elements.Lexical_Element_Access)
return Formal_Modular_Type_Definition;
type Implicit_Formal_Modular_Type_Definition is
new Program.Nodes.Node
and Program.Elements.Formal_Modular_Type_Definitions
.Formal_Modular_Type_Definition
with private;
function Create
(Is_Part_Of_Implicit : Boolean := False;
Is_Part_Of_Inherited : Boolean := False;
Is_Part_Of_Instance : Boolean := False)
return Implicit_Formal_Modular_Type_Definition
with Pre =>
Is_Part_Of_Implicit or Is_Part_Of_Inherited or Is_Part_Of_Instance;
private
type Base_Formal_Modular_Type_Definition is
abstract new Program.Nodes.Node
and Program.Elements.Formal_Modular_Type_Definitions
.Formal_Modular_Type_Definition
with null record;
procedure Initialize
(Self : aliased in out Base_Formal_Modular_Type_Definition'Class);
overriding procedure Visit
(Self : not null access Base_Formal_Modular_Type_Definition;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class);
overriding function Is_Formal_Modular_Type_Definition_Element
(Self : Base_Formal_Modular_Type_Definition)
return Boolean;
overriding function Is_Formal_Type_Definition_Element
(Self : Base_Formal_Modular_Type_Definition)
return Boolean;
overriding function Is_Definition_Element
(Self : Base_Formal_Modular_Type_Definition)
return Boolean;
type Formal_Modular_Type_Definition is
new Base_Formal_Modular_Type_Definition
and Program.Elements.Formal_Modular_Type_Definitions
.Formal_Modular_Type_Definition_Text
with record
Mod_Token : not null Program.Lexical_Elements.Lexical_Element_Access;
Box_Token : not null Program.Lexical_Elements.Lexical_Element_Access;
end record;
overriding function To_Formal_Modular_Type_Definition_Text
(Self : aliased in out Formal_Modular_Type_Definition)
return Program.Elements.Formal_Modular_Type_Definitions
.Formal_Modular_Type_Definition_Text_Access;
overriding function Mod_Token
(Self : Formal_Modular_Type_Definition)
return not null Program.Lexical_Elements.Lexical_Element_Access;
overriding function Box_Token
(Self : Formal_Modular_Type_Definition)
return not null Program.Lexical_Elements.Lexical_Element_Access;
type Implicit_Formal_Modular_Type_Definition is
new Base_Formal_Modular_Type_Definition
with record
Is_Part_Of_Implicit : Boolean;
Is_Part_Of_Inherited : Boolean;
Is_Part_Of_Instance : Boolean;
end record;
overriding function To_Formal_Modular_Type_Definition_Text
(Self : aliased in out Implicit_Formal_Modular_Type_Definition)
return Program.Elements.Formal_Modular_Type_Definitions
.Formal_Modular_Type_Definition_Text_Access;
overriding function Is_Part_Of_Implicit
(Self : Implicit_Formal_Modular_Type_Definition)
return Boolean;
overriding function Is_Part_Of_Inherited
(Self : Implicit_Formal_Modular_Type_Definition)
return Boolean;
overriding function Is_Part_Of_Instance
(Self : Implicit_Formal_Modular_Type_Definition)
return Boolean;
end Program.Nodes.Formal_Modular_Type_Definitions;
|
2386
|
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Formal_Modular_Type_Definitions;
with Program.Element_Visitors;
package Program.Nodes.Formal_Modular_Type_Definitions is
pragma Preelaborate;
type Formal_Modular_Type_Definition is
new Program.Nodes.Node
and Program.Elements.Formal_Modular_Type_Definitions
.Formal_Modular_Type_Definition
and Program.Elements.Formal_Modular_Type_Definitions
.Formal_Modular_Type_Definition_Text
with private;
function Create
(Mod_Token : not null Program.Lexical_Elements.Lexical_Element_Access;
Box_Token : not null Program.Lexical_Elements.Lexical_Element_Access)
return Formal_Modular_Type_Definition;
type Implicit_Formal_Modular_Type_Definition is
new Program.Nodes.Node
and Program.Elements.Formal_Modular_Type_Definitions
.Formal_Modular_Type_Definition
with private;
function Create
(Is_Part_Of_Implicit : Boolean := False;
Is_Part_Of_Inherited : Boolean := False;
Is_Part_Of_Instance : Boolean := False)
return Implicit_Formal_Modular_Type_Definition
with Pre =>
Is_Part_Of_Implicit or Is_Part_Of_Inherited or Is_Part_Of_Instance;
private
type Base_Formal_Modular_Type_Definition is
abstract new Program.Nodes.Node
and Program.Elements.Formal_Modular_Type_Definitions
.Formal_Modular_Type_Definition
with null record;
procedure Initialize
(Self : aliased in out Base_Formal_Modular_Type_Definition'Class);
overriding procedure Visit
(Self : not null access Base_Formal_Modular_Type_Definition;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class);
overriding function Is_Formal_Modular_Type_Definition_Element
(Self : Base_Formal_Modular_Type_Definition)
return Boolean;
overriding function Is_Formal_Type_Definition_Element
(Self : Base_Formal_Modular_Type_Definition)
return Boolean;
overriding function Is_Definition_Element
(Self : Base_Formal_Modular_Type_Definition)
return Boolean;
type Formal_Modular_Type_Definition is
new Base_Formal_Modular_Type_Definition
and Program.Elements.Formal_Modular_Type_Definitions
.Formal_Modular_Type_Definition_Text
with record
Mod_Token : not null Program.Lexical_Elements.Lexical_Element_Access;
Box_Token : not null Program.Lexical_Elements.Lexical_Element_Access;
end record;
overriding function To_Formal_Modular_Type_Definition_Text
(Self : aliased in out Formal_Modular_Type_Definition)
return Program.Elements.Formal_Modular_Type_Definitions
.Formal_Modular_Type_Definition_Text_Access;
overriding function Mod_Token
(Self : Formal_Modular_Type_Definition)
return not null Program.Lexical_Elements.Lexical_Element_Access;
overriding function Box_Token
(Self : Formal_Modular_Type_Definition)
return not null Program.Lexical_Elements.Lexical_Element_Access;
type Implicit_Formal_Modular_Type_Definition is
new Base_Formal_Modular_Type_Definition
with record
Is_Part_Of_Implicit : Boolean;
Is_Part_Of_Inherited : Boolean;
Is_Part_Of_Instance : Boolean;
end record;
overriding function To_Formal_Modular_Type_Definition_Text
(Self : aliased in out Implicit_Formal_Modular_Type_Definition)
return Program.Elements.Formal_Modular_Type_Definitions
.Formal_Modular_Type_Definition_Text_Access;
overriding function Is_Part_Of_Implicit
(Self : Implicit_Formal_Modular_Type_Definition)
return Boolean;
overriding function Is_Part_Of_Inherited
(Self : Implicit_Formal_Modular_Type_Definition)
return Boolean;
overriding function Is_Part_Of_Instance
(Self : Implicit_Formal_Modular_Type_Definition)
return Boolean;
end Program.Nodes.Formal_Modular_Type_Definitions;
| true |
-- Copyright (c) 2019 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Formal_Modular_Type_Definitions;
with Program.Element_Visitors;
package Program.Nodes.Formal_Modular_Type_Definitions is
pragma Preelaborate;
type Formal_Modular_Type_Definition is
new Program.Nodes.Node
and Program.Elements.Formal_Modular_Type_Definitions
.Formal_Modular_Type_Definition
and Program.Elements.Formal_Modular_Type_Definitions
.Formal_Modular_Type_Definition_Text
with private;
function Create
(Mod_Token : not null Program.Lexical_Elements.Lexical_Element_Access;
Box_Token : not null Program.Lexical_Elements.Lexical_Element_Access)
return Formal_Modular_Type_Definition;
type Implicit_Formal_Modular_Type_Definition is
new Program.Nodes.Node
and Program.Elements.Formal_Modular_Type_Definitions
.Formal_Modular_Type_Definition
with private;
function Create
(Is_Part_Of_Implicit : Boolean := False;
Is_Part_Of_Inherited : Boolean := False;
Is_Part_Of_Instance : Boolean := False)
return Implicit_Formal_Modular_Type_Definition
with Pre =>
Is_Part_Of_Implicit or Is_Part_Of_Inherited or Is_Part_Of_Instance;
private
type Base_Formal_Modular_Type_Definition is
abstract new Program.Nodes.Node
and Program.Elements.Formal_Modular_Type_Definitions
.Formal_Modular_Type_Definition
with null record;
procedure Initialize
(Self : aliased in out Base_Formal_Modular_Type_Definition'Class);
overriding procedure Visit
(Self : not null access Base_Formal_Modular_Type_Definition;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class);
overriding function Is_Formal_Modular_Type_Definition_Element
(Self : Base_Formal_Modular_Type_Definition)
return Boolean;
overriding function Is_Formal_Type_Definition_Element
(Self : Base_Formal_Modular_Type_Definition)
return Boolean;
overriding function Is_Definition_Element
(Self : Base_Formal_Modular_Type_Definition)
return Boolean;
type Formal_Modular_Type_Definition is
new Base_Formal_Modular_Type_Definition
and Program.Elements.Formal_Modular_Type_Definitions
.Formal_Modular_Type_Definition_Text
with record
Mod_Token : not null Program.Lexical_Elements.Lexical_Element_Access;
Box_Token : not null Program.Lexical_Elements.Lexical_Element_Access;
end record;
overriding function To_Formal_Modular_Type_Definition_Text
(Self : aliased in out Formal_Modular_Type_Definition)
return Program.Elements.Formal_Modular_Type_Definitions
.Formal_Modular_Type_Definition_Text_Access;
overriding function Mod_Token
(Self : Formal_Modular_Type_Definition)
return not null Program.Lexical_Elements.Lexical_Element_Access;
overriding function Box_Token
(Self : Formal_Modular_Type_Definition)
return not null Program.Lexical_Elements.Lexical_Element_Access;
type Implicit_Formal_Modular_Type_Definition is
new Base_Formal_Modular_Type_Definition
with record
Is_Part_Of_Implicit : Boolean;
Is_Part_Of_Inherited : Boolean;
Is_Part_Of_Instance : Boolean;
end record;
overriding function To_Formal_Modular_Type_Definition_Text
(Self : aliased in out Implicit_Formal_Modular_Type_Definition)
return Program.Elements.Formal_Modular_Type_Definitions
.Formal_Modular_Type_Definition_Text_Access;
overriding function Is_Part_Of_Implicit
(Self : Implicit_Formal_Modular_Type_Definition)
return Boolean;
overriding function Is_Part_Of_Inherited
(Self : Implicit_Formal_Modular_Type_Definition)
return Boolean;
overriding function Is_Part_Of_Instance
(Self : Implicit_Formal_Modular_Type_Definition)
return Boolean;
end Program.Nodes.Formal_Modular_Type_Definitions;
|
[
{
"context": "-- Copyright (c) 2015-2017 Maxim Reznik <[email protected]>\n--\n-- SPDX-License-Identifi",
"end": 40,
"score": 0.9998489618301392,
"start": 28,
"tag": "NAME",
"value": "Maxim Reznik"
},
{
"context": "-- Copyright (c) 2015-2017 Maxim Reznik <[email protected]>\n--\n-- SPDX-License-Identifier: MIT\n-- License-",
"end": 60,
"score": 0.9999305009841919,
"start": 42,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
testsuite/tests-parser_data-xml_reader.adb
|
reznikmm/increment
| 5 |
-- Copyright (c) 2015-2017 Maxim Reznik <[email protected]>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Tests.Parser_Data.XML_Reader is
function "+" (Text : Wide_Wide_String)
return League.Strings.Universal_String
renames League.Strings.To_Universal_String;
Nil_Location : constant XML.Templates.Streams.Event_Location :=
(League.Strings.Empty_Universal_String, 0, 0);
----------------
-- Characters --
----------------
overriding procedure Characters
(Self : in out Reader;
Text : League.Strings.Universal_String;
Success : in out Boolean)
is
pragma Unreferenced (Success);
begin
if Self.Collect_Text then
Self.Text.Append (Text);
end if;
end Characters;
-----------------
-- End_Element --
-----------------
overriding procedure End_Element
(Self : in out Reader;
Namespace_URI : League.Strings.Universal_String;
Local_Name : League.Strings.Universal_String;
Qualified_Name : League.Strings.Universal_String;
Success : in out Boolean)
is
pragma Unreferenced (Success);
use type League.Strings.Universal_String;
use type Incr.Nodes.Node_Kind;
begin
if Local_Name = +"names" then
Self.Data.Names := Self.List;
Self.List.Clear;
elsif Local_Name = +"counts" then
declare
List : constant League.String_Vectors.Universal_String_Vector :=
Self.Text.Split (' ', League.Strings.Skip_Empty);
begin
Self.Data.Parts := new P.Parts_Count_Table
(1 .. P.Production_Index (List.Length));
for J in Self.Data.Parts'Range loop
Self.Data.Parts (J) := Natural'Wide_Wide_Value
(List (Positive (J)).To_Wide_Wide_String);
end loop;
Self.Collect_Text := False;
Self.Text.Clear;
end;
elsif Local_Name = +"nt" then
declare
List : constant League.String_Vectors.Universal_String_Vector :=
Self.Text.Split (' ', League.Strings.Skip_Empty);
begin
Self.Data.NT := new Node_Kind_Array (Self.Data.Parts'Range);
for J in 1 .. List.Length loop
declare
Pair : constant League.String_Vectors.Universal_String_Vector
:= List (J).Split ('-');
begin
for Prod in P.Production_Index'Wide_Wide_Value
(Pair (1).To_Wide_Wide_String)
.. P.Production_Index'Wide_Wide_Value
(Pair (2).To_Wide_Wide_String)
loop
Self.Data.NT (Prod) :=
Self.Data.Max_Term + Incr.Nodes.Node_Kind (J);
end loop;
end;
end loop;
Self.Collect_Text := False;
Self.Text.Clear;
end;
elsif Local_Name = +"states" then
declare
Last : Positive := 1;
List : constant League.String_Vectors.Universal_String_Vector :=
Self.Text.Split (' ', League.Strings.Skip_Empty);
begin
for S in Self.Data.States'Range (1) loop
for NT in Self.Data.States'Range (2) loop
Self.Data.States (S, NT) := P.Parser_State'Wide_Wide_Value
(List (Last).To_Wide_Wide_String);
Last := Last + 1;
end loop;
end loop;
Self.Collect_Text := False;
Self.Text.Clear;
end;
elsif Local_Name = +"actions" then
declare
Last : Positive := 1;
List : constant League.String_Vectors.Universal_String_Vector :=
Self.Text.Split (' ', League.Strings.Skip_Empty);
begin
for S in Self.Data.Actions'Range (1) loop
for NT in Self.Data.Actions'Range (2) loop
declare
Item : constant Wide_Wide_String :=
List (Last).To_Wide_Wide_String;
begin
if Item = "F" then
Self.Data.Actions (S, NT) := (Kind => P.Finish);
elsif Item = "E" then
Self.Data.Actions (S, NT) := (Kind => P.Error);
elsif Item (1) = 'S' then
Self.Data.Actions (S, NT) :=
(P.Shift,
P.Parser_State'Wide_Wide_Value
(Item (2 .. Item'Last)));
else
Self.Data.Actions (S, NT) :=
(P.Reduce,
P.Production_Index'Wide_Wide_Value (Item));
end if;
Last := Last + 1;
end;
end loop;
end loop;
Self.Collect_Text := False;
Self.Text.Clear;
end;
elsif Local_Name = +"set-eos-text" then
Self.Commands.Append ((Commands.Set_EOS_Text, Self.Text));
Self.Collect_Text := False;
Self.Text.Clear;
elsif Local_Name = +"set-token-text" then
Self.Commands.Append
((Commands.Set_Token_Text, Self.Text, Self.Index));
Self.Collect_Text := False;
Self.Text.Clear;
elsif Local_Name = +"dump-tree" then
Self.Commands.Append ((Commands.Dump_Tree, Self.Vector));
Self.Collect_XML := False;
Self.Vector.Clear;
Self.Collect_Text := False;
Self.Text.Clear;
elsif Self.Collect_XML then
if not Self.Text.Is_Empty then
if Local_Name.Starts_With ("token") then
Self.Vector.Append
((Kind => XML.Templates.Streams.Text,
Text => Self.Text,
Location => Nil_Location));
end if;
Self.Text.Clear;
end if;
Self.Vector.Append
((Kind => XML.Templates.Streams.End_Element,
Namespace_URI => Namespace_URI,
Local_Name => Local_Name,
Qualified_Name => Qualified_Name,
Location => Nil_Location));
return;
end if;
end End_Element;
------------------
-- Error_String --
------------------
overriding function Error_String
(Self : Reader) return League.Strings.Universal_String
is
pragma Unreferenced (Self);
begin
return League.Strings.Empty_Universal_String;
end Error_String;
------------------
-- Get_Commands --
------------------
function Get_Commands
(Self : Reader) return Tests.Commands.Command_Vectors.Vector is
begin
return Self.Commands;
end Get_Commands;
-------------------
-- Start_Element --
-------------------
overriding procedure Start_Element
(Self : in out Reader;
Namespace_URI : League.Strings.Universal_String;
Local_Name : League.Strings.Universal_String;
Qualified_Name : League.Strings.Universal_String;
Attributes : XML.SAX.Attributes.SAX_Attributes;
Success : in out Boolean)
is
pragma Unreferenced (Success);
use type League.Strings.Universal_String;
use type Incr.Nodes.Node_Kind;
function "-" (Name : Wide_Wide_String)
return League.Strings.Universal_String;
function "-" (Name : Wide_Wide_String) return Incr.Nodes.Node_Kind;
function "-" (Name : Wide_Wide_String) return P.Parser_State;
function "-" (Name : Wide_Wide_String) return Integer;
---------
-- "-" --
---------
function "-" (Name : Wide_Wide_String)
return League.Strings.Universal_String
is
Local : constant League.Strings.Universal_String := +Name;
begin
for J in 1 .. Attributes.Length loop
if Attributes.Local_Name (J) = Local then
return Attributes.Value (J);
end if;
end loop;
raise Constraint_Error;
end "-";
function "-" (Name : Wide_Wide_String) return Incr.Nodes.Node_Kind is
begin
return Incr.Nodes.Node_Kind'Wide_Wide_Value
("-" (Name).To_Wide_Wide_String);
end "-";
function "-" (Name : Wide_Wide_String) return P.Parser_State is
begin
return P.Parser_State'Wide_Wide_Value
("-" (Name).To_Wide_Wide_String);
end "-";
function "-" (Name : Wide_Wide_String) return Integer is
begin
return Integer'Wide_Wide_Value ("-" (Name).To_Wide_Wide_String);
end "-";
begin
if Self.Collect_XML then
Self.Vector.Append
((Kind => XML.Templates.Streams.Start_Element,
Namespace_URI => Namespace_URI,
Local_Name => Local_Name,
Qualified_Name => Qualified_Name,
Attributes => Attributes,
Location => Nil_Location));
Self.Text.Clear;
return;
end if;
if Local_Name = +"name" then
Self.List.Append (-"name");
elsif Local_Name = +"names" then
Self.Data.Max_Term := -"term";
Self.Data.Max_NT := Self.Data.Max_Term + (-"nt");
Self.List.Clear;
elsif Local_Name = +"counts" then
Self.Collect_Text := True;
Self.Text.Clear;
elsif Local_Name = +"nt" then
Self.Collect_Text := True;
Self.Text.Clear;
elsif Local_Name = +"states" then
Self.Data.States := new P.State_Table
(1 .. -"count", Self.Data.Max_Term + 1 .. Self.Data.Max_NT);
Self.Collect_Text := True;
Self.Text.Clear;
elsif Local_Name = +"actions" then
Self.Data.Actions := new P.Action_Table
(Self.Data.States'Range (1), 0 .. Self.Data.Max_NT);
Self.Collect_Text := True;
Self.Text.Clear;
elsif Local_Name = +"commit" then
Self.Commands.Append ((Kind => Commands.Commit));
elsif Local_Name = +"set-eos-text" then
Self.Collect_Text := True;
Self.Text.Clear;
elsif Local_Name = +"set-token-text" then
Self.Index := -"index";
Self.Collect_Text := True;
Self.Text.Clear;
elsif Local_Name = +"dump-tree" then
Self.Collect_XML := True;
Self.Collect_Text := True;
Self.Vector.Clear;
elsif Local_Name = +"run" then
Self.Commands.Append ((Kind => Commands.Run));
end if;
end Start_Element;
end Tests.Parser_Data.XML_Reader;
|
5562
|
-- Copyright (c) 2015-2017 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Tests.Parser_Data.XML_Reader is
function "+" (Text : Wide_Wide_String)
return League.Strings.Universal_String
renames League.Strings.To_Universal_String;
Nil_Location : constant XML.Templates.Streams.Event_Location :=
(League.Strings.Empty_Universal_String, 0, 0);
----------------
-- Characters --
----------------
overriding procedure Characters
(Self : in out Reader;
Text : League.Strings.Universal_String;
Success : in out Boolean)
is
pragma Unreferenced (Success);
begin
if Self.Collect_Text then
Self.Text.Append (Text);
end if;
end Characters;
-----------------
-- End_Element --
-----------------
overriding procedure End_Element
(Self : in out Reader;
Namespace_URI : League.Strings.Universal_String;
Local_Name : League.Strings.Universal_String;
Qualified_Name : League.Strings.Universal_String;
Success : in out Boolean)
is
pragma Unreferenced (Success);
use type League.Strings.Universal_String;
use type Incr.Nodes.Node_Kind;
begin
if Local_Name = +"names" then
Self.Data.Names := Self.List;
Self.List.Clear;
elsif Local_Name = +"counts" then
declare
List : constant League.String_Vectors.Universal_String_Vector :=
Self.Text.Split (' ', League.Strings.Skip_Empty);
begin
Self.Data.Parts := new P.Parts_Count_Table
(1 .. P.Production_Index (List.Length));
for J in Self.Data.Parts'Range loop
Self.Data.Parts (J) := Natural'Wide_Wide_Value
(List (Positive (J)).To_Wide_Wide_String);
end loop;
Self.Collect_Text := False;
Self.Text.Clear;
end;
elsif Local_Name = +"nt" then
declare
List : constant League.String_Vectors.Universal_String_Vector :=
Self.Text.Split (' ', League.Strings.Skip_Empty);
begin
Self.Data.NT := new Node_Kind_Array (Self.Data.Parts'Range);
for J in 1 .. List.Length loop
declare
Pair : constant League.String_Vectors.Universal_String_Vector
:= List (J).Split ('-');
begin
for Prod in P.Production_Index'Wide_Wide_Value
(Pair (1).To_Wide_Wide_String)
.. P.Production_Index'Wide_Wide_Value
(Pair (2).To_Wide_Wide_String)
loop
Self.Data.NT (Prod) :=
Self.Data.Max_Term + Incr.Nodes.Node_Kind (J);
end loop;
end;
end loop;
Self.Collect_Text := False;
Self.Text.Clear;
end;
elsif Local_Name = +"states" then
declare
Last : Positive := 1;
List : constant League.String_Vectors.Universal_String_Vector :=
Self.Text.Split (' ', League.Strings.Skip_Empty);
begin
for S in Self.Data.States'Range (1) loop
for NT in Self.Data.States'Range (2) loop
Self.Data.States (S, NT) := P.Parser_State'Wide_Wide_Value
(List (Last).To_Wide_Wide_String);
Last := Last + 1;
end loop;
end loop;
Self.Collect_Text := False;
Self.Text.Clear;
end;
elsif Local_Name = +"actions" then
declare
Last : Positive := 1;
List : constant League.String_Vectors.Universal_String_Vector :=
Self.Text.Split (' ', League.Strings.Skip_Empty);
begin
for S in Self.Data.Actions'Range (1) loop
for NT in Self.Data.Actions'Range (2) loop
declare
Item : constant Wide_Wide_String :=
List (Last).To_Wide_Wide_String;
begin
if Item = "F" then
Self.Data.Actions (S, NT) := (Kind => P.Finish);
elsif Item = "E" then
Self.Data.Actions (S, NT) := (Kind => P.Error);
elsif Item (1) = 'S' then
Self.Data.Actions (S, NT) :=
(P.Shift,
P.Parser_State'Wide_Wide_Value
(Item (2 .. Item'Last)));
else
Self.Data.Actions (S, NT) :=
(P.Reduce,
P.Production_Index'Wide_Wide_Value (Item));
end if;
Last := Last + 1;
end;
end loop;
end loop;
Self.Collect_Text := False;
Self.Text.Clear;
end;
elsif Local_Name = +"set-eos-text" then
Self.Commands.Append ((Commands.Set_EOS_Text, Self.Text));
Self.Collect_Text := False;
Self.Text.Clear;
elsif Local_Name = +"set-token-text" then
Self.Commands.Append
((Commands.Set_Token_Text, Self.Text, Self.Index));
Self.Collect_Text := False;
Self.Text.Clear;
elsif Local_Name = +"dump-tree" then
Self.Commands.Append ((Commands.Dump_Tree, Self.Vector));
Self.Collect_XML := False;
Self.Vector.Clear;
Self.Collect_Text := False;
Self.Text.Clear;
elsif Self.Collect_XML then
if not Self.Text.Is_Empty then
if Local_Name.Starts_With ("token") then
Self.Vector.Append
((Kind => XML.Templates.Streams.Text,
Text => Self.Text,
Location => Nil_Location));
end if;
Self.Text.Clear;
end if;
Self.Vector.Append
((Kind => XML.Templates.Streams.End_Element,
Namespace_URI => Namespace_URI,
Local_Name => Local_Name,
Qualified_Name => Qualified_Name,
Location => Nil_Location));
return;
end if;
end End_Element;
------------------
-- Error_String --
------------------
overriding function Error_String
(Self : Reader) return League.Strings.Universal_String
is
pragma Unreferenced (Self);
begin
return League.Strings.Empty_Universal_String;
end Error_String;
------------------
-- Get_Commands --
------------------
function Get_Commands
(Self : Reader) return Tests.Commands.Command_Vectors.Vector is
begin
return Self.Commands;
end Get_Commands;
-------------------
-- Start_Element --
-------------------
overriding procedure Start_Element
(Self : in out Reader;
Namespace_URI : League.Strings.Universal_String;
Local_Name : League.Strings.Universal_String;
Qualified_Name : League.Strings.Universal_String;
Attributes : XML.SAX.Attributes.SAX_Attributes;
Success : in out Boolean)
is
pragma Unreferenced (Success);
use type League.Strings.Universal_String;
use type Incr.Nodes.Node_Kind;
function "-" (Name : Wide_Wide_String)
return League.Strings.Universal_String;
function "-" (Name : Wide_Wide_String) return Incr.Nodes.Node_Kind;
function "-" (Name : Wide_Wide_String) return P.Parser_State;
function "-" (Name : Wide_Wide_String) return Integer;
---------
-- "-" --
---------
function "-" (Name : Wide_Wide_String)
return League.Strings.Universal_String
is
Local : constant League.Strings.Universal_String := +Name;
begin
for J in 1 .. Attributes.Length loop
if Attributes.Local_Name (J) = Local then
return Attributes.Value (J);
end if;
end loop;
raise Constraint_Error;
end "-";
function "-" (Name : Wide_Wide_String) return Incr.Nodes.Node_Kind is
begin
return Incr.Nodes.Node_Kind'Wide_Wide_Value
("-" (Name).To_Wide_Wide_String);
end "-";
function "-" (Name : Wide_Wide_String) return P.Parser_State is
begin
return P.Parser_State'Wide_Wide_Value
("-" (Name).To_Wide_Wide_String);
end "-";
function "-" (Name : Wide_Wide_String) return Integer is
begin
return Integer'Wide_Wide_Value ("-" (Name).To_Wide_Wide_String);
end "-";
begin
if Self.Collect_XML then
Self.Vector.Append
((Kind => XML.Templates.Streams.Start_Element,
Namespace_URI => Namespace_URI,
Local_Name => Local_Name,
Qualified_Name => Qualified_Name,
Attributes => Attributes,
Location => Nil_Location));
Self.Text.Clear;
return;
end if;
if Local_Name = +"name" then
Self.List.Append (-"name");
elsif Local_Name = +"names" then
Self.Data.Max_Term := -"term";
Self.Data.Max_NT := Self.Data.Max_Term + (-"nt");
Self.List.Clear;
elsif Local_Name = +"counts" then
Self.Collect_Text := True;
Self.Text.Clear;
elsif Local_Name = +"nt" then
Self.Collect_Text := True;
Self.Text.Clear;
elsif Local_Name = +"states" then
Self.Data.States := new P.State_Table
(1 .. -"count", Self.Data.Max_Term + 1 .. Self.Data.Max_NT);
Self.Collect_Text := True;
Self.Text.Clear;
elsif Local_Name = +"actions" then
Self.Data.Actions := new P.Action_Table
(Self.Data.States'Range (1), 0 .. Self.Data.Max_NT);
Self.Collect_Text := True;
Self.Text.Clear;
elsif Local_Name = +"commit" then
Self.Commands.Append ((Kind => Commands.Commit));
elsif Local_Name = +"set-eos-text" then
Self.Collect_Text := True;
Self.Text.Clear;
elsif Local_Name = +"set-token-text" then
Self.Index := -"index";
Self.Collect_Text := True;
Self.Text.Clear;
elsif Local_Name = +"dump-tree" then
Self.Collect_XML := True;
Self.Collect_Text := True;
Self.Vector.Clear;
elsif Local_Name = +"run" then
Self.Commands.Append ((Kind => Commands.Run));
end if;
end Start_Element;
end Tests.Parser_Data.XML_Reader;
| true |
-- Copyright (c) 2015-2017 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Tests.Parser_Data.XML_Reader is
function "+" (Text : Wide_Wide_String)
return League.Strings.Universal_String
renames League.Strings.To_Universal_String;
Nil_Location : constant XML.Templates.Streams.Event_Location :=
(League.Strings.Empty_Universal_String, 0, 0);
----------------
-- Characters --
----------------
overriding procedure Characters
(Self : in out Reader;
Text : League.Strings.Universal_String;
Success : in out Boolean)
is
pragma Unreferenced (Success);
begin
if Self.Collect_Text then
Self.Text.Append (Text);
end if;
end Characters;
-----------------
-- End_Element --
-----------------
overriding procedure End_Element
(Self : in out Reader;
Namespace_URI : League.Strings.Universal_String;
Local_Name : League.Strings.Universal_String;
Qualified_Name : League.Strings.Universal_String;
Success : in out Boolean)
is
pragma Unreferenced (Success);
use type League.Strings.Universal_String;
use type Incr.Nodes.Node_Kind;
begin
if Local_Name = +"names" then
Self.Data.Names := Self.List;
Self.List.Clear;
elsif Local_Name = +"counts" then
declare
List : constant League.String_Vectors.Universal_String_Vector :=
Self.Text.Split (' ', League.Strings.Skip_Empty);
begin
Self.Data.Parts := new P.Parts_Count_Table
(1 .. P.Production_Index (List.Length));
for J in Self.Data.Parts'Range loop
Self.Data.Parts (J) := Natural'Wide_Wide_Value
(List (Positive (J)).To_Wide_Wide_String);
end loop;
Self.Collect_Text := False;
Self.Text.Clear;
end;
elsif Local_Name = +"nt" then
declare
List : constant League.String_Vectors.Universal_String_Vector :=
Self.Text.Split (' ', League.Strings.Skip_Empty);
begin
Self.Data.NT := new Node_Kind_Array (Self.Data.Parts'Range);
for J in 1 .. List.Length loop
declare
Pair : constant League.String_Vectors.Universal_String_Vector
:= List (J).Split ('-');
begin
for Prod in P.Production_Index'Wide_Wide_Value
(Pair (1).To_Wide_Wide_String)
.. P.Production_Index'Wide_Wide_Value
(Pair (2).To_Wide_Wide_String)
loop
Self.Data.NT (Prod) :=
Self.Data.Max_Term + Incr.Nodes.Node_Kind (J);
end loop;
end;
end loop;
Self.Collect_Text := False;
Self.Text.Clear;
end;
elsif Local_Name = +"states" then
declare
Last : Positive := 1;
List : constant League.String_Vectors.Universal_String_Vector :=
Self.Text.Split (' ', League.Strings.Skip_Empty);
begin
for S in Self.Data.States'Range (1) loop
for NT in Self.Data.States'Range (2) loop
Self.Data.States (S, NT) := P.Parser_State'Wide_Wide_Value
(List (Last).To_Wide_Wide_String);
Last := Last + 1;
end loop;
end loop;
Self.Collect_Text := False;
Self.Text.Clear;
end;
elsif Local_Name = +"actions" then
declare
Last : Positive := 1;
List : constant League.String_Vectors.Universal_String_Vector :=
Self.Text.Split (' ', League.Strings.Skip_Empty);
begin
for S in Self.Data.Actions'Range (1) loop
for NT in Self.Data.Actions'Range (2) loop
declare
Item : constant Wide_Wide_String :=
List (Last).To_Wide_Wide_String;
begin
if Item = "F" then
Self.Data.Actions (S, NT) := (Kind => P.Finish);
elsif Item = "E" then
Self.Data.Actions (S, NT) := (Kind => P.Error);
elsif Item (1) = 'S' then
Self.Data.Actions (S, NT) :=
(P.Shift,
P.Parser_State'Wide_Wide_Value
(Item (2 .. Item'Last)));
else
Self.Data.Actions (S, NT) :=
(P.Reduce,
P.Production_Index'Wide_Wide_Value (Item));
end if;
Last := Last + 1;
end;
end loop;
end loop;
Self.Collect_Text := False;
Self.Text.Clear;
end;
elsif Local_Name = +"set-eos-text" then
Self.Commands.Append ((Commands.Set_EOS_Text, Self.Text));
Self.Collect_Text := False;
Self.Text.Clear;
elsif Local_Name = +"set-token-text" then
Self.Commands.Append
((Commands.Set_Token_Text, Self.Text, Self.Index));
Self.Collect_Text := False;
Self.Text.Clear;
elsif Local_Name = +"dump-tree" then
Self.Commands.Append ((Commands.Dump_Tree, Self.Vector));
Self.Collect_XML := False;
Self.Vector.Clear;
Self.Collect_Text := False;
Self.Text.Clear;
elsif Self.Collect_XML then
if not Self.Text.Is_Empty then
if Local_Name.Starts_With ("token") then
Self.Vector.Append
((Kind => XML.Templates.Streams.Text,
Text => Self.Text,
Location => Nil_Location));
end if;
Self.Text.Clear;
end if;
Self.Vector.Append
((Kind => XML.Templates.Streams.End_Element,
Namespace_URI => Namespace_URI,
Local_Name => Local_Name,
Qualified_Name => Qualified_Name,
Location => Nil_Location));
return;
end if;
end End_Element;
------------------
-- Error_String --
------------------
overriding function Error_String
(Self : Reader) return League.Strings.Universal_String
is
pragma Unreferenced (Self);
begin
return League.Strings.Empty_Universal_String;
end Error_String;
------------------
-- Get_Commands --
------------------
function Get_Commands
(Self : Reader) return Tests.Commands.Command_Vectors.Vector is
begin
return Self.Commands;
end Get_Commands;
-------------------
-- Start_Element --
-------------------
overriding procedure Start_Element
(Self : in out Reader;
Namespace_URI : League.Strings.Universal_String;
Local_Name : League.Strings.Universal_String;
Qualified_Name : League.Strings.Universal_String;
Attributes : XML.SAX.Attributes.SAX_Attributes;
Success : in out Boolean)
is
pragma Unreferenced (Success);
use type League.Strings.Universal_String;
use type Incr.Nodes.Node_Kind;
function "-" (Name : Wide_Wide_String)
return League.Strings.Universal_String;
function "-" (Name : Wide_Wide_String) return Incr.Nodes.Node_Kind;
function "-" (Name : Wide_Wide_String) return P.Parser_State;
function "-" (Name : Wide_Wide_String) return Integer;
---------
-- "-" --
---------
function "-" (Name : Wide_Wide_String)
return League.Strings.Universal_String
is
Local : constant League.Strings.Universal_String := +Name;
begin
for J in 1 .. Attributes.Length loop
if Attributes.Local_Name (J) = Local then
return Attributes.Value (J);
end if;
end loop;
raise Constraint_Error;
end "-";
function "-" (Name : Wide_Wide_String) return Incr.Nodes.Node_Kind is
begin
return Incr.Nodes.Node_Kind'Wide_Wide_Value
("-" (Name).To_Wide_Wide_String);
end "-";
function "-" (Name : Wide_Wide_String) return P.Parser_State is
begin
return P.Parser_State'Wide_Wide_Value
("-" (Name).To_Wide_Wide_String);
end "-";
function "-" (Name : Wide_Wide_String) return Integer is
begin
return Integer'Wide_Wide_Value ("-" (Name).To_Wide_Wide_String);
end "-";
begin
if Self.Collect_XML then
Self.Vector.Append
((Kind => XML.Templates.Streams.Start_Element,
Namespace_URI => Namespace_URI,
Local_Name => Local_Name,
Qualified_Name => Qualified_Name,
Attributes => Attributes,
Location => Nil_Location));
Self.Text.Clear;
return;
end if;
if Local_Name = +"name" then
Self.List.Append (-"name");
elsif Local_Name = +"names" then
Self.Data.Max_Term := -"term";
Self.Data.Max_NT := Self.Data.Max_Term + (-"nt");
Self.List.Clear;
elsif Local_Name = +"counts" then
Self.Collect_Text := True;
Self.Text.Clear;
elsif Local_Name = +"nt" then
Self.Collect_Text := True;
Self.Text.Clear;
elsif Local_Name = +"states" then
Self.Data.States := new P.State_Table
(1 .. -"count", Self.Data.Max_Term + 1 .. Self.Data.Max_NT);
Self.Collect_Text := True;
Self.Text.Clear;
elsif Local_Name = +"actions" then
Self.Data.Actions := new P.Action_Table
(Self.Data.States'Range (1), 0 .. Self.Data.Max_NT);
Self.Collect_Text := True;
Self.Text.Clear;
elsif Local_Name = +"commit" then
Self.Commands.Append ((Kind => Commands.Commit));
elsif Local_Name = +"set-eos-text" then
Self.Collect_Text := True;
Self.Text.Clear;
elsif Local_Name = +"set-token-text" then
Self.Index := -"index";
Self.Collect_Text := True;
Self.Text.Clear;
elsif Local_Name = +"dump-tree" then
Self.Collect_XML := True;
Self.Collect_Text := True;
Self.Vector.Clear;
elsif Local_Name = +"run" then
Self.Commands.Append ((Kind => Commands.Run));
end if;
end Start_Element;
end Tests.Parser_Data.XML_Reader;
|
[
{
"context": "---------------------\n-- G E L A A S I S --\n-",
"end": 109,
"score": 0.7845343947410583,
"start": 108,
"tag": "NAME",
"value": "G"
},
{
"context": "---------------------\n-- Copyright (c) 2006-2013, Maxim Reznik\n-- All rights reserved.\n--\n-- Redistribution an",
"end": 71760,
"score": 0.9998530149459839,
"start": 71748,
"tag": "NAME",
"value": "Maxim Reznik"
},
{
"context": "the distribution.\n-- * Neither the name of the Maxim Reznik, IE nor the names of its\n-- contributors ma",
"end": 72361,
"score": 0.9993810653686523,
"start": 72349,
"tag": "NAME",
"value": "Maxim Reznik"
}
] |
tools/uaflex/symbols-unicode.adb
|
faelys/gela-asis
| 4 |
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- - - - - - - - - - - - - - - - --
-- Read copyright and license at the end of this file --
------------------------------------------------------------------------------
-- $Revision: 209 $ $Date: 2013-11-30 21:03:24 +0200 (Сб., 30 нояб. 2013) $
-- This file is generated by read_unicode.adb. DON'T EDIT!
package body Symbols.Unicode is
type General_Category_Alias is
(Cc,
Cf,
Cn,
Co,
Cs,
Ll,
Lm,
Lo,
Lt,
Lu,
Mc,
Me,
Mn,
Nd,
Nl,
No,
Pc,
Pd,
Pe,
Pf,
Pi,
Po,
Ps,
Sc,
Sk,
Sm,
So,
Zl,
Zp,
Zs);
Cc_Node : aliased Set_Node :=
(2, 2, (
( 16#0#, 16#1F#),
( 16#7F#, 16#9F#)));
Cf_Node : aliased Set_Node :=
(14, 2, (
( 16#AD#, 16#AD#),
( 16#600#, 16#603#),
( 16#6DD#, 16#6DD#),
( 16#70F#, 16#70F#),
( 16#17B4#, 16#17B5#),
( 16#200B#, 16#200F#),
( 16#202A#, 16#202E#),
( 16#2060#, 16#2063#),
( 16#206A#, 16#206F#),
( 16#FEFF#, 16#FEFF#),
( 16#FFF9#, 16#FFFB#),
( 16#1D173#, 16#1D17A#),
( 16#E0001#, 16#E0001#),
( 16#E0020#, 16#E007F#)));
Co_Node : aliased Set_Node :=
(3, 2, (
( 16#E000#, 16#F8FF#),
( 16#F0000#, 16#FFFFD#),
(16#100000#, 16#10FFFD#)));
Cs_Node : aliased Set_Node :=
(1, 2, (
1 => ( 16#D800#, 16#DFFF#)));
Ll_Node : aliased Set_Node :=
(502, 2, (
( 16#61#, 16#7A#),
( 16#AA#, 16#AA#),
( 16#B5#, 16#B5#),
( 16#BA#, 16#BA#),
( 16#DF#, 16#F6#),
( 16#F8#, 16#FF#),
( 16#101#, 16#101#),
( 16#103#, 16#103#),
( 16#105#, 16#105#),
( 16#107#, 16#107#),
( 16#109#, 16#109#),
( 16#10B#, 16#10B#),
( 16#10D#, 16#10D#),
( 16#10F#, 16#10F#),
( 16#111#, 16#111#),
( 16#113#, 16#113#),
( 16#115#, 16#115#),
( 16#117#, 16#117#),
( 16#119#, 16#119#),
( 16#11B#, 16#11B#),
( 16#11D#, 16#11D#),
( 16#11F#, 16#11F#),
( 16#121#, 16#121#),
( 16#123#, 16#123#),
( 16#125#, 16#125#),
( 16#127#, 16#127#),
( 16#129#, 16#129#),
( 16#12B#, 16#12B#),
( 16#12D#, 16#12D#),
( 16#12F#, 16#12F#),
( 16#131#, 16#131#),
( 16#133#, 16#133#),
( 16#135#, 16#135#),
( 16#137#, 16#138#),
( 16#13A#, 16#13A#),
( 16#13C#, 16#13C#),
( 16#13E#, 16#13E#),
( 16#140#, 16#140#),
( 16#142#, 16#142#),
( 16#144#, 16#144#),
( 16#146#, 16#146#),
( 16#148#, 16#149#),
( 16#14B#, 16#14B#),
( 16#14D#, 16#14D#),
( 16#14F#, 16#14F#),
( 16#151#, 16#151#),
( 16#153#, 16#153#),
( 16#155#, 16#155#),
( 16#157#, 16#157#),
( 16#159#, 16#159#),
( 16#15B#, 16#15B#),
( 16#15D#, 16#15D#),
( 16#15F#, 16#15F#),
( 16#161#, 16#161#),
( 16#163#, 16#163#),
( 16#165#, 16#165#),
( 16#167#, 16#167#),
( 16#169#, 16#169#),
( 16#16B#, 16#16B#),
( 16#16D#, 16#16D#),
( 16#16F#, 16#16F#),
( 16#171#, 16#171#),
( 16#173#, 16#173#),
( 16#175#, 16#175#),
( 16#177#, 16#177#),
( 16#17A#, 16#17A#),
( 16#17C#, 16#17C#),
( 16#17E#, 16#180#),
( 16#183#, 16#183#),
( 16#185#, 16#185#),
( 16#188#, 16#188#),
( 16#18C#, 16#18D#),
( 16#192#, 16#192#),
( 16#195#, 16#195#),
( 16#199#, 16#19B#),
( 16#19E#, 16#19E#),
( 16#1A1#, 16#1A1#),
( 16#1A3#, 16#1A3#),
( 16#1A5#, 16#1A5#),
( 16#1A8#, 16#1A8#),
( 16#1AA#, 16#1AB#),
( 16#1AD#, 16#1AD#),
( 16#1B0#, 16#1B0#),
( 16#1B4#, 16#1B4#),
( 16#1B6#, 16#1B6#),
( 16#1B9#, 16#1BA#),
( 16#1BD#, 16#1BF#),
( 16#1C6#, 16#1C6#),
( 16#1C9#, 16#1C9#),
( 16#1CC#, 16#1CC#),
( 16#1CE#, 16#1CE#),
( 16#1D0#, 16#1D0#),
( 16#1D2#, 16#1D2#),
( 16#1D4#, 16#1D4#),
( 16#1D6#, 16#1D6#),
( 16#1D8#, 16#1D8#),
( 16#1DA#, 16#1DA#),
( 16#1DC#, 16#1DD#),
( 16#1DF#, 16#1DF#),
( 16#1E1#, 16#1E1#),
( 16#1E3#, 16#1E3#),
( 16#1E5#, 16#1E5#),
( 16#1E7#, 16#1E7#),
( 16#1E9#, 16#1E9#),
( 16#1EB#, 16#1EB#),
( 16#1ED#, 16#1ED#),
( 16#1EF#, 16#1F0#),
( 16#1F3#, 16#1F3#),
( 16#1F5#, 16#1F5#),
( 16#1F9#, 16#1F9#),
( 16#1FB#, 16#1FB#),
( 16#1FD#, 16#1FD#),
( 16#1FF#, 16#1FF#),
( 16#201#, 16#201#),
( 16#203#, 16#203#),
( 16#205#, 16#205#),
( 16#207#, 16#207#),
( 16#209#, 16#209#),
( 16#20B#, 16#20B#),
( 16#20D#, 16#20D#),
( 16#20F#, 16#20F#),
( 16#211#, 16#211#),
( 16#213#, 16#213#),
( 16#215#, 16#215#),
( 16#217#, 16#217#),
( 16#219#, 16#219#),
( 16#21B#, 16#21B#),
( 16#21D#, 16#21D#),
( 16#21F#, 16#21F#),
( 16#221#, 16#221#),
( 16#223#, 16#223#),
( 16#225#, 16#225#),
( 16#227#, 16#227#),
( 16#229#, 16#229#),
( 16#22B#, 16#22B#),
( 16#22D#, 16#22D#),
( 16#22F#, 16#22F#),
( 16#231#, 16#231#),
( 16#233#, 16#239#),
( 16#23C#, 16#23C#),
( 16#23F#, 16#240#),
( 16#242#, 16#242#),
( 16#247#, 16#247#),
( 16#249#, 16#249#),
( 16#24B#, 16#24B#),
( 16#24D#, 16#24D#),
( 16#24F#, 16#293#),
( 16#295#, 16#2AF#),
( 16#37B#, 16#37D#),
( 16#390#, 16#390#),
( 16#3AC#, 16#3CE#),
( 16#3D0#, 16#3D1#),
( 16#3D5#, 16#3D7#),
( 16#3D9#, 16#3D9#),
( 16#3DB#, 16#3DB#),
( 16#3DD#, 16#3DD#),
( 16#3DF#, 16#3DF#),
( 16#3E1#, 16#3E1#),
( 16#3E3#, 16#3E3#),
( 16#3E5#, 16#3E5#),
( 16#3E7#, 16#3E7#),
( 16#3E9#, 16#3E9#),
( 16#3EB#, 16#3EB#),
( 16#3ED#, 16#3ED#),
( 16#3EF#, 16#3F3#),
( 16#3F5#, 16#3F5#),
( 16#3F8#, 16#3F8#),
( 16#3FB#, 16#3FC#),
( 16#430#, 16#45F#),
( 16#461#, 16#461#),
( 16#463#, 16#463#),
( 16#465#, 16#465#),
( 16#467#, 16#467#),
( 16#469#, 16#469#),
( 16#46B#, 16#46B#),
( 16#46D#, 16#46D#),
( 16#46F#, 16#46F#),
( 16#471#, 16#471#),
( 16#473#, 16#473#),
( 16#475#, 16#475#),
( 16#477#, 16#477#),
( 16#479#, 16#479#),
( 16#47B#, 16#47B#),
( 16#47D#, 16#47D#),
( 16#47F#, 16#47F#),
( 16#481#, 16#481#),
( 16#48B#, 16#48B#),
( 16#48D#, 16#48D#),
( 16#48F#, 16#48F#),
( 16#491#, 16#491#),
( 16#493#, 16#493#),
( 16#495#, 16#495#),
( 16#497#, 16#497#),
( 16#499#, 16#499#),
( 16#49B#, 16#49B#),
( 16#49D#, 16#49D#),
( 16#49F#, 16#49F#),
( 16#4A1#, 16#4A1#),
( 16#4A3#, 16#4A3#),
( 16#4A5#, 16#4A5#),
( 16#4A7#, 16#4A7#),
( 16#4A9#, 16#4A9#),
( 16#4AB#, 16#4AB#),
( 16#4AD#, 16#4AD#),
( 16#4AF#, 16#4AF#),
( 16#4B1#, 16#4B1#),
( 16#4B3#, 16#4B3#),
( 16#4B5#, 16#4B5#),
( 16#4B7#, 16#4B7#),
( 16#4B9#, 16#4B9#),
( 16#4BB#, 16#4BB#),
( 16#4BD#, 16#4BD#),
( 16#4BF#, 16#4BF#),
( 16#4C2#, 16#4C2#),
( 16#4C4#, 16#4C4#),
( 16#4C6#, 16#4C6#),
( 16#4C8#, 16#4C8#),
( 16#4CA#, 16#4CA#),
( 16#4CC#, 16#4CC#),
( 16#4CE#, 16#4CF#),
( 16#4D1#, 16#4D1#),
( 16#4D3#, 16#4D3#),
( 16#4D5#, 16#4D5#),
( 16#4D7#, 16#4D7#),
( 16#4D9#, 16#4D9#),
( 16#4DB#, 16#4DB#),
( 16#4DD#, 16#4DD#),
( 16#4DF#, 16#4DF#),
( 16#4E1#, 16#4E1#),
( 16#4E3#, 16#4E3#),
( 16#4E5#, 16#4E5#),
( 16#4E7#, 16#4E7#),
( 16#4E9#, 16#4E9#),
( 16#4EB#, 16#4EB#),
( 16#4ED#, 16#4ED#),
( 16#4EF#, 16#4EF#),
( 16#4F1#, 16#4F1#),
( 16#4F3#, 16#4F3#),
( 16#4F5#, 16#4F5#),
( 16#4F7#, 16#4F7#),
( 16#4F9#, 16#4F9#),
( 16#4FB#, 16#4FB#),
( 16#4FD#, 16#4FD#),
( 16#4FF#, 16#4FF#),
( 16#501#, 16#501#),
( 16#503#, 16#503#),
( 16#505#, 16#505#),
( 16#507#, 16#507#),
( 16#509#, 16#509#),
( 16#50B#, 16#50B#),
( 16#50D#, 16#50D#),
( 16#50F#, 16#50F#),
( 16#511#, 16#511#),
( 16#513#, 16#513#),
( 16#561#, 16#587#),
( 16#1D00#, 16#1D2B#),
( 16#1D62#, 16#1D77#),
( 16#1D79#, 16#1D9A#),
( 16#1E01#, 16#1E01#),
( 16#1E03#, 16#1E03#),
( 16#1E05#, 16#1E05#),
( 16#1E07#, 16#1E07#),
( 16#1E09#, 16#1E09#),
( 16#1E0B#, 16#1E0B#),
( 16#1E0D#, 16#1E0D#),
( 16#1E0F#, 16#1E0F#),
( 16#1E11#, 16#1E11#),
( 16#1E13#, 16#1E13#),
( 16#1E15#, 16#1E15#),
( 16#1E17#, 16#1E17#),
( 16#1E19#, 16#1E19#),
( 16#1E1B#, 16#1E1B#),
( 16#1E1D#, 16#1E1D#),
( 16#1E1F#, 16#1E1F#),
( 16#1E21#, 16#1E21#),
( 16#1E23#, 16#1E23#),
( 16#1E25#, 16#1E25#),
( 16#1E27#, 16#1E27#),
( 16#1E29#, 16#1E29#),
( 16#1E2B#, 16#1E2B#),
( 16#1E2D#, 16#1E2D#),
( 16#1E2F#, 16#1E2F#),
( 16#1E31#, 16#1E31#),
( 16#1E33#, 16#1E33#),
( 16#1E35#, 16#1E35#),
( 16#1E37#, 16#1E37#),
( 16#1E39#, 16#1E39#),
( 16#1E3B#, 16#1E3B#),
( 16#1E3D#, 16#1E3D#),
( 16#1E3F#, 16#1E3F#),
( 16#1E41#, 16#1E41#),
( 16#1E43#, 16#1E43#),
( 16#1E45#, 16#1E45#),
( 16#1E47#, 16#1E47#),
( 16#1E49#, 16#1E49#),
( 16#1E4B#, 16#1E4B#),
( 16#1E4D#, 16#1E4D#),
( 16#1E4F#, 16#1E4F#),
( 16#1E51#, 16#1E51#),
( 16#1E53#, 16#1E53#),
( 16#1E55#, 16#1E55#),
( 16#1E57#, 16#1E57#),
( 16#1E59#, 16#1E59#),
( 16#1E5B#, 16#1E5B#),
( 16#1E5D#, 16#1E5D#),
( 16#1E5F#, 16#1E5F#),
( 16#1E61#, 16#1E61#),
( 16#1E63#, 16#1E63#),
( 16#1E65#, 16#1E65#),
( 16#1E67#, 16#1E67#),
( 16#1E69#, 16#1E69#),
( 16#1E6B#, 16#1E6B#),
( 16#1E6D#, 16#1E6D#),
( 16#1E6F#, 16#1E6F#),
( 16#1E71#, 16#1E71#),
( 16#1E73#, 16#1E73#),
( 16#1E75#, 16#1E75#),
( 16#1E77#, 16#1E77#),
( 16#1E79#, 16#1E79#),
( 16#1E7B#, 16#1E7B#),
( 16#1E7D#, 16#1E7D#),
( 16#1E7F#, 16#1E7F#),
( 16#1E81#, 16#1E81#),
( 16#1E83#, 16#1E83#),
( 16#1E85#, 16#1E85#),
( 16#1E87#, 16#1E87#),
( 16#1E89#, 16#1E89#),
( 16#1E8B#, 16#1E8B#),
( 16#1E8D#, 16#1E8D#),
( 16#1E8F#, 16#1E8F#),
( 16#1E91#, 16#1E91#),
( 16#1E93#, 16#1E93#),
( 16#1E95#, 16#1E9B#),
( 16#1EA1#, 16#1EA1#),
( 16#1EA3#, 16#1EA3#),
( 16#1EA5#, 16#1EA5#),
( 16#1EA7#, 16#1EA7#),
( 16#1EA9#, 16#1EA9#),
( 16#1EAB#, 16#1EAB#),
( 16#1EAD#, 16#1EAD#),
( 16#1EAF#, 16#1EAF#),
( 16#1EB1#, 16#1EB1#),
( 16#1EB3#, 16#1EB3#),
( 16#1EB5#, 16#1EB5#),
( 16#1EB7#, 16#1EB7#),
( 16#1EB9#, 16#1EB9#),
( 16#1EBB#, 16#1EBB#),
( 16#1EBD#, 16#1EBD#),
( 16#1EBF#, 16#1EBF#),
( 16#1EC1#, 16#1EC1#),
( 16#1EC3#, 16#1EC3#),
( 16#1EC5#, 16#1EC5#),
( 16#1EC7#, 16#1EC7#),
( 16#1EC9#, 16#1EC9#),
( 16#1ECB#, 16#1ECB#),
( 16#1ECD#, 16#1ECD#),
( 16#1ECF#, 16#1ECF#),
( 16#1ED1#, 16#1ED1#),
( 16#1ED3#, 16#1ED3#),
( 16#1ED5#, 16#1ED5#),
( 16#1ED7#, 16#1ED7#),
( 16#1ED9#, 16#1ED9#),
( 16#1EDB#, 16#1EDB#),
( 16#1EDD#, 16#1EDD#),
( 16#1EDF#, 16#1EDF#),
( 16#1EE1#, 16#1EE1#),
( 16#1EE3#, 16#1EE3#),
( 16#1EE5#, 16#1EE5#),
( 16#1EE7#, 16#1EE7#),
( 16#1EE9#, 16#1EE9#),
( 16#1EEB#, 16#1EEB#),
( 16#1EED#, 16#1EED#),
( 16#1EEF#, 16#1EEF#),
( 16#1EF1#, 16#1EF1#),
( 16#1EF3#, 16#1EF3#),
( 16#1EF5#, 16#1EF5#),
( 16#1EF7#, 16#1EF7#),
( 16#1EF9#, 16#1EF9#),
( 16#1F00#, 16#1F07#),
( 16#1F10#, 16#1F15#),
( 16#1F20#, 16#1F27#),
( 16#1F30#, 16#1F37#),
( 16#1F40#, 16#1F45#),
( 16#1F50#, 16#1F57#),
( 16#1F60#, 16#1F67#),
( 16#1F70#, 16#1F7D#),
( 16#1F80#, 16#1F87#),
( 16#1F90#, 16#1F97#),
( 16#1FA0#, 16#1FA7#),
( 16#1FB0#, 16#1FB4#),
( 16#1FB6#, 16#1FB7#),
( 16#1FBE#, 16#1FBE#),
( 16#1FC2#, 16#1FC4#),
( 16#1FC6#, 16#1FC7#),
( 16#1FD0#, 16#1FD3#),
( 16#1FD6#, 16#1FD7#),
( 16#1FE0#, 16#1FE7#),
( 16#1FF2#, 16#1FF4#),
( 16#1FF6#, 16#1FF7#),
( 16#2071#, 16#2071#),
( 16#207F#, 16#207F#),
( 16#210A#, 16#210A#),
( 16#210E#, 16#210F#),
( 16#2113#, 16#2113#),
( 16#212F#, 16#212F#),
( 16#2134#, 16#2134#),
( 16#2139#, 16#2139#),
( 16#213C#, 16#213D#),
( 16#2146#, 16#2149#),
( 16#214E#, 16#214E#),
( 16#2184#, 16#2184#),
( 16#2C30#, 16#2C5E#),
( 16#2C61#, 16#2C61#),
( 16#2C65#, 16#2C66#),
( 16#2C68#, 16#2C68#),
( 16#2C6A#, 16#2C6A#),
( 16#2C6C#, 16#2C6C#),
( 16#2C74#, 16#2C74#),
( 16#2C76#, 16#2C77#),
( 16#2C81#, 16#2C81#),
( 16#2C83#, 16#2C83#),
( 16#2C85#, 16#2C85#),
( 16#2C87#, 16#2C87#),
( 16#2C89#, 16#2C89#),
( 16#2C8B#, 16#2C8B#),
( 16#2C8D#, 16#2C8D#),
( 16#2C8F#, 16#2C8F#),
( 16#2C91#, 16#2C91#),
( 16#2C93#, 16#2C93#),
( 16#2C95#, 16#2C95#),
( 16#2C97#, 16#2C97#),
( 16#2C99#, 16#2C99#),
( 16#2C9B#, 16#2C9B#),
( 16#2C9D#, 16#2C9D#),
( 16#2C9F#, 16#2C9F#),
( 16#2CA1#, 16#2CA1#),
( 16#2CA3#, 16#2CA3#),
( 16#2CA5#, 16#2CA5#),
( 16#2CA7#, 16#2CA7#),
( 16#2CA9#, 16#2CA9#),
( 16#2CAB#, 16#2CAB#),
( 16#2CAD#, 16#2CAD#),
( 16#2CAF#, 16#2CAF#),
( 16#2CB1#, 16#2CB1#),
( 16#2CB3#, 16#2CB3#),
( 16#2CB5#, 16#2CB5#),
( 16#2CB7#, 16#2CB7#),
( 16#2CB9#, 16#2CB9#),
( 16#2CBB#, 16#2CBB#),
( 16#2CBD#, 16#2CBD#),
( 16#2CBF#, 16#2CBF#),
( 16#2CC1#, 16#2CC1#),
( 16#2CC3#, 16#2CC3#),
( 16#2CC5#, 16#2CC5#),
( 16#2CC7#, 16#2CC7#),
( 16#2CC9#, 16#2CC9#),
( 16#2CCB#, 16#2CCB#),
( 16#2CCD#, 16#2CCD#),
( 16#2CCF#, 16#2CCF#),
( 16#2CD1#, 16#2CD1#),
( 16#2CD3#, 16#2CD3#),
( 16#2CD5#, 16#2CD5#),
( 16#2CD7#, 16#2CD7#),
( 16#2CD9#, 16#2CD9#),
( 16#2CDB#, 16#2CDB#),
( 16#2CDD#, 16#2CDD#),
( 16#2CDF#, 16#2CDF#),
( 16#2CE1#, 16#2CE1#),
( 16#2CE3#, 16#2CE4#),
( 16#2D00#, 16#2D25#),
( 16#FB00#, 16#FB06#),
( 16#FB13#, 16#FB17#),
( 16#FF41#, 16#FF5A#),
( 16#10428#, 16#1044F#),
( 16#1D41A#, 16#1D433#),
( 16#1D44E#, 16#1D454#),
( 16#1D456#, 16#1D467#),
( 16#1D482#, 16#1D49B#),
( 16#1D4B6#, 16#1D4B9#),
( 16#1D4BB#, 16#1D4BB#),
( 16#1D4BD#, 16#1D4C3#),
( 16#1D4C5#, 16#1D4CF#),
( 16#1D4EA#, 16#1D503#),
( 16#1D51E#, 16#1D537#),
( 16#1D552#, 16#1D56B#),
( 16#1D586#, 16#1D59F#),
( 16#1D5BA#, 16#1D5D3#),
( 16#1D5EE#, 16#1D607#),
( 16#1D622#, 16#1D63B#),
( 16#1D656#, 16#1D66F#),
( 16#1D68A#, 16#1D6A5#),
( 16#1D6C2#, 16#1D6DA#),
( 16#1D6DC#, 16#1D6E1#),
( 16#1D6FC#, 16#1D714#),
( 16#1D716#, 16#1D71B#),
( 16#1D736#, 16#1D74E#),
( 16#1D750#, 16#1D755#),
( 16#1D770#, 16#1D788#),
( 16#1D78A#, 16#1D78F#),
( 16#1D7AA#, 16#1D7C2#),
( 16#1D7C4#, 16#1D7C9#),
( 16#1D7CB#, 16#1D7CB#)));
Lm_Node : aliased Set_Node :=
(29, 2, (
( 16#2B0#, 16#2C1#),
( 16#2C6#, 16#2D1#),
( 16#2E0#, 16#2E4#),
( 16#2EE#, 16#2EE#),
( 16#37A#, 16#37A#),
( 16#559#, 16#559#),
( 16#640#, 16#640#),
( 16#6E5#, 16#6E6#),
( 16#7F4#, 16#7F5#),
( 16#7FA#, 16#7FA#),
( 16#E46#, 16#E46#),
( 16#EC6#, 16#EC6#),
( 16#10FC#, 16#10FC#),
( 16#17D7#, 16#17D7#),
( 16#1843#, 16#1843#),
( 16#1D2C#, 16#1D61#),
( 16#1D78#, 16#1D78#),
( 16#1D9B#, 16#1DBF#),
( 16#2090#, 16#2094#),
( 16#2D6F#, 16#2D6F#),
( 16#3005#, 16#3005#),
( 16#3031#, 16#3035#),
( 16#303B#, 16#303B#),
( 16#309D#, 16#309E#),
( 16#30FC#, 16#30FE#),
( 16#A015#, 16#A015#),
( 16#A717#, 16#A71A#),
( 16#FF70#, 16#FF70#),
( 16#FF9E#, 16#FF9F#)));
Lo_Node : aliased Set_Node :=
(253, 2, (
( 16#1BB#, 16#1BB#),
( 16#1C0#, 16#1C3#),
( 16#294#, 16#294#),
( 16#5D0#, 16#5EA#),
( 16#5F0#, 16#5F2#),
( 16#621#, 16#63A#),
( 16#641#, 16#64A#),
( 16#66E#, 16#66F#),
( 16#671#, 16#6D3#),
( 16#6D5#, 16#6D5#),
( 16#6EE#, 16#6EF#),
( 16#6FA#, 16#6FC#),
( 16#6FF#, 16#6FF#),
( 16#710#, 16#710#),
( 16#712#, 16#72F#),
( 16#74D#, 16#76D#),
( 16#780#, 16#7A5#),
( 16#7B1#, 16#7B1#),
( 16#7CA#, 16#7EA#),
( 16#904#, 16#939#),
( 16#93D#, 16#93D#),
( 16#950#, 16#950#),
( 16#958#, 16#961#),
( 16#97B#, 16#97F#),
( 16#985#, 16#98C#),
( 16#98F#, 16#990#),
( 16#993#, 16#9A8#),
( 16#9AA#, 16#9B0#),
( 16#9B2#, 16#9B2#),
( 16#9B6#, 16#9B9#),
( 16#9BD#, 16#9BD#),
( 16#9CE#, 16#9CE#),
( 16#9DC#, 16#9DD#),
( 16#9DF#, 16#9E1#),
( 16#9F0#, 16#9F1#),
( 16#A05#, 16#A0A#),
( 16#A0F#, 16#A10#),
( 16#A13#, 16#A28#),
( 16#A2A#, 16#A30#),
( 16#A32#, 16#A33#),
( 16#A35#, 16#A36#),
( 16#A38#, 16#A39#),
( 16#A59#, 16#A5C#),
( 16#A5E#, 16#A5E#),
( 16#A72#, 16#A74#),
( 16#A85#, 16#A8D#),
( 16#A8F#, 16#A91#),
( 16#A93#, 16#AA8#),
( 16#AAA#, 16#AB0#),
( 16#AB2#, 16#AB3#),
( 16#AB5#, 16#AB9#),
( 16#ABD#, 16#ABD#),
( 16#AD0#, 16#AD0#),
( 16#AE0#, 16#AE1#),
( 16#B05#, 16#B0C#),
( 16#B0F#, 16#B10#),
( 16#B13#, 16#B28#),
( 16#B2A#, 16#B30#),
( 16#B32#, 16#B33#),
( 16#B35#, 16#B39#),
( 16#B3D#, 16#B3D#),
( 16#B5C#, 16#B5D#),
( 16#B5F#, 16#B61#),
( 16#B71#, 16#B71#),
( 16#B83#, 16#B83#),
( 16#B85#, 16#B8A#),
( 16#B8E#, 16#B90#),
( 16#B92#, 16#B95#),
( 16#B99#, 16#B9A#),
( 16#B9C#, 16#B9C#),
( 16#B9E#, 16#B9F#),
( 16#BA3#, 16#BA4#),
( 16#BA8#, 16#BAA#),
( 16#BAE#, 16#BB9#),
( 16#C05#, 16#C0C#),
( 16#C0E#, 16#C10#),
( 16#C12#, 16#C28#),
( 16#C2A#, 16#C33#),
( 16#C35#, 16#C39#),
( 16#C60#, 16#C61#),
( 16#C85#, 16#C8C#),
( 16#C8E#, 16#C90#),
( 16#C92#, 16#CA8#),
( 16#CAA#, 16#CB3#),
( 16#CB5#, 16#CB9#),
( 16#CBD#, 16#CBD#),
( 16#CDE#, 16#CDE#),
( 16#CE0#, 16#CE1#),
( 16#D05#, 16#D0C#),
( 16#D0E#, 16#D10#),
( 16#D12#, 16#D28#),
( 16#D2A#, 16#D39#),
( 16#D60#, 16#D61#),
( 16#D85#, 16#D96#),
( 16#D9A#, 16#DB1#),
( 16#DB3#, 16#DBB#),
( 16#DBD#, 16#DBD#),
( 16#DC0#, 16#DC6#),
( 16#E01#, 16#E30#),
( 16#E32#, 16#E33#),
( 16#E40#, 16#E45#),
( 16#E81#, 16#E82#),
( 16#E84#, 16#E84#),
( 16#E87#, 16#E88#),
( 16#E8A#, 16#E8A#),
( 16#E8D#, 16#E8D#),
( 16#E94#, 16#E97#),
( 16#E99#, 16#E9F#),
( 16#EA1#, 16#EA3#),
( 16#EA5#, 16#EA5#),
( 16#EA7#, 16#EA7#),
( 16#EAA#, 16#EAB#),
( 16#EAD#, 16#EB0#),
( 16#EB2#, 16#EB3#),
( 16#EBD#, 16#EBD#),
( 16#EC0#, 16#EC4#),
( 16#EDC#, 16#EDD#),
( 16#F00#, 16#F00#),
( 16#F40#, 16#F47#),
( 16#F49#, 16#F6A#),
( 16#F88#, 16#F8B#),
( 16#1000#, 16#1021#),
( 16#1023#, 16#1027#),
( 16#1029#, 16#102A#),
( 16#1050#, 16#1055#),
( 16#10D0#, 16#10FA#),
( 16#1100#, 16#1159#),
( 16#115F#, 16#11A2#),
( 16#11A8#, 16#11F9#),
( 16#1200#, 16#1248#),
( 16#124A#, 16#124D#),
( 16#1250#, 16#1256#),
( 16#1258#, 16#1258#),
( 16#125A#, 16#125D#),
( 16#1260#, 16#1288#),
( 16#128A#, 16#128D#),
( 16#1290#, 16#12B0#),
( 16#12B2#, 16#12B5#),
( 16#12B8#, 16#12BE#),
( 16#12C0#, 16#12C0#),
( 16#12C2#, 16#12C5#),
( 16#12C8#, 16#12D6#),
( 16#12D8#, 16#1310#),
( 16#1312#, 16#1315#),
( 16#1318#, 16#135A#),
( 16#1380#, 16#138F#),
( 16#13A0#, 16#13F4#),
( 16#1401#, 16#166C#),
( 16#166F#, 16#1676#),
( 16#1681#, 16#169A#),
( 16#16A0#, 16#16EA#),
( 16#1700#, 16#170C#),
( 16#170E#, 16#1711#),
( 16#1720#, 16#1731#),
( 16#1740#, 16#1751#),
( 16#1760#, 16#176C#),
( 16#176E#, 16#1770#),
( 16#1780#, 16#17B3#),
( 16#17DC#, 16#17DC#),
( 16#1820#, 16#1842#),
( 16#1844#, 16#1877#),
( 16#1880#, 16#18A8#),
( 16#1900#, 16#191C#),
( 16#1950#, 16#196D#),
( 16#1970#, 16#1974#),
( 16#1980#, 16#19A9#),
( 16#19C1#, 16#19C7#),
( 16#1A00#, 16#1A16#),
( 16#1B05#, 16#1B33#),
( 16#1B45#, 16#1B4B#),
( 16#2135#, 16#2138#),
( 16#2D30#, 16#2D65#),
( 16#2D80#, 16#2D96#),
( 16#2DA0#, 16#2DA6#),
( 16#2DA8#, 16#2DAE#),
( 16#2DB0#, 16#2DB6#),
( 16#2DB8#, 16#2DBE#),
( 16#2DC0#, 16#2DC6#),
( 16#2DC8#, 16#2DCE#),
( 16#2DD0#, 16#2DD6#),
( 16#2DD8#, 16#2DDE#),
( 16#3006#, 16#3006#),
( 16#303C#, 16#303C#),
( 16#3041#, 16#3096#),
( 16#309F#, 16#309F#),
( 16#30A1#, 16#30FA#),
( 16#30FF#, 16#30FF#),
( 16#3105#, 16#312C#),
( 16#3131#, 16#318E#),
( 16#31A0#, 16#31B7#),
( 16#31F0#, 16#31FF#),
( 16#3400#, 16#4DB5#),
( 16#4E00#, 16#9FBB#),
( 16#A000#, 16#A014#),
( 16#A016#, 16#A48C#),
( 16#A800#, 16#A801#),
( 16#A803#, 16#A805#),
( 16#A807#, 16#A80A#),
( 16#A80C#, 16#A822#),
( 16#A840#, 16#A873#),
( 16#AC00#, 16#D7A3#),
( 16#F900#, 16#FA2D#),
( 16#FA30#, 16#FA6A#),
( 16#FA70#, 16#FAD9#),
( 16#FB1D#, 16#FB1D#),
( 16#FB1F#, 16#FB28#),
( 16#FB2A#, 16#FB36#),
( 16#FB38#, 16#FB3C#),
( 16#FB3E#, 16#FB3E#),
( 16#FB40#, 16#FB41#),
( 16#FB43#, 16#FB44#),
( 16#FB46#, 16#FBB1#),
( 16#FBD3#, 16#FD3D#),
( 16#FD50#, 16#FD8F#),
( 16#FD92#, 16#FDC7#),
( 16#FDF0#, 16#FDFB#),
( 16#FE70#, 16#FE74#),
( 16#FE76#, 16#FEFC#),
( 16#FF66#, 16#FF6F#),
( 16#FF71#, 16#FF9D#),
( 16#FFA0#, 16#FFBE#),
( 16#FFC2#, 16#FFC7#),
( 16#FFCA#, 16#FFCF#),
( 16#FFD2#, 16#FFD7#),
( 16#FFDA#, 16#FFDC#),
( 16#10000#, 16#1000B#),
( 16#1000D#, 16#10026#),
( 16#10028#, 16#1003A#),
( 16#1003C#, 16#1003D#),
( 16#1003F#, 16#1004D#),
( 16#10050#, 16#1005D#),
( 16#10080#, 16#100FA#),
( 16#10300#, 16#1031E#),
( 16#10330#, 16#10340#),
( 16#10342#, 16#10349#),
( 16#10380#, 16#1039D#),
( 16#103A0#, 16#103C3#),
( 16#103C8#, 16#103CF#),
( 16#10450#, 16#1049D#),
( 16#10800#, 16#10805#),
( 16#10808#, 16#10808#),
( 16#1080A#, 16#10835#),
( 16#10837#, 16#10838#),
( 16#1083C#, 16#1083C#),
( 16#1083F#, 16#1083F#),
( 16#10900#, 16#10915#),
( 16#10A00#, 16#10A00#),
( 16#10A10#, 16#10A13#),
( 16#10A15#, 16#10A17#),
( 16#10A19#, 16#10A33#),
( 16#12000#, 16#1236E#),
( 16#20000#, 16#2A6D6#),
( 16#2F800#, 16#2FA1D#)));
Lt_Node : aliased Set_Node :=
(10, 2, (
( 16#1C5#, 16#1C5#),
( 16#1C8#, 16#1C8#),
( 16#1CB#, 16#1CB#),
( 16#1F2#, 16#1F2#),
( 16#1F88#, 16#1F8F#),
( 16#1F98#, 16#1F9F#),
( 16#1FA8#, 16#1FAF#),
( 16#1FBC#, 16#1FBC#),
( 16#1FCC#, 16#1FCC#),
( 16#1FFC#, 16#1FFC#)));
Lu_Node : aliased Set_Node :=
(493, 2, (
( 16#41#, 16#5A#),
( 16#C0#, 16#D6#),
( 16#D8#, 16#DE#),
( 16#100#, 16#100#),
( 16#102#, 16#102#),
( 16#104#, 16#104#),
( 16#106#, 16#106#),
( 16#108#, 16#108#),
( 16#10A#, 16#10A#),
( 16#10C#, 16#10C#),
( 16#10E#, 16#10E#),
( 16#110#, 16#110#),
( 16#112#, 16#112#),
( 16#114#, 16#114#),
( 16#116#, 16#116#),
( 16#118#, 16#118#),
( 16#11A#, 16#11A#),
( 16#11C#, 16#11C#),
( 16#11E#, 16#11E#),
( 16#120#, 16#120#),
( 16#122#, 16#122#),
( 16#124#, 16#124#),
( 16#126#, 16#126#),
( 16#128#, 16#128#),
( 16#12A#, 16#12A#),
( 16#12C#, 16#12C#),
( 16#12E#, 16#12E#),
( 16#130#, 16#130#),
( 16#132#, 16#132#),
( 16#134#, 16#134#),
( 16#136#, 16#136#),
( 16#139#, 16#139#),
( 16#13B#, 16#13B#),
( 16#13D#, 16#13D#),
( 16#13F#, 16#13F#),
( 16#141#, 16#141#),
( 16#143#, 16#143#),
( 16#145#, 16#145#),
( 16#147#, 16#147#),
( 16#14A#, 16#14A#),
( 16#14C#, 16#14C#),
( 16#14E#, 16#14E#),
( 16#150#, 16#150#),
( 16#152#, 16#152#),
( 16#154#, 16#154#),
( 16#156#, 16#156#),
( 16#158#, 16#158#),
( 16#15A#, 16#15A#),
( 16#15C#, 16#15C#),
( 16#15E#, 16#15E#),
( 16#160#, 16#160#),
( 16#162#, 16#162#),
( 16#164#, 16#164#),
( 16#166#, 16#166#),
( 16#168#, 16#168#),
( 16#16A#, 16#16A#),
( 16#16C#, 16#16C#),
( 16#16E#, 16#16E#),
( 16#170#, 16#170#),
( 16#172#, 16#172#),
( 16#174#, 16#174#),
( 16#176#, 16#176#),
( 16#178#, 16#179#),
( 16#17B#, 16#17B#),
( 16#17D#, 16#17D#),
( 16#181#, 16#182#),
( 16#184#, 16#184#),
( 16#186#, 16#187#),
( 16#189#, 16#18B#),
( 16#18E#, 16#191#),
( 16#193#, 16#194#),
( 16#196#, 16#198#),
( 16#19C#, 16#19D#),
( 16#19F#, 16#1A0#),
( 16#1A2#, 16#1A2#),
( 16#1A4#, 16#1A4#),
( 16#1A6#, 16#1A7#),
( 16#1A9#, 16#1A9#),
( 16#1AC#, 16#1AC#),
( 16#1AE#, 16#1AF#),
( 16#1B1#, 16#1B3#),
( 16#1B5#, 16#1B5#),
( 16#1B7#, 16#1B8#),
( 16#1BC#, 16#1BC#),
( 16#1C4#, 16#1C4#),
( 16#1C7#, 16#1C7#),
( 16#1CA#, 16#1CA#),
( 16#1CD#, 16#1CD#),
( 16#1CF#, 16#1CF#),
( 16#1D1#, 16#1D1#),
( 16#1D3#, 16#1D3#),
( 16#1D5#, 16#1D5#),
( 16#1D7#, 16#1D7#),
( 16#1D9#, 16#1D9#),
( 16#1DB#, 16#1DB#),
( 16#1DE#, 16#1DE#),
( 16#1E0#, 16#1E0#),
( 16#1E2#, 16#1E2#),
( 16#1E4#, 16#1E4#),
( 16#1E6#, 16#1E6#),
( 16#1E8#, 16#1E8#),
( 16#1EA#, 16#1EA#),
( 16#1EC#, 16#1EC#),
( 16#1EE#, 16#1EE#),
( 16#1F1#, 16#1F1#),
( 16#1F4#, 16#1F4#),
( 16#1F6#, 16#1F8#),
( 16#1FA#, 16#1FA#),
( 16#1FC#, 16#1FC#),
( 16#1FE#, 16#1FE#),
( 16#200#, 16#200#),
( 16#202#, 16#202#),
( 16#204#, 16#204#),
( 16#206#, 16#206#),
( 16#208#, 16#208#),
( 16#20A#, 16#20A#),
( 16#20C#, 16#20C#),
( 16#20E#, 16#20E#),
( 16#210#, 16#210#),
( 16#212#, 16#212#),
( 16#214#, 16#214#),
( 16#216#, 16#216#),
( 16#218#, 16#218#),
( 16#21A#, 16#21A#),
( 16#21C#, 16#21C#),
( 16#21E#, 16#21E#),
( 16#220#, 16#220#),
( 16#222#, 16#222#),
( 16#224#, 16#224#),
( 16#226#, 16#226#),
( 16#228#, 16#228#),
( 16#22A#, 16#22A#),
( 16#22C#, 16#22C#),
( 16#22E#, 16#22E#),
( 16#230#, 16#230#),
( 16#232#, 16#232#),
( 16#23A#, 16#23B#),
( 16#23D#, 16#23E#),
( 16#241#, 16#241#),
( 16#243#, 16#246#),
( 16#248#, 16#248#),
( 16#24A#, 16#24A#),
( 16#24C#, 16#24C#),
( 16#24E#, 16#24E#),
( 16#386#, 16#386#),
( 16#388#, 16#38A#),
( 16#38C#, 16#38C#),
( 16#38E#, 16#38F#),
( 16#391#, 16#3A1#),
( 16#3A3#, 16#3AB#),
( 16#3D2#, 16#3D4#),
( 16#3D8#, 16#3D8#),
( 16#3DA#, 16#3DA#),
( 16#3DC#, 16#3DC#),
( 16#3DE#, 16#3DE#),
( 16#3E0#, 16#3E0#),
( 16#3E2#, 16#3E2#),
( 16#3E4#, 16#3E4#),
( 16#3E6#, 16#3E6#),
( 16#3E8#, 16#3E8#),
( 16#3EA#, 16#3EA#),
( 16#3EC#, 16#3EC#),
( 16#3EE#, 16#3EE#),
( 16#3F4#, 16#3F4#),
( 16#3F7#, 16#3F7#),
( 16#3F9#, 16#3FA#),
( 16#3FD#, 16#42F#),
( 16#460#, 16#460#),
( 16#462#, 16#462#),
( 16#464#, 16#464#),
( 16#466#, 16#466#),
( 16#468#, 16#468#),
( 16#46A#, 16#46A#),
( 16#46C#, 16#46C#),
( 16#46E#, 16#46E#),
( 16#470#, 16#470#),
( 16#472#, 16#472#),
( 16#474#, 16#474#),
( 16#476#, 16#476#),
( 16#478#, 16#478#),
( 16#47A#, 16#47A#),
( 16#47C#, 16#47C#),
( 16#47E#, 16#47E#),
( 16#480#, 16#480#),
( 16#48A#, 16#48A#),
( 16#48C#, 16#48C#),
( 16#48E#, 16#48E#),
( 16#490#, 16#490#),
( 16#492#, 16#492#),
( 16#494#, 16#494#),
( 16#496#, 16#496#),
( 16#498#, 16#498#),
( 16#49A#, 16#49A#),
( 16#49C#, 16#49C#),
( 16#49E#, 16#49E#),
( 16#4A0#, 16#4A0#),
( 16#4A2#, 16#4A2#),
( 16#4A4#, 16#4A4#),
( 16#4A6#, 16#4A6#),
( 16#4A8#, 16#4A8#),
( 16#4AA#, 16#4AA#),
( 16#4AC#, 16#4AC#),
( 16#4AE#, 16#4AE#),
( 16#4B0#, 16#4B0#),
( 16#4B2#, 16#4B2#),
( 16#4B4#, 16#4B4#),
( 16#4B6#, 16#4B6#),
( 16#4B8#, 16#4B8#),
( 16#4BA#, 16#4BA#),
( 16#4BC#, 16#4BC#),
( 16#4BE#, 16#4BE#),
( 16#4C0#, 16#4C1#),
( 16#4C3#, 16#4C3#),
( 16#4C5#, 16#4C5#),
( 16#4C7#, 16#4C7#),
( 16#4C9#, 16#4C9#),
( 16#4CB#, 16#4CB#),
( 16#4CD#, 16#4CD#),
( 16#4D0#, 16#4D0#),
( 16#4D2#, 16#4D2#),
( 16#4D4#, 16#4D4#),
( 16#4D6#, 16#4D6#),
( 16#4D8#, 16#4D8#),
( 16#4DA#, 16#4DA#),
( 16#4DC#, 16#4DC#),
( 16#4DE#, 16#4DE#),
( 16#4E0#, 16#4E0#),
( 16#4E2#, 16#4E2#),
( 16#4E4#, 16#4E4#),
( 16#4E6#, 16#4E6#),
( 16#4E8#, 16#4E8#),
( 16#4EA#, 16#4EA#),
( 16#4EC#, 16#4EC#),
( 16#4EE#, 16#4EE#),
( 16#4F0#, 16#4F0#),
( 16#4F2#, 16#4F2#),
( 16#4F4#, 16#4F4#),
( 16#4F6#, 16#4F6#),
( 16#4F8#, 16#4F8#),
( 16#4FA#, 16#4FA#),
( 16#4FC#, 16#4FC#),
( 16#4FE#, 16#4FE#),
( 16#500#, 16#500#),
( 16#502#, 16#502#),
( 16#504#, 16#504#),
( 16#506#, 16#506#),
( 16#508#, 16#508#),
( 16#50A#, 16#50A#),
( 16#50C#, 16#50C#),
( 16#50E#, 16#50E#),
( 16#510#, 16#510#),
( 16#512#, 16#512#),
( 16#531#, 16#556#),
( 16#10A0#, 16#10C5#),
( 16#1E00#, 16#1E00#),
( 16#1E02#, 16#1E02#),
( 16#1E04#, 16#1E04#),
( 16#1E06#, 16#1E06#),
( 16#1E08#, 16#1E08#),
( 16#1E0A#, 16#1E0A#),
( 16#1E0C#, 16#1E0C#),
( 16#1E0E#, 16#1E0E#),
( 16#1E10#, 16#1E10#),
( 16#1E12#, 16#1E12#),
( 16#1E14#, 16#1E14#),
( 16#1E16#, 16#1E16#),
( 16#1E18#, 16#1E18#),
( 16#1E1A#, 16#1E1A#),
( 16#1E1C#, 16#1E1C#),
( 16#1E1E#, 16#1E1E#),
( 16#1E20#, 16#1E20#),
( 16#1E22#, 16#1E22#),
( 16#1E24#, 16#1E24#),
( 16#1E26#, 16#1E26#),
( 16#1E28#, 16#1E28#),
( 16#1E2A#, 16#1E2A#),
( 16#1E2C#, 16#1E2C#),
( 16#1E2E#, 16#1E2E#),
( 16#1E30#, 16#1E30#),
( 16#1E32#, 16#1E32#),
( 16#1E34#, 16#1E34#),
( 16#1E36#, 16#1E36#),
( 16#1E38#, 16#1E38#),
( 16#1E3A#, 16#1E3A#),
( 16#1E3C#, 16#1E3C#),
( 16#1E3E#, 16#1E3E#),
( 16#1E40#, 16#1E40#),
( 16#1E42#, 16#1E42#),
( 16#1E44#, 16#1E44#),
( 16#1E46#, 16#1E46#),
( 16#1E48#, 16#1E48#),
( 16#1E4A#, 16#1E4A#),
( 16#1E4C#, 16#1E4C#),
( 16#1E4E#, 16#1E4E#),
( 16#1E50#, 16#1E50#),
( 16#1E52#, 16#1E52#),
( 16#1E54#, 16#1E54#),
( 16#1E56#, 16#1E56#),
( 16#1E58#, 16#1E58#),
( 16#1E5A#, 16#1E5A#),
( 16#1E5C#, 16#1E5C#),
( 16#1E5E#, 16#1E5E#),
( 16#1E60#, 16#1E60#),
( 16#1E62#, 16#1E62#),
( 16#1E64#, 16#1E64#),
( 16#1E66#, 16#1E66#),
( 16#1E68#, 16#1E68#),
( 16#1E6A#, 16#1E6A#),
( 16#1E6C#, 16#1E6C#),
( 16#1E6E#, 16#1E6E#),
( 16#1E70#, 16#1E70#),
( 16#1E72#, 16#1E72#),
( 16#1E74#, 16#1E74#),
( 16#1E76#, 16#1E76#),
( 16#1E78#, 16#1E78#),
( 16#1E7A#, 16#1E7A#),
( 16#1E7C#, 16#1E7C#),
( 16#1E7E#, 16#1E7E#),
( 16#1E80#, 16#1E80#),
( 16#1E82#, 16#1E82#),
( 16#1E84#, 16#1E84#),
( 16#1E86#, 16#1E86#),
( 16#1E88#, 16#1E88#),
( 16#1E8A#, 16#1E8A#),
( 16#1E8C#, 16#1E8C#),
( 16#1E8E#, 16#1E8E#),
( 16#1E90#, 16#1E90#),
( 16#1E92#, 16#1E92#),
( 16#1E94#, 16#1E94#),
( 16#1EA0#, 16#1EA0#),
( 16#1EA2#, 16#1EA2#),
( 16#1EA4#, 16#1EA4#),
( 16#1EA6#, 16#1EA6#),
( 16#1EA8#, 16#1EA8#),
( 16#1EAA#, 16#1EAA#),
( 16#1EAC#, 16#1EAC#),
( 16#1EAE#, 16#1EAE#),
( 16#1EB0#, 16#1EB0#),
( 16#1EB2#, 16#1EB2#),
( 16#1EB4#, 16#1EB4#),
( 16#1EB6#, 16#1EB6#),
( 16#1EB8#, 16#1EB8#),
( 16#1EBA#, 16#1EBA#),
( 16#1EBC#, 16#1EBC#),
( 16#1EBE#, 16#1EBE#),
( 16#1EC0#, 16#1EC0#),
( 16#1EC2#, 16#1EC2#),
( 16#1EC4#, 16#1EC4#),
( 16#1EC6#, 16#1EC6#),
( 16#1EC8#, 16#1EC8#),
( 16#1ECA#, 16#1ECA#),
( 16#1ECC#, 16#1ECC#),
( 16#1ECE#, 16#1ECE#),
( 16#1ED0#, 16#1ED0#),
( 16#1ED2#, 16#1ED2#),
( 16#1ED4#, 16#1ED4#),
( 16#1ED6#, 16#1ED6#),
( 16#1ED8#, 16#1ED8#),
( 16#1EDA#, 16#1EDA#),
( 16#1EDC#, 16#1EDC#),
( 16#1EDE#, 16#1EDE#),
( 16#1EE0#, 16#1EE0#),
( 16#1EE2#, 16#1EE2#),
( 16#1EE4#, 16#1EE4#),
( 16#1EE6#, 16#1EE6#),
( 16#1EE8#, 16#1EE8#),
( 16#1EEA#, 16#1EEA#),
( 16#1EEC#, 16#1EEC#),
( 16#1EEE#, 16#1EEE#),
( 16#1EF0#, 16#1EF0#),
( 16#1EF2#, 16#1EF2#),
( 16#1EF4#, 16#1EF4#),
( 16#1EF6#, 16#1EF6#),
( 16#1EF8#, 16#1EF8#),
( 16#1F08#, 16#1F0F#),
( 16#1F18#, 16#1F1D#),
( 16#1F28#, 16#1F2F#),
( 16#1F38#, 16#1F3F#),
( 16#1F48#, 16#1F4D#),
( 16#1F59#, 16#1F59#),
( 16#1F5B#, 16#1F5B#),
( 16#1F5D#, 16#1F5D#),
( 16#1F5F#, 16#1F5F#),
( 16#1F68#, 16#1F6F#),
( 16#1FB8#, 16#1FBB#),
( 16#1FC8#, 16#1FCB#),
( 16#1FD8#, 16#1FDB#),
( 16#1FE8#, 16#1FEC#),
( 16#1FF8#, 16#1FFB#),
( 16#2102#, 16#2102#),
( 16#2107#, 16#2107#),
( 16#210B#, 16#210D#),
( 16#2110#, 16#2112#),
( 16#2115#, 16#2115#),
( 16#2119#, 16#211D#),
( 16#2124#, 16#2124#),
( 16#2126#, 16#2126#),
( 16#2128#, 16#2128#),
( 16#212A#, 16#212D#),
( 16#2130#, 16#2133#),
( 16#213E#, 16#213F#),
( 16#2145#, 16#2145#),
( 16#2183#, 16#2183#),
( 16#2C00#, 16#2C2E#),
( 16#2C60#, 16#2C60#),
( 16#2C62#, 16#2C64#),
( 16#2C67#, 16#2C67#),
( 16#2C69#, 16#2C69#),
( 16#2C6B#, 16#2C6B#),
( 16#2C75#, 16#2C75#),
( 16#2C80#, 16#2C80#),
( 16#2C82#, 16#2C82#),
( 16#2C84#, 16#2C84#),
( 16#2C86#, 16#2C86#),
( 16#2C88#, 16#2C88#),
( 16#2C8A#, 16#2C8A#),
( 16#2C8C#, 16#2C8C#),
( 16#2C8E#, 16#2C8E#),
( 16#2C90#, 16#2C90#),
( 16#2C92#, 16#2C92#),
( 16#2C94#, 16#2C94#),
( 16#2C96#, 16#2C96#),
( 16#2C98#, 16#2C98#),
( 16#2C9A#, 16#2C9A#),
( 16#2C9C#, 16#2C9C#),
( 16#2C9E#, 16#2C9E#),
( 16#2CA0#, 16#2CA0#),
( 16#2CA2#, 16#2CA2#),
( 16#2CA4#, 16#2CA4#),
( 16#2CA6#, 16#2CA6#),
( 16#2CA8#, 16#2CA8#),
( 16#2CAA#, 16#2CAA#),
( 16#2CAC#, 16#2CAC#),
( 16#2CAE#, 16#2CAE#),
( 16#2CB0#, 16#2CB0#),
( 16#2CB2#, 16#2CB2#),
( 16#2CB4#, 16#2CB4#),
( 16#2CB6#, 16#2CB6#),
( 16#2CB8#, 16#2CB8#),
( 16#2CBA#, 16#2CBA#),
( 16#2CBC#, 16#2CBC#),
( 16#2CBE#, 16#2CBE#),
( 16#2CC0#, 16#2CC0#),
( 16#2CC2#, 16#2CC2#),
( 16#2CC4#, 16#2CC4#),
( 16#2CC6#, 16#2CC6#),
( 16#2CC8#, 16#2CC8#),
( 16#2CCA#, 16#2CCA#),
( 16#2CCC#, 16#2CCC#),
( 16#2CCE#, 16#2CCE#),
( 16#2CD0#, 16#2CD0#),
( 16#2CD2#, 16#2CD2#),
( 16#2CD4#, 16#2CD4#),
( 16#2CD6#, 16#2CD6#),
( 16#2CD8#, 16#2CD8#),
( 16#2CDA#, 16#2CDA#),
( 16#2CDC#, 16#2CDC#),
( 16#2CDE#, 16#2CDE#),
( 16#2CE0#, 16#2CE0#),
( 16#2CE2#, 16#2CE2#),
( 16#FF21#, 16#FF3A#),
( 16#10400#, 16#10427#),
( 16#1D400#, 16#1D419#),
( 16#1D434#, 16#1D44D#),
( 16#1D468#, 16#1D481#),
( 16#1D49C#, 16#1D49C#),
( 16#1D49E#, 16#1D49F#),
( 16#1D4A2#, 16#1D4A2#),
( 16#1D4A5#, 16#1D4A6#),
( 16#1D4A9#, 16#1D4AC#),
( 16#1D4AE#, 16#1D4B5#),
( 16#1D4D0#, 16#1D4E9#),
( 16#1D504#, 16#1D505#),
( 16#1D507#, 16#1D50A#),
( 16#1D50D#, 16#1D514#),
( 16#1D516#, 16#1D51C#),
( 16#1D538#, 16#1D539#),
( 16#1D53B#, 16#1D53E#),
( 16#1D540#, 16#1D544#),
( 16#1D546#, 16#1D546#),
( 16#1D54A#, 16#1D550#),
( 16#1D56C#, 16#1D585#),
( 16#1D5A0#, 16#1D5B9#),
( 16#1D5D4#, 16#1D5ED#),
( 16#1D608#, 16#1D621#),
( 16#1D63C#, 16#1D655#),
( 16#1D670#, 16#1D689#),
( 16#1D6A8#, 16#1D6C0#),
( 16#1D6E2#, 16#1D6FA#),
( 16#1D71C#, 16#1D734#),
( 16#1D756#, 16#1D76E#),
( 16#1D790#, 16#1D7A8#),
( 16#1D7CA#, 16#1D7CA#)));
Mc_Node : aliased Set_Node :=
(68, 2, (
( 16#903#, 16#903#),
( 16#93E#, 16#940#),
( 16#949#, 16#94C#),
( 16#982#, 16#983#),
( 16#9BE#, 16#9C0#),
( 16#9C7#, 16#9C8#),
( 16#9CB#, 16#9CC#),
( 16#9D7#, 16#9D7#),
( 16#A03#, 16#A03#),
( 16#A3E#, 16#A40#),
( 16#A83#, 16#A83#),
( 16#ABE#, 16#AC0#),
( 16#AC9#, 16#AC9#),
( 16#ACB#, 16#ACC#),
( 16#B02#, 16#B03#),
( 16#B3E#, 16#B3E#),
( 16#B40#, 16#B40#),
( 16#B47#, 16#B48#),
( 16#B4B#, 16#B4C#),
( 16#B57#, 16#B57#),
( 16#BBE#, 16#BBF#),
( 16#BC1#, 16#BC2#),
( 16#BC6#, 16#BC8#),
( 16#BCA#, 16#BCC#),
( 16#BD7#, 16#BD7#),
( 16#C01#, 16#C03#),
( 16#C41#, 16#C44#),
( 16#C82#, 16#C83#),
( 16#CBE#, 16#CBE#),
( 16#CC0#, 16#CC4#),
( 16#CC7#, 16#CC8#),
( 16#CCA#, 16#CCB#),
( 16#CD5#, 16#CD6#),
( 16#D02#, 16#D03#),
( 16#D3E#, 16#D40#),
( 16#D46#, 16#D48#),
( 16#D4A#, 16#D4C#),
( 16#D57#, 16#D57#),
( 16#D82#, 16#D83#),
( 16#DCF#, 16#DD1#),
( 16#DD8#, 16#DDF#),
( 16#DF2#, 16#DF3#),
( 16#F3E#, 16#F3F#),
( 16#F7F#, 16#F7F#),
( 16#102C#, 16#102C#),
( 16#1031#, 16#1031#),
( 16#1038#, 16#1038#),
( 16#1056#, 16#1057#),
( 16#17B6#, 16#17B6#),
( 16#17BE#, 16#17C5#),
( 16#17C7#, 16#17C8#),
( 16#1923#, 16#1926#),
( 16#1929#, 16#192B#),
( 16#1930#, 16#1931#),
( 16#1933#, 16#1938#),
( 16#19B0#, 16#19C0#),
( 16#19C8#, 16#19C9#),
( 16#1A19#, 16#1A1B#),
( 16#1B04#, 16#1B04#),
( 16#1B35#, 16#1B35#),
( 16#1B3B#, 16#1B3B#),
( 16#1B3D#, 16#1B41#),
( 16#1B43#, 16#1B44#),
( 16#A802#, 16#A802#),
( 16#A823#, 16#A824#),
( 16#A827#, 16#A827#),
( 16#1D165#, 16#1D166#),
( 16#1D16D#, 16#1D172#)));
Me_Node : aliased Set_Node :=
(4, 2, (
( 16#488#, 16#489#),
( 16#6DE#, 16#6DE#),
( 16#20DD#, 16#20E0#),
( 16#20E2#, 16#20E4#)));
Mn_Node : aliased Set_Node :=
(132, 2, (
( 16#300#, 16#36F#),
( 16#483#, 16#486#),
( 16#591#, 16#5BD#),
( 16#5BF#, 16#5BF#),
( 16#5C1#, 16#5C2#),
( 16#5C4#, 16#5C5#),
( 16#5C7#, 16#5C7#),
( 16#610#, 16#615#),
( 16#64B#, 16#65E#),
( 16#670#, 16#670#),
( 16#6D6#, 16#6DC#),
( 16#6DF#, 16#6E4#),
( 16#6E7#, 16#6E8#),
( 16#6EA#, 16#6ED#),
( 16#711#, 16#711#),
( 16#730#, 16#74A#),
( 16#7A6#, 16#7B0#),
( 16#7EB#, 16#7F3#),
( 16#901#, 16#902#),
( 16#93C#, 16#93C#),
( 16#941#, 16#948#),
( 16#94D#, 16#94D#),
( 16#951#, 16#954#),
( 16#962#, 16#963#),
( 16#981#, 16#981#),
( 16#9BC#, 16#9BC#),
( 16#9C1#, 16#9C4#),
( 16#9CD#, 16#9CD#),
( 16#9E2#, 16#9E3#),
( 16#A01#, 16#A02#),
( 16#A3C#, 16#A3C#),
( 16#A41#, 16#A42#),
( 16#A47#, 16#A48#),
( 16#A4B#, 16#A4D#),
( 16#A70#, 16#A71#),
( 16#A81#, 16#A82#),
( 16#ABC#, 16#ABC#),
( 16#AC1#, 16#AC5#),
( 16#AC7#, 16#AC8#),
( 16#ACD#, 16#ACD#),
( 16#AE2#, 16#AE3#),
( 16#B01#, 16#B01#),
( 16#B3C#, 16#B3C#),
( 16#B3F#, 16#B3F#),
( 16#B41#, 16#B43#),
( 16#B4D#, 16#B4D#),
( 16#B56#, 16#B56#),
( 16#B82#, 16#B82#),
( 16#BC0#, 16#BC0#),
( 16#BCD#, 16#BCD#),
( 16#C3E#, 16#C40#),
( 16#C46#, 16#C48#),
( 16#C4A#, 16#C4D#),
( 16#C55#, 16#C56#),
( 16#CBC#, 16#CBC#),
( 16#CBF#, 16#CBF#),
( 16#CC6#, 16#CC6#),
( 16#CCC#, 16#CCD#),
( 16#CE2#, 16#CE3#),
( 16#D41#, 16#D43#),
( 16#D4D#, 16#D4D#),
( 16#DCA#, 16#DCA#),
( 16#DD2#, 16#DD4#),
( 16#DD6#, 16#DD6#),
( 16#E31#, 16#E31#),
( 16#E34#, 16#E3A#),
( 16#E47#, 16#E4E#),
( 16#EB1#, 16#EB1#),
( 16#EB4#, 16#EB9#),
( 16#EBB#, 16#EBC#),
( 16#EC8#, 16#ECD#),
( 16#F18#, 16#F19#),
( 16#F35#, 16#F35#),
( 16#F37#, 16#F37#),
( 16#F39#, 16#F39#),
( 16#F71#, 16#F7E#),
( 16#F80#, 16#F84#),
( 16#F86#, 16#F87#),
( 16#F90#, 16#F97#),
( 16#F99#, 16#FBC#),
( 16#FC6#, 16#FC6#),
( 16#102D#, 16#1030#),
( 16#1032#, 16#1032#),
( 16#1036#, 16#1037#),
( 16#1039#, 16#1039#),
( 16#1058#, 16#1059#),
( 16#135F#, 16#135F#),
( 16#1712#, 16#1714#),
( 16#1732#, 16#1734#),
( 16#1752#, 16#1753#),
( 16#1772#, 16#1773#),
( 16#17B7#, 16#17BD#),
( 16#17C6#, 16#17C6#),
( 16#17C9#, 16#17D3#),
( 16#17DD#, 16#17DD#),
( 16#180B#, 16#180D#),
( 16#18A9#, 16#18A9#),
( 16#1920#, 16#1922#),
( 16#1927#, 16#1928#),
( 16#1932#, 16#1932#),
( 16#1939#, 16#193B#),
( 16#1A17#, 16#1A18#),
( 16#1B00#, 16#1B03#),
( 16#1B34#, 16#1B34#),
( 16#1B36#, 16#1B3A#),
( 16#1B3C#, 16#1B3C#),
( 16#1B42#, 16#1B42#),
( 16#1B6B#, 16#1B73#),
( 16#1DC0#, 16#1DCA#),
( 16#1DFE#, 16#1DFF#),
( 16#20D0#, 16#20DC#),
( 16#20E1#, 16#20E1#),
( 16#20E5#, 16#20EF#),
( 16#302A#, 16#302F#),
( 16#3099#, 16#309A#),
( 16#A806#, 16#A806#),
( 16#A80B#, 16#A80B#),
( 16#A825#, 16#A826#),
( 16#FB1E#, 16#FB1E#),
( 16#FE00#, 16#FE0F#),
( 16#FE20#, 16#FE23#),
( 16#10A01#, 16#10A03#),
( 16#10A05#, 16#10A06#),
( 16#10A0C#, 16#10A0F#),
( 16#10A38#, 16#10A3A#),
( 16#10A3F#, 16#10A3F#),
( 16#1D167#, 16#1D169#),
( 16#1D17B#, 16#1D182#),
( 16#1D185#, 16#1D18B#),
( 16#1D1AA#, 16#1D1AD#),
( 16#1D242#, 16#1D244#),
( 16#E0100#, 16#E01EF#)));
Nd_Node : aliased Set_Node :=
(25, 2, (
( 16#30#, 16#39#),
( 16#660#, 16#669#),
( 16#6F0#, 16#6F9#),
( 16#7C0#, 16#7C9#),
( 16#966#, 16#96F#),
( 16#9E6#, 16#9EF#),
( 16#A66#, 16#A6F#),
( 16#AE6#, 16#AEF#),
( 16#B66#, 16#B6F#),
( 16#BE6#, 16#BEF#),
( 16#C66#, 16#C6F#),
( 16#CE6#, 16#CEF#),
( 16#D66#, 16#D6F#),
( 16#E50#, 16#E59#),
( 16#ED0#, 16#ED9#),
( 16#F20#, 16#F29#),
( 16#1040#, 16#1049#),
( 16#17E0#, 16#17E9#),
( 16#1810#, 16#1819#),
( 16#1946#, 16#194F#),
( 16#19D0#, 16#19D9#),
( 16#1B50#, 16#1B59#),
( 16#FF10#, 16#FF19#),
( 16#104A0#, 16#104A9#),
( 16#1D7CE#, 16#1D7FF#)));
Nl_Node : aliased Set_Node :=
(10, 2, (
( 16#16EE#, 16#16F0#),
( 16#2160#, 16#2182#),
( 16#3007#, 16#3007#),
( 16#3021#, 16#3029#),
( 16#3038#, 16#303A#),
( 16#10140#, 16#10174#),
( 16#10341#, 16#10341#),
( 16#1034A#, 16#1034A#),
( 16#103D1#, 16#103D5#),
( 16#12400#, 16#12462#)));
No_Node : aliased Set_Node :=
(28, 2, (
( 16#B2#, 16#B3#),
( 16#B9#, 16#B9#),
( 16#BC#, 16#BE#),
( 16#9F4#, 16#9F9#),
( 16#BF0#, 16#BF2#),
( 16#F2A#, 16#F33#),
( 16#1369#, 16#137C#),
( 16#17F0#, 16#17F9#),
( 16#2070#, 16#2070#),
( 16#2074#, 16#2079#),
( 16#2080#, 16#2089#),
( 16#2153#, 16#215F#),
( 16#2460#, 16#249B#),
( 16#24EA#, 16#24FF#),
( 16#2776#, 16#2793#),
( 16#2CFD#, 16#2CFD#),
( 16#3192#, 16#3195#),
( 16#3220#, 16#3229#),
( 16#3251#, 16#325F#),
( 16#3280#, 16#3289#),
( 16#32B1#, 16#32BF#),
( 16#10107#, 16#10133#),
( 16#10175#, 16#10178#),
( 16#1018A#, 16#1018A#),
( 16#10320#, 16#10323#),
( 16#10916#, 16#10919#),
( 16#10A40#, 16#10A47#),
( 16#1D360#, 16#1D371#)));
Pc_Node : aliased Set_Node :=
(6, 2, (
( 16#5F#, 16#5F#),
( 16#203F#, 16#2040#),
( 16#2054#, 16#2054#),
( 16#FE33#, 16#FE34#),
( 16#FE4D#, 16#FE4F#),
( 16#FF3F#, 16#FF3F#)));
Pd_Node : aliased Set_Node :=
(12, 2, (
( 16#2D#, 16#2D#),
( 16#58A#, 16#58A#),
( 16#1806#, 16#1806#),
( 16#2010#, 16#2015#),
( 16#2E17#, 16#2E17#),
( 16#301C#, 16#301C#),
( 16#3030#, 16#3030#),
( 16#30A0#, 16#30A0#),
( 16#FE31#, 16#FE32#),
( 16#FE58#, 16#FE58#),
( 16#FE63#, 16#FE63#),
( 16#FF0D#, 16#FF0D#)));
Pe_Node : aliased Set_Node :=
(64, 2, (
( 16#29#, 16#29#),
( 16#5D#, 16#5D#),
( 16#7D#, 16#7D#),
( 16#F3B#, 16#F3B#),
( 16#F3D#, 16#F3D#),
( 16#169C#, 16#169C#),
( 16#2046#, 16#2046#),
( 16#207E#, 16#207E#),
( 16#208E#, 16#208E#),
( 16#232A#, 16#232A#),
( 16#2769#, 16#2769#),
( 16#276B#, 16#276B#),
( 16#276D#, 16#276D#),
( 16#276F#, 16#276F#),
( 16#2771#, 16#2771#),
( 16#2773#, 16#2773#),
( 16#2775#, 16#2775#),
( 16#27C6#, 16#27C6#),
( 16#27E7#, 16#27E7#),
( 16#27E9#, 16#27E9#),
( 16#27EB#, 16#27EB#),
( 16#2984#, 16#2984#),
( 16#2986#, 16#2986#),
( 16#2988#, 16#2988#),
( 16#298A#, 16#298A#),
( 16#298C#, 16#298C#),
( 16#298E#, 16#298E#),
( 16#2990#, 16#2990#),
( 16#2992#, 16#2992#),
( 16#2994#, 16#2994#),
( 16#2996#, 16#2996#),
( 16#2998#, 16#2998#),
( 16#29D9#, 16#29D9#),
( 16#29DB#, 16#29DB#),
( 16#29FD#, 16#29FD#),
( 16#3009#, 16#3009#),
( 16#300B#, 16#300B#),
( 16#300D#, 16#300D#),
( 16#300F#, 16#300F#),
( 16#3011#, 16#3011#),
( 16#3015#, 16#3015#),
( 16#3017#, 16#3017#),
( 16#3019#, 16#3019#),
( 16#301B#, 16#301B#),
( 16#301E#, 16#301F#),
( 16#FD3F#, 16#FD3F#),
( 16#FE18#, 16#FE18#),
( 16#FE36#, 16#FE36#),
( 16#FE38#, 16#FE38#),
( 16#FE3A#, 16#FE3A#),
( 16#FE3C#, 16#FE3C#),
( 16#FE3E#, 16#FE3E#),
( 16#FE40#, 16#FE40#),
( 16#FE42#, 16#FE42#),
( 16#FE44#, 16#FE44#),
( 16#FE48#, 16#FE48#),
( 16#FE5A#, 16#FE5A#),
( 16#FE5C#, 16#FE5C#),
( 16#FE5E#, 16#FE5E#),
( 16#FF09#, 16#FF09#),
( 16#FF3D#, 16#FF3D#),
( 16#FF5D#, 16#FF5D#),
( 16#FF60#, 16#FF60#),
( 16#FF63#, 16#FF63#)));
Pf_Node : aliased Set_Node :=
(9, 2, (
( 16#BB#, 16#BB#),
( 16#2019#, 16#2019#),
( 16#201D#, 16#201D#),
( 16#203A#, 16#203A#),
( 16#2E03#, 16#2E03#),
( 16#2E05#, 16#2E05#),
( 16#2E0A#, 16#2E0A#),
( 16#2E0D#, 16#2E0D#),
( 16#2E1D#, 16#2E1D#)));
Pi_Node : aliased Set_Node :=
(10, 2, (
( 16#AB#, 16#AB#),
( 16#2018#, 16#2018#),
( 16#201B#, 16#201C#),
( 16#201F#, 16#201F#),
( 16#2039#, 16#2039#),
( 16#2E02#, 16#2E02#),
( 16#2E04#, 16#2E04#),
( 16#2E09#, 16#2E09#),
( 16#2E0C#, 16#2E0C#),
( 16#2E1C#, 16#2E1C#)));
Po_Node : aliased Set_Node :=
(93, 2, (
( 16#21#, 16#23#),
( 16#25#, 16#27#),
( 16#2A#, 16#2A#),
( 16#2C#, 16#2C#),
( 16#2E#, 16#2F#),
( 16#3A#, 16#3B#),
( 16#3F#, 16#40#),
( 16#5C#, 16#5C#),
( 16#A1#, 16#A1#),
( 16#B7#, 16#B7#),
( 16#BF#, 16#BF#),
( 16#37E#, 16#37E#),
( 16#387#, 16#387#),
( 16#55A#, 16#55F#),
( 16#589#, 16#589#),
( 16#5BE#, 16#5BE#),
( 16#5C0#, 16#5C0#),
( 16#5C3#, 16#5C3#),
( 16#5C6#, 16#5C6#),
( 16#5F3#, 16#5F4#),
( 16#60C#, 16#60D#),
( 16#61B#, 16#61B#),
( 16#61E#, 16#61F#),
( 16#66A#, 16#66D#),
( 16#6D4#, 16#6D4#),
( 16#700#, 16#70D#),
( 16#7F7#, 16#7F9#),
( 16#964#, 16#965#),
( 16#970#, 16#970#),
( 16#DF4#, 16#DF4#),
( 16#E4F#, 16#E4F#),
( 16#E5A#, 16#E5B#),
( 16#F04#, 16#F12#),
( 16#F85#, 16#F85#),
( 16#FD0#, 16#FD1#),
( 16#104A#, 16#104F#),
( 16#10FB#, 16#10FB#),
( 16#1361#, 16#1368#),
( 16#166D#, 16#166E#),
( 16#16EB#, 16#16ED#),
( 16#1735#, 16#1736#),
( 16#17D4#, 16#17D6#),
( 16#17D8#, 16#17DA#),
( 16#1800#, 16#1805#),
( 16#1807#, 16#180A#),
( 16#1944#, 16#1945#),
( 16#19DE#, 16#19DF#),
( 16#1A1E#, 16#1A1F#),
( 16#1B5A#, 16#1B60#),
( 16#2016#, 16#2017#),
( 16#2020#, 16#2027#),
( 16#2030#, 16#2038#),
( 16#203B#, 16#203E#),
( 16#2041#, 16#2043#),
( 16#2047#, 16#2051#),
( 16#2053#, 16#2053#),
( 16#2055#, 16#205E#),
( 16#2CF9#, 16#2CFC#),
( 16#2CFE#, 16#2CFF#),
( 16#2E00#, 16#2E01#),
( 16#2E06#, 16#2E08#),
( 16#2E0B#, 16#2E0B#),
( 16#2E0E#, 16#2E16#),
( 16#3001#, 16#3003#),
( 16#303D#, 16#303D#),
( 16#30FB#, 16#30FB#),
( 16#A874#, 16#A877#),
( 16#FE10#, 16#FE16#),
( 16#FE19#, 16#FE19#),
( 16#FE30#, 16#FE30#),
( 16#FE45#, 16#FE46#),
( 16#FE49#, 16#FE4C#),
( 16#FE50#, 16#FE52#),
( 16#FE54#, 16#FE57#),
( 16#FE5F#, 16#FE61#),
( 16#FE68#, 16#FE68#),
( 16#FE6A#, 16#FE6B#),
( 16#FF01#, 16#FF03#),
( 16#FF05#, 16#FF07#),
( 16#FF0A#, 16#FF0A#),
( 16#FF0C#, 16#FF0C#),
( 16#FF0E#, 16#FF0F#),
( 16#FF1A#, 16#FF1B#),
( 16#FF1F#, 16#FF20#),
( 16#FF3C#, 16#FF3C#),
( 16#FF61#, 16#FF61#),
( 16#FF64#, 16#FF65#),
( 16#10100#, 16#10101#),
( 16#1039F#, 16#1039F#),
( 16#103D0#, 16#103D0#),
( 16#1091F#, 16#1091F#),
( 16#10A50#, 16#10A58#),
( 16#12470#, 16#12473#)));
Ps_Node : aliased Set_Node :=
(66, 2, (
( 16#28#, 16#28#),
( 16#5B#, 16#5B#),
( 16#7B#, 16#7B#),
( 16#F3A#, 16#F3A#),
( 16#F3C#, 16#F3C#),
( 16#169B#, 16#169B#),
( 16#201A#, 16#201A#),
( 16#201E#, 16#201E#),
( 16#2045#, 16#2045#),
( 16#207D#, 16#207D#),
( 16#208D#, 16#208D#),
( 16#2329#, 16#2329#),
( 16#2768#, 16#2768#),
( 16#276A#, 16#276A#),
( 16#276C#, 16#276C#),
( 16#276E#, 16#276E#),
( 16#2770#, 16#2770#),
( 16#2772#, 16#2772#),
( 16#2774#, 16#2774#),
( 16#27C5#, 16#27C5#),
( 16#27E6#, 16#27E6#),
( 16#27E8#, 16#27E8#),
( 16#27EA#, 16#27EA#),
( 16#2983#, 16#2983#),
( 16#2985#, 16#2985#),
( 16#2987#, 16#2987#),
( 16#2989#, 16#2989#),
( 16#298B#, 16#298B#),
( 16#298D#, 16#298D#),
( 16#298F#, 16#298F#),
( 16#2991#, 16#2991#),
( 16#2993#, 16#2993#),
( 16#2995#, 16#2995#),
( 16#2997#, 16#2997#),
( 16#29D8#, 16#29D8#),
( 16#29DA#, 16#29DA#),
( 16#29FC#, 16#29FC#),
( 16#3008#, 16#3008#),
( 16#300A#, 16#300A#),
( 16#300C#, 16#300C#),
( 16#300E#, 16#300E#),
( 16#3010#, 16#3010#),
( 16#3014#, 16#3014#),
( 16#3016#, 16#3016#),
( 16#3018#, 16#3018#),
( 16#301A#, 16#301A#),
( 16#301D#, 16#301D#),
( 16#FD3E#, 16#FD3E#),
( 16#FE17#, 16#FE17#),
( 16#FE35#, 16#FE35#),
( 16#FE37#, 16#FE37#),
( 16#FE39#, 16#FE39#),
( 16#FE3B#, 16#FE3B#),
( 16#FE3D#, 16#FE3D#),
( 16#FE3F#, 16#FE3F#),
( 16#FE41#, 16#FE41#),
( 16#FE43#, 16#FE43#),
( 16#FE47#, 16#FE47#),
( 16#FE59#, 16#FE59#),
( 16#FE5B#, 16#FE5B#),
( 16#FE5D#, 16#FE5D#),
( 16#FF08#, 16#FF08#),
( 16#FF3B#, 16#FF3B#),
( 16#FF5B#, 16#FF5B#),
( 16#FF5F#, 16#FF5F#),
( 16#FF62#, 16#FF62#)));
Sc_Node : aliased Set_Node :=
(14, 2, (
( 16#24#, 16#24#),
( 16#A2#, 16#A5#),
( 16#60B#, 16#60B#),
( 16#9F2#, 16#9F3#),
( 16#AF1#, 16#AF1#),
( 16#BF9#, 16#BF9#),
( 16#E3F#, 16#E3F#),
( 16#17DB#, 16#17DB#),
( 16#20A0#, 16#20B5#),
( 16#FDFC#, 16#FDFC#),
( 16#FE69#, 16#FE69#),
( 16#FF04#, 16#FF04#),
( 16#FFE0#, 16#FFE1#),
( 16#FFE5#, 16#FFE6#)));
Sk_Node : aliased Set_Node :=
(24, 2, (
( 16#5E#, 16#5E#),
( 16#60#, 16#60#),
( 16#A8#, 16#A8#),
( 16#AF#, 16#AF#),
( 16#B4#, 16#B4#),
( 16#B8#, 16#B8#),
( 16#2C2#, 16#2C5#),
( 16#2D2#, 16#2DF#),
( 16#2E5#, 16#2ED#),
( 16#2EF#, 16#2FF#),
( 16#374#, 16#375#),
( 16#384#, 16#385#),
( 16#1FBD#, 16#1FBD#),
( 16#1FBF#, 16#1FC1#),
( 16#1FCD#, 16#1FCF#),
( 16#1FDD#, 16#1FDF#),
( 16#1FED#, 16#1FEF#),
( 16#1FFD#, 16#1FFE#),
( 16#309B#, 16#309C#),
( 16#A700#, 16#A716#),
( 16#A720#, 16#A721#),
( 16#FF3E#, 16#FF3E#),
( 16#FF40#, 16#FF40#),
( 16#FFE3#, 16#FFE3#)));
Sm_Node : aliased Set_Node :=
(61, 2, (
( 16#2B#, 16#2B#),
( 16#3C#, 16#3E#),
( 16#7C#, 16#7C#),
( 16#7E#, 16#7E#),
( 16#AC#, 16#AC#),
( 16#B1#, 16#B1#),
( 16#D7#, 16#D7#),
( 16#F7#, 16#F7#),
( 16#3F6#, 16#3F6#),
( 16#2044#, 16#2044#),
( 16#2052#, 16#2052#),
( 16#207A#, 16#207C#),
( 16#208A#, 16#208C#),
( 16#2140#, 16#2144#),
( 16#214B#, 16#214B#),
( 16#2190#, 16#2194#),
( 16#219A#, 16#219B#),
( 16#21A0#, 16#21A0#),
( 16#21A3#, 16#21A3#),
( 16#21A6#, 16#21A6#),
( 16#21AE#, 16#21AE#),
( 16#21CE#, 16#21CF#),
( 16#21D2#, 16#21D2#),
( 16#21D4#, 16#21D4#),
( 16#21F4#, 16#22FF#),
( 16#2308#, 16#230B#),
( 16#2320#, 16#2321#),
( 16#237C#, 16#237C#),
( 16#239B#, 16#23B3#),
( 16#23DC#, 16#23E1#),
( 16#25B7#, 16#25B7#),
( 16#25C1#, 16#25C1#),
( 16#25F8#, 16#25FF#),
( 16#266F#, 16#266F#),
( 16#27C0#, 16#27C4#),
( 16#27C7#, 16#27CA#),
( 16#27D0#, 16#27E5#),
( 16#27F0#, 16#27FF#),
( 16#2900#, 16#2982#),
( 16#2999#, 16#29D7#),
( 16#29DC#, 16#29FB#),
( 16#29FE#, 16#2AFF#),
( 16#FB29#, 16#FB29#),
( 16#FE62#, 16#FE62#),
( 16#FE64#, 16#FE66#),
( 16#FF0B#, 16#FF0B#),
( 16#FF1C#, 16#FF1E#),
( 16#FF5C#, 16#FF5C#),
( 16#FF5E#, 16#FF5E#),
( 16#FFE2#, 16#FFE2#),
( 16#FFE9#, 16#FFEC#),
( 16#1D6C1#, 16#1D6C1#),
( 16#1D6DB#, 16#1D6DB#),
( 16#1D6FB#, 16#1D6FB#),
( 16#1D715#, 16#1D715#),
( 16#1D735#, 16#1D735#),
( 16#1D74F#, 16#1D74F#),
( 16#1D76F#, 16#1D76F#),
( 16#1D789#, 16#1D789#),
( 16#1D7A9#, 16#1D7A9#),
( 16#1D7C3#, 16#1D7C3#)));
So_Node : aliased Set_Node :=
(124, 2, (
( 16#A6#, 16#A7#),
( 16#A9#, 16#A9#),
( 16#AE#, 16#AE#),
( 16#B0#, 16#B0#),
( 16#B6#, 16#B6#),
( 16#482#, 16#482#),
( 16#60E#, 16#60F#),
( 16#6E9#, 16#6E9#),
( 16#6FD#, 16#6FE#),
( 16#7F6#, 16#7F6#),
( 16#9FA#, 16#9FA#),
( 16#B70#, 16#B70#),
( 16#BF3#, 16#BF8#),
( 16#BFA#, 16#BFA#),
( 16#CF1#, 16#CF2#),
( 16#F01#, 16#F03#),
( 16#F13#, 16#F17#),
( 16#F1A#, 16#F1F#),
( 16#F34#, 16#F34#),
( 16#F36#, 16#F36#),
( 16#F38#, 16#F38#),
( 16#FBE#, 16#FC5#),
( 16#FC7#, 16#FCC#),
( 16#FCF#, 16#FCF#),
( 16#1360#, 16#1360#),
( 16#1390#, 16#1399#),
( 16#1940#, 16#1940#),
( 16#19E0#, 16#19FF#),
( 16#1B61#, 16#1B6A#),
( 16#1B74#, 16#1B7C#),
( 16#2100#, 16#2101#),
( 16#2103#, 16#2106#),
( 16#2108#, 16#2109#),
( 16#2114#, 16#2114#),
( 16#2116#, 16#2118#),
( 16#211E#, 16#2123#),
( 16#2125#, 16#2125#),
( 16#2127#, 16#2127#),
( 16#2129#, 16#2129#),
( 16#212E#, 16#212E#),
( 16#213A#, 16#213B#),
( 16#214A#, 16#214A#),
( 16#214C#, 16#214D#),
( 16#2195#, 16#2199#),
( 16#219C#, 16#219F#),
( 16#21A1#, 16#21A2#),
( 16#21A4#, 16#21A5#),
( 16#21A7#, 16#21AD#),
( 16#21AF#, 16#21CD#),
( 16#21D0#, 16#21D1#),
( 16#21D3#, 16#21D3#),
( 16#21D5#, 16#21F3#),
( 16#2300#, 16#2307#),
( 16#230C#, 16#231F#),
( 16#2322#, 16#2328#),
( 16#232B#, 16#237B#),
( 16#237D#, 16#239A#),
( 16#23B4#, 16#23DB#),
( 16#23E2#, 16#23E7#),
( 16#2400#, 16#2426#),
( 16#2440#, 16#244A#),
( 16#249C#, 16#24E9#),
( 16#2500#, 16#25B6#),
( 16#25B8#, 16#25C0#),
( 16#25C2#, 16#25F7#),
( 16#2600#, 16#266E#),
( 16#2670#, 16#269C#),
( 16#26A0#, 16#26B2#),
( 16#2701#, 16#2704#),
( 16#2706#, 16#2709#),
( 16#270C#, 16#2727#),
( 16#2729#, 16#274B#),
( 16#274D#, 16#274D#),
( 16#274F#, 16#2752#),
( 16#2756#, 16#2756#),
( 16#2758#, 16#275E#),
( 16#2761#, 16#2767#),
( 16#2794#, 16#2794#),
( 16#2798#, 16#27AF#),
( 16#27B1#, 16#27BE#),
( 16#2800#, 16#28FF#),
( 16#2B00#, 16#2B1A#),
( 16#2B20#, 16#2B23#),
( 16#2CE5#, 16#2CEA#),
( 16#2E80#, 16#2E99#),
( 16#2E9B#, 16#2EF3#),
( 16#2F00#, 16#2FD5#),
( 16#2FF0#, 16#2FFB#),
( 16#3004#, 16#3004#),
( 16#3012#, 16#3013#),
( 16#3020#, 16#3020#),
( 16#3036#, 16#3037#),
( 16#303E#, 16#303F#),
( 16#3190#, 16#3191#),
( 16#3196#, 16#319F#),
( 16#31C0#, 16#31CF#),
( 16#3200#, 16#321E#),
( 16#322A#, 16#3243#),
( 16#3250#, 16#3250#),
( 16#3260#, 16#327F#),
( 16#328A#, 16#32B0#),
( 16#32C0#, 16#32FE#),
( 16#3300#, 16#33FF#),
( 16#4DC0#, 16#4DFF#),
( 16#A490#, 16#A4C6#),
( 16#A828#, 16#A82B#),
( 16#FDFD#, 16#FDFD#),
( 16#FFE4#, 16#FFE4#),
( 16#FFE8#, 16#FFE8#),
( 16#FFED#, 16#FFEE#),
( 16#FFFC#, 16#FFFD#),
( 16#10102#, 16#10102#),
( 16#10137#, 16#1013F#),
( 16#10179#, 16#10189#),
( 16#1D000#, 16#1D0F5#),
( 16#1D100#, 16#1D126#),
( 16#1D12A#, 16#1D164#),
( 16#1D16A#, 16#1D16C#),
( 16#1D183#, 16#1D184#),
( 16#1D18C#, 16#1D1A9#),
( 16#1D1AE#, 16#1D1DD#),
( 16#1D200#, 16#1D241#),
( 16#1D245#, 16#1D245#),
( 16#1D300#, 16#1D356#)));
Zl_Node : aliased Set_Node :=
(1, 2, (
1 => ( 16#2028#, 16#2028#)));
Zp_Node : aliased Set_Node :=
(1, 2, (
1 => ( 16#2029#, 16#2029#)));
Zs_Node : aliased Set_Node :=
(8, 2, (
( 16#20#, 16#20#),
( 16#A0#, 16#A0#),
( 16#1680#, 16#1680#),
( 16#180E#, 16#180E#),
( 16#2000#, 16#200A#),
( 16#202F#, 16#202F#),
( 16#205F#, 16#205F#),
( 16#3000#, 16#3000#)));
Cn_Node : aliased Set_Node :=
(0, 2, (others => (Not_A_Symbol, Not_A_Symbol)));
Values : constant array (General_Category_Alias) of Symbol_Set :=
(Cc => (F.Controlled with Cc_Node'Access),
Cf => (F.Controlled with Cf_Node'Access),
Cn => (F.Controlled with Cn_Node'Access),
Co => (F.Controlled with Co_Node'Access),
Cs => (F.Controlled with Cs_Node'Access),
Ll => (F.Controlled with Ll_Node'Access),
Lm => (F.Controlled with Lm_Node'Access),
Lo => (F.Controlled with Lo_Node'Access),
Lt => (F.Controlled with Lt_Node'Access),
Lu => (F.Controlled with Lu_Node'Access),
Mc => (F.Controlled with Mc_Node'Access),
Me => (F.Controlled with Me_Node'Access),
Mn => (F.Controlled with Mn_Node'Access),
Nd => (F.Controlled with Nd_Node'Access),
Nl => (F.Controlled with Nl_Node'Access),
No => (F.Controlled with No_Node'Access),
Pc => (F.Controlled with Pc_Node'Access),
Pd => (F.Controlled with Pd_Node'Access),
Pe => (F.Controlled with Pe_Node'Access),
Pf => (F.Controlled with Pf_Node'Access),
Pi => (F.Controlled with Pi_Node'Access),
Po => (F.Controlled with Po_Node'Access),
Ps => (F.Controlled with Ps_Node'Access),
Sc => (F.Controlled with Sc_Node'Access),
Sk => (F.Controlled with Sk_Node'Access),
Sm => (F.Controlled with Sm_Node'Access),
So => (F.Controlled with So_Node'Access),
Zl => (F.Controlled with Zl_Node'Access),
Zp => (F.Controlled with Zp_Node'Access),
Zs => (F.Controlled with Zs_Node'Access));
function General_Category (Name : String) return Symbol_Set is
type General_Category is
(Control,
Format,
Unassigned,
Private_Use,
Surrogate,
Lowercase_Letter,
Modifier_Letter,
Other_Letter,
Titlecase_Letter,
Uppercase_Letter,
Spacing_Mark,
Enclosing_Mark,
Nonspacing_Mark,
Decimal_Number,
Letter_Number,
Other_Number,
Connector_Punctuation,
Dash_Punctuation,
Close_Punctuation,
Final_Punctuation,
Initial_Punctuation,
Other_Punctuation,
Open_Punctuation,
Currency_Symbol,
Modifier_Symbol,
Math_Symbol,
Other_Symbol,
Line_Separator,
Paragraph_Separator,
Space_Separator);
Category : General_Category_Alias;
GC : General_Category;
begin
if Name'Length = 2 then
Category := General_Category_Alias'Value (Name);
else
GC := General_Category'Value (Name);
Category := General_Category_Alias'Val (General_Category'Pos (GC));
end if;
return Values (Category);
end General_Category;
end Symbols.Unicode;
------------------------------------------------------------------------------
-- Copyright (c) 2006-2013, Maxim Reznik
-- 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 Maxim Reznik, 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 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.
------------------------------------------------------------------------------
|
23142
|
------------------------------------------------------------------------------
-- <NAME> E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- - - - - - - - - - - - - - - - --
-- Read copyright and license at the end of this file --
------------------------------------------------------------------------------
-- $Revision: 209 $ $Date: 2013-11-30 21:03:24 +0200 (Сб., 30 нояб. 2013) $
-- This file is generated by read_unicode.adb. DON'T EDIT!
package body Symbols.Unicode is
type General_Category_Alias is
(Cc,
Cf,
Cn,
Co,
Cs,
Ll,
Lm,
Lo,
Lt,
Lu,
Mc,
Me,
Mn,
Nd,
Nl,
No,
Pc,
Pd,
Pe,
Pf,
Pi,
Po,
Ps,
Sc,
Sk,
Sm,
So,
Zl,
Zp,
Zs);
Cc_Node : aliased Set_Node :=
(2, 2, (
( 16#0#, 16#1F#),
( 16#7F#, 16#9F#)));
Cf_Node : aliased Set_Node :=
(14, 2, (
( 16#AD#, 16#AD#),
( 16#600#, 16#603#),
( 16#6DD#, 16#6DD#),
( 16#70F#, 16#70F#),
( 16#17B4#, 16#17B5#),
( 16#200B#, 16#200F#),
( 16#202A#, 16#202E#),
( 16#2060#, 16#2063#),
( 16#206A#, 16#206F#),
( 16#FEFF#, 16#FEFF#),
( 16#FFF9#, 16#FFFB#),
( 16#1D173#, 16#1D17A#),
( 16#E0001#, 16#E0001#),
( 16#E0020#, 16#E007F#)));
Co_Node : aliased Set_Node :=
(3, 2, (
( 16#E000#, 16#F8FF#),
( 16#F0000#, 16#FFFFD#),
(16#100000#, 16#10FFFD#)));
Cs_Node : aliased Set_Node :=
(1, 2, (
1 => ( 16#D800#, 16#DFFF#)));
Ll_Node : aliased Set_Node :=
(502, 2, (
( 16#61#, 16#7A#),
( 16#AA#, 16#AA#),
( 16#B5#, 16#B5#),
( 16#BA#, 16#BA#),
( 16#DF#, 16#F6#),
( 16#F8#, 16#FF#),
( 16#101#, 16#101#),
( 16#103#, 16#103#),
( 16#105#, 16#105#),
( 16#107#, 16#107#),
( 16#109#, 16#109#),
( 16#10B#, 16#10B#),
( 16#10D#, 16#10D#),
( 16#10F#, 16#10F#),
( 16#111#, 16#111#),
( 16#113#, 16#113#),
( 16#115#, 16#115#),
( 16#117#, 16#117#),
( 16#119#, 16#119#),
( 16#11B#, 16#11B#),
( 16#11D#, 16#11D#),
( 16#11F#, 16#11F#),
( 16#121#, 16#121#),
( 16#123#, 16#123#),
( 16#125#, 16#125#),
( 16#127#, 16#127#),
( 16#129#, 16#129#),
( 16#12B#, 16#12B#),
( 16#12D#, 16#12D#),
( 16#12F#, 16#12F#),
( 16#131#, 16#131#),
( 16#133#, 16#133#),
( 16#135#, 16#135#),
( 16#137#, 16#138#),
( 16#13A#, 16#13A#),
( 16#13C#, 16#13C#),
( 16#13E#, 16#13E#),
( 16#140#, 16#140#),
( 16#142#, 16#142#),
( 16#144#, 16#144#),
( 16#146#, 16#146#),
( 16#148#, 16#149#),
( 16#14B#, 16#14B#),
( 16#14D#, 16#14D#),
( 16#14F#, 16#14F#),
( 16#151#, 16#151#),
( 16#153#, 16#153#),
( 16#155#, 16#155#),
( 16#157#, 16#157#),
( 16#159#, 16#159#),
( 16#15B#, 16#15B#),
( 16#15D#, 16#15D#),
( 16#15F#, 16#15F#),
( 16#161#, 16#161#),
( 16#163#, 16#163#),
( 16#165#, 16#165#),
( 16#167#, 16#167#),
( 16#169#, 16#169#),
( 16#16B#, 16#16B#),
( 16#16D#, 16#16D#),
( 16#16F#, 16#16F#),
( 16#171#, 16#171#),
( 16#173#, 16#173#),
( 16#175#, 16#175#),
( 16#177#, 16#177#),
( 16#17A#, 16#17A#),
( 16#17C#, 16#17C#),
( 16#17E#, 16#180#),
( 16#183#, 16#183#),
( 16#185#, 16#185#),
( 16#188#, 16#188#),
( 16#18C#, 16#18D#),
( 16#192#, 16#192#),
( 16#195#, 16#195#),
( 16#199#, 16#19B#),
( 16#19E#, 16#19E#),
( 16#1A1#, 16#1A1#),
( 16#1A3#, 16#1A3#),
( 16#1A5#, 16#1A5#),
( 16#1A8#, 16#1A8#),
( 16#1AA#, 16#1AB#),
( 16#1AD#, 16#1AD#),
( 16#1B0#, 16#1B0#),
( 16#1B4#, 16#1B4#),
( 16#1B6#, 16#1B6#),
( 16#1B9#, 16#1BA#),
( 16#1BD#, 16#1BF#),
( 16#1C6#, 16#1C6#),
( 16#1C9#, 16#1C9#),
( 16#1CC#, 16#1CC#),
( 16#1CE#, 16#1CE#),
( 16#1D0#, 16#1D0#),
( 16#1D2#, 16#1D2#),
( 16#1D4#, 16#1D4#),
( 16#1D6#, 16#1D6#),
( 16#1D8#, 16#1D8#),
( 16#1DA#, 16#1DA#),
( 16#1DC#, 16#1DD#),
( 16#1DF#, 16#1DF#),
( 16#1E1#, 16#1E1#),
( 16#1E3#, 16#1E3#),
( 16#1E5#, 16#1E5#),
( 16#1E7#, 16#1E7#),
( 16#1E9#, 16#1E9#),
( 16#1EB#, 16#1EB#),
( 16#1ED#, 16#1ED#),
( 16#1EF#, 16#1F0#),
( 16#1F3#, 16#1F3#),
( 16#1F5#, 16#1F5#),
( 16#1F9#, 16#1F9#),
( 16#1FB#, 16#1FB#),
( 16#1FD#, 16#1FD#),
( 16#1FF#, 16#1FF#),
( 16#201#, 16#201#),
( 16#203#, 16#203#),
( 16#205#, 16#205#),
( 16#207#, 16#207#),
( 16#209#, 16#209#),
( 16#20B#, 16#20B#),
( 16#20D#, 16#20D#),
( 16#20F#, 16#20F#),
( 16#211#, 16#211#),
( 16#213#, 16#213#),
( 16#215#, 16#215#),
( 16#217#, 16#217#),
( 16#219#, 16#219#),
( 16#21B#, 16#21B#),
( 16#21D#, 16#21D#),
( 16#21F#, 16#21F#),
( 16#221#, 16#221#),
( 16#223#, 16#223#),
( 16#225#, 16#225#),
( 16#227#, 16#227#),
( 16#229#, 16#229#),
( 16#22B#, 16#22B#),
( 16#22D#, 16#22D#),
( 16#22F#, 16#22F#),
( 16#231#, 16#231#),
( 16#233#, 16#239#),
( 16#23C#, 16#23C#),
( 16#23F#, 16#240#),
( 16#242#, 16#242#),
( 16#247#, 16#247#),
( 16#249#, 16#249#),
( 16#24B#, 16#24B#),
( 16#24D#, 16#24D#),
( 16#24F#, 16#293#),
( 16#295#, 16#2AF#),
( 16#37B#, 16#37D#),
( 16#390#, 16#390#),
( 16#3AC#, 16#3CE#),
( 16#3D0#, 16#3D1#),
( 16#3D5#, 16#3D7#),
( 16#3D9#, 16#3D9#),
( 16#3DB#, 16#3DB#),
( 16#3DD#, 16#3DD#),
( 16#3DF#, 16#3DF#),
( 16#3E1#, 16#3E1#),
( 16#3E3#, 16#3E3#),
( 16#3E5#, 16#3E5#),
( 16#3E7#, 16#3E7#),
( 16#3E9#, 16#3E9#),
( 16#3EB#, 16#3EB#),
( 16#3ED#, 16#3ED#),
( 16#3EF#, 16#3F3#),
( 16#3F5#, 16#3F5#),
( 16#3F8#, 16#3F8#),
( 16#3FB#, 16#3FC#),
( 16#430#, 16#45F#),
( 16#461#, 16#461#),
( 16#463#, 16#463#),
( 16#465#, 16#465#),
( 16#467#, 16#467#),
( 16#469#, 16#469#),
( 16#46B#, 16#46B#),
( 16#46D#, 16#46D#),
( 16#46F#, 16#46F#),
( 16#471#, 16#471#),
( 16#473#, 16#473#),
( 16#475#, 16#475#),
( 16#477#, 16#477#),
( 16#479#, 16#479#),
( 16#47B#, 16#47B#),
( 16#47D#, 16#47D#),
( 16#47F#, 16#47F#),
( 16#481#, 16#481#),
( 16#48B#, 16#48B#),
( 16#48D#, 16#48D#),
( 16#48F#, 16#48F#),
( 16#491#, 16#491#),
( 16#493#, 16#493#),
( 16#495#, 16#495#),
( 16#497#, 16#497#),
( 16#499#, 16#499#),
( 16#49B#, 16#49B#),
( 16#49D#, 16#49D#),
( 16#49F#, 16#49F#),
( 16#4A1#, 16#4A1#),
( 16#4A3#, 16#4A3#),
( 16#4A5#, 16#4A5#),
( 16#4A7#, 16#4A7#),
( 16#4A9#, 16#4A9#),
( 16#4AB#, 16#4AB#),
( 16#4AD#, 16#4AD#),
( 16#4AF#, 16#4AF#),
( 16#4B1#, 16#4B1#),
( 16#4B3#, 16#4B3#),
( 16#4B5#, 16#4B5#),
( 16#4B7#, 16#4B7#),
( 16#4B9#, 16#4B9#),
( 16#4BB#, 16#4BB#),
( 16#4BD#, 16#4BD#),
( 16#4BF#, 16#4BF#),
( 16#4C2#, 16#4C2#),
( 16#4C4#, 16#4C4#),
( 16#4C6#, 16#4C6#),
( 16#4C8#, 16#4C8#),
( 16#4CA#, 16#4CA#),
( 16#4CC#, 16#4CC#),
( 16#4CE#, 16#4CF#),
( 16#4D1#, 16#4D1#),
( 16#4D3#, 16#4D3#),
( 16#4D5#, 16#4D5#),
( 16#4D7#, 16#4D7#),
( 16#4D9#, 16#4D9#),
( 16#4DB#, 16#4DB#),
( 16#4DD#, 16#4DD#),
( 16#4DF#, 16#4DF#),
( 16#4E1#, 16#4E1#),
( 16#4E3#, 16#4E3#),
( 16#4E5#, 16#4E5#),
( 16#4E7#, 16#4E7#),
( 16#4E9#, 16#4E9#),
( 16#4EB#, 16#4EB#),
( 16#4ED#, 16#4ED#),
( 16#4EF#, 16#4EF#),
( 16#4F1#, 16#4F1#),
( 16#4F3#, 16#4F3#),
( 16#4F5#, 16#4F5#),
( 16#4F7#, 16#4F7#),
( 16#4F9#, 16#4F9#),
( 16#4FB#, 16#4FB#),
( 16#4FD#, 16#4FD#),
( 16#4FF#, 16#4FF#),
( 16#501#, 16#501#),
( 16#503#, 16#503#),
( 16#505#, 16#505#),
( 16#507#, 16#507#),
( 16#509#, 16#509#),
( 16#50B#, 16#50B#),
( 16#50D#, 16#50D#),
( 16#50F#, 16#50F#),
( 16#511#, 16#511#),
( 16#513#, 16#513#),
( 16#561#, 16#587#),
( 16#1D00#, 16#1D2B#),
( 16#1D62#, 16#1D77#),
( 16#1D79#, 16#1D9A#),
( 16#1E01#, 16#1E01#),
( 16#1E03#, 16#1E03#),
( 16#1E05#, 16#1E05#),
( 16#1E07#, 16#1E07#),
( 16#1E09#, 16#1E09#),
( 16#1E0B#, 16#1E0B#),
( 16#1E0D#, 16#1E0D#),
( 16#1E0F#, 16#1E0F#),
( 16#1E11#, 16#1E11#),
( 16#1E13#, 16#1E13#),
( 16#1E15#, 16#1E15#),
( 16#1E17#, 16#1E17#),
( 16#1E19#, 16#1E19#),
( 16#1E1B#, 16#1E1B#),
( 16#1E1D#, 16#1E1D#),
( 16#1E1F#, 16#1E1F#),
( 16#1E21#, 16#1E21#),
( 16#1E23#, 16#1E23#),
( 16#1E25#, 16#1E25#),
( 16#1E27#, 16#1E27#),
( 16#1E29#, 16#1E29#),
( 16#1E2B#, 16#1E2B#),
( 16#1E2D#, 16#1E2D#),
( 16#1E2F#, 16#1E2F#),
( 16#1E31#, 16#1E31#),
( 16#1E33#, 16#1E33#),
( 16#1E35#, 16#1E35#),
( 16#1E37#, 16#1E37#),
( 16#1E39#, 16#1E39#),
( 16#1E3B#, 16#1E3B#),
( 16#1E3D#, 16#1E3D#),
( 16#1E3F#, 16#1E3F#),
( 16#1E41#, 16#1E41#),
( 16#1E43#, 16#1E43#),
( 16#1E45#, 16#1E45#),
( 16#1E47#, 16#1E47#),
( 16#1E49#, 16#1E49#),
( 16#1E4B#, 16#1E4B#),
( 16#1E4D#, 16#1E4D#),
( 16#1E4F#, 16#1E4F#),
( 16#1E51#, 16#1E51#),
( 16#1E53#, 16#1E53#),
( 16#1E55#, 16#1E55#),
( 16#1E57#, 16#1E57#),
( 16#1E59#, 16#1E59#),
( 16#1E5B#, 16#1E5B#),
( 16#1E5D#, 16#1E5D#),
( 16#1E5F#, 16#1E5F#),
( 16#1E61#, 16#1E61#),
( 16#1E63#, 16#1E63#),
( 16#1E65#, 16#1E65#),
( 16#1E67#, 16#1E67#),
( 16#1E69#, 16#1E69#),
( 16#1E6B#, 16#1E6B#),
( 16#1E6D#, 16#1E6D#),
( 16#1E6F#, 16#1E6F#),
( 16#1E71#, 16#1E71#),
( 16#1E73#, 16#1E73#),
( 16#1E75#, 16#1E75#),
( 16#1E77#, 16#1E77#),
( 16#1E79#, 16#1E79#),
( 16#1E7B#, 16#1E7B#),
( 16#1E7D#, 16#1E7D#),
( 16#1E7F#, 16#1E7F#),
( 16#1E81#, 16#1E81#),
( 16#1E83#, 16#1E83#),
( 16#1E85#, 16#1E85#),
( 16#1E87#, 16#1E87#),
( 16#1E89#, 16#1E89#),
( 16#1E8B#, 16#1E8B#),
( 16#1E8D#, 16#1E8D#),
( 16#1E8F#, 16#1E8F#),
( 16#1E91#, 16#1E91#),
( 16#1E93#, 16#1E93#),
( 16#1E95#, 16#1E9B#),
( 16#1EA1#, 16#1EA1#),
( 16#1EA3#, 16#1EA3#),
( 16#1EA5#, 16#1EA5#),
( 16#1EA7#, 16#1EA7#),
( 16#1EA9#, 16#1EA9#),
( 16#1EAB#, 16#1EAB#),
( 16#1EAD#, 16#1EAD#),
( 16#1EAF#, 16#1EAF#),
( 16#1EB1#, 16#1EB1#),
( 16#1EB3#, 16#1EB3#),
( 16#1EB5#, 16#1EB5#),
( 16#1EB7#, 16#1EB7#),
( 16#1EB9#, 16#1EB9#),
( 16#1EBB#, 16#1EBB#),
( 16#1EBD#, 16#1EBD#),
( 16#1EBF#, 16#1EBF#),
( 16#1EC1#, 16#1EC1#),
( 16#1EC3#, 16#1EC3#),
( 16#1EC5#, 16#1EC5#),
( 16#1EC7#, 16#1EC7#),
( 16#1EC9#, 16#1EC9#),
( 16#1ECB#, 16#1ECB#),
( 16#1ECD#, 16#1ECD#),
( 16#1ECF#, 16#1ECF#),
( 16#1ED1#, 16#1ED1#),
( 16#1ED3#, 16#1ED3#),
( 16#1ED5#, 16#1ED5#),
( 16#1ED7#, 16#1ED7#),
( 16#1ED9#, 16#1ED9#),
( 16#1EDB#, 16#1EDB#),
( 16#1EDD#, 16#1EDD#),
( 16#1EDF#, 16#1EDF#),
( 16#1EE1#, 16#1EE1#),
( 16#1EE3#, 16#1EE3#),
( 16#1EE5#, 16#1EE5#),
( 16#1EE7#, 16#1EE7#),
( 16#1EE9#, 16#1EE9#),
( 16#1EEB#, 16#1EEB#),
( 16#1EED#, 16#1EED#),
( 16#1EEF#, 16#1EEF#),
( 16#1EF1#, 16#1EF1#),
( 16#1EF3#, 16#1EF3#),
( 16#1EF5#, 16#1EF5#),
( 16#1EF7#, 16#1EF7#),
( 16#1EF9#, 16#1EF9#),
( 16#1F00#, 16#1F07#),
( 16#1F10#, 16#1F15#),
( 16#1F20#, 16#1F27#),
( 16#1F30#, 16#1F37#),
( 16#1F40#, 16#1F45#),
( 16#1F50#, 16#1F57#),
( 16#1F60#, 16#1F67#),
( 16#1F70#, 16#1F7D#),
( 16#1F80#, 16#1F87#),
( 16#1F90#, 16#1F97#),
( 16#1FA0#, 16#1FA7#),
( 16#1FB0#, 16#1FB4#),
( 16#1FB6#, 16#1FB7#),
( 16#1FBE#, 16#1FBE#),
( 16#1FC2#, 16#1FC4#),
( 16#1FC6#, 16#1FC7#),
( 16#1FD0#, 16#1FD3#),
( 16#1FD6#, 16#1FD7#),
( 16#1FE0#, 16#1FE7#),
( 16#1FF2#, 16#1FF4#),
( 16#1FF6#, 16#1FF7#),
( 16#2071#, 16#2071#),
( 16#207F#, 16#207F#),
( 16#210A#, 16#210A#),
( 16#210E#, 16#210F#),
( 16#2113#, 16#2113#),
( 16#212F#, 16#212F#),
( 16#2134#, 16#2134#),
( 16#2139#, 16#2139#),
( 16#213C#, 16#213D#),
( 16#2146#, 16#2149#),
( 16#214E#, 16#214E#),
( 16#2184#, 16#2184#),
( 16#2C30#, 16#2C5E#),
( 16#2C61#, 16#2C61#),
( 16#2C65#, 16#2C66#),
( 16#2C68#, 16#2C68#),
( 16#2C6A#, 16#2C6A#),
( 16#2C6C#, 16#2C6C#),
( 16#2C74#, 16#2C74#),
( 16#2C76#, 16#2C77#),
( 16#2C81#, 16#2C81#),
( 16#2C83#, 16#2C83#),
( 16#2C85#, 16#2C85#),
( 16#2C87#, 16#2C87#),
( 16#2C89#, 16#2C89#),
( 16#2C8B#, 16#2C8B#),
( 16#2C8D#, 16#2C8D#),
( 16#2C8F#, 16#2C8F#),
( 16#2C91#, 16#2C91#),
( 16#2C93#, 16#2C93#),
( 16#2C95#, 16#2C95#),
( 16#2C97#, 16#2C97#),
( 16#2C99#, 16#2C99#),
( 16#2C9B#, 16#2C9B#),
( 16#2C9D#, 16#2C9D#),
( 16#2C9F#, 16#2C9F#),
( 16#2CA1#, 16#2CA1#),
( 16#2CA3#, 16#2CA3#),
( 16#2CA5#, 16#2CA5#),
( 16#2CA7#, 16#2CA7#),
( 16#2CA9#, 16#2CA9#),
( 16#2CAB#, 16#2CAB#),
( 16#2CAD#, 16#2CAD#),
( 16#2CAF#, 16#2CAF#),
( 16#2CB1#, 16#2CB1#),
( 16#2CB3#, 16#2CB3#),
( 16#2CB5#, 16#2CB5#),
( 16#2CB7#, 16#2CB7#),
( 16#2CB9#, 16#2CB9#),
( 16#2CBB#, 16#2CBB#),
( 16#2CBD#, 16#2CBD#),
( 16#2CBF#, 16#2CBF#),
( 16#2CC1#, 16#2CC1#),
( 16#2CC3#, 16#2CC3#),
( 16#2CC5#, 16#2CC5#),
( 16#2CC7#, 16#2CC7#),
( 16#2CC9#, 16#2CC9#),
( 16#2CCB#, 16#2CCB#),
( 16#2CCD#, 16#2CCD#),
( 16#2CCF#, 16#2CCF#),
( 16#2CD1#, 16#2CD1#),
( 16#2CD3#, 16#2CD3#),
( 16#2CD5#, 16#2CD5#),
( 16#2CD7#, 16#2CD7#),
( 16#2CD9#, 16#2CD9#),
( 16#2CDB#, 16#2CDB#),
( 16#2CDD#, 16#2CDD#),
( 16#2CDF#, 16#2CDF#),
( 16#2CE1#, 16#2CE1#),
( 16#2CE3#, 16#2CE4#),
( 16#2D00#, 16#2D25#),
( 16#FB00#, 16#FB06#),
( 16#FB13#, 16#FB17#),
( 16#FF41#, 16#FF5A#),
( 16#10428#, 16#1044F#),
( 16#1D41A#, 16#1D433#),
( 16#1D44E#, 16#1D454#),
( 16#1D456#, 16#1D467#),
( 16#1D482#, 16#1D49B#),
( 16#1D4B6#, 16#1D4B9#),
( 16#1D4BB#, 16#1D4BB#),
( 16#1D4BD#, 16#1D4C3#),
( 16#1D4C5#, 16#1D4CF#),
( 16#1D4EA#, 16#1D503#),
( 16#1D51E#, 16#1D537#),
( 16#1D552#, 16#1D56B#),
( 16#1D586#, 16#1D59F#),
( 16#1D5BA#, 16#1D5D3#),
( 16#1D5EE#, 16#1D607#),
( 16#1D622#, 16#1D63B#),
( 16#1D656#, 16#1D66F#),
( 16#1D68A#, 16#1D6A5#),
( 16#1D6C2#, 16#1D6DA#),
( 16#1D6DC#, 16#1D6E1#),
( 16#1D6FC#, 16#1D714#),
( 16#1D716#, 16#1D71B#),
( 16#1D736#, 16#1D74E#),
( 16#1D750#, 16#1D755#),
( 16#1D770#, 16#1D788#),
( 16#1D78A#, 16#1D78F#),
( 16#1D7AA#, 16#1D7C2#),
( 16#1D7C4#, 16#1D7C9#),
( 16#1D7CB#, 16#1D7CB#)));
Lm_Node : aliased Set_Node :=
(29, 2, (
( 16#2B0#, 16#2C1#),
( 16#2C6#, 16#2D1#),
( 16#2E0#, 16#2E4#),
( 16#2EE#, 16#2EE#),
( 16#37A#, 16#37A#),
( 16#559#, 16#559#),
( 16#640#, 16#640#),
( 16#6E5#, 16#6E6#),
( 16#7F4#, 16#7F5#),
( 16#7FA#, 16#7FA#),
( 16#E46#, 16#E46#),
( 16#EC6#, 16#EC6#),
( 16#10FC#, 16#10FC#),
( 16#17D7#, 16#17D7#),
( 16#1843#, 16#1843#),
( 16#1D2C#, 16#1D61#),
( 16#1D78#, 16#1D78#),
( 16#1D9B#, 16#1DBF#),
( 16#2090#, 16#2094#),
( 16#2D6F#, 16#2D6F#),
( 16#3005#, 16#3005#),
( 16#3031#, 16#3035#),
( 16#303B#, 16#303B#),
( 16#309D#, 16#309E#),
( 16#30FC#, 16#30FE#),
( 16#A015#, 16#A015#),
( 16#A717#, 16#A71A#),
( 16#FF70#, 16#FF70#),
( 16#FF9E#, 16#FF9F#)));
Lo_Node : aliased Set_Node :=
(253, 2, (
( 16#1BB#, 16#1BB#),
( 16#1C0#, 16#1C3#),
( 16#294#, 16#294#),
( 16#5D0#, 16#5EA#),
( 16#5F0#, 16#5F2#),
( 16#621#, 16#63A#),
( 16#641#, 16#64A#),
( 16#66E#, 16#66F#),
( 16#671#, 16#6D3#),
( 16#6D5#, 16#6D5#),
( 16#6EE#, 16#6EF#),
( 16#6FA#, 16#6FC#),
( 16#6FF#, 16#6FF#),
( 16#710#, 16#710#),
( 16#712#, 16#72F#),
( 16#74D#, 16#76D#),
( 16#780#, 16#7A5#),
( 16#7B1#, 16#7B1#),
( 16#7CA#, 16#7EA#),
( 16#904#, 16#939#),
( 16#93D#, 16#93D#),
( 16#950#, 16#950#),
( 16#958#, 16#961#),
( 16#97B#, 16#97F#),
( 16#985#, 16#98C#),
( 16#98F#, 16#990#),
( 16#993#, 16#9A8#),
( 16#9AA#, 16#9B0#),
( 16#9B2#, 16#9B2#),
( 16#9B6#, 16#9B9#),
( 16#9BD#, 16#9BD#),
( 16#9CE#, 16#9CE#),
( 16#9DC#, 16#9DD#),
( 16#9DF#, 16#9E1#),
( 16#9F0#, 16#9F1#),
( 16#A05#, 16#A0A#),
( 16#A0F#, 16#A10#),
( 16#A13#, 16#A28#),
( 16#A2A#, 16#A30#),
( 16#A32#, 16#A33#),
( 16#A35#, 16#A36#),
( 16#A38#, 16#A39#),
( 16#A59#, 16#A5C#),
( 16#A5E#, 16#A5E#),
( 16#A72#, 16#A74#),
( 16#A85#, 16#A8D#),
( 16#A8F#, 16#A91#),
( 16#A93#, 16#AA8#),
( 16#AAA#, 16#AB0#),
( 16#AB2#, 16#AB3#),
( 16#AB5#, 16#AB9#),
( 16#ABD#, 16#ABD#),
( 16#AD0#, 16#AD0#),
( 16#AE0#, 16#AE1#),
( 16#B05#, 16#B0C#),
( 16#B0F#, 16#B10#),
( 16#B13#, 16#B28#),
( 16#B2A#, 16#B30#),
( 16#B32#, 16#B33#),
( 16#B35#, 16#B39#),
( 16#B3D#, 16#B3D#),
( 16#B5C#, 16#B5D#),
( 16#B5F#, 16#B61#),
( 16#B71#, 16#B71#),
( 16#B83#, 16#B83#),
( 16#B85#, 16#B8A#),
( 16#B8E#, 16#B90#),
( 16#B92#, 16#B95#),
( 16#B99#, 16#B9A#),
( 16#B9C#, 16#B9C#),
( 16#B9E#, 16#B9F#),
( 16#BA3#, 16#BA4#),
( 16#BA8#, 16#BAA#),
( 16#BAE#, 16#BB9#),
( 16#C05#, 16#C0C#),
( 16#C0E#, 16#C10#),
( 16#C12#, 16#C28#),
( 16#C2A#, 16#C33#),
( 16#C35#, 16#C39#),
( 16#C60#, 16#C61#),
( 16#C85#, 16#C8C#),
( 16#C8E#, 16#C90#),
( 16#C92#, 16#CA8#),
( 16#CAA#, 16#CB3#),
( 16#CB5#, 16#CB9#),
( 16#CBD#, 16#CBD#),
( 16#CDE#, 16#CDE#),
( 16#CE0#, 16#CE1#),
( 16#D05#, 16#D0C#),
( 16#D0E#, 16#D10#),
( 16#D12#, 16#D28#),
( 16#D2A#, 16#D39#),
( 16#D60#, 16#D61#),
( 16#D85#, 16#D96#),
( 16#D9A#, 16#DB1#),
( 16#DB3#, 16#DBB#),
( 16#DBD#, 16#DBD#),
( 16#DC0#, 16#DC6#),
( 16#E01#, 16#E30#),
( 16#E32#, 16#E33#),
( 16#E40#, 16#E45#),
( 16#E81#, 16#E82#),
( 16#E84#, 16#E84#),
( 16#E87#, 16#E88#),
( 16#E8A#, 16#E8A#),
( 16#E8D#, 16#E8D#),
( 16#E94#, 16#E97#),
( 16#E99#, 16#E9F#),
( 16#EA1#, 16#EA3#),
( 16#EA5#, 16#EA5#),
( 16#EA7#, 16#EA7#),
( 16#EAA#, 16#EAB#),
( 16#EAD#, 16#EB0#),
( 16#EB2#, 16#EB3#),
( 16#EBD#, 16#EBD#),
( 16#EC0#, 16#EC4#),
( 16#EDC#, 16#EDD#),
( 16#F00#, 16#F00#),
( 16#F40#, 16#F47#),
( 16#F49#, 16#F6A#),
( 16#F88#, 16#F8B#),
( 16#1000#, 16#1021#),
( 16#1023#, 16#1027#),
( 16#1029#, 16#102A#),
( 16#1050#, 16#1055#),
( 16#10D0#, 16#10FA#),
( 16#1100#, 16#1159#),
( 16#115F#, 16#11A2#),
( 16#11A8#, 16#11F9#),
( 16#1200#, 16#1248#),
( 16#124A#, 16#124D#),
( 16#1250#, 16#1256#),
( 16#1258#, 16#1258#),
( 16#125A#, 16#125D#),
( 16#1260#, 16#1288#),
( 16#128A#, 16#128D#),
( 16#1290#, 16#12B0#),
( 16#12B2#, 16#12B5#),
( 16#12B8#, 16#12BE#),
( 16#12C0#, 16#12C0#),
( 16#12C2#, 16#12C5#),
( 16#12C8#, 16#12D6#),
( 16#12D8#, 16#1310#),
( 16#1312#, 16#1315#),
( 16#1318#, 16#135A#),
( 16#1380#, 16#138F#),
( 16#13A0#, 16#13F4#),
( 16#1401#, 16#166C#),
( 16#166F#, 16#1676#),
( 16#1681#, 16#169A#),
( 16#16A0#, 16#16EA#),
( 16#1700#, 16#170C#),
( 16#170E#, 16#1711#),
( 16#1720#, 16#1731#),
( 16#1740#, 16#1751#),
( 16#1760#, 16#176C#),
( 16#176E#, 16#1770#),
( 16#1780#, 16#17B3#),
( 16#17DC#, 16#17DC#),
( 16#1820#, 16#1842#),
( 16#1844#, 16#1877#),
( 16#1880#, 16#18A8#),
( 16#1900#, 16#191C#),
( 16#1950#, 16#196D#),
( 16#1970#, 16#1974#),
( 16#1980#, 16#19A9#),
( 16#19C1#, 16#19C7#),
( 16#1A00#, 16#1A16#),
( 16#1B05#, 16#1B33#),
( 16#1B45#, 16#1B4B#),
( 16#2135#, 16#2138#),
( 16#2D30#, 16#2D65#),
( 16#2D80#, 16#2D96#),
( 16#2DA0#, 16#2DA6#),
( 16#2DA8#, 16#2DAE#),
( 16#2DB0#, 16#2DB6#),
( 16#2DB8#, 16#2DBE#),
( 16#2DC0#, 16#2DC6#),
( 16#2DC8#, 16#2DCE#),
( 16#2DD0#, 16#2DD6#),
( 16#2DD8#, 16#2DDE#),
( 16#3006#, 16#3006#),
( 16#303C#, 16#303C#),
( 16#3041#, 16#3096#),
( 16#309F#, 16#309F#),
( 16#30A1#, 16#30FA#),
( 16#30FF#, 16#30FF#),
( 16#3105#, 16#312C#),
( 16#3131#, 16#318E#),
( 16#31A0#, 16#31B7#),
( 16#31F0#, 16#31FF#),
( 16#3400#, 16#4DB5#),
( 16#4E00#, 16#9FBB#),
( 16#A000#, 16#A014#),
( 16#A016#, 16#A48C#),
( 16#A800#, 16#A801#),
( 16#A803#, 16#A805#),
( 16#A807#, 16#A80A#),
( 16#A80C#, 16#A822#),
( 16#A840#, 16#A873#),
( 16#AC00#, 16#D7A3#),
( 16#F900#, 16#FA2D#),
( 16#FA30#, 16#FA6A#),
( 16#FA70#, 16#FAD9#),
( 16#FB1D#, 16#FB1D#),
( 16#FB1F#, 16#FB28#),
( 16#FB2A#, 16#FB36#),
( 16#FB38#, 16#FB3C#),
( 16#FB3E#, 16#FB3E#),
( 16#FB40#, 16#FB41#),
( 16#FB43#, 16#FB44#),
( 16#FB46#, 16#FBB1#),
( 16#FBD3#, 16#FD3D#),
( 16#FD50#, 16#FD8F#),
( 16#FD92#, 16#FDC7#),
( 16#FDF0#, 16#FDFB#),
( 16#FE70#, 16#FE74#),
( 16#FE76#, 16#FEFC#),
( 16#FF66#, 16#FF6F#),
( 16#FF71#, 16#FF9D#),
( 16#FFA0#, 16#FFBE#),
( 16#FFC2#, 16#FFC7#),
( 16#FFCA#, 16#FFCF#),
( 16#FFD2#, 16#FFD7#),
( 16#FFDA#, 16#FFDC#),
( 16#10000#, 16#1000B#),
( 16#1000D#, 16#10026#),
( 16#10028#, 16#1003A#),
( 16#1003C#, 16#1003D#),
( 16#1003F#, 16#1004D#),
( 16#10050#, 16#1005D#),
( 16#10080#, 16#100FA#),
( 16#10300#, 16#1031E#),
( 16#10330#, 16#10340#),
( 16#10342#, 16#10349#),
( 16#10380#, 16#1039D#),
( 16#103A0#, 16#103C3#),
( 16#103C8#, 16#103CF#),
( 16#10450#, 16#1049D#),
( 16#10800#, 16#10805#),
( 16#10808#, 16#10808#),
( 16#1080A#, 16#10835#),
( 16#10837#, 16#10838#),
( 16#1083C#, 16#1083C#),
( 16#1083F#, 16#1083F#),
( 16#10900#, 16#10915#),
( 16#10A00#, 16#10A00#),
( 16#10A10#, 16#10A13#),
( 16#10A15#, 16#10A17#),
( 16#10A19#, 16#10A33#),
( 16#12000#, 16#1236E#),
( 16#20000#, 16#2A6D6#),
( 16#2F800#, 16#2FA1D#)));
Lt_Node : aliased Set_Node :=
(10, 2, (
( 16#1C5#, 16#1C5#),
( 16#1C8#, 16#1C8#),
( 16#1CB#, 16#1CB#),
( 16#1F2#, 16#1F2#),
( 16#1F88#, 16#1F8F#),
( 16#1F98#, 16#1F9F#),
( 16#1FA8#, 16#1FAF#),
( 16#1FBC#, 16#1FBC#),
( 16#1FCC#, 16#1FCC#),
( 16#1FFC#, 16#1FFC#)));
Lu_Node : aliased Set_Node :=
(493, 2, (
( 16#41#, 16#5A#),
( 16#C0#, 16#D6#),
( 16#D8#, 16#DE#),
( 16#100#, 16#100#),
( 16#102#, 16#102#),
( 16#104#, 16#104#),
( 16#106#, 16#106#),
( 16#108#, 16#108#),
( 16#10A#, 16#10A#),
( 16#10C#, 16#10C#),
( 16#10E#, 16#10E#),
( 16#110#, 16#110#),
( 16#112#, 16#112#),
( 16#114#, 16#114#),
( 16#116#, 16#116#),
( 16#118#, 16#118#),
( 16#11A#, 16#11A#),
( 16#11C#, 16#11C#),
( 16#11E#, 16#11E#),
( 16#120#, 16#120#),
( 16#122#, 16#122#),
( 16#124#, 16#124#),
( 16#126#, 16#126#),
( 16#128#, 16#128#),
( 16#12A#, 16#12A#),
( 16#12C#, 16#12C#),
( 16#12E#, 16#12E#),
( 16#130#, 16#130#),
( 16#132#, 16#132#),
( 16#134#, 16#134#),
( 16#136#, 16#136#),
( 16#139#, 16#139#),
( 16#13B#, 16#13B#),
( 16#13D#, 16#13D#),
( 16#13F#, 16#13F#),
( 16#141#, 16#141#),
( 16#143#, 16#143#),
( 16#145#, 16#145#),
( 16#147#, 16#147#),
( 16#14A#, 16#14A#),
( 16#14C#, 16#14C#),
( 16#14E#, 16#14E#),
( 16#150#, 16#150#),
( 16#152#, 16#152#),
( 16#154#, 16#154#),
( 16#156#, 16#156#),
( 16#158#, 16#158#),
( 16#15A#, 16#15A#),
( 16#15C#, 16#15C#),
( 16#15E#, 16#15E#),
( 16#160#, 16#160#),
( 16#162#, 16#162#),
( 16#164#, 16#164#),
( 16#166#, 16#166#),
( 16#168#, 16#168#),
( 16#16A#, 16#16A#),
( 16#16C#, 16#16C#),
( 16#16E#, 16#16E#),
( 16#170#, 16#170#),
( 16#172#, 16#172#),
( 16#174#, 16#174#),
( 16#176#, 16#176#),
( 16#178#, 16#179#),
( 16#17B#, 16#17B#),
( 16#17D#, 16#17D#),
( 16#181#, 16#182#),
( 16#184#, 16#184#),
( 16#186#, 16#187#),
( 16#189#, 16#18B#),
( 16#18E#, 16#191#),
( 16#193#, 16#194#),
( 16#196#, 16#198#),
( 16#19C#, 16#19D#),
( 16#19F#, 16#1A0#),
( 16#1A2#, 16#1A2#),
( 16#1A4#, 16#1A4#),
( 16#1A6#, 16#1A7#),
( 16#1A9#, 16#1A9#),
( 16#1AC#, 16#1AC#),
( 16#1AE#, 16#1AF#),
( 16#1B1#, 16#1B3#),
( 16#1B5#, 16#1B5#),
( 16#1B7#, 16#1B8#),
( 16#1BC#, 16#1BC#),
( 16#1C4#, 16#1C4#),
( 16#1C7#, 16#1C7#),
( 16#1CA#, 16#1CA#),
( 16#1CD#, 16#1CD#),
( 16#1CF#, 16#1CF#),
( 16#1D1#, 16#1D1#),
( 16#1D3#, 16#1D3#),
( 16#1D5#, 16#1D5#),
( 16#1D7#, 16#1D7#),
( 16#1D9#, 16#1D9#),
( 16#1DB#, 16#1DB#),
( 16#1DE#, 16#1DE#),
( 16#1E0#, 16#1E0#),
( 16#1E2#, 16#1E2#),
( 16#1E4#, 16#1E4#),
( 16#1E6#, 16#1E6#),
( 16#1E8#, 16#1E8#),
( 16#1EA#, 16#1EA#),
( 16#1EC#, 16#1EC#),
( 16#1EE#, 16#1EE#),
( 16#1F1#, 16#1F1#),
( 16#1F4#, 16#1F4#),
( 16#1F6#, 16#1F8#),
( 16#1FA#, 16#1FA#),
( 16#1FC#, 16#1FC#),
( 16#1FE#, 16#1FE#),
( 16#200#, 16#200#),
( 16#202#, 16#202#),
( 16#204#, 16#204#),
( 16#206#, 16#206#),
( 16#208#, 16#208#),
( 16#20A#, 16#20A#),
( 16#20C#, 16#20C#),
( 16#20E#, 16#20E#),
( 16#210#, 16#210#),
( 16#212#, 16#212#),
( 16#214#, 16#214#),
( 16#216#, 16#216#),
( 16#218#, 16#218#),
( 16#21A#, 16#21A#),
( 16#21C#, 16#21C#),
( 16#21E#, 16#21E#),
( 16#220#, 16#220#),
( 16#222#, 16#222#),
( 16#224#, 16#224#),
( 16#226#, 16#226#),
( 16#228#, 16#228#),
( 16#22A#, 16#22A#),
( 16#22C#, 16#22C#),
( 16#22E#, 16#22E#),
( 16#230#, 16#230#),
( 16#232#, 16#232#),
( 16#23A#, 16#23B#),
( 16#23D#, 16#23E#),
( 16#241#, 16#241#),
( 16#243#, 16#246#),
( 16#248#, 16#248#),
( 16#24A#, 16#24A#),
( 16#24C#, 16#24C#),
( 16#24E#, 16#24E#),
( 16#386#, 16#386#),
( 16#388#, 16#38A#),
( 16#38C#, 16#38C#),
( 16#38E#, 16#38F#),
( 16#391#, 16#3A1#),
( 16#3A3#, 16#3AB#),
( 16#3D2#, 16#3D4#),
( 16#3D8#, 16#3D8#),
( 16#3DA#, 16#3DA#),
( 16#3DC#, 16#3DC#),
( 16#3DE#, 16#3DE#),
( 16#3E0#, 16#3E0#),
( 16#3E2#, 16#3E2#),
( 16#3E4#, 16#3E4#),
( 16#3E6#, 16#3E6#),
( 16#3E8#, 16#3E8#),
( 16#3EA#, 16#3EA#),
( 16#3EC#, 16#3EC#),
( 16#3EE#, 16#3EE#),
( 16#3F4#, 16#3F4#),
( 16#3F7#, 16#3F7#),
( 16#3F9#, 16#3FA#),
( 16#3FD#, 16#42F#),
( 16#460#, 16#460#),
( 16#462#, 16#462#),
( 16#464#, 16#464#),
( 16#466#, 16#466#),
( 16#468#, 16#468#),
( 16#46A#, 16#46A#),
( 16#46C#, 16#46C#),
( 16#46E#, 16#46E#),
( 16#470#, 16#470#),
( 16#472#, 16#472#),
( 16#474#, 16#474#),
( 16#476#, 16#476#),
( 16#478#, 16#478#),
( 16#47A#, 16#47A#),
( 16#47C#, 16#47C#),
( 16#47E#, 16#47E#),
( 16#480#, 16#480#),
( 16#48A#, 16#48A#),
( 16#48C#, 16#48C#),
( 16#48E#, 16#48E#),
( 16#490#, 16#490#),
( 16#492#, 16#492#),
( 16#494#, 16#494#),
( 16#496#, 16#496#),
( 16#498#, 16#498#),
( 16#49A#, 16#49A#),
( 16#49C#, 16#49C#),
( 16#49E#, 16#49E#),
( 16#4A0#, 16#4A0#),
( 16#4A2#, 16#4A2#),
( 16#4A4#, 16#4A4#),
( 16#4A6#, 16#4A6#),
( 16#4A8#, 16#4A8#),
( 16#4AA#, 16#4AA#),
( 16#4AC#, 16#4AC#),
( 16#4AE#, 16#4AE#),
( 16#4B0#, 16#4B0#),
( 16#4B2#, 16#4B2#),
( 16#4B4#, 16#4B4#),
( 16#4B6#, 16#4B6#),
( 16#4B8#, 16#4B8#),
( 16#4BA#, 16#4BA#),
( 16#4BC#, 16#4BC#),
( 16#4BE#, 16#4BE#),
( 16#4C0#, 16#4C1#),
( 16#4C3#, 16#4C3#),
( 16#4C5#, 16#4C5#),
( 16#4C7#, 16#4C7#),
( 16#4C9#, 16#4C9#),
( 16#4CB#, 16#4CB#),
( 16#4CD#, 16#4CD#),
( 16#4D0#, 16#4D0#),
( 16#4D2#, 16#4D2#),
( 16#4D4#, 16#4D4#),
( 16#4D6#, 16#4D6#),
( 16#4D8#, 16#4D8#),
( 16#4DA#, 16#4DA#),
( 16#4DC#, 16#4DC#),
( 16#4DE#, 16#4DE#),
( 16#4E0#, 16#4E0#),
( 16#4E2#, 16#4E2#),
( 16#4E4#, 16#4E4#),
( 16#4E6#, 16#4E6#),
( 16#4E8#, 16#4E8#),
( 16#4EA#, 16#4EA#),
( 16#4EC#, 16#4EC#),
( 16#4EE#, 16#4EE#),
( 16#4F0#, 16#4F0#),
( 16#4F2#, 16#4F2#),
( 16#4F4#, 16#4F4#),
( 16#4F6#, 16#4F6#),
( 16#4F8#, 16#4F8#),
( 16#4FA#, 16#4FA#),
( 16#4FC#, 16#4FC#),
( 16#4FE#, 16#4FE#),
( 16#500#, 16#500#),
( 16#502#, 16#502#),
( 16#504#, 16#504#),
( 16#506#, 16#506#),
( 16#508#, 16#508#),
( 16#50A#, 16#50A#),
( 16#50C#, 16#50C#),
( 16#50E#, 16#50E#),
( 16#510#, 16#510#),
( 16#512#, 16#512#),
( 16#531#, 16#556#),
( 16#10A0#, 16#10C5#),
( 16#1E00#, 16#1E00#),
( 16#1E02#, 16#1E02#),
( 16#1E04#, 16#1E04#),
( 16#1E06#, 16#1E06#),
( 16#1E08#, 16#1E08#),
( 16#1E0A#, 16#1E0A#),
( 16#1E0C#, 16#1E0C#),
( 16#1E0E#, 16#1E0E#),
( 16#1E10#, 16#1E10#),
( 16#1E12#, 16#1E12#),
( 16#1E14#, 16#1E14#),
( 16#1E16#, 16#1E16#),
( 16#1E18#, 16#1E18#),
( 16#1E1A#, 16#1E1A#),
( 16#1E1C#, 16#1E1C#),
( 16#1E1E#, 16#1E1E#),
( 16#1E20#, 16#1E20#),
( 16#1E22#, 16#1E22#),
( 16#1E24#, 16#1E24#),
( 16#1E26#, 16#1E26#),
( 16#1E28#, 16#1E28#),
( 16#1E2A#, 16#1E2A#),
( 16#1E2C#, 16#1E2C#),
( 16#1E2E#, 16#1E2E#),
( 16#1E30#, 16#1E30#),
( 16#1E32#, 16#1E32#),
( 16#1E34#, 16#1E34#),
( 16#1E36#, 16#1E36#),
( 16#1E38#, 16#1E38#),
( 16#1E3A#, 16#1E3A#),
( 16#1E3C#, 16#1E3C#),
( 16#1E3E#, 16#1E3E#),
( 16#1E40#, 16#1E40#),
( 16#1E42#, 16#1E42#),
( 16#1E44#, 16#1E44#),
( 16#1E46#, 16#1E46#),
( 16#1E48#, 16#1E48#),
( 16#1E4A#, 16#1E4A#),
( 16#1E4C#, 16#1E4C#),
( 16#1E4E#, 16#1E4E#),
( 16#1E50#, 16#1E50#),
( 16#1E52#, 16#1E52#),
( 16#1E54#, 16#1E54#),
( 16#1E56#, 16#1E56#),
( 16#1E58#, 16#1E58#),
( 16#1E5A#, 16#1E5A#),
( 16#1E5C#, 16#1E5C#),
( 16#1E5E#, 16#1E5E#),
( 16#1E60#, 16#1E60#),
( 16#1E62#, 16#1E62#),
( 16#1E64#, 16#1E64#),
( 16#1E66#, 16#1E66#),
( 16#1E68#, 16#1E68#),
( 16#1E6A#, 16#1E6A#),
( 16#1E6C#, 16#1E6C#),
( 16#1E6E#, 16#1E6E#),
( 16#1E70#, 16#1E70#),
( 16#1E72#, 16#1E72#),
( 16#1E74#, 16#1E74#),
( 16#1E76#, 16#1E76#),
( 16#1E78#, 16#1E78#),
( 16#1E7A#, 16#1E7A#),
( 16#1E7C#, 16#1E7C#),
( 16#1E7E#, 16#1E7E#),
( 16#1E80#, 16#1E80#),
( 16#1E82#, 16#1E82#),
( 16#1E84#, 16#1E84#),
( 16#1E86#, 16#1E86#),
( 16#1E88#, 16#1E88#),
( 16#1E8A#, 16#1E8A#),
( 16#1E8C#, 16#1E8C#),
( 16#1E8E#, 16#1E8E#),
( 16#1E90#, 16#1E90#),
( 16#1E92#, 16#1E92#),
( 16#1E94#, 16#1E94#),
( 16#1EA0#, 16#1EA0#),
( 16#1EA2#, 16#1EA2#),
( 16#1EA4#, 16#1EA4#),
( 16#1EA6#, 16#1EA6#),
( 16#1EA8#, 16#1EA8#),
( 16#1EAA#, 16#1EAA#),
( 16#1EAC#, 16#1EAC#),
( 16#1EAE#, 16#1EAE#),
( 16#1EB0#, 16#1EB0#),
( 16#1EB2#, 16#1EB2#),
( 16#1EB4#, 16#1EB4#),
( 16#1EB6#, 16#1EB6#),
( 16#1EB8#, 16#1EB8#),
( 16#1EBA#, 16#1EBA#),
( 16#1EBC#, 16#1EBC#),
( 16#1EBE#, 16#1EBE#),
( 16#1EC0#, 16#1EC0#),
( 16#1EC2#, 16#1EC2#),
( 16#1EC4#, 16#1EC4#),
( 16#1EC6#, 16#1EC6#),
( 16#1EC8#, 16#1EC8#),
( 16#1ECA#, 16#1ECA#),
( 16#1ECC#, 16#1ECC#),
( 16#1ECE#, 16#1ECE#),
( 16#1ED0#, 16#1ED0#),
( 16#1ED2#, 16#1ED2#),
( 16#1ED4#, 16#1ED4#),
( 16#1ED6#, 16#1ED6#),
( 16#1ED8#, 16#1ED8#),
( 16#1EDA#, 16#1EDA#),
( 16#1EDC#, 16#1EDC#),
( 16#1EDE#, 16#1EDE#),
( 16#1EE0#, 16#1EE0#),
( 16#1EE2#, 16#1EE2#),
( 16#1EE4#, 16#1EE4#),
( 16#1EE6#, 16#1EE6#),
( 16#1EE8#, 16#1EE8#),
( 16#1EEA#, 16#1EEA#),
( 16#1EEC#, 16#1EEC#),
( 16#1EEE#, 16#1EEE#),
( 16#1EF0#, 16#1EF0#),
( 16#1EF2#, 16#1EF2#),
( 16#1EF4#, 16#1EF4#),
( 16#1EF6#, 16#1EF6#),
( 16#1EF8#, 16#1EF8#),
( 16#1F08#, 16#1F0F#),
( 16#1F18#, 16#1F1D#),
( 16#1F28#, 16#1F2F#),
( 16#1F38#, 16#1F3F#),
( 16#1F48#, 16#1F4D#),
( 16#1F59#, 16#1F59#),
( 16#1F5B#, 16#1F5B#),
( 16#1F5D#, 16#1F5D#),
( 16#1F5F#, 16#1F5F#),
( 16#1F68#, 16#1F6F#),
( 16#1FB8#, 16#1FBB#),
( 16#1FC8#, 16#1FCB#),
( 16#1FD8#, 16#1FDB#),
( 16#1FE8#, 16#1FEC#),
( 16#1FF8#, 16#1FFB#),
( 16#2102#, 16#2102#),
( 16#2107#, 16#2107#),
( 16#210B#, 16#210D#),
( 16#2110#, 16#2112#),
( 16#2115#, 16#2115#),
( 16#2119#, 16#211D#),
( 16#2124#, 16#2124#),
( 16#2126#, 16#2126#),
( 16#2128#, 16#2128#),
( 16#212A#, 16#212D#),
( 16#2130#, 16#2133#),
( 16#213E#, 16#213F#),
( 16#2145#, 16#2145#),
( 16#2183#, 16#2183#),
( 16#2C00#, 16#2C2E#),
( 16#2C60#, 16#2C60#),
( 16#2C62#, 16#2C64#),
( 16#2C67#, 16#2C67#),
( 16#2C69#, 16#2C69#),
( 16#2C6B#, 16#2C6B#),
( 16#2C75#, 16#2C75#),
( 16#2C80#, 16#2C80#),
( 16#2C82#, 16#2C82#),
( 16#2C84#, 16#2C84#),
( 16#2C86#, 16#2C86#),
( 16#2C88#, 16#2C88#),
( 16#2C8A#, 16#2C8A#),
( 16#2C8C#, 16#2C8C#),
( 16#2C8E#, 16#2C8E#),
( 16#2C90#, 16#2C90#),
( 16#2C92#, 16#2C92#),
( 16#2C94#, 16#2C94#),
( 16#2C96#, 16#2C96#),
( 16#2C98#, 16#2C98#),
( 16#2C9A#, 16#2C9A#),
( 16#2C9C#, 16#2C9C#),
( 16#2C9E#, 16#2C9E#),
( 16#2CA0#, 16#2CA0#),
( 16#2CA2#, 16#2CA2#),
( 16#2CA4#, 16#2CA4#),
( 16#2CA6#, 16#2CA6#),
( 16#2CA8#, 16#2CA8#),
( 16#2CAA#, 16#2CAA#),
( 16#2CAC#, 16#2CAC#),
( 16#2CAE#, 16#2CAE#),
( 16#2CB0#, 16#2CB0#),
( 16#2CB2#, 16#2CB2#),
( 16#2CB4#, 16#2CB4#),
( 16#2CB6#, 16#2CB6#),
( 16#2CB8#, 16#2CB8#),
( 16#2CBA#, 16#2CBA#),
( 16#2CBC#, 16#2CBC#),
( 16#2CBE#, 16#2CBE#),
( 16#2CC0#, 16#2CC0#),
( 16#2CC2#, 16#2CC2#),
( 16#2CC4#, 16#2CC4#),
( 16#2CC6#, 16#2CC6#),
( 16#2CC8#, 16#2CC8#),
( 16#2CCA#, 16#2CCA#),
( 16#2CCC#, 16#2CCC#),
( 16#2CCE#, 16#2CCE#),
( 16#2CD0#, 16#2CD0#),
( 16#2CD2#, 16#2CD2#),
( 16#2CD4#, 16#2CD4#),
( 16#2CD6#, 16#2CD6#),
( 16#2CD8#, 16#2CD8#),
( 16#2CDA#, 16#2CDA#),
( 16#2CDC#, 16#2CDC#),
( 16#2CDE#, 16#2CDE#),
( 16#2CE0#, 16#2CE0#),
( 16#2CE2#, 16#2CE2#),
( 16#FF21#, 16#FF3A#),
( 16#10400#, 16#10427#),
( 16#1D400#, 16#1D419#),
( 16#1D434#, 16#1D44D#),
( 16#1D468#, 16#1D481#),
( 16#1D49C#, 16#1D49C#),
( 16#1D49E#, 16#1D49F#),
( 16#1D4A2#, 16#1D4A2#),
( 16#1D4A5#, 16#1D4A6#),
( 16#1D4A9#, 16#1D4AC#),
( 16#1D4AE#, 16#1D4B5#),
( 16#1D4D0#, 16#1D4E9#),
( 16#1D504#, 16#1D505#),
( 16#1D507#, 16#1D50A#),
( 16#1D50D#, 16#1D514#),
( 16#1D516#, 16#1D51C#),
( 16#1D538#, 16#1D539#),
( 16#1D53B#, 16#1D53E#),
( 16#1D540#, 16#1D544#),
( 16#1D546#, 16#1D546#),
( 16#1D54A#, 16#1D550#),
( 16#1D56C#, 16#1D585#),
( 16#1D5A0#, 16#1D5B9#),
( 16#1D5D4#, 16#1D5ED#),
( 16#1D608#, 16#1D621#),
( 16#1D63C#, 16#1D655#),
( 16#1D670#, 16#1D689#),
( 16#1D6A8#, 16#1D6C0#),
( 16#1D6E2#, 16#1D6FA#),
( 16#1D71C#, 16#1D734#),
( 16#1D756#, 16#1D76E#),
( 16#1D790#, 16#1D7A8#),
( 16#1D7CA#, 16#1D7CA#)));
Mc_Node : aliased Set_Node :=
(68, 2, (
( 16#903#, 16#903#),
( 16#93E#, 16#940#),
( 16#949#, 16#94C#),
( 16#982#, 16#983#),
( 16#9BE#, 16#9C0#),
( 16#9C7#, 16#9C8#),
( 16#9CB#, 16#9CC#),
( 16#9D7#, 16#9D7#),
( 16#A03#, 16#A03#),
( 16#A3E#, 16#A40#),
( 16#A83#, 16#A83#),
( 16#ABE#, 16#AC0#),
( 16#AC9#, 16#AC9#),
( 16#ACB#, 16#ACC#),
( 16#B02#, 16#B03#),
( 16#B3E#, 16#B3E#),
( 16#B40#, 16#B40#),
( 16#B47#, 16#B48#),
( 16#B4B#, 16#B4C#),
( 16#B57#, 16#B57#),
( 16#BBE#, 16#BBF#),
( 16#BC1#, 16#BC2#),
( 16#BC6#, 16#BC8#),
( 16#BCA#, 16#BCC#),
( 16#BD7#, 16#BD7#),
( 16#C01#, 16#C03#),
( 16#C41#, 16#C44#),
( 16#C82#, 16#C83#),
( 16#CBE#, 16#CBE#),
( 16#CC0#, 16#CC4#),
( 16#CC7#, 16#CC8#),
( 16#CCA#, 16#CCB#),
( 16#CD5#, 16#CD6#),
( 16#D02#, 16#D03#),
( 16#D3E#, 16#D40#),
( 16#D46#, 16#D48#),
( 16#D4A#, 16#D4C#),
( 16#D57#, 16#D57#),
( 16#D82#, 16#D83#),
( 16#DCF#, 16#DD1#),
( 16#DD8#, 16#DDF#),
( 16#DF2#, 16#DF3#),
( 16#F3E#, 16#F3F#),
( 16#F7F#, 16#F7F#),
( 16#102C#, 16#102C#),
( 16#1031#, 16#1031#),
( 16#1038#, 16#1038#),
( 16#1056#, 16#1057#),
( 16#17B6#, 16#17B6#),
( 16#17BE#, 16#17C5#),
( 16#17C7#, 16#17C8#),
( 16#1923#, 16#1926#),
( 16#1929#, 16#192B#),
( 16#1930#, 16#1931#),
( 16#1933#, 16#1938#),
( 16#19B0#, 16#19C0#),
( 16#19C8#, 16#19C9#),
( 16#1A19#, 16#1A1B#),
( 16#1B04#, 16#1B04#),
( 16#1B35#, 16#1B35#),
( 16#1B3B#, 16#1B3B#),
( 16#1B3D#, 16#1B41#),
( 16#1B43#, 16#1B44#),
( 16#A802#, 16#A802#),
( 16#A823#, 16#A824#),
( 16#A827#, 16#A827#),
( 16#1D165#, 16#1D166#),
( 16#1D16D#, 16#1D172#)));
Me_Node : aliased Set_Node :=
(4, 2, (
( 16#488#, 16#489#),
( 16#6DE#, 16#6DE#),
( 16#20DD#, 16#20E0#),
( 16#20E2#, 16#20E4#)));
Mn_Node : aliased Set_Node :=
(132, 2, (
( 16#300#, 16#36F#),
( 16#483#, 16#486#),
( 16#591#, 16#5BD#),
( 16#5BF#, 16#5BF#),
( 16#5C1#, 16#5C2#),
( 16#5C4#, 16#5C5#),
( 16#5C7#, 16#5C7#),
( 16#610#, 16#615#),
( 16#64B#, 16#65E#),
( 16#670#, 16#670#),
( 16#6D6#, 16#6DC#),
( 16#6DF#, 16#6E4#),
( 16#6E7#, 16#6E8#),
( 16#6EA#, 16#6ED#),
( 16#711#, 16#711#),
( 16#730#, 16#74A#),
( 16#7A6#, 16#7B0#),
( 16#7EB#, 16#7F3#),
( 16#901#, 16#902#),
( 16#93C#, 16#93C#),
( 16#941#, 16#948#),
( 16#94D#, 16#94D#),
( 16#951#, 16#954#),
( 16#962#, 16#963#),
( 16#981#, 16#981#),
( 16#9BC#, 16#9BC#),
( 16#9C1#, 16#9C4#),
( 16#9CD#, 16#9CD#),
( 16#9E2#, 16#9E3#),
( 16#A01#, 16#A02#),
( 16#A3C#, 16#A3C#),
( 16#A41#, 16#A42#),
( 16#A47#, 16#A48#),
( 16#A4B#, 16#A4D#),
( 16#A70#, 16#A71#),
( 16#A81#, 16#A82#),
( 16#ABC#, 16#ABC#),
( 16#AC1#, 16#AC5#),
( 16#AC7#, 16#AC8#),
( 16#ACD#, 16#ACD#),
( 16#AE2#, 16#AE3#),
( 16#B01#, 16#B01#),
( 16#B3C#, 16#B3C#),
( 16#B3F#, 16#B3F#),
( 16#B41#, 16#B43#),
( 16#B4D#, 16#B4D#),
( 16#B56#, 16#B56#),
( 16#B82#, 16#B82#),
( 16#BC0#, 16#BC0#),
( 16#BCD#, 16#BCD#),
( 16#C3E#, 16#C40#),
( 16#C46#, 16#C48#),
( 16#C4A#, 16#C4D#),
( 16#C55#, 16#C56#),
( 16#CBC#, 16#CBC#),
( 16#CBF#, 16#CBF#),
( 16#CC6#, 16#CC6#),
( 16#CCC#, 16#CCD#),
( 16#CE2#, 16#CE3#),
( 16#D41#, 16#D43#),
( 16#D4D#, 16#D4D#),
( 16#DCA#, 16#DCA#),
( 16#DD2#, 16#DD4#),
( 16#DD6#, 16#DD6#),
( 16#E31#, 16#E31#),
( 16#E34#, 16#E3A#),
( 16#E47#, 16#E4E#),
( 16#EB1#, 16#EB1#),
( 16#EB4#, 16#EB9#),
( 16#EBB#, 16#EBC#),
( 16#EC8#, 16#ECD#),
( 16#F18#, 16#F19#),
( 16#F35#, 16#F35#),
( 16#F37#, 16#F37#),
( 16#F39#, 16#F39#),
( 16#F71#, 16#F7E#),
( 16#F80#, 16#F84#),
( 16#F86#, 16#F87#),
( 16#F90#, 16#F97#),
( 16#F99#, 16#FBC#),
( 16#FC6#, 16#FC6#),
( 16#102D#, 16#1030#),
( 16#1032#, 16#1032#),
( 16#1036#, 16#1037#),
( 16#1039#, 16#1039#),
( 16#1058#, 16#1059#),
( 16#135F#, 16#135F#),
( 16#1712#, 16#1714#),
( 16#1732#, 16#1734#),
( 16#1752#, 16#1753#),
( 16#1772#, 16#1773#),
( 16#17B7#, 16#17BD#),
( 16#17C6#, 16#17C6#),
( 16#17C9#, 16#17D3#),
( 16#17DD#, 16#17DD#),
( 16#180B#, 16#180D#),
( 16#18A9#, 16#18A9#),
( 16#1920#, 16#1922#),
( 16#1927#, 16#1928#),
( 16#1932#, 16#1932#),
( 16#1939#, 16#193B#),
( 16#1A17#, 16#1A18#),
( 16#1B00#, 16#1B03#),
( 16#1B34#, 16#1B34#),
( 16#1B36#, 16#1B3A#),
( 16#1B3C#, 16#1B3C#),
( 16#1B42#, 16#1B42#),
( 16#1B6B#, 16#1B73#),
( 16#1DC0#, 16#1DCA#),
( 16#1DFE#, 16#1DFF#),
( 16#20D0#, 16#20DC#),
( 16#20E1#, 16#20E1#),
( 16#20E5#, 16#20EF#),
( 16#302A#, 16#302F#),
( 16#3099#, 16#309A#),
( 16#A806#, 16#A806#),
( 16#A80B#, 16#A80B#),
( 16#A825#, 16#A826#),
( 16#FB1E#, 16#FB1E#),
( 16#FE00#, 16#FE0F#),
( 16#FE20#, 16#FE23#),
( 16#10A01#, 16#10A03#),
( 16#10A05#, 16#10A06#),
( 16#10A0C#, 16#10A0F#),
( 16#10A38#, 16#10A3A#),
( 16#10A3F#, 16#10A3F#),
( 16#1D167#, 16#1D169#),
( 16#1D17B#, 16#1D182#),
( 16#1D185#, 16#1D18B#),
( 16#1D1AA#, 16#1D1AD#),
( 16#1D242#, 16#1D244#),
( 16#E0100#, 16#E01EF#)));
Nd_Node : aliased Set_Node :=
(25, 2, (
( 16#30#, 16#39#),
( 16#660#, 16#669#),
( 16#6F0#, 16#6F9#),
( 16#7C0#, 16#7C9#),
( 16#966#, 16#96F#),
( 16#9E6#, 16#9EF#),
( 16#A66#, 16#A6F#),
( 16#AE6#, 16#AEF#),
( 16#B66#, 16#B6F#),
( 16#BE6#, 16#BEF#),
( 16#C66#, 16#C6F#),
( 16#CE6#, 16#CEF#),
( 16#D66#, 16#D6F#),
( 16#E50#, 16#E59#),
( 16#ED0#, 16#ED9#),
( 16#F20#, 16#F29#),
( 16#1040#, 16#1049#),
( 16#17E0#, 16#17E9#),
( 16#1810#, 16#1819#),
( 16#1946#, 16#194F#),
( 16#19D0#, 16#19D9#),
( 16#1B50#, 16#1B59#),
( 16#FF10#, 16#FF19#),
( 16#104A0#, 16#104A9#),
( 16#1D7CE#, 16#1D7FF#)));
Nl_Node : aliased Set_Node :=
(10, 2, (
( 16#16EE#, 16#16F0#),
( 16#2160#, 16#2182#),
( 16#3007#, 16#3007#),
( 16#3021#, 16#3029#),
( 16#3038#, 16#303A#),
( 16#10140#, 16#10174#),
( 16#10341#, 16#10341#),
( 16#1034A#, 16#1034A#),
( 16#103D1#, 16#103D5#),
( 16#12400#, 16#12462#)));
No_Node : aliased Set_Node :=
(28, 2, (
( 16#B2#, 16#B3#),
( 16#B9#, 16#B9#),
( 16#BC#, 16#BE#),
( 16#9F4#, 16#9F9#),
( 16#BF0#, 16#BF2#),
( 16#F2A#, 16#F33#),
( 16#1369#, 16#137C#),
( 16#17F0#, 16#17F9#),
( 16#2070#, 16#2070#),
( 16#2074#, 16#2079#),
( 16#2080#, 16#2089#),
( 16#2153#, 16#215F#),
( 16#2460#, 16#249B#),
( 16#24EA#, 16#24FF#),
( 16#2776#, 16#2793#),
( 16#2CFD#, 16#2CFD#),
( 16#3192#, 16#3195#),
( 16#3220#, 16#3229#),
( 16#3251#, 16#325F#),
( 16#3280#, 16#3289#),
( 16#32B1#, 16#32BF#),
( 16#10107#, 16#10133#),
( 16#10175#, 16#10178#),
( 16#1018A#, 16#1018A#),
( 16#10320#, 16#10323#),
( 16#10916#, 16#10919#),
( 16#10A40#, 16#10A47#),
( 16#1D360#, 16#1D371#)));
Pc_Node : aliased Set_Node :=
(6, 2, (
( 16#5F#, 16#5F#),
( 16#203F#, 16#2040#),
( 16#2054#, 16#2054#),
( 16#FE33#, 16#FE34#),
( 16#FE4D#, 16#FE4F#),
( 16#FF3F#, 16#FF3F#)));
Pd_Node : aliased Set_Node :=
(12, 2, (
( 16#2D#, 16#2D#),
( 16#58A#, 16#58A#),
( 16#1806#, 16#1806#),
( 16#2010#, 16#2015#),
( 16#2E17#, 16#2E17#),
( 16#301C#, 16#301C#),
( 16#3030#, 16#3030#),
( 16#30A0#, 16#30A0#),
( 16#FE31#, 16#FE32#),
( 16#FE58#, 16#FE58#),
( 16#FE63#, 16#FE63#),
( 16#FF0D#, 16#FF0D#)));
Pe_Node : aliased Set_Node :=
(64, 2, (
( 16#29#, 16#29#),
( 16#5D#, 16#5D#),
( 16#7D#, 16#7D#),
( 16#F3B#, 16#F3B#),
( 16#F3D#, 16#F3D#),
( 16#169C#, 16#169C#),
( 16#2046#, 16#2046#),
( 16#207E#, 16#207E#),
( 16#208E#, 16#208E#),
( 16#232A#, 16#232A#),
( 16#2769#, 16#2769#),
( 16#276B#, 16#276B#),
( 16#276D#, 16#276D#),
( 16#276F#, 16#276F#),
( 16#2771#, 16#2771#),
( 16#2773#, 16#2773#),
( 16#2775#, 16#2775#),
( 16#27C6#, 16#27C6#),
( 16#27E7#, 16#27E7#),
( 16#27E9#, 16#27E9#),
( 16#27EB#, 16#27EB#),
( 16#2984#, 16#2984#),
( 16#2986#, 16#2986#),
( 16#2988#, 16#2988#),
( 16#298A#, 16#298A#),
( 16#298C#, 16#298C#),
( 16#298E#, 16#298E#),
( 16#2990#, 16#2990#),
( 16#2992#, 16#2992#),
( 16#2994#, 16#2994#),
( 16#2996#, 16#2996#),
( 16#2998#, 16#2998#),
( 16#29D9#, 16#29D9#),
( 16#29DB#, 16#29DB#),
( 16#29FD#, 16#29FD#),
( 16#3009#, 16#3009#),
( 16#300B#, 16#300B#),
( 16#300D#, 16#300D#),
( 16#300F#, 16#300F#),
( 16#3011#, 16#3011#),
( 16#3015#, 16#3015#),
( 16#3017#, 16#3017#),
( 16#3019#, 16#3019#),
( 16#301B#, 16#301B#),
( 16#301E#, 16#301F#),
( 16#FD3F#, 16#FD3F#),
( 16#FE18#, 16#FE18#),
( 16#FE36#, 16#FE36#),
( 16#FE38#, 16#FE38#),
( 16#FE3A#, 16#FE3A#),
( 16#FE3C#, 16#FE3C#),
( 16#FE3E#, 16#FE3E#),
( 16#FE40#, 16#FE40#),
( 16#FE42#, 16#FE42#),
( 16#FE44#, 16#FE44#),
( 16#FE48#, 16#FE48#),
( 16#FE5A#, 16#FE5A#),
( 16#FE5C#, 16#FE5C#),
( 16#FE5E#, 16#FE5E#),
( 16#FF09#, 16#FF09#),
( 16#FF3D#, 16#FF3D#),
( 16#FF5D#, 16#FF5D#),
( 16#FF60#, 16#FF60#),
( 16#FF63#, 16#FF63#)));
Pf_Node : aliased Set_Node :=
(9, 2, (
( 16#BB#, 16#BB#),
( 16#2019#, 16#2019#),
( 16#201D#, 16#201D#),
( 16#203A#, 16#203A#),
( 16#2E03#, 16#2E03#),
( 16#2E05#, 16#2E05#),
( 16#2E0A#, 16#2E0A#),
( 16#2E0D#, 16#2E0D#),
( 16#2E1D#, 16#2E1D#)));
Pi_Node : aliased Set_Node :=
(10, 2, (
( 16#AB#, 16#AB#),
( 16#2018#, 16#2018#),
( 16#201B#, 16#201C#),
( 16#201F#, 16#201F#),
( 16#2039#, 16#2039#),
( 16#2E02#, 16#2E02#),
( 16#2E04#, 16#2E04#),
( 16#2E09#, 16#2E09#),
( 16#2E0C#, 16#2E0C#),
( 16#2E1C#, 16#2E1C#)));
Po_Node : aliased Set_Node :=
(93, 2, (
( 16#21#, 16#23#),
( 16#25#, 16#27#),
( 16#2A#, 16#2A#),
( 16#2C#, 16#2C#),
( 16#2E#, 16#2F#),
( 16#3A#, 16#3B#),
( 16#3F#, 16#40#),
( 16#5C#, 16#5C#),
( 16#A1#, 16#A1#),
( 16#B7#, 16#B7#),
( 16#BF#, 16#BF#),
( 16#37E#, 16#37E#),
( 16#387#, 16#387#),
( 16#55A#, 16#55F#),
( 16#589#, 16#589#),
( 16#5BE#, 16#5BE#),
( 16#5C0#, 16#5C0#),
( 16#5C3#, 16#5C3#),
( 16#5C6#, 16#5C6#),
( 16#5F3#, 16#5F4#),
( 16#60C#, 16#60D#),
( 16#61B#, 16#61B#),
( 16#61E#, 16#61F#),
( 16#66A#, 16#66D#),
( 16#6D4#, 16#6D4#),
( 16#700#, 16#70D#),
( 16#7F7#, 16#7F9#),
( 16#964#, 16#965#),
( 16#970#, 16#970#),
( 16#DF4#, 16#DF4#),
( 16#E4F#, 16#E4F#),
( 16#E5A#, 16#E5B#),
( 16#F04#, 16#F12#),
( 16#F85#, 16#F85#),
( 16#FD0#, 16#FD1#),
( 16#104A#, 16#104F#),
( 16#10FB#, 16#10FB#),
( 16#1361#, 16#1368#),
( 16#166D#, 16#166E#),
( 16#16EB#, 16#16ED#),
( 16#1735#, 16#1736#),
( 16#17D4#, 16#17D6#),
( 16#17D8#, 16#17DA#),
( 16#1800#, 16#1805#),
( 16#1807#, 16#180A#),
( 16#1944#, 16#1945#),
( 16#19DE#, 16#19DF#),
( 16#1A1E#, 16#1A1F#),
( 16#1B5A#, 16#1B60#),
( 16#2016#, 16#2017#),
( 16#2020#, 16#2027#),
( 16#2030#, 16#2038#),
( 16#203B#, 16#203E#),
( 16#2041#, 16#2043#),
( 16#2047#, 16#2051#),
( 16#2053#, 16#2053#),
( 16#2055#, 16#205E#),
( 16#2CF9#, 16#2CFC#),
( 16#2CFE#, 16#2CFF#),
( 16#2E00#, 16#2E01#),
( 16#2E06#, 16#2E08#),
( 16#2E0B#, 16#2E0B#),
( 16#2E0E#, 16#2E16#),
( 16#3001#, 16#3003#),
( 16#303D#, 16#303D#),
( 16#30FB#, 16#30FB#),
( 16#A874#, 16#A877#),
( 16#FE10#, 16#FE16#),
( 16#FE19#, 16#FE19#),
( 16#FE30#, 16#FE30#),
( 16#FE45#, 16#FE46#),
( 16#FE49#, 16#FE4C#),
( 16#FE50#, 16#FE52#),
( 16#FE54#, 16#FE57#),
( 16#FE5F#, 16#FE61#),
( 16#FE68#, 16#FE68#),
( 16#FE6A#, 16#FE6B#),
( 16#FF01#, 16#FF03#),
( 16#FF05#, 16#FF07#),
( 16#FF0A#, 16#FF0A#),
( 16#FF0C#, 16#FF0C#),
( 16#FF0E#, 16#FF0F#),
( 16#FF1A#, 16#FF1B#),
( 16#FF1F#, 16#FF20#),
( 16#FF3C#, 16#FF3C#),
( 16#FF61#, 16#FF61#),
( 16#FF64#, 16#FF65#),
( 16#10100#, 16#10101#),
( 16#1039F#, 16#1039F#),
( 16#103D0#, 16#103D0#),
( 16#1091F#, 16#1091F#),
( 16#10A50#, 16#10A58#),
( 16#12470#, 16#12473#)));
Ps_Node : aliased Set_Node :=
(66, 2, (
( 16#28#, 16#28#),
( 16#5B#, 16#5B#),
( 16#7B#, 16#7B#),
( 16#F3A#, 16#F3A#),
( 16#F3C#, 16#F3C#),
( 16#169B#, 16#169B#),
( 16#201A#, 16#201A#),
( 16#201E#, 16#201E#),
( 16#2045#, 16#2045#),
( 16#207D#, 16#207D#),
( 16#208D#, 16#208D#),
( 16#2329#, 16#2329#),
( 16#2768#, 16#2768#),
( 16#276A#, 16#276A#),
( 16#276C#, 16#276C#),
( 16#276E#, 16#276E#),
( 16#2770#, 16#2770#),
( 16#2772#, 16#2772#),
( 16#2774#, 16#2774#),
( 16#27C5#, 16#27C5#),
( 16#27E6#, 16#27E6#),
( 16#27E8#, 16#27E8#),
( 16#27EA#, 16#27EA#),
( 16#2983#, 16#2983#),
( 16#2985#, 16#2985#),
( 16#2987#, 16#2987#),
( 16#2989#, 16#2989#),
( 16#298B#, 16#298B#),
( 16#298D#, 16#298D#),
( 16#298F#, 16#298F#),
( 16#2991#, 16#2991#),
( 16#2993#, 16#2993#),
( 16#2995#, 16#2995#),
( 16#2997#, 16#2997#),
( 16#29D8#, 16#29D8#),
( 16#29DA#, 16#29DA#),
( 16#29FC#, 16#29FC#),
( 16#3008#, 16#3008#),
( 16#300A#, 16#300A#),
( 16#300C#, 16#300C#),
( 16#300E#, 16#300E#),
( 16#3010#, 16#3010#),
( 16#3014#, 16#3014#),
( 16#3016#, 16#3016#),
( 16#3018#, 16#3018#),
( 16#301A#, 16#301A#),
( 16#301D#, 16#301D#),
( 16#FD3E#, 16#FD3E#),
( 16#FE17#, 16#FE17#),
( 16#FE35#, 16#FE35#),
( 16#FE37#, 16#FE37#),
( 16#FE39#, 16#FE39#),
( 16#FE3B#, 16#FE3B#),
( 16#FE3D#, 16#FE3D#),
( 16#FE3F#, 16#FE3F#),
( 16#FE41#, 16#FE41#),
( 16#FE43#, 16#FE43#),
( 16#FE47#, 16#FE47#),
( 16#FE59#, 16#FE59#),
( 16#FE5B#, 16#FE5B#),
( 16#FE5D#, 16#FE5D#),
( 16#FF08#, 16#FF08#),
( 16#FF3B#, 16#FF3B#),
( 16#FF5B#, 16#FF5B#),
( 16#FF5F#, 16#FF5F#),
( 16#FF62#, 16#FF62#)));
Sc_Node : aliased Set_Node :=
(14, 2, (
( 16#24#, 16#24#),
( 16#A2#, 16#A5#),
( 16#60B#, 16#60B#),
( 16#9F2#, 16#9F3#),
( 16#AF1#, 16#AF1#),
( 16#BF9#, 16#BF9#),
( 16#E3F#, 16#E3F#),
( 16#17DB#, 16#17DB#),
( 16#20A0#, 16#20B5#),
( 16#FDFC#, 16#FDFC#),
( 16#FE69#, 16#FE69#),
( 16#FF04#, 16#FF04#),
( 16#FFE0#, 16#FFE1#),
( 16#FFE5#, 16#FFE6#)));
Sk_Node : aliased Set_Node :=
(24, 2, (
( 16#5E#, 16#5E#),
( 16#60#, 16#60#),
( 16#A8#, 16#A8#),
( 16#AF#, 16#AF#),
( 16#B4#, 16#B4#),
( 16#B8#, 16#B8#),
( 16#2C2#, 16#2C5#),
( 16#2D2#, 16#2DF#),
( 16#2E5#, 16#2ED#),
( 16#2EF#, 16#2FF#),
( 16#374#, 16#375#),
( 16#384#, 16#385#),
( 16#1FBD#, 16#1FBD#),
( 16#1FBF#, 16#1FC1#),
( 16#1FCD#, 16#1FCF#),
( 16#1FDD#, 16#1FDF#),
( 16#1FED#, 16#1FEF#),
( 16#1FFD#, 16#1FFE#),
( 16#309B#, 16#309C#),
( 16#A700#, 16#A716#),
( 16#A720#, 16#A721#),
( 16#FF3E#, 16#FF3E#),
( 16#FF40#, 16#FF40#),
( 16#FFE3#, 16#FFE3#)));
Sm_Node : aliased Set_Node :=
(61, 2, (
( 16#2B#, 16#2B#),
( 16#3C#, 16#3E#),
( 16#7C#, 16#7C#),
( 16#7E#, 16#7E#),
( 16#AC#, 16#AC#),
( 16#B1#, 16#B1#),
( 16#D7#, 16#D7#),
( 16#F7#, 16#F7#),
( 16#3F6#, 16#3F6#),
( 16#2044#, 16#2044#),
( 16#2052#, 16#2052#),
( 16#207A#, 16#207C#),
( 16#208A#, 16#208C#),
( 16#2140#, 16#2144#),
( 16#214B#, 16#214B#),
( 16#2190#, 16#2194#),
( 16#219A#, 16#219B#),
( 16#21A0#, 16#21A0#),
( 16#21A3#, 16#21A3#),
( 16#21A6#, 16#21A6#),
( 16#21AE#, 16#21AE#),
( 16#21CE#, 16#21CF#),
( 16#21D2#, 16#21D2#),
( 16#21D4#, 16#21D4#),
( 16#21F4#, 16#22FF#),
( 16#2308#, 16#230B#),
( 16#2320#, 16#2321#),
( 16#237C#, 16#237C#),
( 16#239B#, 16#23B3#),
( 16#23DC#, 16#23E1#),
( 16#25B7#, 16#25B7#),
( 16#25C1#, 16#25C1#),
( 16#25F8#, 16#25FF#),
( 16#266F#, 16#266F#),
( 16#27C0#, 16#27C4#),
( 16#27C7#, 16#27CA#),
( 16#27D0#, 16#27E5#),
( 16#27F0#, 16#27FF#),
( 16#2900#, 16#2982#),
( 16#2999#, 16#29D7#),
( 16#29DC#, 16#29FB#),
( 16#29FE#, 16#2AFF#),
( 16#FB29#, 16#FB29#),
( 16#FE62#, 16#FE62#),
( 16#FE64#, 16#FE66#),
( 16#FF0B#, 16#FF0B#),
( 16#FF1C#, 16#FF1E#),
( 16#FF5C#, 16#FF5C#),
( 16#FF5E#, 16#FF5E#),
( 16#FFE2#, 16#FFE2#),
( 16#FFE9#, 16#FFEC#),
( 16#1D6C1#, 16#1D6C1#),
( 16#1D6DB#, 16#1D6DB#),
( 16#1D6FB#, 16#1D6FB#),
( 16#1D715#, 16#1D715#),
( 16#1D735#, 16#1D735#),
( 16#1D74F#, 16#1D74F#),
( 16#1D76F#, 16#1D76F#),
( 16#1D789#, 16#1D789#),
( 16#1D7A9#, 16#1D7A9#),
( 16#1D7C3#, 16#1D7C3#)));
So_Node : aliased Set_Node :=
(124, 2, (
( 16#A6#, 16#A7#),
( 16#A9#, 16#A9#),
( 16#AE#, 16#AE#),
( 16#B0#, 16#B0#),
( 16#B6#, 16#B6#),
( 16#482#, 16#482#),
( 16#60E#, 16#60F#),
( 16#6E9#, 16#6E9#),
( 16#6FD#, 16#6FE#),
( 16#7F6#, 16#7F6#),
( 16#9FA#, 16#9FA#),
( 16#B70#, 16#B70#),
( 16#BF3#, 16#BF8#),
( 16#BFA#, 16#BFA#),
( 16#CF1#, 16#CF2#),
( 16#F01#, 16#F03#),
( 16#F13#, 16#F17#),
( 16#F1A#, 16#F1F#),
( 16#F34#, 16#F34#),
( 16#F36#, 16#F36#),
( 16#F38#, 16#F38#),
( 16#FBE#, 16#FC5#),
( 16#FC7#, 16#FCC#),
( 16#FCF#, 16#FCF#),
( 16#1360#, 16#1360#),
( 16#1390#, 16#1399#),
( 16#1940#, 16#1940#),
( 16#19E0#, 16#19FF#),
( 16#1B61#, 16#1B6A#),
( 16#1B74#, 16#1B7C#),
( 16#2100#, 16#2101#),
( 16#2103#, 16#2106#),
( 16#2108#, 16#2109#),
( 16#2114#, 16#2114#),
( 16#2116#, 16#2118#),
( 16#211E#, 16#2123#),
( 16#2125#, 16#2125#),
( 16#2127#, 16#2127#),
( 16#2129#, 16#2129#),
( 16#212E#, 16#212E#),
( 16#213A#, 16#213B#),
( 16#214A#, 16#214A#),
( 16#214C#, 16#214D#),
( 16#2195#, 16#2199#),
( 16#219C#, 16#219F#),
( 16#21A1#, 16#21A2#),
( 16#21A4#, 16#21A5#),
( 16#21A7#, 16#21AD#),
( 16#21AF#, 16#21CD#),
( 16#21D0#, 16#21D1#),
( 16#21D3#, 16#21D3#),
( 16#21D5#, 16#21F3#),
( 16#2300#, 16#2307#),
( 16#230C#, 16#231F#),
( 16#2322#, 16#2328#),
( 16#232B#, 16#237B#),
( 16#237D#, 16#239A#),
( 16#23B4#, 16#23DB#),
( 16#23E2#, 16#23E7#),
( 16#2400#, 16#2426#),
( 16#2440#, 16#244A#),
( 16#249C#, 16#24E9#),
( 16#2500#, 16#25B6#),
( 16#25B8#, 16#25C0#),
( 16#25C2#, 16#25F7#),
( 16#2600#, 16#266E#),
( 16#2670#, 16#269C#),
( 16#26A0#, 16#26B2#),
( 16#2701#, 16#2704#),
( 16#2706#, 16#2709#),
( 16#270C#, 16#2727#),
( 16#2729#, 16#274B#),
( 16#274D#, 16#274D#),
( 16#274F#, 16#2752#),
( 16#2756#, 16#2756#),
( 16#2758#, 16#275E#),
( 16#2761#, 16#2767#),
( 16#2794#, 16#2794#),
( 16#2798#, 16#27AF#),
( 16#27B1#, 16#27BE#),
( 16#2800#, 16#28FF#),
( 16#2B00#, 16#2B1A#),
( 16#2B20#, 16#2B23#),
( 16#2CE5#, 16#2CEA#),
( 16#2E80#, 16#2E99#),
( 16#2E9B#, 16#2EF3#),
( 16#2F00#, 16#2FD5#),
( 16#2FF0#, 16#2FFB#),
( 16#3004#, 16#3004#),
( 16#3012#, 16#3013#),
( 16#3020#, 16#3020#),
( 16#3036#, 16#3037#),
( 16#303E#, 16#303F#),
( 16#3190#, 16#3191#),
( 16#3196#, 16#319F#),
( 16#31C0#, 16#31CF#),
( 16#3200#, 16#321E#),
( 16#322A#, 16#3243#),
( 16#3250#, 16#3250#),
( 16#3260#, 16#327F#),
( 16#328A#, 16#32B0#),
( 16#32C0#, 16#32FE#),
( 16#3300#, 16#33FF#),
( 16#4DC0#, 16#4DFF#),
( 16#A490#, 16#A4C6#),
( 16#A828#, 16#A82B#),
( 16#FDFD#, 16#FDFD#),
( 16#FFE4#, 16#FFE4#),
( 16#FFE8#, 16#FFE8#),
( 16#FFED#, 16#FFEE#),
( 16#FFFC#, 16#FFFD#),
( 16#10102#, 16#10102#),
( 16#10137#, 16#1013F#),
( 16#10179#, 16#10189#),
( 16#1D000#, 16#1D0F5#),
( 16#1D100#, 16#1D126#),
( 16#1D12A#, 16#1D164#),
( 16#1D16A#, 16#1D16C#),
( 16#1D183#, 16#1D184#),
( 16#1D18C#, 16#1D1A9#),
( 16#1D1AE#, 16#1D1DD#),
( 16#1D200#, 16#1D241#),
( 16#1D245#, 16#1D245#),
( 16#1D300#, 16#1D356#)));
Zl_Node : aliased Set_Node :=
(1, 2, (
1 => ( 16#2028#, 16#2028#)));
Zp_Node : aliased Set_Node :=
(1, 2, (
1 => ( 16#2029#, 16#2029#)));
Zs_Node : aliased Set_Node :=
(8, 2, (
( 16#20#, 16#20#),
( 16#A0#, 16#A0#),
( 16#1680#, 16#1680#),
( 16#180E#, 16#180E#),
( 16#2000#, 16#200A#),
( 16#202F#, 16#202F#),
( 16#205F#, 16#205F#),
( 16#3000#, 16#3000#)));
Cn_Node : aliased Set_Node :=
(0, 2, (others => (Not_A_Symbol, Not_A_Symbol)));
Values : constant array (General_Category_Alias) of Symbol_Set :=
(Cc => (F.Controlled with Cc_Node'Access),
Cf => (F.Controlled with Cf_Node'Access),
Cn => (F.Controlled with Cn_Node'Access),
Co => (F.Controlled with Co_Node'Access),
Cs => (F.Controlled with Cs_Node'Access),
Ll => (F.Controlled with Ll_Node'Access),
Lm => (F.Controlled with Lm_Node'Access),
Lo => (F.Controlled with Lo_Node'Access),
Lt => (F.Controlled with Lt_Node'Access),
Lu => (F.Controlled with Lu_Node'Access),
Mc => (F.Controlled with Mc_Node'Access),
Me => (F.Controlled with Me_Node'Access),
Mn => (F.Controlled with Mn_Node'Access),
Nd => (F.Controlled with Nd_Node'Access),
Nl => (F.Controlled with Nl_Node'Access),
No => (F.Controlled with No_Node'Access),
Pc => (F.Controlled with Pc_Node'Access),
Pd => (F.Controlled with Pd_Node'Access),
Pe => (F.Controlled with Pe_Node'Access),
Pf => (F.Controlled with Pf_Node'Access),
Pi => (F.Controlled with Pi_Node'Access),
Po => (F.Controlled with Po_Node'Access),
Ps => (F.Controlled with Ps_Node'Access),
Sc => (F.Controlled with Sc_Node'Access),
Sk => (F.Controlled with Sk_Node'Access),
Sm => (F.Controlled with Sm_Node'Access),
So => (F.Controlled with So_Node'Access),
Zl => (F.Controlled with Zl_Node'Access),
Zp => (F.Controlled with Zp_Node'Access),
Zs => (F.Controlled with Zs_Node'Access));
function General_Category (Name : String) return Symbol_Set is
type General_Category is
(Control,
Format,
Unassigned,
Private_Use,
Surrogate,
Lowercase_Letter,
Modifier_Letter,
Other_Letter,
Titlecase_Letter,
Uppercase_Letter,
Spacing_Mark,
Enclosing_Mark,
Nonspacing_Mark,
Decimal_Number,
Letter_Number,
Other_Number,
Connector_Punctuation,
Dash_Punctuation,
Close_Punctuation,
Final_Punctuation,
Initial_Punctuation,
Other_Punctuation,
Open_Punctuation,
Currency_Symbol,
Modifier_Symbol,
Math_Symbol,
Other_Symbol,
Line_Separator,
Paragraph_Separator,
Space_Separator);
Category : General_Category_Alias;
GC : General_Category;
begin
if Name'Length = 2 then
Category := General_Category_Alias'Value (Name);
else
GC := General_Category'Value (Name);
Category := General_Category_Alias'Val (General_Category'Pos (GC));
end if;
return Values (Category);
end General_Category;
end Symbols.Unicode;
------------------------------------------------------------------------------
-- Copyright (c) 2006-2013, <NAME>
-- 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 <NAME>, 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 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.
------------------------------------------------------------------------------
| true |
------------------------------------------------------------------------------
-- PI:NAME:<NAME>END_PI E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- - - - - - - - - - - - - - - - --
-- Read copyright and license at the end of this file --
------------------------------------------------------------------------------
-- $Revision: 209 $ $Date: 2013-11-30 21:03:24 +0200 (Сб., 30 нояб. 2013) $
-- This file is generated by read_unicode.adb. DON'T EDIT!
package body Symbols.Unicode is
type General_Category_Alias is
(Cc,
Cf,
Cn,
Co,
Cs,
Ll,
Lm,
Lo,
Lt,
Lu,
Mc,
Me,
Mn,
Nd,
Nl,
No,
Pc,
Pd,
Pe,
Pf,
Pi,
Po,
Ps,
Sc,
Sk,
Sm,
So,
Zl,
Zp,
Zs);
Cc_Node : aliased Set_Node :=
(2, 2, (
( 16#0#, 16#1F#),
( 16#7F#, 16#9F#)));
Cf_Node : aliased Set_Node :=
(14, 2, (
( 16#AD#, 16#AD#),
( 16#600#, 16#603#),
( 16#6DD#, 16#6DD#),
( 16#70F#, 16#70F#),
( 16#17B4#, 16#17B5#),
( 16#200B#, 16#200F#),
( 16#202A#, 16#202E#),
( 16#2060#, 16#2063#),
( 16#206A#, 16#206F#),
( 16#FEFF#, 16#FEFF#),
( 16#FFF9#, 16#FFFB#),
( 16#1D173#, 16#1D17A#),
( 16#E0001#, 16#E0001#),
( 16#E0020#, 16#E007F#)));
Co_Node : aliased Set_Node :=
(3, 2, (
( 16#E000#, 16#F8FF#),
( 16#F0000#, 16#FFFFD#),
(16#100000#, 16#10FFFD#)));
Cs_Node : aliased Set_Node :=
(1, 2, (
1 => ( 16#D800#, 16#DFFF#)));
Ll_Node : aliased Set_Node :=
(502, 2, (
( 16#61#, 16#7A#),
( 16#AA#, 16#AA#),
( 16#B5#, 16#B5#),
( 16#BA#, 16#BA#),
( 16#DF#, 16#F6#),
( 16#F8#, 16#FF#),
( 16#101#, 16#101#),
( 16#103#, 16#103#),
( 16#105#, 16#105#),
( 16#107#, 16#107#),
( 16#109#, 16#109#),
( 16#10B#, 16#10B#),
( 16#10D#, 16#10D#),
( 16#10F#, 16#10F#),
( 16#111#, 16#111#),
( 16#113#, 16#113#),
( 16#115#, 16#115#),
( 16#117#, 16#117#),
( 16#119#, 16#119#),
( 16#11B#, 16#11B#),
( 16#11D#, 16#11D#),
( 16#11F#, 16#11F#),
( 16#121#, 16#121#),
( 16#123#, 16#123#),
( 16#125#, 16#125#),
( 16#127#, 16#127#),
( 16#129#, 16#129#),
( 16#12B#, 16#12B#),
( 16#12D#, 16#12D#),
( 16#12F#, 16#12F#),
( 16#131#, 16#131#),
( 16#133#, 16#133#),
( 16#135#, 16#135#),
( 16#137#, 16#138#),
( 16#13A#, 16#13A#),
( 16#13C#, 16#13C#),
( 16#13E#, 16#13E#),
( 16#140#, 16#140#),
( 16#142#, 16#142#),
( 16#144#, 16#144#),
( 16#146#, 16#146#),
( 16#148#, 16#149#),
( 16#14B#, 16#14B#),
( 16#14D#, 16#14D#),
( 16#14F#, 16#14F#),
( 16#151#, 16#151#),
( 16#153#, 16#153#),
( 16#155#, 16#155#),
( 16#157#, 16#157#),
( 16#159#, 16#159#),
( 16#15B#, 16#15B#),
( 16#15D#, 16#15D#),
( 16#15F#, 16#15F#),
( 16#161#, 16#161#),
( 16#163#, 16#163#),
( 16#165#, 16#165#),
( 16#167#, 16#167#),
( 16#169#, 16#169#),
( 16#16B#, 16#16B#),
( 16#16D#, 16#16D#),
( 16#16F#, 16#16F#),
( 16#171#, 16#171#),
( 16#173#, 16#173#),
( 16#175#, 16#175#),
( 16#177#, 16#177#),
( 16#17A#, 16#17A#),
( 16#17C#, 16#17C#),
( 16#17E#, 16#180#),
( 16#183#, 16#183#),
( 16#185#, 16#185#),
( 16#188#, 16#188#),
( 16#18C#, 16#18D#),
( 16#192#, 16#192#),
( 16#195#, 16#195#),
( 16#199#, 16#19B#),
( 16#19E#, 16#19E#),
( 16#1A1#, 16#1A1#),
( 16#1A3#, 16#1A3#),
( 16#1A5#, 16#1A5#),
( 16#1A8#, 16#1A8#),
( 16#1AA#, 16#1AB#),
( 16#1AD#, 16#1AD#),
( 16#1B0#, 16#1B0#),
( 16#1B4#, 16#1B4#),
( 16#1B6#, 16#1B6#),
( 16#1B9#, 16#1BA#),
( 16#1BD#, 16#1BF#),
( 16#1C6#, 16#1C6#),
( 16#1C9#, 16#1C9#),
( 16#1CC#, 16#1CC#),
( 16#1CE#, 16#1CE#),
( 16#1D0#, 16#1D0#),
( 16#1D2#, 16#1D2#),
( 16#1D4#, 16#1D4#),
( 16#1D6#, 16#1D6#),
( 16#1D8#, 16#1D8#),
( 16#1DA#, 16#1DA#),
( 16#1DC#, 16#1DD#),
( 16#1DF#, 16#1DF#),
( 16#1E1#, 16#1E1#),
( 16#1E3#, 16#1E3#),
( 16#1E5#, 16#1E5#),
( 16#1E7#, 16#1E7#),
( 16#1E9#, 16#1E9#),
( 16#1EB#, 16#1EB#),
( 16#1ED#, 16#1ED#),
( 16#1EF#, 16#1F0#),
( 16#1F3#, 16#1F3#),
( 16#1F5#, 16#1F5#),
( 16#1F9#, 16#1F9#),
( 16#1FB#, 16#1FB#),
( 16#1FD#, 16#1FD#),
( 16#1FF#, 16#1FF#),
( 16#201#, 16#201#),
( 16#203#, 16#203#),
( 16#205#, 16#205#),
( 16#207#, 16#207#),
( 16#209#, 16#209#),
( 16#20B#, 16#20B#),
( 16#20D#, 16#20D#),
( 16#20F#, 16#20F#),
( 16#211#, 16#211#),
( 16#213#, 16#213#),
( 16#215#, 16#215#),
( 16#217#, 16#217#),
( 16#219#, 16#219#),
( 16#21B#, 16#21B#),
( 16#21D#, 16#21D#),
( 16#21F#, 16#21F#),
( 16#221#, 16#221#),
( 16#223#, 16#223#),
( 16#225#, 16#225#),
( 16#227#, 16#227#),
( 16#229#, 16#229#),
( 16#22B#, 16#22B#),
( 16#22D#, 16#22D#),
( 16#22F#, 16#22F#),
( 16#231#, 16#231#),
( 16#233#, 16#239#),
( 16#23C#, 16#23C#),
( 16#23F#, 16#240#),
( 16#242#, 16#242#),
( 16#247#, 16#247#),
( 16#249#, 16#249#),
( 16#24B#, 16#24B#),
( 16#24D#, 16#24D#),
( 16#24F#, 16#293#),
( 16#295#, 16#2AF#),
( 16#37B#, 16#37D#),
( 16#390#, 16#390#),
( 16#3AC#, 16#3CE#),
( 16#3D0#, 16#3D1#),
( 16#3D5#, 16#3D7#),
( 16#3D9#, 16#3D9#),
( 16#3DB#, 16#3DB#),
( 16#3DD#, 16#3DD#),
( 16#3DF#, 16#3DF#),
( 16#3E1#, 16#3E1#),
( 16#3E3#, 16#3E3#),
( 16#3E5#, 16#3E5#),
( 16#3E7#, 16#3E7#),
( 16#3E9#, 16#3E9#),
( 16#3EB#, 16#3EB#),
( 16#3ED#, 16#3ED#),
( 16#3EF#, 16#3F3#),
( 16#3F5#, 16#3F5#),
( 16#3F8#, 16#3F8#),
( 16#3FB#, 16#3FC#),
( 16#430#, 16#45F#),
( 16#461#, 16#461#),
( 16#463#, 16#463#),
( 16#465#, 16#465#),
( 16#467#, 16#467#),
( 16#469#, 16#469#),
( 16#46B#, 16#46B#),
( 16#46D#, 16#46D#),
( 16#46F#, 16#46F#),
( 16#471#, 16#471#),
( 16#473#, 16#473#),
( 16#475#, 16#475#),
( 16#477#, 16#477#),
( 16#479#, 16#479#),
( 16#47B#, 16#47B#),
( 16#47D#, 16#47D#),
( 16#47F#, 16#47F#),
( 16#481#, 16#481#),
( 16#48B#, 16#48B#),
( 16#48D#, 16#48D#),
( 16#48F#, 16#48F#),
( 16#491#, 16#491#),
( 16#493#, 16#493#),
( 16#495#, 16#495#),
( 16#497#, 16#497#),
( 16#499#, 16#499#),
( 16#49B#, 16#49B#),
( 16#49D#, 16#49D#),
( 16#49F#, 16#49F#),
( 16#4A1#, 16#4A1#),
( 16#4A3#, 16#4A3#),
( 16#4A5#, 16#4A5#),
( 16#4A7#, 16#4A7#),
( 16#4A9#, 16#4A9#),
( 16#4AB#, 16#4AB#),
( 16#4AD#, 16#4AD#),
( 16#4AF#, 16#4AF#),
( 16#4B1#, 16#4B1#),
( 16#4B3#, 16#4B3#),
( 16#4B5#, 16#4B5#),
( 16#4B7#, 16#4B7#),
( 16#4B9#, 16#4B9#),
( 16#4BB#, 16#4BB#),
( 16#4BD#, 16#4BD#),
( 16#4BF#, 16#4BF#),
( 16#4C2#, 16#4C2#),
( 16#4C4#, 16#4C4#),
( 16#4C6#, 16#4C6#),
( 16#4C8#, 16#4C8#),
( 16#4CA#, 16#4CA#),
( 16#4CC#, 16#4CC#),
( 16#4CE#, 16#4CF#),
( 16#4D1#, 16#4D1#),
( 16#4D3#, 16#4D3#),
( 16#4D5#, 16#4D5#),
( 16#4D7#, 16#4D7#),
( 16#4D9#, 16#4D9#),
( 16#4DB#, 16#4DB#),
( 16#4DD#, 16#4DD#),
( 16#4DF#, 16#4DF#),
( 16#4E1#, 16#4E1#),
( 16#4E3#, 16#4E3#),
( 16#4E5#, 16#4E5#),
( 16#4E7#, 16#4E7#),
( 16#4E9#, 16#4E9#),
( 16#4EB#, 16#4EB#),
( 16#4ED#, 16#4ED#),
( 16#4EF#, 16#4EF#),
( 16#4F1#, 16#4F1#),
( 16#4F3#, 16#4F3#),
( 16#4F5#, 16#4F5#),
( 16#4F7#, 16#4F7#),
( 16#4F9#, 16#4F9#),
( 16#4FB#, 16#4FB#),
( 16#4FD#, 16#4FD#),
( 16#4FF#, 16#4FF#),
( 16#501#, 16#501#),
( 16#503#, 16#503#),
( 16#505#, 16#505#),
( 16#507#, 16#507#),
( 16#509#, 16#509#),
( 16#50B#, 16#50B#),
( 16#50D#, 16#50D#),
( 16#50F#, 16#50F#),
( 16#511#, 16#511#),
( 16#513#, 16#513#),
( 16#561#, 16#587#),
( 16#1D00#, 16#1D2B#),
( 16#1D62#, 16#1D77#),
( 16#1D79#, 16#1D9A#),
( 16#1E01#, 16#1E01#),
( 16#1E03#, 16#1E03#),
( 16#1E05#, 16#1E05#),
( 16#1E07#, 16#1E07#),
( 16#1E09#, 16#1E09#),
( 16#1E0B#, 16#1E0B#),
( 16#1E0D#, 16#1E0D#),
( 16#1E0F#, 16#1E0F#),
( 16#1E11#, 16#1E11#),
( 16#1E13#, 16#1E13#),
( 16#1E15#, 16#1E15#),
( 16#1E17#, 16#1E17#),
( 16#1E19#, 16#1E19#),
( 16#1E1B#, 16#1E1B#),
( 16#1E1D#, 16#1E1D#),
( 16#1E1F#, 16#1E1F#),
( 16#1E21#, 16#1E21#),
( 16#1E23#, 16#1E23#),
( 16#1E25#, 16#1E25#),
( 16#1E27#, 16#1E27#),
( 16#1E29#, 16#1E29#),
( 16#1E2B#, 16#1E2B#),
( 16#1E2D#, 16#1E2D#),
( 16#1E2F#, 16#1E2F#),
( 16#1E31#, 16#1E31#),
( 16#1E33#, 16#1E33#),
( 16#1E35#, 16#1E35#),
( 16#1E37#, 16#1E37#),
( 16#1E39#, 16#1E39#),
( 16#1E3B#, 16#1E3B#),
( 16#1E3D#, 16#1E3D#),
( 16#1E3F#, 16#1E3F#),
( 16#1E41#, 16#1E41#),
( 16#1E43#, 16#1E43#),
( 16#1E45#, 16#1E45#),
( 16#1E47#, 16#1E47#),
( 16#1E49#, 16#1E49#),
( 16#1E4B#, 16#1E4B#),
( 16#1E4D#, 16#1E4D#),
( 16#1E4F#, 16#1E4F#),
( 16#1E51#, 16#1E51#),
( 16#1E53#, 16#1E53#),
( 16#1E55#, 16#1E55#),
( 16#1E57#, 16#1E57#),
( 16#1E59#, 16#1E59#),
( 16#1E5B#, 16#1E5B#),
( 16#1E5D#, 16#1E5D#),
( 16#1E5F#, 16#1E5F#),
( 16#1E61#, 16#1E61#),
( 16#1E63#, 16#1E63#),
( 16#1E65#, 16#1E65#),
( 16#1E67#, 16#1E67#),
( 16#1E69#, 16#1E69#),
( 16#1E6B#, 16#1E6B#),
( 16#1E6D#, 16#1E6D#),
( 16#1E6F#, 16#1E6F#),
( 16#1E71#, 16#1E71#),
( 16#1E73#, 16#1E73#),
( 16#1E75#, 16#1E75#),
( 16#1E77#, 16#1E77#),
( 16#1E79#, 16#1E79#),
( 16#1E7B#, 16#1E7B#),
( 16#1E7D#, 16#1E7D#),
( 16#1E7F#, 16#1E7F#),
( 16#1E81#, 16#1E81#),
( 16#1E83#, 16#1E83#),
( 16#1E85#, 16#1E85#),
( 16#1E87#, 16#1E87#),
( 16#1E89#, 16#1E89#),
( 16#1E8B#, 16#1E8B#),
( 16#1E8D#, 16#1E8D#),
( 16#1E8F#, 16#1E8F#),
( 16#1E91#, 16#1E91#),
( 16#1E93#, 16#1E93#),
( 16#1E95#, 16#1E9B#),
( 16#1EA1#, 16#1EA1#),
( 16#1EA3#, 16#1EA3#),
( 16#1EA5#, 16#1EA5#),
( 16#1EA7#, 16#1EA7#),
( 16#1EA9#, 16#1EA9#),
( 16#1EAB#, 16#1EAB#),
( 16#1EAD#, 16#1EAD#),
( 16#1EAF#, 16#1EAF#),
( 16#1EB1#, 16#1EB1#),
( 16#1EB3#, 16#1EB3#),
( 16#1EB5#, 16#1EB5#),
( 16#1EB7#, 16#1EB7#),
( 16#1EB9#, 16#1EB9#),
( 16#1EBB#, 16#1EBB#),
( 16#1EBD#, 16#1EBD#),
( 16#1EBF#, 16#1EBF#),
( 16#1EC1#, 16#1EC1#),
( 16#1EC3#, 16#1EC3#),
( 16#1EC5#, 16#1EC5#),
( 16#1EC7#, 16#1EC7#),
( 16#1EC9#, 16#1EC9#),
( 16#1ECB#, 16#1ECB#),
( 16#1ECD#, 16#1ECD#),
( 16#1ECF#, 16#1ECF#),
( 16#1ED1#, 16#1ED1#),
( 16#1ED3#, 16#1ED3#),
( 16#1ED5#, 16#1ED5#),
( 16#1ED7#, 16#1ED7#),
( 16#1ED9#, 16#1ED9#),
( 16#1EDB#, 16#1EDB#),
( 16#1EDD#, 16#1EDD#),
( 16#1EDF#, 16#1EDF#),
( 16#1EE1#, 16#1EE1#),
( 16#1EE3#, 16#1EE3#),
( 16#1EE5#, 16#1EE5#),
( 16#1EE7#, 16#1EE7#),
( 16#1EE9#, 16#1EE9#),
( 16#1EEB#, 16#1EEB#),
( 16#1EED#, 16#1EED#),
( 16#1EEF#, 16#1EEF#),
( 16#1EF1#, 16#1EF1#),
( 16#1EF3#, 16#1EF3#),
( 16#1EF5#, 16#1EF5#),
( 16#1EF7#, 16#1EF7#),
( 16#1EF9#, 16#1EF9#),
( 16#1F00#, 16#1F07#),
( 16#1F10#, 16#1F15#),
( 16#1F20#, 16#1F27#),
( 16#1F30#, 16#1F37#),
( 16#1F40#, 16#1F45#),
( 16#1F50#, 16#1F57#),
( 16#1F60#, 16#1F67#),
( 16#1F70#, 16#1F7D#),
( 16#1F80#, 16#1F87#),
( 16#1F90#, 16#1F97#),
( 16#1FA0#, 16#1FA7#),
( 16#1FB0#, 16#1FB4#),
( 16#1FB6#, 16#1FB7#),
( 16#1FBE#, 16#1FBE#),
( 16#1FC2#, 16#1FC4#),
( 16#1FC6#, 16#1FC7#),
( 16#1FD0#, 16#1FD3#),
( 16#1FD6#, 16#1FD7#),
( 16#1FE0#, 16#1FE7#),
( 16#1FF2#, 16#1FF4#),
( 16#1FF6#, 16#1FF7#),
( 16#2071#, 16#2071#),
( 16#207F#, 16#207F#),
( 16#210A#, 16#210A#),
( 16#210E#, 16#210F#),
( 16#2113#, 16#2113#),
( 16#212F#, 16#212F#),
( 16#2134#, 16#2134#),
( 16#2139#, 16#2139#),
( 16#213C#, 16#213D#),
( 16#2146#, 16#2149#),
( 16#214E#, 16#214E#),
( 16#2184#, 16#2184#),
( 16#2C30#, 16#2C5E#),
( 16#2C61#, 16#2C61#),
( 16#2C65#, 16#2C66#),
( 16#2C68#, 16#2C68#),
( 16#2C6A#, 16#2C6A#),
( 16#2C6C#, 16#2C6C#),
( 16#2C74#, 16#2C74#),
( 16#2C76#, 16#2C77#),
( 16#2C81#, 16#2C81#),
( 16#2C83#, 16#2C83#),
( 16#2C85#, 16#2C85#),
( 16#2C87#, 16#2C87#),
( 16#2C89#, 16#2C89#),
( 16#2C8B#, 16#2C8B#),
( 16#2C8D#, 16#2C8D#),
( 16#2C8F#, 16#2C8F#),
( 16#2C91#, 16#2C91#),
( 16#2C93#, 16#2C93#),
( 16#2C95#, 16#2C95#),
( 16#2C97#, 16#2C97#),
( 16#2C99#, 16#2C99#),
( 16#2C9B#, 16#2C9B#),
( 16#2C9D#, 16#2C9D#),
( 16#2C9F#, 16#2C9F#),
( 16#2CA1#, 16#2CA1#),
( 16#2CA3#, 16#2CA3#),
( 16#2CA5#, 16#2CA5#),
( 16#2CA7#, 16#2CA7#),
( 16#2CA9#, 16#2CA9#),
( 16#2CAB#, 16#2CAB#),
( 16#2CAD#, 16#2CAD#),
( 16#2CAF#, 16#2CAF#),
( 16#2CB1#, 16#2CB1#),
( 16#2CB3#, 16#2CB3#),
( 16#2CB5#, 16#2CB5#),
( 16#2CB7#, 16#2CB7#),
( 16#2CB9#, 16#2CB9#),
( 16#2CBB#, 16#2CBB#),
( 16#2CBD#, 16#2CBD#),
( 16#2CBF#, 16#2CBF#),
( 16#2CC1#, 16#2CC1#),
( 16#2CC3#, 16#2CC3#),
( 16#2CC5#, 16#2CC5#),
( 16#2CC7#, 16#2CC7#),
( 16#2CC9#, 16#2CC9#),
( 16#2CCB#, 16#2CCB#),
( 16#2CCD#, 16#2CCD#),
( 16#2CCF#, 16#2CCF#),
( 16#2CD1#, 16#2CD1#),
( 16#2CD3#, 16#2CD3#),
( 16#2CD5#, 16#2CD5#),
( 16#2CD7#, 16#2CD7#),
( 16#2CD9#, 16#2CD9#),
( 16#2CDB#, 16#2CDB#),
( 16#2CDD#, 16#2CDD#),
( 16#2CDF#, 16#2CDF#),
( 16#2CE1#, 16#2CE1#),
( 16#2CE3#, 16#2CE4#),
( 16#2D00#, 16#2D25#),
( 16#FB00#, 16#FB06#),
( 16#FB13#, 16#FB17#),
( 16#FF41#, 16#FF5A#),
( 16#10428#, 16#1044F#),
( 16#1D41A#, 16#1D433#),
( 16#1D44E#, 16#1D454#),
( 16#1D456#, 16#1D467#),
( 16#1D482#, 16#1D49B#),
( 16#1D4B6#, 16#1D4B9#),
( 16#1D4BB#, 16#1D4BB#),
( 16#1D4BD#, 16#1D4C3#),
( 16#1D4C5#, 16#1D4CF#),
( 16#1D4EA#, 16#1D503#),
( 16#1D51E#, 16#1D537#),
( 16#1D552#, 16#1D56B#),
( 16#1D586#, 16#1D59F#),
( 16#1D5BA#, 16#1D5D3#),
( 16#1D5EE#, 16#1D607#),
( 16#1D622#, 16#1D63B#),
( 16#1D656#, 16#1D66F#),
( 16#1D68A#, 16#1D6A5#),
( 16#1D6C2#, 16#1D6DA#),
( 16#1D6DC#, 16#1D6E1#),
( 16#1D6FC#, 16#1D714#),
( 16#1D716#, 16#1D71B#),
( 16#1D736#, 16#1D74E#),
( 16#1D750#, 16#1D755#),
( 16#1D770#, 16#1D788#),
( 16#1D78A#, 16#1D78F#),
( 16#1D7AA#, 16#1D7C2#),
( 16#1D7C4#, 16#1D7C9#),
( 16#1D7CB#, 16#1D7CB#)));
Lm_Node : aliased Set_Node :=
(29, 2, (
( 16#2B0#, 16#2C1#),
( 16#2C6#, 16#2D1#),
( 16#2E0#, 16#2E4#),
( 16#2EE#, 16#2EE#),
( 16#37A#, 16#37A#),
( 16#559#, 16#559#),
( 16#640#, 16#640#),
( 16#6E5#, 16#6E6#),
( 16#7F4#, 16#7F5#),
( 16#7FA#, 16#7FA#),
( 16#E46#, 16#E46#),
( 16#EC6#, 16#EC6#),
( 16#10FC#, 16#10FC#),
( 16#17D7#, 16#17D7#),
( 16#1843#, 16#1843#),
( 16#1D2C#, 16#1D61#),
( 16#1D78#, 16#1D78#),
( 16#1D9B#, 16#1DBF#),
( 16#2090#, 16#2094#),
( 16#2D6F#, 16#2D6F#),
( 16#3005#, 16#3005#),
( 16#3031#, 16#3035#),
( 16#303B#, 16#303B#),
( 16#309D#, 16#309E#),
( 16#30FC#, 16#30FE#),
( 16#A015#, 16#A015#),
( 16#A717#, 16#A71A#),
( 16#FF70#, 16#FF70#),
( 16#FF9E#, 16#FF9F#)));
Lo_Node : aliased Set_Node :=
(253, 2, (
( 16#1BB#, 16#1BB#),
( 16#1C0#, 16#1C3#),
( 16#294#, 16#294#),
( 16#5D0#, 16#5EA#),
( 16#5F0#, 16#5F2#),
( 16#621#, 16#63A#),
( 16#641#, 16#64A#),
( 16#66E#, 16#66F#),
( 16#671#, 16#6D3#),
( 16#6D5#, 16#6D5#),
( 16#6EE#, 16#6EF#),
( 16#6FA#, 16#6FC#),
( 16#6FF#, 16#6FF#),
( 16#710#, 16#710#),
( 16#712#, 16#72F#),
( 16#74D#, 16#76D#),
( 16#780#, 16#7A5#),
( 16#7B1#, 16#7B1#),
( 16#7CA#, 16#7EA#),
( 16#904#, 16#939#),
( 16#93D#, 16#93D#),
( 16#950#, 16#950#),
( 16#958#, 16#961#),
( 16#97B#, 16#97F#),
( 16#985#, 16#98C#),
( 16#98F#, 16#990#),
( 16#993#, 16#9A8#),
( 16#9AA#, 16#9B0#),
( 16#9B2#, 16#9B2#),
( 16#9B6#, 16#9B9#),
( 16#9BD#, 16#9BD#),
( 16#9CE#, 16#9CE#),
( 16#9DC#, 16#9DD#),
( 16#9DF#, 16#9E1#),
( 16#9F0#, 16#9F1#),
( 16#A05#, 16#A0A#),
( 16#A0F#, 16#A10#),
( 16#A13#, 16#A28#),
( 16#A2A#, 16#A30#),
( 16#A32#, 16#A33#),
( 16#A35#, 16#A36#),
( 16#A38#, 16#A39#),
( 16#A59#, 16#A5C#),
( 16#A5E#, 16#A5E#),
( 16#A72#, 16#A74#),
( 16#A85#, 16#A8D#),
( 16#A8F#, 16#A91#),
( 16#A93#, 16#AA8#),
( 16#AAA#, 16#AB0#),
( 16#AB2#, 16#AB3#),
( 16#AB5#, 16#AB9#),
( 16#ABD#, 16#ABD#),
( 16#AD0#, 16#AD0#),
( 16#AE0#, 16#AE1#),
( 16#B05#, 16#B0C#),
( 16#B0F#, 16#B10#),
( 16#B13#, 16#B28#),
( 16#B2A#, 16#B30#),
( 16#B32#, 16#B33#),
( 16#B35#, 16#B39#),
( 16#B3D#, 16#B3D#),
( 16#B5C#, 16#B5D#),
( 16#B5F#, 16#B61#),
( 16#B71#, 16#B71#),
( 16#B83#, 16#B83#),
( 16#B85#, 16#B8A#),
( 16#B8E#, 16#B90#),
( 16#B92#, 16#B95#),
( 16#B99#, 16#B9A#),
( 16#B9C#, 16#B9C#),
( 16#B9E#, 16#B9F#),
( 16#BA3#, 16#BA4#),
( 16#BA8#, 16#BAA#),
( 16#BAE#, 16#BB9#),
( 16#C05#, 16#C0C#),
( 16#C0E#, 16#C10#),
( 16#C12#, 16#C28#),
( 16#C2A#, 16#C33#),
( 16#C35#, 16#C39#),
( 16#C60#, 16#C61#),
( 16#C85#, 16#C8C#),
( 16#C8E#, 16#C90#),
( 16#C92#, 16#CA8#),
( 16#CAA#, 16#CB3#),
( 16#CB5#, 16#CB9#),
( 16#CBD#, 16#CBD#),
( 16#CDE#, 16#CDE#),
( 16#CE0#, 16#CE1#),
( 16#D05#, 16#D0C#),
( 16#D0E#, 16#D10#),
( 16#D12#, 16#D28#),
( 16#D2A#, 16#D39#),
( 16#D60#, 16#D61#),
( 16#D85#, 16#D96#),
( 16#D9A#, 16#DB1#),
( 16#DB3#, 16#DBB#),
( 16#DBD#, 16#DBD#),
( 16#DC0#, 16#DC6#),
( 16#E01#, 16#E30#),
( 16#E32#, 16#E33#),
( 16#E40#, 16#E45#),
( 16#E81#, 16#E82#),
( 16#E84#, 16#E84#),
( 16#E87#, 16#E88#),
( 16#E8A#, 16#E8A#),
( 16#E8D#, 16#E8D#),
( 16#E94#, 16#E97#),
( 16#E99#, 16#E9F#),
( 16#EA1#, 16#EA3#),
( 16#EA5#, 16#EA5#),
( 16#EA7#, 16#EA7#),
( 16#EAA#, 16#EAB#),
( 16#EAD#, 16#EB0#),
( 16#EB2#, 16#EB3#),
( 16#EBD#, 16#EBD#),
( 16#EC0#, 16#EC4#),
( 16#EDC#, 16#EDD#),
( 16#F00#, 16#F00#),
( 16#F40#, 16#F47#),
( 16#F49#, 16#F6A#),
( 16#F88#, 16#F8B#),
( 16#1000#, 16#1021#),
( 16#1023#, 16#1027#),
( 16#1029#, 16#102A#),
( 16#1050#, 16#1055#),
( 16#10D0#, 16#10FA#),
( 16#1100#, 16#1159#),
( 16#115F#, 16#11A2#),
( 16#11A8#, 16#11F9#),
( 16#1200#, 16#1248#),
( 16#124A#, 16#124D#),
( 16#1250#, 16#1256#),
( 16#1258#, 16#1258#),
( 16#125A#, 16#125D#),
( 16#1260#, 16#1288#),
( 16#128A#, 16#128D#),
( 16#1290#, 16#12B0#),
( 16#12B2#, 16#12B5#),
( 16#12B8#, 16#12BE#),
( 16#12C0#, 16#12C0#),
( 16#12C2#, 16#12C5#),
( 16#12C8#, 16#12D6#),
( 16#12D8#, 16#1310#),
( 16#1312#, 16#1315#),
( 16#1318#, 16#135A#),
( 16#1380#, 16#138F#),
( 16#13A0#, 16#13F4#),
( 16#1401#, 16#166C#),
( 16#166F#, 16#1676#),
( 16#1681#, 16#169A#),
( 16#16A0#, 16#16EA#),
( 16#1700#, 16#170C#),
( 16#170E#, 16#1711#),
( 16#1720#, 16#1731#),
( 16#1740#, 16#1751#),
( 16#1760#, 16#176C#),
( 16#176E#, 16#1770#),
( 16#1780#, 16#17B3#),
( 16#17DC#, 16#17DC#),
( 16#1820#, 16#1842#),
( 16#1844#, 16#1877#),
( 16#1880#, 16#18A8#),
( 16#1900#, 16#191C#),
( 16#1950#, 16#196D#),
( 16#1970#, 16#1974#),
( 16#1980#, 16#19A9#),
( 16#19C1#, 16#19C7#),
( 16#1A00#, 16#1A16#),
( 16#1B05#, 16#1B33#),
( 16#1B45#, 16#1B4B#),
( 16#2135#, 16#2138#),
( 16#2D30#, 16#2D65#),
( 16#2D80#, 16#2D96#),
( 16#2DA0#, 16#2DA6#),
( 16#2DA8#, 16#2DAE#),
( 16#2DB0#, 16#2DB6#),
( 16#2DB8#, 16#2DBE#),
( 16#2DC0#, 16#2DC6#),
( 16#2DC8#, 16#2DCE#),
( 16#2DD0#, 16#2DD6#),
( 16#2DD8#, 16#2DDE#),
( 16#3006#, 16#3006#),
( 16#303C#, 16#303C#),
( 16#3041#, 16#3096#),
( 16#309F#, 16#309F#),
( 16#30A1#, 16#30FA#),
( 16#30FF#, 16#30FF#),
( 16#3105#, 16#312C#),
( 16#3131#, 16#318E#),
( 16#31A0#, 16#31B7#),
( 16#31F0#, 16#31FF#),
( 16#3400#, 16#4DB5#),
( 16#4E00#, 16#9FBB#),
( 16#A000#, 16#A014#),
( 16#A016#, 16#A48C#),
( 16#A800#, 16#A801#),
( 16#A803#, 16#A805#),
( 16#A807#, 16#A80A#),
( 16#A80C#, 16#A822#),
( 16#A840#, 16#A873#),
( 16#AC00#, 16#D7A3#),
( 16#F900#, 16#FA2D#),
( 16#FA30#, 16#FA6A#),
( 16#FA70#, 16#FAD9#),
( 16#FB1D#, 16#FB1D#),
( 16#FB1F#, 16#FB28#),
( 16#FB2A#, 16#FB36#),
( 16#FB38#, 16#FB3C#),
( 16#FB3E#, 16#FB3E#),
( 16#FB40#, 16#FB41#),
( 16#FB43#, 16#FB44#),
( 16#FB46#, 16#FBB1#),
( 16#FBD3#, 16#FD3D#),
( 16#FD50#, 16#FD8F#),
( 16#FD92#, 16#FDC7#),
( 16#FDF0#, 16#FDFB#),
( 16#FE70#, 16#FE74#),
( 16#FE76#, 16#FEFC#),
( 16#FF66#, 16#FF6F#),
( 16#FF71#, 16#FF9D#),
( 16#FFA0#, 16#FFBE#),
( 16#FFC2#, 16#FFC7#),
( 16#FFCA#, 16#FFCF#),
( 16#FFD2#, 16#FFD7#),
( 16#FFDA#, 16#FFDC#),
( 16#10000#, 16#1000B#),
( 16#1000D#, 16#10026#),
( 16#10028#, 16#1003A#),
( 16#1003C#, 16#1003D#),
( 16#1003F#, 16#1004D#),
( 16#10050#, 16#1005D#),
( 16#10080#, 16#100FA#),
( 16#10300#, 16#1031E#),
( 16#10330#, 16#10340#),
( 16#10342#, 16#10349#),
( 16#10380#, 16#1039D#),
( 16#103A0#, 16#103C3#),
( 16#103C8#, 16#103CF#),
( 16#10450#, 16#1049D#),
( 16#10800#, 16#10805#),
( 16#10808#, 16#10808#),
( 16#1080A#, 16#10835#),
( 16#10837#, 16#10838#),
( 16#1083C#, 16#1083C#),
( 16#1083F#, 16#1083F#),
( 16#10900#, 16#10915#),
( 16#10A00#, 16#10A00#),
( 16#10A10#, 16#10A13#),
( 16#10A15#, 16#10A17#),
( 16#10A19#, 16#10A33#),
( 16#12000#, 16#1236E#),
( 16#20000#, 16#2A6D6#),
( 16#2F800#, 16#2FA1D#)));
Lt_Node : aliased Set_Node :=
(10, 2, (
( 16#1C5#, 16#1C5#),
( 16#1C8#, 16#1C8#),
( 16#1CB#, 16#1CB#),
( 16#1F2#, 16#1F2#),
( 16#1F88#, 16#1F8F#),
( 16#1F98#, 16#1F9F#),
( 16#1FA8#, 16#1FAF#),
( 16#1FBC#, 16#1FBC#),
( 16#1FCC#, 16#1FCC#),
( 16#1FFC#, 16#1FFC#)));
Lu_Node : aliased Set_Node :=
(493, 2, (
( 16#41#, 16#5A#),
( 16#C0#, 16#D6#),
( 16#D8#, 16#DE#),
( 16#100#, 16#100#),
( 16#102#, 16#102#),
( 16#104#, 16#104#),
( 16#106#, 16#106#),
( 16#108#, 16#108#),
( 16#10A#, 16#10A#),
( 16#10C#, 16#10C#),
( 16#10E#, 16#10E#),
( 16#110#, 16#110#),
( 16#112#, 16#112#),
( 16#114#, 16#114#),
( 16#116#, 16#116#),
( 16#118#, 16#118#),
( 16#11A#, 16#11A#),
( 16#11C#, 16#11C#),
( 16#11E#, 16#11E#),
( 16#120#, 16#120#),
( 16#122#, 16#122#),
( 16#124#, 16#124#),
( 16#126#, 16#126#),
( 16#128#, 16#128#),
( 16#12A#, 16#12A#),
( 16#12C#, 16#12C#),
( 16#12E#, 16#12E#),
( 16#130#, 16#130#),
( 16#132#, 16#132#),
( 16#134#, 16#134#),
( 16#136#, 16#136#),
( 16#139#, 16#139#),
( 16#13B#, 16#13B#),
( 16#13D#, 16#13D#),
( 16#13F#, 16#13F#),
( 16#141#, 16#141#),
( 16#143#, 16#143#),
( 16#145#, 16#145#),
( 16#147#, 16#147#),
( 16#14A#, 16#14A#),
( 16#14C#, 16#14C#),
( 16#14E#, 16#14E#),
( 16#150#, 16#150#),
( 16#152#, 16#152#),
( 16#154#, 16#154#),
( 16#156#, 16#156#),
( 16#158#, 16#158#),
( 16#15A#, 16#15A#),
( 16#15C#, 16#15C#),
( 16#15E#, 16#15E#),
( 16#160#, 16#160#),
( 16#162#, 16#162#),
( 16#164#, 16#164#),
( 16#166#, 16#166#),
( 16#168#, 16#168#),
( 16#16A#, 16#16A#),
( 16#16C#, 16#16C#),
( 16#16E#, 16#16E#),
( 16#170#, 16#170#),
( 16#172#, 16#172#),
( 16#174#, 16#174#),
( 16#176#, 16#176#),
( 16#178#, 16#179#),
( 16#17B#, 16#17B#),
( 16#17D#, 16#17D#),
( 16#181#, 16#182#),
( 16#184#, 16#184#),
( 16#186#, 16#187#),
( 16#189#, 16#18B#),
( 16#18E#, 16#191#),
( 16#193#, 16#194#),
( 16#196#, 16#198#),
( 16#19C#, 16#19D#),
( 16#19F#, 16#1A0#),
( 16#1A2#, 16#1A2#),
( 16#1A4#, 16#1A4#),
( 16#1A6#, 16#1A7#),
( 16#1A9#, 16#1A9#),
( 16#1AC#, 16#1AC#),
( 16#1AE#, 16#1AF#),
( 16#1B1#, 16#1B3#),
( 16#1B5#, 16#1B5#),
( 16#1B7#, 16#1B8#),
( 16#1BC#, 16#1BC#),
( 16#1C4#, 16#1C4#),
( 16#1C7#, 16#1C7#),
( 16#1CA#, 16#1CA#),
( 16#1CD#, 16#1CD#),
( 16#1CF#, 16#1CF#),
( 16#1D1#, 16#1D1#),
( 16#1D3#, 16#1D3#),
( 16#1D5#, 16#1D5#),
( 16#1D7#, 16#1D7#),
( 16#1D9#, 16#1D9#),
( 16#1DB#, 16#1DB#),
( 16#1DE#, 16#1DE#),
( 16#1E0#, 16#1E0#),
( 16#1E2#, 16#1E2#),
( 16#1E4#, 16#1E4#),
( 16#1E6#, 16#1E6#),
( 16#1E8#, 16#1E8#),
( 16#1EA#, 16#1EA#),
( 16#1EC#, 16#1EC#),
( 16#1EE#, 16#1EE#),
( 16#1F1#, 16#1F1#),
( 16#1F4#, 16#1F4#),
( 16#1F6#, 16#1F8#),
( 16#1FA#, 16#1FA#),
( 16#1FC#, 16#1FC#),
( 16#1FE#, 16#1FE#),
( 16#200#, 16#200#),
( 16#202#, 16#202#),
( 16#204#, 16#204#),
( 16#206#, 16#206#),
( 16#208#, 16#208#),
( 16#20A#, 16#20A#),
( 16#20C#, 16#20C#),
( 16#20E#, 16#20E#),
( 16#210#, 16#210#),
( 16#212#, 16#212#),
( 16#214#, 16#214#),
( 16#216#, 16#216#),
( 16#218#, 16#218#),
( 16#21A#, 16#21A#),
( 16#21C#, 16#21C#),
( 16#21E#, 16#21E#),
( 16#220#, 16#220#),
( 16#222#, 16#222#),
( 16#224#, 16#224#),
( 16#226#, 16#226#),
( 16#228#, 16#228#),
( 16#22A#, 16#22A#),
( 16#22C#, 16#22C#),
( 16#22E#, 16#22E#),
( 16#230#, 16#230#),
( 16#232#, 16#232#),
( 16#23A#, 16#23B#),
( 16#23D#, 16#23E#),
( 16#241#, 16#241#),
( 16#243#, 16#246#),
( 16#248#, 16#248#),
( 16#24A#, 16#24A#),
( 16#24C#, 16#24C#),
( 16#24E#, 16#24E#),
( 16#386#, 16#386#),
( 16#388#, 16#38A#),
( 16#38C#, 16#38C#),
( 16#38E#, 16#38F#),
( 16#391#, 16#3A1#),
( 16#3A3#, 16#3AB#),
( 16#3D2#, 16#3D4#),
( 16#3D8#, 16#3D8#),
( 16#3DA#, 16#3DA#),
( 16#3DC#, 16#3DC#),
( 16#3DE#, 16#3DE#),
( 16#3E0#, 16#3E0#),
( 16#3E2#, 16#3E2#),
( 16#3E4#, 16#3E4#),
( 16#3E6#, 16#3E6#),
( 16#3E8#, 16#3E8#),
( 16#3EA#, 16#3EA#),
( 16#3EC#, 16#3EC#),
( 16#3EE#, 16#3EE#),
( 16#3F4#, 16#3F4#),
( 16#3F7#, 16#3F7#),
( 16#3F9#, 16#3FA#),
( 16#3FD#, 16#42F#),
( 16#460#, 16#460#),
( 16#462#, 16#462#),
( 16#464#, 16#464#),
( 16#466#, 16#466#),
( 16#468#, 16#468#),
( 16#46A#, 16#46A#),
( 16#46C#, 16#46C#),
( 16#46E#, 16#46E#),
( 16#470#, 16#470#),
( 16#472#, 16#472#),
( 16#474#, 16#474#),
( 16#476#, 16#476#),
( 16#478#, 16#478#),
( 16#47A#, 16#47A#),
( 16#47C#, 16#47C#),
( 16#47E#, 16#47E#),
( 16#480#, 16#480#),
( 16#48A#, 16#48A#),
( 16#48C#, 16#48C#),
( 16#48E#, 16#48E#),
( 16#490#, 16#490#),
( 16#492#, 16#492#),
( 16#494#, 16#494#),
( 16#496#, 16#496#),
( 16#498#, 16#498#),
( 16#49A#, 16#49A#),
( 16#49C#, 16#49C#),
( 16#49E#, 16#49E#),
( 16#4A0#, 16#4A0#),
( 16#4A2#, 16#4A2#),
( 16#4A4#, 16#4A4#),
( 16#4A6#, 16#4A6#),
( 16#4A8#, 16#4A8#),
( 16#4AA#, 16#4AA#),
( 16#4AC#, 16#4AC#),
( 16#4AE#, 16#4AE#),
( 16#4B0#, 16#4B0#),
( 16#4B2#, 16#4B2#),
( 16#4B4#, 16#4B4#),
( 16#4B6#, 16#4B6#),
( 16#4B8#, 16#4B8#),
( 16#4BA#, 16#4BA#),
( 16#4BC#, 16#4BC#),
( 16#4BE#, 16#4BE#),
( 16#4C0#, 16#4C1#),
( 16#4C3#, 16#4C3#),
( 16#4C5#, 16#4C5#),
( 16#4C7#, 16#4C7#),
( 16#4C9#, 16#4C9#),
( 16#4CB#, 16#4CB#),
( 16#4CD#, 16#4CD#),
( 16#4D0#, 16#4D0#),
( 16#4D2#, 16#4D2#),
( 16#4D4#, 16#4D4#),
( 16#4D6#, 16#4D6#),
( 16#4D8#, 16#4D8#),
( 16#4DA#, 16#4DA#),
( 16#4DC#, 16#4DC#),
( 16#4DE#, 16#4DE#),
( 16#4E0#, 16#4E0#),
( 16#4E2#, 16#4E2#),
( 16#4E4#, 16#4E4#),
( 16#4E6#, 16#4E6#),
( 16#4E8#, 16#4E8#),
( 16#4EA#, 16#4EA#),
( 16#4EC#, 16#4EC#),
( 16#4EE#, 16#4EE#),
( 16#4F0#, 16#4F0#),
( 16#4F2#, 16#4F2#),
( 16#4F4#, 16#4F4#),
( 16#4F6#, 16#4F6#),
( 16#4F8#, 16#4F8#),
( 16#4FA#, 16#4FA#),
( 16#4FC#, 16#4FC#),
( 16#4FE#, 16#4FE#),
( 16#500#, 16#500#),
( 16#502#, 16#502#),
( 16#504#, 16#504#),
( 16#506#, 16#506#),
( 16#508#, 16#508#),
( 16#50A#, 16#50A#),
( 16#50C#, 16#50C#),
( 16#50E#, 16#50E#),
( 16#510#, 16#510#),
( 16#512#, 16#512#),
( 16#531#, 16#556#),
( 16#10A0#, 16#10C5#),
( 16#1E00#, 16#1E00#),
( 16#1E02#, 16#1E02#),
( 16#1E04#, 16#1E04#),
( 16#1E06#, 16#1E06#),
( 16#1E08#, 16#1E08#),
( 16#1E0A#, 16#1E0A#),
( 16#1E0C#, 16#1E0C#),
( 16#1E0E#, 16#1E0E#),
( 16#1E10#, 16#1E10#),
( 16#1E12#, 16#1E12#),
( 16#1E14#, 16#1E14#),
( 16#1E16#, 16#1E16#),
( 16#1E18#, 16#1E18#),
( 16#1E1A#, 16#1E1A#),
( 16#1E1C#, 16#1E1C#),
( 16#1E1E#, 16#1E1E#),
( 16#1E20#, 16#1E20#),
( 16#1E22#, 16#1E22#),
( 16#1E24#, 16#1E24#),
( 16#1E26#, 16#1E26#),
( 16#1E28#, 16#1E28#),
( 16#1E2A#, 16#1E2A#),
( 16#1E2C#, 16#1E2C#),
( 16#1E2E#, 16#1E2E#),
( 16#1E30#, 16#1E30#),
( 16#1E32#, 16#1E32#),
( 16#1E34#, 16#1E34#),
( 16#1E36#, 16#1E36#),
( 16#1E38#, 16#1E38#),
( 16#1E3A#, 16#1E3A#),
( 16#1E3C#, 16#1E3C#),
( 16#1E3E#, 16#1E3E#),
( 16#1E40#, 16#1E40#),
( 16#1E42#, 16#1E42#),
( 16#1E44#, 16#1E44#),
( 16#1E46#, 16#1E46#),
( 16#1E48#, 16#1E48#),
( 16#1E4A#, 16#1E4A#),
( 16#1E4C#, 16#1E4C#),
( 16#1E4E#, 16#1E4E#),
( 16#1E50#, 16#1E50#),
( 16#1E52#, 16#1E52#),
( 16#1E54#, 16#1E54#),
( 16#1E56#, 16#1E56#),
( 16#1E58#, 16#1E58#),
( 16#1E5A#, 16#1E5A#),
( 16#1E5C#, 16#1E5C#),
( 16#1E5E#, 16#1E5E#),
( 16#1E60#, 16#1E60#),
( 16#1E62#, 16#1E62#),
( 16#1E64#, 16#1E64#),
( 16#1E66#, 16#1E66#),
( 16#1E68#, 16#1E68#),
( 16#1E6A#, 16#1E6A#),
( 16#1E6C#, 16#1E6C#),
( 16#1E6E#, 16#1E6E#),
( 16#1E70#, 16#1E70#),
( 16#1E72#, 16#1E72#),
( 16#1E74#, 16#1E74#),
( 16#1E76#, 16#1E76#),
( 16#1E78#, 16#1E78#),
( 16#1E7A#, 16#1E7A#),
( 16#1E7C#, 16#1E7C#),
( 16#1E7E#, 16#1E7E#),
( 16#1E80#, 16#1E80#),
( 16#1E82#, 16#1E82#),
( 16#1E84#, 16#1E84#),
( 16#1E86#, 16#1E86#),
( 16#1E88#, 16#1E88#),
( 16#1E8A#, 16#1E8A#),
( 16#1E8C#, 16#1E8C#),
( 16#1E8E#, 16#1E8E#),
( 16#1E90#, 16#1E90#),
( 16#1E92#, 16#1E92#),
( 16#1E94#, 16#1E94#),
( 16#1EA0#, 16#1EA0#),
( 16#1EA2#, 16#1EA2#),
( 16#1EA4#, 16#1EA4#),
( 16#1EA6#, 16#1EA6#),
( 16#1EA8#, 16#1EA8#),
( 16#1EAA#, 16#1EAA#),
( 16#1EAC#, 16#1EAC#),
( 16#1EAE#, 16#1EAE#),
( 16#1EB0#, 16#1EB0#),
( 16#1EB2#, 16#1EB2#),
( 16#1EB4#, 16#1EB4#),
( 16#1EB6#, 16#1EB6#),
( 16#1EB8#, 16#1EB8#),
( 16#1EBA#, 16#1EBA#),
( 16#1EBC#, 16#1EBC#),
( 16#1EBE#, 16#1EBE#),
( 16#1EC0#, 16#1EC0#),
( 16#1EC2#, 16#1EC2#),
( 16#1EC4#, 16#1EC4#),
( 16#1EC6#, 16#1EC6#),
( 16#1EC8#, 16#1EC8#),
( 16#1ECA#, 16#1ECA#),
( 16#1ECC#, 16#1ECC#),
( 16#1ECE#, 16#1ECE#),
( 16#1ED0#, 16#1ED0#),
( 16#1ED2#, 16#1ED2#),
( 16#1ED4#, 16#1ED4#),
( 16#1ED6#, 16#1ED6#),
( 16#1ED8#, 16#1ED8#),
( 16#1EDA#, 16#1EDA#),
( 16#1EDC#, 16#1EDC#),
( 16#1EDE#, 16#1EDE#),
( 16#1EE0#, 16#1EE0#),
( 16#1EE2#, 16#1EE2#),
( 16#1EE4#, 16#1EE4#),
( 16#1EE6#, 16#1EE6#),
( 16#1EE8#, 16#1EE8#),
( 16#1EEA#, 16#1EEA#),
( 16#1EEC#, 16#1EEC#),
( 16#1EEE#, 16#1EEE#),
( 16#1EF0#, 16#1EF0#),
( 16#1EF2#, 16#1EF2#),
( 16#1EF4#, 16#1EF4#),
( 16#1EF6#, 16#1EF6#),
( 16#1EF8#, 16#1EF8#),
( 16#1F08#, 16#1F0F#),
( 16#1F18#, 16#1F1D#),
( 16#1F28#, 16#1F2F#),
( 16#1F38#, 16#1F3F#),
( 16#1F48#, 16#1F4D#),
( 16#1F59#, 16#1F59#),
( 16#1F5B#, 16#1F5B#),
( 16#1F5D#, 16#1F5D#),
( 16#1F5F#, 16#1F5F#),
( 16#1F68#, 16#1F6F#),
( 16#1FB8#, 16#1FBB#),
( 16#1FC8#, 16#1FCB#),
( 16#1FD8#, 16#1FDB#),
( 16#1FE8#, 16#1FEC#),
( 16#1FF8#, 16#1FFB#),
( 16#2102#, 16#2102#),
( 16#2107#, 16#2107#),
( 16#210B#, 16#210D#),
( 16#2110#, 16#2112#),
( 16#2115#, 16#2115#),
( 16#2119#, 16#211D#),
( 16#2124#, 16#2124#),
( 16#2126#, 16#2126#),
( 16#2128#, 16#2128#),
( 16#212A#, 16#212D#),
( 16#2130#, 16#2133#),
( 16#213E#, 16#213F#),
( 16#2145#, 16#2145#),
( 16#2183#, 16#2183#),
( 16#2C00#, 16#2C2E#),
( 16#2C60#, 16#2C60#),
( 16#2C62#, 16#2C64#),
( 16#2C67#, 16#2C67#),
( 16#2C69#, 16#2C69#),
( 16#2C6B#, 16#2C6B#),
( 16#2C75#, 16#2C75#),
( 16#2C80#, 16#2C80#),
( 16#2C82#, 16#2C82#),
( 16#2C84#, 16#2C84#),
( 16#2C86#, 16#2C86#),
( 16#2C88#, 16#2C88#),
( 16#2C8A#, 16#2C8A#),
( 16#2C8C#, 16#2C8C#),
( 16#2C8E#, 16#2C8E#),
( 16#2C90#, 16#2C90#),
( 16#2C92#, 16#2C92#),
( 16#2C94#, 16#2C94#),
( 16#2C96#, 16#2C96#),
( 16#2C98#, 16#2C98#),
( 16#2C9A#, 16#2C9A#),
( 16#2C9C#, 16#2C9C#),
( 16#2C9E#, 16#2C9E#),
( 16#2CA0#, 16#2CA0#),
( 16#2CA2#, 16#2CA2#),
( 16#2CA4#, 16#2CA4#),
( 16#2CA6#, 16#2CA6#),
( 16#2CA8#, 16#2CA8#),
( 16#2CAA#, 16#2CAA#),
( 16#2CAC#, 16#2CAC#),
( 16#2CAE#, 16#2CAE#),
( 16#2CB0#, 16#2CB0#),
( 16#2CB2#, 16#2CB2#),
( 16#2CB4#, 16#2CB4#),
( 16#2CB6#, 16#2CB6#),
( 16#2CB8#, 16#2CB8#),
( 16#2CBA#, 16#2CBA#),
( 16#2CBC#, 16#2CBC#),
( 16#2CBE#, 16#2CBE#),
( 16#2CC0#, 16#2CC0#),
( 16#2CC2#, 16#2CC2#),
( 16#2CC4#, 16#2CC4#),
( 16#2CC6#, 16#2CC6#),
( 16#2CC8#, 16#2CC8#),
( 16#2CCA#, 16#2CCA#),
( 16#2CCC#, 16#2CCC#),
( 16#2CCE#, 16#2CCE#),
( 16#2CD0#, 16#2CD0#),
( 16#2CD2#, 16#2CD2#),
( 16#2CD4#, 16#2CD4#),
( 16#2CD6#, 16#2CD6#),
( 16#2CD8#, 16#2CD8#),
( 16#2CDA#, 16#2CDA#),
( 16#2CDC#, 16#2CDC#),
( 16#2CDE#, 16#2CDE#),
( 16#2CE0#, 16#2CE0#),
( 16#2CE2#, 16#2CE2#),
( 16#FF21#, 16#FF3A#),
( 16#10400#, 16#10427#),
( 16#1D400#, 16#1D419#),
( 16#1D434#, 16#1D44D#),
( 16#1D468#, 16#1D481#),
( 16#1D49C#, 16#1D49C#),
( 16#1D49E#, 16#1D49F#),
( 16#1D4A2#, 16#1D4A2#),
( 16#1D4A5#, 16#1D4A6#),
( 16#1D4A9#, 16#1D4AC#),
( 16#1D4AE#, 16#1D4B5#),
( 16#1D4D0#, 16#1D4E9#),
( 16#1D504#, 16#1D505#),
( 16#1D507#, 16#1D50A#),
( 16#1D50D#, 16#1D514#),
( 16#1D516#, 16#1D51C#),
( 16#1D538#, 16#1D539#),
( 16#1D53B#, 16#1D53E#),
( 16#1D540#, 16#1D544#),
( 16#1D546#, 16#1D546#),
( 16#1D54A#, 16#1D550#),
( 16#1D56C#, 16#1D585#),
( 16#1D5A0#, 16#1D5B9#),
( 16#1D5D4#, 16#1D5ED#),
( 16#1D608#, 16#1D621#),
( 16#1D63C#, 16#1D655#),
( 16#1D670#, 16#1D689#),
( 16#1D6A8#, 16#1D6C0#),
( 16#1D6E2#, 16#1D6FA#),
( 16#1D71C#, 16#1D734#),
( 16#1D756#, 16#1D76E#),
( 16#1D790#, 16#1D7A8#),
( 16#1D7CA#, 16#1D7CA#)));
Mc_Node : aliased Set_Node :=
(68, 2, (
( 16#903#, 16#903#),
( 16#93E#, 16#940#),
( 16#949#, 16#94C#),
( 16#982#, 16#983#),
( 16#9BE#, 16#9C0#),
( 16#9C7#, 16#9C8#),
( 16#9CB#, 16#9CC#),
( 16#9D7#, 16#9D7#),
( 16#A03#, 16#A03#),
( 16#A3E#, 16#A40#),
( 16#A83#, 16#A83#),
( 16#ABE#, 16#AC0#),
( 16#AC9#, 16#AC9#),
( 16#ACB#, 16#ACC#),
( 16#B02#, 16#B03#),
( 16#B3E#, 16#B3E#),
( 16#B40#, 16#B40#),
( 16#B47#, 16#B48#),
( 16#B4B#, 16#B4C#),
( 16#B57#, 16#B57#),
( 16#BBE#, 16#BBF#),
( 16#BC1#, 16#BC2#),
( 16#BC6#, 16#BC8#),
( 16#BCA#, 16#BCC#),
( 16#BD7#, 16#BD7#),
( 16#C01#, 16#C03#),
( 16#C41#, 16#C44#),
( 16#C82#, 16#C83#),
( 16#CBE#, 16#CBE#),
( 16#CC0#, 16#CC4#),
( 16#CC7#, 16#CC8#),
( 16#CCA#, 16#CCB#),
( 16#CD5#, 16#CD6#),
( 16#D02#, 16#D03#),
( 16#D3E#, 16#D40#),
( 16#D46#, 16#D48#),
( 16#D4A#, 16#D4C#),
( 16#D57#, 16#D57#),
( 16#D82#, 16#D83#),
( 16#DCF#, 16#DD1#),
( 16#DD8#, 16#DDF#),
( 16#DF2#, 16#DF3#),
( 16#F3E#, 16#F3F#),
( 16#F7F#, 16#F7F#),
( 16#102C#, 16#102C#),
( 16#1031#, 16#1031#),
( 16#1038#, 16#1038#),
( 16#1056#, 16#1057#),
( 16#17B6#, 16#17B6#),
( 16#17BE#, 16#17C5#),
( 16#17C7#, 16#17C8#),
( 16#1923#, 16#1926#),
( 16#1929#, 16#192B#),
( 16#1930#, 16#1931#),
( 16#1933#, 16#1938#),
( 16#19B0#, 16#19C0#),
( 16#19C8#, 16#19C9#),
( 16#1A19#, 16#1A1B#),
( 16#1B04#, 16#1B04#),
( 16#1B35#, 16#1B35#),
( 16#1B3B#, 16#1B3B#),
( 16#1B3D#, 16#1B41#),
( 16#1B43#, 16#1B44#),
( 16#A802#, 16#A802#),
( 16#A823#, 16#A824#),
( 16#A827#, 16#A827#),
( 16#1D165#, 16#1D166#),
( 16#1D16D#, 16#1D172#)));
Me_Node : aliased Set_Node :=
(4, 2, (
( 16#488#, 16#489#),
( 16#6DE#, 16#6DE#),
( 16#20DD#, 16#20E0#),
( 16#20E2#, 16#20E4#)));
Mn_Node : aliased Set_Node :=
(132, 2, (
( 16#300#, 16#36F#),
( 16#483#, 16#486#),
( 16#591#, 16#5BD#),
( 16#5BF#, 16#5BF#),
( 16#5C1#, 16#5C2#),
( 16#5C4#, 16#5C5#),
( 16#5C7#, 16#5C7#),
( 16#610#, 16#615#),
( 16#64B#, 16#65E#),
( 16#670#, 16#670#),
( 16#6D6#, 16#6DC#),
( 16#6DF#, 16#6E4#),
( 16#6E7#, 16#6E8#),
( 16#6EA#, 16#6ED#),
( 16#711#, 16#711#),
( 16#730#, 16#74A#),
( 16#7A6#, 16#7B0#),
( 16#7EB#, 16#7F3#),
( 16#901#, 16#902#),
( 16#93C#, 16#93C#),
( 16#941#, 16#948#),
( 16#94D#, 16#94D#),
( 16#951#, 16#954#),
( 16#962#, 16#963#),
( 16#981#, 16#981#),
( 16#9BC#, 16#9BC#),
( 16#9C1#, 16#9C4#),
( 16#9CD#, 16#9CD#),
( 16#9E2#, 16#9E3#),
( 16#A01#, 16#A02#),
( 16#A3C#, 16#A3C#),
( 16#A41#, 16#A42#),
( 16#A47#, 16#A48#),
( 16#A4B#, 16#A4D#),
( 16#A70#, 16#A71#),
( 16#A81#, 16#A82#),
( 16#ABC#, 16#ABC#),
( 16#AC1#, 16#AC5#),
( 16#AC7#, 16#AC8#),
( 16#ACD#, 16#ACD#),
( 16#AE2#, 16#AE3#),
( 16#B01#, 16#B01#),
( 16#B3C#, 16#B3C#),
( 16#B3F#, 16#B3F#),
( 16#B41#, 16#B43#),
( 16#B4D#, 16#B4D#),
( 16#B56#, 16#B56#),
( 16#B82#, 16#B82#),
( 16#BC0#, 16#BC0#),
( 16#BCD#, 16#BCD#),
( 16#C3E#, 16#C40#),
( 16#C46#, 16#C48#),
( 16#C4A#, 16#C4D#),
( 16#C55#, 16#C56#),
( 16#CBC#, 16#CBC#),
( 16#CBF#, 16#CBF#),
( 16#CC6#, 16#CC6#),
( 16#CCC#, 16#CCD#),
( 16#CE2#, 16#CE3#),
( 16#D41#, 16#D43#),
( 16#D4D#, 16#D4D#),
( 16#DCA#, 16#DCA#),
( 16#DD2#, 16#DD4#),
( 16#DD6#, 16#DD6#),
( 16#E31#, 16#E31#),
( 16#E34#, 16#E3A#),
( 16#E47#, 16#E4E#),
( 16#EB1#, 16#EB1#),
( 16#EB4#, 16#EB9#),
( 16#EBB#, 16#EBC#),
( 16#EC8#, 16#ECD#),
( 16#F18#, 16#F19#),
( 16#F35#, 16#F35#),
( 16#F37#, 16#F37#),
( 16#F39#, 16#F39#),
( 16#F71#, 16#F7E#),
( 16#F80#, 16#F84#),
( 16#F86#, 16#F87#),
( 16#F90#, 16#F97#),
( 16#F99#, 16#FBC#),
( 16#FC6#, 16#FC6#),
( 16#102D#, 16#1030#),
( 16#1032#, 16#1032#),
( 16#1036#, 16#1037#),
( 16#1039#, 16#1039#),
( 16#1058#, 16#1059#),
( 16#135F#, 16#135F#),
( 16#1712#, 16#1714#),
( 16#1732#, 16#1734#),
( 16#1752#, 16#1753#),
( 16#1772#, 16#1773#),
( 16#17B7#, 16#17BD#),
( 16#17C6#, 16#17C6#),
( 16#17C9#, 16#17D3#),
( 16#17DD#, 16#17DD#),
( 16#180B#, 16#180D#),
( 16#18A9#, 16#18A9#),
( 16#1920#, 16#1922#),
( 16#1927#, 16#1928#),
( 16#1932#, 16#1932#),
( 16#1939#, 16#193B#),
( 16#1A17#, 16#1A18#),
( 16#1B00#, 16#1B03#),
( 16#1B34#, 16#1B34#),
( 16#1B36#, 16#1B3A#),
( 16#1B3C#, 16#1B3C#),
( 16#1B42#, 16#1B42#),
( 16#1B6B#, 16#1B73#),
( 16#1DC0#, 16#1DCA#),
( 16#1DFE#, 16#1DFF#),
( 16#20D0#, 16#20DC#),
( 16#20E1#, 16#20E1#),
( 16#20E5#, 16#20EF#),
( 16#302A#, 16#302F#),
( 16#3099#, 16#309A#),
( 16#A806#, 16#A806#),
( 16#A80B#, 16#A80B#),
( 16#A825#, 16#A826#),
( 16#FB1E#, 16#FB1E#),
( 16#FE00#, 16#FE0F#),
( 16#FE20#, 16#FE23#),
( 16#10A01#, 16#10A03#),
( 16#10A05#, 16#10A06#),
( 16#10A0C#, 16#10A0F#),
( 16#10A38#, 16#10A3A#),
( 16#10A3F#, 16#10A3F#),
( 16#1D167#, 16#1D169#),
( 16#1D17B#, 16#1D182#),
( 16#1D185#, 16#1D18B#),
( 16#1D1AA#, 16#1D1AD#),
( 16#1D242#, 16#1D244#),
( 16#E0100#, 16#E01EF#)));
Nd_Node : aliased Set_Node :=
(25, 2, (
( 16#30#, 16#39#),
( 16#660#, 16#669#),
( 16#6F0#, 16#6F9#),
( 16#7C0#, 16#7C9#),
( 16#966#, 16#96F#),
( 16#9E6#, 16#9EF#),
( 16#A66#, 16#A6F#),
( 16#AE6#, 16#AEF#),
( 16#B66#, 16#B6F#),
( 16#BE6#, 16#BEF#),
( 16#C66#, 16#C6F#),
( 16#CE6#, 16#CEF#),
( 16#D66#, 16#D6F#),
( 16#E50#, 16#E59#),
( 16#ED0#, 16#ED9#),
( 16#F20#, 16#F29#),
( 16#1040#, 16#1049#),
( 16#17E0#, 16#17E9#),
( 16#1810#, 16#1819#),
( 16#1946#, 16#194F#),
( 16#19D0#, 16#19D9#),
( 16#1B50#, 16#1B59#),
( 16#FF10#, 16#FF19#),
( 16#104A0#, 16#104A9#),
( 16#1D7CE#, 16#1D7FF#)));
Nl_Node : aliased Set_Node :=
(10, 2, (
( 16#16EE#, 16#16F0#),
( 16#2160#, 16#2182#),
( 16#3007#, 16#3007#),
( 16#3021#, 16#3029#),
( 16#3038#, 16#303A#),
( 16#10140#, 16#10174#),
( 16#10341#, 16#10341#),
( 16#1034A#, 16#1034A#),
( 16#103D1#, 16#103D5#),
( 16#12400#, 16#12462#)));
No_Node : aliased Set_Node :=
(28, 2, (
( 16#B2#, 16#B3#),
( 16#B9#, 16#B9#),
( 16#BC#, 16#BE#),
( 16#9F4#, 16#9F9#),
( 16#BF0#, 16#BF2#),
( 16#F2A#, 16#F33#),
( 16#1369#, 16#137C#),
( 16#17F0#, 16#17F9#),
( 16#2070#, 16#2070#),
( 16#2074#, 16#2079#),
( 16#2080#, 16#2089#),
( 16#2153#, 16#215F#),
( 16#2460#, 16#249B#),
( 16#24EA#, 16#24FF#),
( 16#2776#, 16#2793#),
( 16#2CFD#, 16#2CFD#),
( 16#3192#, 16#3195#),
( 16#3220#, 16#3229#),
( 16#3251#, 16#325F#),
( 16#3280#, 16#3289#),
( 16#32B1#, 16#32BF#),
( 16#10107#, 16#10133#),
( 16#10175#, 16#10178#),
( 16#1018A#, 16#1018A#),
( 16#10320#, 16#10323#),
( 16#10916#, 16#10919#),
( 16#10A40#, 16#10A47#),
( 16#1D360#, 16#1D371#)));
Pc_Node : aliased Set_Node :=
(6, 2, (
( 16#5F#, 16#5F#),
( 16#203F#, 16#2040#),
( 16#2054#, 16#2054#),
( 16#FE33#, 16#FE34#),
( 16#FE4D#, 16#FE4F#),
( 16#FF3F#, 16#FF3F#)));
Pd_Node : aliased Set_Node :=
(12, 2, (
( 16#2D#, 16#2D#),
( 16#58A#, 16#58A#),
( 16#1806#, 16#1806#),
( 16#2010#, 16#2015#),
( 16#2E17#, 16#2E17#),
( 16#301C#, 16#301C#),
( 16#3030#, 16#3030#),
( 16#30A0#, 16#30A0#),
( 16#FE31#, 16#FE32#),
( 16#FE58#, 16#FE58#),
( 16#FE63#, 16#FE63#),
( 16#FF0D#, 16#FF0D#)));
Pe_Node : aliased Set_Node :=
(64, 2, (
( 16#29#, 16#29#),
( 16#5D#, 16#5D#),
( 16#7D#, 16#7D#),
( 16#F3B#, 16#F3B#),
( 16#F3D#, 16#F3D#),
( 16#169C#, 16#169C#),
( 16#2046#, 16#2046#),
( 16#207E#, 16#207E#),
( 16#208E#, 16#208E#),
( 16#232A#, 16#232A#),
( 16#2769#, 16#2769#),
( 16#276B#, 16#276B#),
( 16#276D#, 16#276D#),
( 16#276F#, 16#276F#),
( 16#2771#, 16#2771#),
( 16#2773#, 16#2773#),
( 16#2775#, 16#2775#),
( 16#27C6#, 16#27C6#),
( 16#27E7#, 16#27E7#),
( 16#27E9#, 16#27E9#),
( 16#27EB#, 16#27EB#),
( 16#2984#, 16#2984#),
( 16#2986#, 16#2986#),
( 16#2988#, 16#2988#),
( 16#298A#, 16#298A#),
( 16#298C#, 16#298C#),
( 16#298E#, 16#298E#),
( 16#2990#, 16#2990#),
( 16#2992#, 16#2992#),
( 16#2994#, 16#2994#),
( 16#2996#, 16#2996#),
( 16#2998#, 16#2998#),
( 16#29D9#, 16#29D9#),
( 16#29DB#, 16#29DB#),
( 16#29FD#, 16#29FD#),
( 16#3009#, 16#3009#),
( 16#300B#, 16#300B#),
( 16#300D#, 16#300D#),
( 16#300F#, 16#300F#),
( 16#3011#, 16#3011#),
( 16#3015#, 16#3015#),
( 16#3017#, 16#3017#),
( 16#3019#, 16#3019#),
( 16#301B#, 16#301B#),
( 16#301E#, 16#301F#),
( 16#FD3F#, 16#FD3F#),
( 16#FE18#, 16#FE18#),
( 16#FE36#, 16#FE36#),
( 16#FE38#, 16#FE38#),
( 16#FE3A#, 16#FE3A#),
( 16#FE3C#, 16#FE3C#),
( 16#FE3E#, 16#FE3E#),
( 16#FE40#, 16#FE40#),
( 16#FE42#, 16#FE42#),
( 16#FE44#, 16#FE44#),
( 16#FE48#, 16#FE48#),
( 16#FE5A#, 16#FE5A#),
( 16#FE5C#, 16#FE5C#),
( 16#FE5E#, 16#FE5E#),
( 16#FF09#, 16#FF09#),
( 16#FF3D#, 16#FF3D#),
( 16#FF5D#, 16#FF5D#),
( 16#FF60#, 16#FF60#),
( 16#FF63#, 16#FF63#)));
Pf_Node : aliased Set_Node :=
(9, 2, (
( 16#BB#, 16#BB#),
( 16#2019#, 16#2019#),
( 16#201D#, 16#201D#),
( 16#203A#, 16#203A#),
( 16#2E03#, 16#2E03#),
( 16#2E05#, 16#2E05#),
( 16#2E0A#, 16#2E0A#),
( 16#2E0D#, 16#2E0D#),
( 16#2E1D#, 16#2E1D#)));
Pi_Node : aliased Set_Node :=
(10, 2, (
( 16#AB#, 16#AB#),
( 16#2018#, 16#2018#),
( 16#201B#, 16#201C#),
( 16#201F#, 16#201F#),
( 16#2039#, 16#2039#),
( 16#2E02#, 16#2E02#),
( 16#2E04#, 16#2E04#),
( 16#2E09#, 16#2E09#),
( 16#2E0C#, 16#2E0C#),
( 16#2E1C#, 16#2E1C#)));
Po_Node : aliased Set_Node :=
(93, 2, (
( 16#21#, 16#23#),
( 16#25#, 16#27#),
( 16#2A#, 16#2A#),
( 16#2C#, 16#2C#),
( 16#2E#, 16#2F#),
( 16#3A#, 16#3B#),
( 16#3F#, 16#40#),
( 16#5C#, 16#5C#),
( 16#A1#, 16#A1#),
( 16#B7#, 16#B7#),
( 16#BF#, 16#BF#),
( 16#37E#, 16#37E#),
( 16#387#, 16#387#),
( 16#55A#, 16#55F#),
( 16#589#, 16#589#),
( 16#5BE#, 16#5BE#),
( 16#5C0#, 16#5C0#),
( 16#5C3#, 16#5C3#),
( 16#5C6#, 16#5C6#),
( 16#5F3#, 16#5F4#),
( 16#60C#, 16#60D#),
( 16#61B#, 16#61B#),
( 16#61E#, 16#61F#),
( 16#66A#, 16#66D#),
( 16#6D4#, 16#6D4#),
( 16#700#, 16#70D#),
( 16#7F7#, 16#7F9#),
( 16#964#, 16#965#),
( 16#970#, 16#970#),
( 16#DF4#, 16#DF4#),
( 16#E4F#, 16#E4F#),
( 16#E5A#, 16#E5B#),
( 16#F04#, 16#F12#),
( 16#F85#, 16#F85#),
( 16#FD0#, 16#FD1#),
( 16#104A#, 16#104F#),
( 16#10FB#, 16#10FB#),
( 16#1361#, 16#1368#),
( 16#166D#, 16#166E#),
( 16#16EB#, 16#16ED#),
( 16#1735#, 16#1736#),
( 16#17D4#, 16#17D6#),
( 16#17D8#, 16#17DA#),
( 16#1800#, 16#1805#),
( 16#1807#, 16#180A#),
( 16#1944#, 16#1945#),
( 16#19DE#, 16#19DF#),
( 16#1A1E#, 16#1A1F#),
( 16#1B5A#, 16#1B60#),
( 16#2016#, 16#2017#),
( 16#2020#, 16#2027#),
( 16#2030#, 16#2038#),
( 16#203B#, 16#203E#),
( 16#2041#, 16#2043#),
( 16#2047#, 16#2051#),
( 16#2053#, 16#2053#),
( 16#2055#, 16#205E#),
( 16#2CF9#, 16#2CFC#),
( 16#2CFE#, 16#2CFF#),
( 16#2E00#, 16#2E01#),
( 16#2E06#, 16#2E08#),
( 16#2E0B#, 16#2E0B#),
( 16#2E0E#, 16#2E16#),
( 16#3001#, 16#3003#),
( 16#303D#, 16#303D#),
( 16#30FB#, 16#30FB#),
( 16#A874#, 16#A877#),
( 16#FE10#, 16#FE16#),
( 16#FE19#, 16#FE19#),
( 16#FE30#, 16#FE30#),
( 16#FE45#, 16#FE46#),
( 16#FE49#, 16#FE4C#),
( 16#FE50#, 16#FE52#),
( 16#FE54#, 16#FE57#),
( 16#FE5F#, 16#FE61#),
( 16#FE68#, 16#FE68#),
( 16#FE6A#, 16#FE6B#),
( 16#FF01#, 16#FF03#),
( 16#FF05#, 16#FF07#),
( 16#FF0A#, 16#FF0A#),
( 16#FF0C#, 16#FF0C#),
( 16#FF0E#, 16#FF0F#),
( 16#FF1A#, 16#FF1B#),
( 16#FF1F#, 16#FF20#),
( 16#FF3C#, 16#FF3C#),
( 16#FF61#, 16#FF61#),
( 16#FF64#, 16#FF65#),
( 16#10100#, 16#10101#),
( 16#1039F#, 16#1039F#),
( 16#103D0#, 16#103D0#),
( 16#1091F#, 16#1091F#),
( 16#10A50#, 16#10A58#),
( 16#12470#, 16#12473#)));
Ps_Node : aliased Set_Node :=
(66, 2, (
( 16#28#, 16#28#),
( 16#5B#, 16#5B#),
( 16#7B#, 16#7B#),
( 16#F3A#, 16#F3A#),
( 16#F3C#, 16#F3C#),
( 16#169B#, 16#169B#),
( 16#201A#, 16#201A#),
( 16#201E#, 16#201E#),
( 16#2045#, 16#2045#),
( 16#207D#, 16#207D#),
( 16#208D#, 16#208D#),
( 16#2329#, 16#2329#),
( 16#2768#, 16#2768#),
( 16#276A#, 16#276A#),
( 16#276C#, 16#276C#),
( 16#276E#, 16#276E#),
( 16#2770#, 16#2770#),
( 16#2772#, 16#2772#),
( 16#2774#, 16#2774#),
( 16#27C5#, 16#27C5#),
( 16#27E6#, 16#27E6#),
( 16#27E8#, 16#27E8#),
( 16#27EA#, 16#27EA#),
( 16#2983#, 16#2983#),
( 16#2985#, 16#2985#),
( 16#2987#, 16#2987#),
( 16#2989#, 16#2989#),
( 16#298B#, 16#298B#),
( 16#298D#, 16#298D#),
( 16#298F#, 16#298F#),
( 16#2991#, 16#2991#),
( 16#2993#, 16#2993#),
( 16#2995#, 16#2995#),
( 16#2997#, 16#2997#),
( 16#29D8#, 16#29D8#),
( 16#29DA#, 16#29DA#),
( 16#29FC#, 16#29FC#),
( 16#3008#, 16#3008#),
( 16#300A#, 16#300A#),
( 16#300C#, 16#300C#),
( 16#300E#, 16#300E#),
( 16#3010#, 16#3010#),
( 16#3014#, 16#3014#),
( 16#3016#, 16#3016#),
( 16#3018#, 16#3018#),
( 16#301A#, 16#301A#),
( 16#301D#, 16#301D#),
( 16#FD3E#, 16#FD3E#),
( 16#FE17#, 16#FE17#),
( 16#FE35#, 16#FE35#),
( 16#FE37#, 16#FE37#),
( 16#FE39#, 16#FE39#),
( 16#FE3B#, 16#FE3B#),
( 16#FE3D#, 16#FE3D#),
( 16#FE3F#, 16#FE3F#),
( 16#FE41#, 16#FE41#),
( 16#FE43#, 16#FE43#),
( 16#FE47#, 16#FE47#),
( 16#FE59#, 16#FE59#),
( 16#FE5B#, 16#FE5B#),
( 16#FE5D#, 16#FE5D#),
( 16#FF08#, 16#FF08#),
( 16#FF3B#, 16#FF3B#),
( 16#FF5B#, 16#FF5B#),
( 16#FF5F#, 16#FF5F#),
( 16#FF62#, 16#FF62#)));
Sc_Node : aliased Set_Node :=
(14, 2, (
( 16#24#, 16#24#),
( 16#A2#, 16#A5#),
( 16#60B#, 16#60B#),
( 16#9F2#, 16#9F3#),
( 16#AF1#, 16#AF1#),
( 16#BF9#, 16#BF9#),
( 16#E3F#, 16#E3F#),
( 16#17DB#, 16#17DB#),
( 16#20A0#, 16#20B5#),
( 16#FDFC#, 16#FDFC#),
( 16#FE69#, 16#FE69#),
( 16#FF04#, 16#FF04#),
( 16#FFE0#, 16#FFE1#),
( 16#FFE5#, 16#FFE6#)));
Sk_Node : aliased Set_Node :=
(24, 2, (
( 16#5E#, 16#5E#),
( 16#60#, 16#60#),
( 16#A8#, 16#A8#),
( 16#AF#, 16#AF#),
( 16#B4#, 16#B4#),
( 16#B8#, 16#B8#),
( 16#2C2#, 16#2C5#),
( 16#2D2#, 16#2DF#),
( 16#2E5#, 16#2ED#),
( 16#2EF#, 16#2FF#),
( 16#374#, 16#375#),
( 16#384#, 16#385#),
( 16#1FBD#, 16#1FBD#),
( 16#1FBF#, 16#1FC1#),
( 16#1FCD#, 16#1FCF#),
( 16#1FDD#, 16#1FDF#),
( 16#1FED#, 16#1FEF#),
( 16#1FFD#, 16#1FFE#),
( 16#309B#, 16#309C#),
( 16#A700#, 16#A716#),
( 16#A720#, 16#A721#),
( 16#FF3E#, 16#FF3E#),
( 16#FF40#, 16#FF40#),
( 16#FFE3#, 16#FFE3#)));
Sm_Node : aliased Set_Node :=
(61, 2, (
( 16#2B#, 16#2B#),
( 16#3C#, 16#3E#),
( 16#7C#, 16#7C#),
( 16#7E#, 16#7E#),
( 16#AC#, 16#AC#),
( 16#B1#, 16#B1#),
( 16#D7#, 16#D7#),
( 16#F7#, 16#F7#),
( 16#3F6#, 16#3F6#),
( 16#2044#, 16#2044#),
( 16#2052#, 16#2052#),
( 16#207A#, 16#207C#),
( 16#208A#, 16#208C#),
( 16#2140#, 16#2144#),
( 16#214B#, 16#214B#),
( 16#2190#, 16#2194#),
( 16#219A#, 16#219B#),
( 16#21A0#, 16#21A0#),
( 16#21A3#, 16#21A3#),
( 16#21A6#, 16#21A6#),
( 16#21AE#, 16#21AE#),
( 16#21CE#, 16#21CF#),
( 16#21D2#, 16#21D2#),
( 16#21D4#, 16#21D4#),
( 16#21F4#, 16#22FF#),
( 16#2308#, 16#230B#),
( 16#2320#, 16#2321#),
( 16#237C#, 16#237C#),
( 16#239B#, 16#23B3#),
( 16#23DC#, 16#23E1#),
( 16#25B7#, 16#25B7#),
( 16#25C1#, 16#25C1#),
( 16#25F8#, 16#25FF#),
( 16#266F#, 16#266F#),
( 16#27C0#, 16#27C4#),
( 16#27C7#, 16#27CA#),
( 16#27D0#, 16#27E5#),
( 16#27F0#, 16#27FF#),
( 16#2900#, 16#2982#),
( 16#2999#, 16#29D7#),
( 16#29DC#, 16#29FB#),
( 16#29FE#, 16#2AFF#),
( 16#FB29#, 16#FB29#),
( 16#FE62#, 16#FE62#),
( 16#FE64#, 16#FE66#),
( 16#FF0B#, 16#FF0B#),
( 16#FF1C#, 16#FF1E#),
( 16#FF5C#, 16#FF5C#),
( 16#FF5E#, 16#FF5E#),
( 16#FFE2#, 16#FFE2#),
( 16#FFE9#, 16#FFEC#),
( 16#1D6C1#, 16#1D6C1#),
( 16#1D6DB#, 16#1D6DB#),
( 16#1D6FB#, 16#1D6FB#),
( 16#1D715#, 16#1D715#),
( 16#1D735#, 16#1D735#),
( 16#1D74F#, 16#1D74F#),
( 16#1D76F#, 16#1D76F#),
( 16#1D789#, 16#1D789#),
( 16#1D7A9#, 16#1D7A9#),
( 16#1D7C3#, 16#1D7C3#)));
So_Node : aliased Set_Node :=
(124, 2, (
( 16#A6#, 16#A7#),
( 16#A9#, 16#A9#),
( 16#AE#, 16#AE#),
( 16#B0#, 16#B0#),
( 16#B6#, 16#B6#),
( 16#482#, 16#482#),
( 16#60E#, 16#60F#),
( 16#6E9#, 16#6E9#),
( 16#6FD#, 16#6FE#),
( 16#7F6#, 16#7F6#),
( 16#9FA#, 16#9FA#),
( 16#B70#, 16#B70#),
( 16#BF3#, 16#BF8#),
( 16#BFA#, 16#BFA#),
( 16#CF1#, 16#CF2#),
( 16#F01#, 16#F03#),
( 16#F13#, 16#F17#),
( 16#F1A#, 16#F1F#),
( 16#F34#, 16#F34#),
( 16#F36#, 16#F36#),
( 16#F38#, 16#F38#),
( 16#FBE#, 16#FC5#),
( 16#FC7#, 16#FCC#),
( 16#FCF#, 16#FCF#),
( 16#1360#, 16#1360#),
( 16#1390#, 16#1399#),
( 16#1940#, 16#1940#),
( 16#19E0#, 16#19FF#),
( 16#1B61#, 16#1B6A#),
( 16#1B74#, 16#1B7C#),
( 16#2100#, 16#2101#),
( 16#2103#, 16#2106#),
( 16#2108#, 16#2109#),
( 16#2114#, 16#2114#),
( 16#2116#, 16#2118#),
( 16#211E#, 16#2123#),
( 16#2125#, 16#2125#),
( 16#2127#, 16#2127#),
( 16#2129#, 16#2129#),
( 16#212E#, 16#212E#),
( 16#213A#, 16#213B#),
( 16#214A#, 16#214A#),
( 16#214C#, 16#214D#),
( 16#2195#, 16#2199#),
( 16#219C#, 16#219F#),
( 16#21A1#, 16#21A2#),
( 16#21A4#, 16#21A5#),
( 16#21A7#, 16#21AD#),
( 16#21AF#, 16#21CD#),
( 16#21D0#, 16#21D1#),
( 16#21D3#, 16#21D3#),
( 16#21D5#, 16#21F3#),
( 16#2300#, 16#2307#),
( 16#230C#, 16#231F#),
( 16#2322#, 16#2328#),
( 16#232B#, 16#237B#),
( 16#237D#, 16#239A#),
( 16#23B4#, 16#23DB#),
( 16#23E2#, 16#23E7#),
( 16#2400#, 16#2426#),
( 16#2440#, 16#244A#),
( 16#249C#, 16#24E9#),
( 16#2500#, 16#25B6#),
( 16#25B8#, 16#25C0#),
( 16#25C2#, 16#25F7#),
( 16#2600#, 16#266E#),
( 16#2670#, 16#269C#),
( 16#26A0#, 16#26B2#),
( 16#2701#, 16#2704#),
( 16#2706#, 16#2709#),
( 16#270C#, 16#2727#),
( 16#2729#, 16#274B#),
( 16#274D#, 16#274D#),
( 16#274F#, 16#2752#),
( 16#2756#, 16#2756#),
( 16#2758#, 16#275E#),
( 16#2761#, 16#2767#),
( 16#2794#, 16#2794#),
( 16#2798#, 16#27AF#),
( 16#27B1#, 16#27BE#),
( 16#2800#, 16#28FF#),
( 16#2B00#, 16#2B1A#),
( 16#2B20#, 16#2B23#),
( 16#2CE5#, 16#2CEA#),
( 16#2E80#, 16#2E99#),
( 16#2E9B#, 16#2EF3#),
( 16#2F00#, 16#2FD5#),
( 16#2FF0#, 16#2FFB#),
( 16#3004#, 16#3004#),
( 16#3012#, 16#3013#),
( 16#3020#, 16#3020#),
( 16#3036#, 16#3037#),
( 16#303E#, 16#303F#),
( 16#3190#, 16#3191#),
( 16#3196#, 16#319F#),
( 16#31C0#, 16#31CF#),
( 16#3200#, 16#321E#),
( 16#322A#, 16#3243#),
( 16#3250#, 16#3250#),
( 16#3260#, 16#327F#),
( 16#328A#, 16#32B0#),
( 16#32C0#, 16#32FE#),
( 16#3300#, 16#33FF#),
( 16#4DC0#, 16#4DFF#),
( 16#A490#, 16#A4C6#),
( 16#A828#, 16#A82B#),
( 16#FDFD#, 16#FDFD#),
( 16#FFE4#, 16#FFE4#),
( 16#FFE8#, 16#FFE8#),
( 16#FFED#, 16#FFEE#),
( 16#FFFC#, 16#FFFD#),
( 16#10102#, 16#10102#),
( 16#10137#, 16#1013F#),
( 16#10179#, 16#10189#),
( 16#1D000#, 16#1D0F5#),
( 16#1D100#, 16#1D126#),
( 16#1D12A#, 16#1D164#),
( 16#1D16A#, 16#1D16C#),
( 16#1D183#, 16#1D184#),
( 16#1D18C#, 16#1D1A9#),
( 16#1D1AE#, 16#1D1DD#),
( 16#1D200#, 16#1D241#),
( 16#1D245#, 16#1D245#),
( 16#1D300#, 16#1D356#)));
Zl_Node : aliased Set_Node :=
(1, 2, (
1 => ( 16#2028#, 16#2028#)));
Zp_Node : aliased Set_Node :=
(1, 2, (
1 => ( 16#2029#, 16#2029#)));
Zs_Node : aliased Set_Node :=
(8, 2, (
( 16#20#, 16#20#),
( 16#A0#, 16#A0#),
( 16#1680#, 16#1680#),
( 16#180E#, 16#180E#),
( 16#2000#, 16#200A#),
( 16#202F#, 16#202F#),
( 16#205F#, 16#205F#),
( 16#3000#, 16#3000#)));
Cn_Node : aliased Set_Node :=
(0, 2, (others => (Not_A_Symbol, Not_A_Symbol)));
Values : constant array (General_Category_Alias) of Symbol_Set :=
(Cc => (F.Controlled with Cc_Node'Access),
Cf => (F.Controlled with Cf_Node'Access),
Cn => (F.Controlled with Cn_Node'Access),
Co => (F.Controlled with Co_Node'Access),
Cs => (F.Controlled with Cs_Node'Access),
Ll => (F.Controlled with Ll_Node'Access),
Lm => (F.Controlled with Lm_Node'Access),
Lo => (F.Controlled with Lo_Node'Access),
Lt => (F.Controlled with Lt_Node'Access),
Lu => (F.Controlled with Lu_Node'Access),
Mc => (F.Controlled with Mc_Node'Access),
Me => (F.Controlled with Me_Node'Access),
Mn => (F.Controlled with Mn_Node'Access),
Nd => (F.Controlled with Nd_Node'Access),
Nl => (F.Controlled with Nl_Node'Access),
No => (F.Controlled with No_Node'Access),
Pc => (F.Controlled with Pc_Node'Access),
Pd => (F.Controlled with Pd_Node'Access),
Pe => (F.Controlled with Pe_Node'Access),
Pf => (F.Controlled with Pf_Node'Access),
Pi => (F.Controlled with Pi_Node'Access),
Po => (F.Controlled with Po_Node'Access),
Ps => (F.Controlled with Ps_Node'Access),
Sc => (F.Controlled with Sc_Node'Access),
Sk => (F.Controlled with Sk_Node'Access),
Sm => (F.Controlled with Sm_Node'Access),
So => (F.Controlled with So_Node'Access),
Zl => (F.Controlled with Zl_Node'Access),
Zp => (F.Controlled with Zp_Node'Access),
Zs => (F.Controlled with Zs_Node'Access));
function General_Category (Name : String) return Symbol_Set is
type General_Category is
(Control,
Format,
Unassigned,
Private_Use,
Surrogate,
Lowercase_Letter,
Modifier_Letter,
Other_Letter,
Titlecase_Letter,
Uppercase_Letter,
Spacing_Mark,
Enclosing_Mark,
Nonspacing_Mark,
Decimal_Number,
Letter_Number,
Other_Number,
Connector_Punctuation,
Dash_Punctuation,
Close_Punctuation,
Final_Punctuation,
Initial_Punctuation,
Other_Punctuation,
Open_Punctuation,
Currency_Symbol,
Modifier_Symbol,
Math_Symbol,
Other_Symbol,
Line_Separator,
Paragraph_Separator,
Space_Separator);
Category : General_Category_Alias;
GC : General_Category;
begin
if Name'Length = 2 then
Category := General_Category_Alias'Value (Name);
else
GC := General_Category'Value (Name);
Category := General_Category_Alias'Val (General_Category'Pos (GC));
end if;
return Values (Category);
end General_Category;
end Symbols.Unicode;
------------------------------------------------------------------------------
-- Copyright (c) 2006-2013, PI:NAME:<NAME>END_PI
-- 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 PI:NAME:<NAME>END_PI, 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 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.
------------------------------------------------------------------------------
|
[
{
"context": " --\n-- Copyright © 2013-2014, Vadim Godunko <[email protected]> --\n-- All rig",
"end": 829,
"score": 0.999887228012085,
"start": 816,
"tag": "NAME",
"value": "Vadim Godunko"
},
{
"context": " --\n-- Copyright © 2013-2014, Vadim Godunko <[email protected]> --\n-- All rights reserved. ",
"end": 849,
"score": 0.9999325275421143,
"start": 831,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
source/xml/dom/xml-dom.ads
|
svn2github/matreshka
| 24 |
------------------------------------------------------------------------------
-- --
-- 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$
------------------------------------------------------------------------------
package XML.DOM is
pragma Pure;
type Node_Type is
(Element_Node,
Attribute_Node,
Text_Node,
CDATA_Section_Node,
Entity_Reference_Node,
Entity_Node,
Processing_Instruction_Node,
Comment_Node,
Document_Node,
Document_Type_Node,
Document_Fragment_Node,
Notation_Node);
DOM_Exception : exception;
type Error_Code is
(NO_ERROR,
INDEX_SIZE_ERROR,
DOMSTRING_SIZE_ERROR,
HIERARCHY_REQUEST_ERROR,
WRONG_DOCUMENT_ERROR,
INVALID_CHARACTER_ERROR,
NO_DATA_ALLOWED_ERROR,
NO_MODIFICATION_ALLOWED_ERROR,
NOT_FOUND_ERROR,
NOT_SUPPORTED_ERROR,
INUSE_ATTRIBUTE_ERROR,
INVALID_STATE_ERROR,
SYNTAX_ERROR,
INVALID_MODIFICATION_ERROR,
NAMESPACE_ERROR,
INVALID_ACCESS_ERROR,
VALIDATION_ERROR,
TYPE_MISMATCH_ERROR);
end XML.DOM;
|
4282
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- XML Processor --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2013-2014, <NAME> <<EMAIL>> --
-- 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 XML.DOM is
pragma Pure;
type Node_Type is
(Element_Node,
Attribute_Node,
Text_Node,
CDATA_Section_Node,
Entity_Reference_Node,
Entity_Node,
Processing_Instruction_Node,
Comment_Node,
Document_Node,
Document_Type_Node,
Document_Fragment_Node,
Notation_Node);
DOM_Exception : exception;
type Error_Code is
(NO_ERROR,
INDEX_SIZE_ERROR,
DOMSTRING_SIZE_ERROR,
HIERARCHY_REQUEST_ERROR,
WRONG_DOCUMENT_ERROR,
INVALID_CHARACTER_ERROR,
NO_DATA_ALLOWED_ERROR,
NO_MODIFICATION_ALLOWED_ERROR,
NOT_FOUND_ERROR,
NOT_SUPPORTED_ERROR,
INUSE_ATTRIBUTE_ERROR,
INVALID_STATE_ERROR,
SYNTAX_ERROR,
INVALID_MODIFICATION_ERROR,
NAMESPACE_ERROR,
INVALID_ACCESS_ERROR,
VALIDATION_ERROR,
TYPE_MISMATCH_ERROR);
end XML.DOM;
| true |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- XML Processor --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2013-2014, PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI> --
-- 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 XML.DOM is
pragma Pure;
type Node_Type is
(Element_Node,
Attribute_Node,
Text_Node,
CDATA_Section_Node,
Entity_Reference_Node,
Entity_Node,
Processing_Instruction_Node,
Comment_Node,
Document_Node,
Document_Type_Node,
Document_Fragment_Node,
Notation_Node);
DOM_Exception : exception;
type Error_Code is
(NO_ERROR,
INDEX_SIZE_ERROR,
DOMSTRING_SIZE_ERROR,
HIERARCHY_REQUEST_ERROR,
WRONG_DOCUMENT_ERROR,
INVALID_CHARACTER_ERROR,
NO_DATA_ALLOWED_ERROR,
NO_MODIFICATION_ALLOWED_ERROR,
NOT_FOUND_ERROR,
NOT_SUPPORTED_ERROR,
INUSE_ATTRIBUTE_ERROR,
INVALID_STATE_ERROR,
SYNTAX_ERROR,
INVALID_MODIFICATION_ERROR,
NAMESPACE_ERROR,
INVALID_ACCESS_ERROR,
VALIDATION_ERROR,
TYPE_MISMATCH_ERROR);
end XML.DOM;
|
[
{
"context": "e-Identifier: Apache-2.0\n--\n-- Copyright (c) 2017 onox <[email protected]>\n--\n-- Licensed under the A",
"end": 70,
"score": 0.9989068508148193,
"start": 66,
"tag": "USERNAME",
"value": "onox"
},
{
"context": "ifier: Apache-2.0\n--\n-- Copyright (c) 2017 onox <[email protected]>\n--\n-- Licensed under the Apache License, Versio",
"end": 91,
"score": 0.9999240636825562,
"start": 72,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
orka/src/orka/implementation/orka-jobs-workers.adb
|
onox/orka
| 52 |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2017 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.
with System.Multiprocessors.Dispatching_Domains;
with Ada.Exceptions;
with Ada.Strings.Fixed;
with Orka.OS;
package body Orka.Jobs.Workers is
task body Worker_Task is
package SM renames System.Multiprocessors;
package SF renames Ada.Strings.Fixed;
use type SM.CPU;
ID : constant String := Data.ID'Image;
Name : constant String := Task_Name & " #" & SF.Trim (ID, Ada.Strings.Left);
begin
-- Set the CPU affinity of the task to its corresponding CPU core
SM.Dispatching_Domains.Set_CPU (SM.CPU (Data.ID) + 1);
Orka.OS.Set_Task_Name (Name);
Executors.Execute_Jobs (Name, Executors.Queues.CPU, Queue);
exception
when Error : others =>
Orka.OS.Put_Line (Name & ": " & Ada.Exceptions.Exception_Information (Error));
end Worker_Task;
function Make_Workers return Worker_Array is
begin
return Result : Worker_Array (1 .. Positive (Count)) do
for Index in Result'Range loop
Result (Index).ID := Index;
end loop;
end return;
end Make_Workers;
procedure Shutdown is
begin
Queue.Shutdown;
end Shutdown;
Workers : constant Worker_Array := Make_Workers;
end Orka.Jobs.Workers;
|
4720
|
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2017 onox <<EMAIL>>
--
-- 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 System.Multiprocessors.Dispatching_Domains;
with Ada.Exceptions;
with Ada.Strings.Fixed;
with Orka.OS;
package body Orka.Jobs.Workers is
task body Worker_Task is
package SM renames System.Multiprocessors;
package SF renames Ada.Strings.Fixed;
use type SM.CPU;
ID : constant String := Data.ID'Image;
Name : constant String := Task_Name & " #" & SF.Trim (ID, Ada.Strings.Left);
begin
-- Set the CPU affinity of the task to its corresponding CPU core
SM.Dispatching_Domains.Set_CPU (SM.CPU (Data.ID) + 1);
Orka.OS.Set_Task_Name (Name);
Executors.Execute_Jobs (Name, Executors.Queues.CPU, Queue);
exception
when Error : others =>
Orka.OS.Put_Line (Name & ": " & Ada.Exceptions.Exception_Information (Error));
end Worker_Task;
function Make_Workers return Worker_Array is
begin
return Result : Worker_Array (1 .. Positive (Count)) do
for Index in Result'Range loop
Result (Index).ID := Index;
end loop;
end return;
end Make_Workers;
procedure Shutdown is
begin
Queue.Shutdown;
end Shutdown;
Workers : constant Worker_Array := Make_Workers;
end Orka.Jobs.Workers;
| true |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2017 onox <PI:EMAIL:<EMAIL>END_PI>
--
-- 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 System.Multiprocessors.Dispatching_Domains;
with Ada.Exceptions;
with Ada.Strings.Fixed;
with Orka.OS;
package body Orka.Jobs.Workers is
task body Worker_Task is
package SM renames System.Multiprocessors;
package SF renames Ada.Strings.Fixed;
use type SM.CPU;
ID : constant String := Data.ID'Image;
Name : constant String := Task_Name & " #" & SF.Trim (ID, Ada.Strings.Left);
begin
-- Set the CPU affinity of the task to its corresponding CPU core
SM.Dispatching_Domains.Set_CPU (SM.CPU (Data.ID) + 1);
Orka.OS.Set_Task_Name (Name);
Executors.Execute_Jobs (Name, Executors.Queues.CPU, Queue);
exception
when Error : others =>
Orka.OS.Put_Line (Name & ": " & Ada.Exceptions.Exception_Information (Error));
end Worker_Task;
function Make_Workers return Worker_Array is
begin
return Result : Worker_Array (1 .. Positive (Count)) do
for Index in Result'Range loop
Result (Index).ID := Index;
end loop;
end return;
end Make_Workers;
procedure Shutdown is
begin
Queue.Shutdown;
end Shutdown;
Workers : constant Worker_Array := Make_Workers;
end Orka.Jobs.Workers;
|
[
{
"context": "-------\n-- Copyright (C) 2020 by Heisenbug Ltd. ([email protected])\n--\n-- This work is free. You can redistribute i",
"end": 142,
"score": 0.9999227523803711,
"start": 123,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
test/linux/signal_handlers.ads
|
Jellix/open_weather_map_api
| 1 |
--------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. ([email protected])
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hocevar. See the LICENSE file for more details.
--------------------------------------------------------------------------------
pragma License (Unrestricted);
limited with Ada.Interrupts.Names;
limited with System;
package Signal_Handlers is
pragma Unreserve_All_Interrupts;
protected Sigint with
Interrupt_Priority => System.Interrupt_Priority'First
is
--------------------------------------------------------------------------
-- Wait
--------------------------------------------------------------------------
entry Wait;
--------------------------------------------------------------------------
-- Handle
--------------------------------------------------------------------------
procedure Handle with
Interrupt_Handler => True,
Attach_Handler => Ada.Interrupts.Names.SIGINT;
private
Call_Count : Natural := 0;
end Sigint;
end Signal_Handlers;
|
18072
|
--------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (<EMAIL>)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hocevar. See the LICENSE file for more details.
--------------------------------------------------------------------------------
pragma License (Unrestricted);
limited with Ada.Interrupts.Names;
limited with System;
package Signal_Handlers is
pragma Unreserve_All_Interrupts;
protected Sigint with
Interrupt_Priority => System.Interrupt_Priority'First
is
--------------------------------------------------------------------------
-- Wait
--------------------------------------------------------------------------
entry Wait;
--------------------------------------------------------------------------
-- Handle
--------------------------------------------------------------------------
procedure Handle with
Interrupt_Handler => True,
Attach_Handler => Ada.Interrupts.Names.SIGINT;
private
Call_Count : Natural := 0;
end Sigint;
end Signal_Handlers;
| true |
--------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (PI:EMAIL:<EMAIL>END_PI)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hocevar. See the LICENSE file for more details.
--------------------------------------------------------------------------------
pragma License (Unrestricted);
limited with Ada.Interrupts.Names;
limited with System;
package Signal_Handlers is
pragma Unreserve_All_Interrupts;
protected Sigint with
Interrupt_Priority => System.Interrupt_Priority'First
is
--------------------------------------------------------------------------
-- Wait
--------------------------------------------------------------------------
entry Wait;
--------------------------------------------------------------------------
-- Handle
--------------------------------------------------------------------------
procedure Handle with
Interrupt_Handler => True,
Attach_Handler => Ada.Interrupts.Names.SIGINT;
private
Call_Count : Natural := 0;
end Sigint;
end Signal_Handlers;
|
[
{
"context": "-- Copyright 2021 Jeff Foley. All rights reserved.\n-- Use of this source code ",
"end": 28,
"score": 0.9998642802238464,
"start": 18,
"tag": "NAME",
"value": "Jeff Foley"
},
{
"context": "ENSE file.\n\nlocal json = require(\"json\")\n\nname = \"IntelX\"\ntype = \"api\"\nuseragent = \"OWASP Amass\"\nhost = \"h",
"end": 194,
"score": 0.9139013886451721,
"start": 188,
"tag": "USERNAME",
"value": "IntelX"
}
] |
resources/scripts/api/intelx.ads
|
Elon143/Amass
| 7,053 |
-- Copyright 2021 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local json = require("json")
name = "IntelX"
type = "api"
useragent = "OWASP Amass"
host = "https://2.intelx.io/"
max = 1000
function start()
set_rate_limit(2)
end
function check()
local c
local cfg = datasrc_config()
if cfg ~= nil then
c = cfg.credentials
end
if (c ~= nil and c.key ~= nil and c.key ~= "") then
return true
end
return false
end
function vertical(ctx, domain)
local c
local cfg = datasrc_config()
if cfg ~= nil then
c = cfg.credentials
end
if (c == nil or c.key == nil or c.key == "") then
return
end
phonebook(ctx, domain, c.key)
end
function phonebook(ctx, domain, key)
local id = search(ctx, "", domain, key)
if id == "" then
return
end
local status = 3
local limit = 1000
while status == 0 or status == 3 do
local resp = results(ctx, id, limit, key)
if resp == nil then
break
end
status = resp.status
if ((status == 0 or status == 1) and resp.selectors ~= nil and #(resp.selectors) > 0) then
if #(resp.selectors) < limit then
limit = limit - #(resp.selectors)
end
for _, s in pairs(resp.selectors) do
local t = s.selectortype
if (t == 2 or t == 3 or t == 23) then
print(s.selectorvalue)
send_names(ctx, s.selectorvalue)
end
end
end
if limit <= 0 then
break
end
end
end
function search(ctx, domain, key)
local err, body, resp
body, err = json.encode({
term=domain,
lookuplevel=0,
timeout=0,
maxresults=max,
datefrom="",
dateto="",
sort=0,
media=0,
})
if (err ~= nil and err ~= "") then
return ""
end
resp, err = request(ctx, {
method="POST",
data=body,
['url']=host .. "phonebook/search",
headers={
['x-key']=key,
['Content-Type']="application/json",
['User-Agent']=useragent,
Connection="keep-alive",
},
})
if (err ~= nil and err ~= "") then
log(ctx, "vertical search request to service failed: " .. err)
return ""
end
local j = json.decode(resp)
if (j == nil or j.status == nil or j.id == nil or j.status ~= 0) then
return ""
end
return j.id
end
function results(ctx, id, limit, key)
local resp, err = request(ctx, {
['url']=host .. "phonebook/search/result?id=" .. id .. "&limit=" .. limit,
headers={
['x-key']=key,
['User-Agent']=useragent,
Connection="keep-alive",
},
})
if (err ~= nil and err ~= "") then
log(ctx, "vertical results request to service failed: " .. err)
return nil
end
local j = json.decode(resp)
if (j == nil or j.status == nil) then
return nil
end
return j
end
|
30378
|
-- Copyright 2021 <NAME>. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local json = require("json")
name = "IntelX"
type = "api"
useragent = "OWASP Amass"
host = "https://2.intelx.io/"
max = 1000
function start()
set_rate_limit(2)
end
function check()
local c
local cfg = datasrc_config()
if cfg ~= nil then
c = cfg.credentials
end
if (c ~= nil and c.key ~= nil and c.key ~= "") then
return true
end
return false
end
function vertical(ctx, domain)
local c
local cfg = datasrc_config()
if cfg ~= nil then
c = cfg.credentials
end
if (c == nil or c.key == nil or c.key == "") then
return
end
phonebook(ctx, domain, c.key)
end
function phonebook(ctx, domain, key)
local id = search(ctx, "", domain, key)
if id == "" then
return
end
local status = 3
local limit = 1000
while status == 0 or status == 3 do
local resp = results(ctx, id, limit, key)
if resp == nil then
break
end
status = resp.status
if ((status == 0 or status == 1) and resp.selectors ~= nil and #(resp.selectors) > 0) then
if #(resp.selectors) < limit then
limit = limit - #(resp.selectors)
end
for _, s in pairs(resp.selectors) do
local t = s.selectortype
if (t == 2 or t == 3 or t == 23) then
print(s.selectorvalue)
send_names(ctx, s.selectorvalue)
end
end
end
if limit <= 0 then
break
end
end
end
function search(ctx, domain, key)
local err, body, resp
body, err = json.encode({
term=domain,
lookuplevel=0,
timeout=0,
maxresults=max,
datefrom="",
dateto="",
sort=0,
media=0,
})
if (err ~= nil and err ~= "") then
return ""
end
resp, err = request(ctx, {
method="POST",
data=body,
['url']=host .. "phonebook/search",
headers={
['x-key']=key,
['Content-Type']="application/json",
['User-Agent']=useragent,
Connection="keep-alive",
},
})
if (err ~= nil and err ~= "") then
log(ctx, "vertical search request to service failed: " .. err)
return ""
end
local j = json.decode(resp)
if (j == nil or j.status == nil or j.id == nil or j.status ~= 0) then
return ""
end
return j.id
end
function results(ctx, id, limit, key)
local resp, err = request(ctx, {
['url']=host .. "phonebook/search/result?id=" .. id .. "&limit=" .. limit,
headers={
['x-key']=key,
['User-Agent']=useragent,
Connection="keep-alive",
},
})
if (err ~= nil and err ~= "") then
log(ctx, "vertical results request to service failed: " .. err)
return nil
end
local j = json.decode(resp)
if (j == nil or j.status == nil) then
return nil
end
return j
end
| true |
-- Copyright 2021 PI:NAME:<NAME>END_PI. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local json = require("json")
name = "IntelX"
type = "api"
useragent = "OWASP Amass"
host = "https://2.intelx.io/"
max = 1000
function start()
set_rate_limit(2)
end
function check()
local c
local cfg = datasrc_config()
if cfg ~= nil then
c = cfg.credentials
end
if (c ~= nil and c.key ~= nil and c.key ~= "") then
return true
end
return false
end
function vertical(ctx, domain)
local c
local cfg = datasrc_config()
if cfg ~= nil then
c = cfg.credentials
end
if (c == nil or c.key == nil or c.key == "") then
return
end
phonebook(ctx, domain, c.key)
end
function phonebook(ctx, domain, key)
local id = search(ctx, "", domain, key)
if id == "" then
return
end
local status = 3
local limit = 1000
while status == 0 or status == 3 do
local resp = results(ctx, id, limit, key)
if resp == nil then
break
end
status = resp.status
if ((status == 0 or status == 1) and resp.selectors ~= nil and #(resp.selectors) > 0) then
if #(resp.selectors) < limit then
limit = limit - #(resp.selectors)
end
for _, s in pairs(resp.selectors) do
local t = s.selectortype
if (t == 2 or t == 3 or t == 23) then
print(s.selectorvalue)
send_names(ctx, s.selectorvalue)
end
end
end
if limit <= 0 then
break
end
end
end
function search(ctx, domain, key)
local err, body, resp
body, err = json.encode({
term=domain,
lookuplevel=0,
timeout=0,
maxresults=max,
datefrom="",
dateto="",
sort=0,
media=0,
})
if (err ~= nil and err ~= "") then
return ""
end
resp, err = request(ctx, {
method="POST",
data=body,
['url']=host .. "phonebook/search",
headers={
['x-key']=key,
['Content-Type']="application/json",
['User-Agent']=useragent,
Connection="keep-alive",
},
})
if (err ~= nil and err ~= "") then
log(ctx, "vertical search request to service failed: " .. err)
return ""
end
local j = json.decode(resp)
if (j == nil or j.status == nil or j.id == nil or j.status ~= 0) then
return ""
end
return j.id
end
function results(ctx, id, limit, key)
local resp, err = request(ctx, {
['url']=host .. "phonebook/search/result?id=" .. id .. "&limit=" .. limit,
headers={
['x-key']=key,
['User-Agent']=useragent,
Connection="keep-alive",
},
})
if (err ~= nil and err ~= "") then
log(ctx, "vertical results request to service failed: " .. err)
return nil
end
local j = json.decode(resp)
if (j == nil or j.status == nil) then
return nil
end
return j
end
|
[
{
"context": " --\n-- Copyright © 2015-2018, Vadim Godunko <[email protected]> --\n-- All rig",
"end": 829,
"score": 0.9998864531517029,
"start": 816,
"tag": "NAME",
"value": "Vadim Godunko"
},
{
"context": " --\n-- Copyright © 2015-2018, Vadim Godunko <[email protected]> --\n-- All rights reserved. ",
"end": 849,
"score": 0.999932050704956,
"start": 831,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
source/web/servlet/http/servlet-http_sessions.ads
|
svn2github/matreshka
| 24 |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Web Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2015-2018, 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$
------------------------------------------------------------------------------
-- Provides a way to identify a user across more than one page request or
-- visit to a Web site and to store information about that user.
--
-- The servlet container uses this interface to create a session between an
-- HTTP client and an HTTP server. The session persists for a specified time
-- period, across more than one connection or page request from the user. A
-- session usually corresponds to one user, who may visit a site many times.
-- The server can maintain a session in many ways such as using cookies or
-- rewriting URLs.
--
-- This interface allows servlets to
--
-- 1. View and manipulate information about a session, such as the session
-- identifier, creation time, and last accessed time
-- 2. Bind objects to sessions, allowing user information to persist across
-- multiple user connections
--
-- When an application stores an object in or removes an object from a
-- session, the session checks whether the object implements
-- HttpSessionBindingListener. If it does, the servlet notifies the object
-- that it has been bound to or unbound from the session. Notifications are
-- sent after the binding methods complete. For session that are invalidated
-- or expire, notifications are sent after the session has been invalidated or
-- expired.
--
-- When container migrates a session between VMs in a distributed container
-- setting, all session attributes implementing the
-- HttpSessionActivationListener interface are notified.
--
-- A servlet should be able to handle cases in which the client does not
-- choose to join a session, such as when cookies are intentionally turned
-- off. Until the client joins the session, isNew returns true. If the client
-- chooses not to join the session, getSession will return a different session
-- on each request, and isNew will always return true.
--
-- Session information is scoped only to the current web application
-- (ServletContext), so information stored in one context will not be directly
-- visible in another.
------------------------------------------------------------------------------
with League.Calendars;
with League.Strings;
package Servlet.HTTP_Sessions is
pragma Preelaborate;
type HTTP_Session is limited interface;
not overriding function Get_Creation_Time
(Self : HTTP_Session) return League.Calendars.Date_Time is abstract;
-- Returns the time when this session was created.
--
-- Raises Program_Error if this method is called on an invalidated session.
not overriding function Get_Id
(Self : HTTP_Session) return League.Strings.Universal_String is abstract;
-- Returns a string containing the unique identifier assigned to this
-- session. The identifier is assigned by the servlet container and is
-- implementation dependent.
not overriding function Get_Last_Accessed_Time
(Self : HTTP_Session) return League.Calendars.Date_Time is abstract;
-- Returns the last time the client sent a request associated with this
-- session, and marked by the time the container received the request.
--
-- Actions that your application takes, such as getting or setting a value
-- associated with the session, do not affect the access time.
--
-- Raises Program_Error if this method is called on an invalidated session.
not overriding function Is_New
(Self : HTTP_Session) return Boolean is abstract;
-- Returns True if the client does not yet know about the session or if the
-- client chooses not to join the session. For example, if the server used
-- only cookie-based sessions, and the client had disabled the use of
-- cookies, then a session would be new on each request.
--
-- Returns True if the server has created a session, but the client has not
-- yet joined.
--
-- Raises Program_Error if this method is called on an already invalidated
-- session.
end Servlet.HTTP_Sessions;
|
19702
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Web Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2015-2018, <NAME> <<EMAIL>> --
-- 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$
------------------------------------------------------------------------------
-- Provides a way to identify a user across more than one page request or
-- visit to a Web site and to store information about that user.
--
-- The servlet container uses this interface to create a session between an
-- HTTP client and an HTTP server. The session persists for a specified time
-- period, across more than one connection or page request from the user. A
-- session usually corresponds to one user, who may visit a site many times.
-- The server can maintain a session in many ways such as using cookies or
-- rewriting URLs.
--
-- This interface allows servlets to
--
-- 1. View and manipulate information about a session, such as the session
-- identifier, creation time, and last accessed time
-- 2. Bind objects to sessions, allowing user information to persist across
-- multiple user connections
--
-- When an application stores an object in or removes an object from a
-- session, the session checks whether the object implements
-- HttpSessionBindingListener. If it does, the servlet notifies the object
-- that it has been bound to or unbound from the session. Notifications are
-- sent after the binding methods complete. For session that are invalidated
-- or expire, notifications are sent after the session has been invalidated or
-- expired.
--
-- When container migrates a session between VMs in a distributed container
-- setting, all session attributes implementing the
-- HttpSessionActivationListener interface are notified.
--
-- A servlet should be able to handle cases in which the client does not
-- choose to join a session, such as when cookies are intentionally turned
-- off. Until the client joins the session, isNew returns true. If the client
-- chooses not to join the session, getSession will return a different session
-- on each request, and isNew will always return true.
--
-- Session information is scoped only to the current web application
-- (ServletContext), so information stored in one context will not be directly
-- visible in another.
------------------------------------------------------------------------------
with League.Calendars;
with League.Strings;
package Servlet.HTTP_Sessions is
pragma Preelaborate;
type HTTP_Session is limited interface;
not overriding function Get_Creation_Time
(Self : HTTP_Session) return League.Calendars.Date_Time is abstract;
-- Returns the time when this session was created.
--
-- Raises Program_Error if this method is called on an invalidated session.
not overriding function Get_Id
(Self : HTTP_Session) return League.Strings.Universal_String is abstract;
-- Returns a string containing the unique identifier assigned to this
-- session. The identifier is assigned by the servlet container and is
-- implementation dependent.
not overriding function Get_Last_Accessed_Time
(Self : HTTP_Session) return League.Calendars.Date_Time is abstract;
-- Returns the last time the client sent a request associated with this
-- session, and marked by the time the container received the request.
--
-- Actions that your application takes, such as getting or setting a value
-- associated with the session, do not affect the access time.
--
-- Raises Program_Error if this method is called on an invalidated session.
not overriding function Is_New
(Self : HTTP_Session) return Boolean is abstract;
-- Returns True if the client does not yet know about the session or if the
-- client chooses not to join the session. For example, if the server used
-- only cookie-based sessions, and the client had disabled the use of
-- cookies, then a session would be new on each request.
--
-- Returns True if the server has created a session, but the client has not
-- yet joined.
--
-- Raises Program_Error if this method is called on an already invalidated
-- session.
end Servlet.HTTP_Sessions;
| true |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Web Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2015-2018, PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI> --
-- 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$
------------------------------------------------------------------------------
-- Provides a way to identify a user across more than one page request or
-- visit to a Web site and to store information about that user.
--
-- The servlet container uses this interface to create a session between an
-- HTTP client and an HTTP server. The session persists for a specified time
-- period, across more than one connection or page request from the user. A
-- session usually corresponds to one user, who may visit a site many times.
-- The server can maintain a session in many ways such as using cookies or
-- rewriting URLs.
--
-- This interface allows servlets to
--
-- 1. View and manipulate information about a session, such as the session
-- identifier, creation time, and last accessed time
-- 2. Bind objects to sessions, allowing user information to persist across
-- multiple user connections
--
-- When an application stores an object in or removes an object from a
-- session, the session checks whether the object implements
-- HttpSessionBindingListener. If it does, the servlet notifies the object
-- that it has been bound to or unbound from the session. Notifications are
-- sent after the binding methods complete. For session that are invalidated
-- or expire, notifications are sent after the session has been invalidated or
-- expired.
--
-- When container migrates a session between VMs in a distributed container
-- setting, all session attributes implementing the
-- HttpSessionActivationListener interface are notified.
--
-- A servlet should be able to handle cases in which the client does not
-- choose to join a session, such as when cookies are intentionally turned
-- off. Until the client joins the session, isNew returns true. If the client
-- chooses not to join the session, getSession will return a different session
-- on each request, and isNew will always return true.
--
-- Session information is scoped only to the current web application
-- (ServletContext), so information stored in one context will not be directly
-- visible in another.
------------------------------------------------------------------------------
with League.Calendars;
with League.Strings;
package Servlet.HTTP_Sessions is
pragma Preelaborate;
type HTTP_Session is limited interface;
not overriding function Get_Creation_Time
(Self : HTTP_Session) return League.Calendars.Date_Time is abstract;
-- Returns the time when this session was created.
--
-- Raises Program_Error if this method is called on an invalidated session.
not overriding function Get_Id
(Self : HTTP_Session) return League.Strings.Universal_String is abstract;
-- Returns a string containing the unique identifier assigned to this
-- session. The identifier is assigned by the servlet container and is
-- implementation dependent.
not overriding function Get_Last_Accessed_Time
(Self : HTTP_Session) return League.Calendars.Date_Time is abstract;
-- Returns the last time the client sent a request associated with this
-- session, and marked by the time the container received the request.
--
-- Actions that your application takes, such as getting or setting a value
-- associated with the session, do not affect the access time.
--
-- Raises Program_Error if this method is called on an invalidated session.
not overriding function Is_New
(Self : HTTP_Session) return Boolean is abstract;
-- Returns True if the client does not yet know about the session or if the
-- client chooses not to join the session. For example, if the server used
-- only cookie-based sessions, and the client had disabled the use of
-- cookies, then a session would be new on each request.
--
-- Returns True if the server has created a session, but the client has not
-- yet joined.
--
-- Raises Program_Error if this method is called on an already invalidated
-- session.
end Servlet.HTTP_Sessions;
|
[
{
"context": "--\n-- Copyright 2018 The wookey project team <[email protected]>\n-- - Ryad Benadjila\n-- - Arnauld Michel",
"end": 64,
"score": 0.9999319911003113,
"start": 46,
"tag": "EMAIL",
"value": "[email protected]"
},
{
"context": "he wookey project team <[email protected]>\n-- - Ryad Benadjila\n-- - Arnauld Michelizza\n-- - Mathieu Renard",
"end": 91,
"score": 0.9991089701652527,
"start": 73,
"tag": "NAME",
"value": "Ryad Benadjila"
},
{
"context": "[email protected]>\n-- - Ryad Benadjila\n-- - Arnauld Michelizza\n-- - Mathieu Renard\n-- - Philippe Thierry\n--",
"end": 118,
"score": 0.986572265625,
"start": 99,
"tag": "NAME",
"value": "Arnauld Michelizza"
},
{
"context": "ad Benadjila\n-- - Arnauld Michelizza\n-- - Mathieu Renard\n-- - Philippe Thierry\n-- - Philippe Trebuchet",
"end": 141,
"score": 0.9412064552307129,
"start": 126,
"tag": "NAME",
"value": "Mathieu Renard"
},
{
"context": " Arnauld Michelizza\n-- - Mathieu Renard\n-- - Philippe Thierry\n-- - Philippe Trebuchet\n--\n-- Licensed under th",
"end": 165,
"score": 0.9998233914375305,
"start": 149,
"tag": "NAME",
"value": "Philippe Thierry"
},
{
"context": " - Mathieu Renard\n-- - Philippe Thierry\n-- - Philippe Trebuchet\n--\n-- Licensed under the Apache License, Version ",
"end": 191,
"score": 0.9998626708984375,
"start": 173,
"tag": "NAME",
"value": "Philippe Trebuchet"
}
] |
src/syscalls/ewok-syscalls-exiting.adb
|
vdh-anssi/ewok-kernel
| 65 |
--
-- Copyright 2018 The wookey project team <[email protected]>
-- - Ryad Benadjila
-- - Arnauld Michelizza
-- - Mathieu Renard
-- - Philippe Thierry
-- - Philippe Trebuchet
--
-- 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 ewok.tasks; use ewok.tasks;
with ewok.devices_shared; use ewok.devices_shared;
with ewok.dma_shared; use ewok.dma_shared;
with ewok.devices;
with ewok.dma;
with ewok.debug;
package body ewok.syscalls.exiting
with spark_mode => off
is
package TSK renames ewok.tasks;
procedure svc_exit
(caller_id : in ewok.tasks_shared.t_task_id;
mode : in ewok.tasks_shared.t_task_mode)
is
begin
if mode = TASK_MODE_ISRTHREAD then
#if CONFIG_SCHED_SUPPORT_FISR
declare
current_state : constant t_task_state :=
ewok.tasks.get_state (caller_id, TASK_MODE_MAINTHREAD);
begin
if current_state = TASK_STATE_RUNNABLE or
current_state = TASK_STATE_IDLE
then
ewok.tasks.set_state
(caller_id, TASK_MODE_MAINTHREAD, TASK_STATE_FORCED);
end if;
end;
#end if;
ewok.tasks.set_state
(caller_id, TASK_MODE_ISRTHREAD, TASK_STATE_ISR_DONE);
-- Main thread mode
else
-- FIXME: we should also clean resources (devices, DMA, IPCs, ISRs...)
-- This means:
-- * unlock task waiting for this task to respond to IPC, returning BUSY
-- * disabling all registered interrupts (NVIC)
-- * disabling all EXTIs
-- * cleaning DMA registered streams & reseting them
-- * deregistering devices
-- * deregistering GPIOs
-- * zeroing data regions
-- Most of those actions should be handled by each component unregister()
-- call (or equivalent)
-- All waiting events of the softirq input queue for this task should also be
-- cleaned (they also can be cleaned as they are treated by softirqd)
ewok.tasks.set_state
(caller_id, TASK_MODE_MAINTHREAD, TASK_STATE_FINISHED);
end if;
end svc_exit;
-- Deallocate registered devices and DMA streams in order
-- to avoid user ISRs (potentially faulty) triggered by
-- interrupts.
-- TODO: the appropriate action should be chosen at compile time
-- (ie. DO_NOTHING, RESET, FREEZE...)
procedure svc_panic
(caller_id : in ewok.tasks_shared.t_task_id)
is
dev_id : ewok.devices_shared.t_device_id;
ok : boolean;
begin
-- Release registered devices
for dev_descriptor in TSK.tasks_list(caller_id).devices'range loop
dev_id := TSK.tasks_list(caller_id).devices(dev_descriptor).device_id;
if dev_id /= ID_DEV_UNUSED then
-- Unmounting the device
if TSK.is_mounted (caller_id, dev_descriptor) then
TSK.unmount_device (caller_id, dev_descriptor, ok);
if not ok then
raise program_error; -- Should never happen
end if;
end if;
-- Removing it from the task's list of used devices
TSK.remove_device (caller_id, dev_descriptor);
-- Release GPIOs, EXTIs and interrupts
ewok.devices.release_device (caller_id, dev_id, ok);
if not ok then
raise program_error; -- Should never happen
end if;
end if;
end loop;
-- Release DMA streams
for dma_descriptor in TSK.tasks_list(caller_id).dma_id'range loop
if TSK.tasks_list(caller_id).dma_id(dma_descriptor) /= ID_DMA_UNUSED
then
ewok.dma.release_stream
(caller_id,
TSK.tasks_list(caller_id).dma_id(dma_descriptor),
ok);
if not ok then
raise program_error; -- Should never happen
end if;
end if;
end loop;
-- FIXME: maybe we should also clean IPCs ?
ewok.tasks.set_state
(caller_id, TASK_MODE_ISRTHREAD, TASK_STATE_ISR_DONE);
ewok.tasks.set_state
(caller_id, TASK_MODE_MAINTHREAD, TASK_STATE_FINISHED);
debug.log (debug.ALERT, ewok.tasks.tasks_list(caller_id).name & " voluntary panic!");
end svc_panic;
end ewok.syscalls.exiting;
|
30177
|
--
-- Copyright 2018 The wookey project team <<EMAIL>>
-- - <NAME>
-- - <NAME>
-- - <NAME>
-- - <NAME>
-- - <NAME>
--
-- 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 ewok.tasks; use ewok.tasks;
with ewok.devices_shared; use ewok.devices_shared;
with ewok.dma_shared; use ewok.dma_shared;
with ewok.devices;
with ewok.dma;
with ewok.debug;
package body ewok.syscalls.exiting
with spark_mode => off
is
package TSK renames ewok.tasks;
procedure svc_exit
(caller_id : in ewok.tasks_shared.t_task_id;
mode : in ewok.tasks_shared.t_task_mode)
is
begin
if mode = TASK_MODE_ISRTHREAD then
#if CONFIG_SCHED_SUPPORT_FISR
declare
current_state : constant t_task_state :=
ewok.tasks.get_state (caller_id, TASK_MODE_MAINTHREAD);
begin
if current_state = TASK_STATE_RUNNABLE or
current_state = TASK_STATE_IDLE
then
ewok.tasks.set_state
(caller_id, TASK_MODE_MAINTHREAD, TASK_STATE_FORCED);
end if;
end;
#end if;
ewok.tasks.set_state
(caller_id, TASK_MODE_ISRTHREAD, TASK_STATE_ISR_DONE);
-- Main thread mode
else
-- FIXME: we should also clean resources (devices, DMA, IPCs, ISRs...)
-- This means:
-- * unlock task waiting for this task to respond to IPC, returning BUSY
-- * disabling all registered interrupts (NVIC)
-- * disabling all EXTIs
-- * cleaning DMA registered streams & reseting them
-- * deregistering devices
-- * deregistering GPIOs
-- * zeroing data regions
-- Most of those actions should be handled by each component unregister()
-- call (or equivalent)
-- All waiting events of the softirq input queue for this task should also be
-- cleaned (they also can be cleaned as they are treated by softirqd)
ewok.tasks.set_state
(caller_id, TASK_MODE_MAINTHREAD, TASK_STATE_FINISHED);
end if;
end svc_exit;
-- Deallocate registered devices and DMA streams in order
-- to avoid user ISRs (potentially faulty) triggered by
-- interrupts.
-- TODO: the appropriate action should be chosen at compile time
-- (ie. DO_NOTHING, RESET, FREEZE...)
procedure svc_panic
(caller_id : in ewok.tasks_shared.t_task_id)
is
dev_id : ewok.devices_shared.t_device_id;
ok : boolean;
begin
-- Release registered devices
for dev_descriptor in TSK.tasks_list(caller_id).devices'range loop
dev_id := TSK.tasks_list(caller_id).devices(dev_descriptor).device_id;
if dev_id /= ID_DEV_UNUSED then
-- Unmounting the device
if TSK.is_mounted (caller_id, dev_descriptor) then
TSK.unmount_device (caller_id, dev_descriptor, ok);
if not ok then
raise program_error; -- Should never happen
end if;
end if;
-- Removing it from the task's list of used devices
TSK.remove_device (caller_id, dev_descriptor);
-- Release GPIOs, EXTIs and interrupts
ewok.devices.release_device (caller_id, dev_id, ok);
if not ok then
raise program_error; -- Should never happen
end if;
end if;
end loop;
-- Release DMA streams
for dma_descriptor in TSK.tasks_list(caller_id).dma_id'range loop
if TSK.tasks_list(caller_id).dma_id(dma_descriptor) /= ID_DMA_UNUSED
then
ewok.dma.release_stream
(caller_id,
TSK.tasks_list(caller_id).dma_id(dma_descriptor),
ok);
if not ok then
raise program_error; -- Should never happen
end if;
end if;
end loop;
-- FIXME: maybe we should also clean IPCs ?
ewok.tasks.set_state
(caller_id, TASK_MODE_ISRTHREAD, TASK_STATE_ISR_DONE);
ewok.tasks.set_state
(caller_id, TASK_MODE_MAINTHREAD, TASK_STATE_FINISHED);
debug.log (debug.ALERT, ewok.tasks.tasks_list(caller_id).name & " voluntary panic!");
end svc_panic;
end ewok.syscalls.exiting;
| true |
--
-- Copyright 2018 The wookey project team <PI:EMAIL:<EMAIL>END_PI>
-- - PI:NAME:<NAME>END_PI
-- - PI:NAME:<NAME>END_PI
-- - PI:NAME:<NAME>END_PI
-- - PI:NAME:<NAME>END_PI
-- - PI:NAME:<NAME>END_PI
--
-- 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 ewok.tasks; use ewok.tasks;
with ewok.devices_shared; use ewok.devices_shared;
with ewok.dma_shared; use ewok.dma_shared;
with ewok.devices;
with ewok.dma;
with ewok.debug;
package body ewok.syscalls.exiting
with spark_mode => off
is
package TSK renames ewok.tasks;
procedure svc_exit
(caller_id : in ewok.tasks_shared.t_task_id;
mode : in ewok.tasks_shared.t_task_mode)
is
begin
if mode = TASK_MODE_ISRTHREAD then
#if CONFIG_SCHED_SUPPORT_FISR
declare
current_state : constant t_task_state :=
ewok.tasks.get_state (caller_id, TASK_MODE_MAINTHREAD);
begin
if current_state = TASK_STATE_RUNNABLE or
current_state = TASK_STATE_IDLE
then
ewok.tasks.set_state
(caller_id, TASK_MODE_MAINTHREAD, TASK_STATE_FORCED);
end if;
end;
#end if;
ewok.tasks.set_state
(caller_id, TASK_MODE_ISRTHREAD, TASK_STATE_ISR_DONE);
-- Main thread mode
else
-- FIXME: we should also clean resources (devices, DMA, IPCs, ISRs...)
-- This means:
-- * unlock task waiting for this task to respond to IPC, returning BUSY
-- * disabling all registered interrupts (NVIC)
-- * disabling all EXTIs
-- * cleaning DMA registered streams & reseting them
-- * deregistering devices
-- * deregistering GPIOs
-- * zeroing data regions
-- Most of those actions should be handled by each component unregister()
-- call (or equivalent)
-- All waiting events of the softirq input queue for this task should also be
-- cleaned (they also can be cleaned as they are treated by softirqd)
ewok.tasks.set_state
(caller_id, TASK_MODE_MAINTHREAD, TASK_STATE_FINISHED);
end if;
end svc_exit;
-- Deallocate registered devices and DMA streams in order
-- to avoid user ISRs (potentially faulty) triggered by
-- interrupts.
-- TODO: the appropriate action should be chosen at compile time
-- (ie. DO_NOTHING, RESET, FREEZE...)
procedure svc_panic
(caller_id : in ewok.tasks_shared.t_task_id)
is
dev_id : ewok.devices_shared.t_device_id;
ok : boolean;
begin
-- Release registered devices
for dev_descriptor in TSK.tasks_list(caller_id).devices'range loop
dev_id := TSK.tasks_list(caller_id).devices(dev_descriptor).device_id;
if dev_id /= ID_DEV_UNUSED then
-- Unmounting the device
if TSK.is_mounted (caller_id, dev_descriptor) then
TSK.unmount_device (caller_id, dev_descriptor, ok);
if not ok then
raise program_error; -- Should never happen
end if;
end if;
-- Removing it from the task's list of used devices
TSK.remove_device (caller_id, dev_descriptor);
-- Release GPIOs, EXTIs and interrupts
ewok.devices.release_device (caller_id, dev_id, ok);
if not ok then
raise program_error; -- Should never happen
end if;
end if;
end loop;
-- Release DMA streams
for dma_descriptor in TSK.tasks_list(caller_id).dma_id'range loop
if TSK.tasks_list(caller_id).dma_id(dma_descriptor) /= ID_DMA_UNUSED
then
ewok.dma.release_stream
(caller_id,
TSK.tasks_list(caller_id).dma_id(dma_descriptor),
ok);
if not ok then
raise program_error; -- Should never happen
end if;
end if;
end loop;
-- FIXME: maybe we should also clean IPCs ?
ewok.tasks.set_state
(caller_id, TASK_MODE_ISRTHREAD, TASK_STATE_ISR_DONE);
ewok.tasks.set_state
(caller_id, TASK_MODE_MAINTHREAD, TASK_STATE_FINISHED);
debug.log (debug.ALERT, ewok.tasks.tasks_list(caller_id).name & " voluntary panic!");
end svc_panic;
end ewok.syscalls.exiting;
|
[
{
"context": "ON parser\n-- Copyright (C) 2011, 2016, 2017, 2020 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@g",
"end": 186,
"score": 0.9998774528503418,
"start": 171,
"tag": "NAME",
"value": "Stephane Carrez"
},
{
"context": "1, 2016, 2017, 2020 Stephane Carrez\n-- Written by Stephane Carrez ([email protected])\n--\n-- Licensed under",
"end": 217,
"score": 0.9998832941055298,
"start": 202,
"tag": "NAME",
"value": "Stephane Carrez"
},
{
"context": "0 Stephane Carrez\n-- Written by Stephane Carrez ([email protected])\n--\n-- Licensed under the Apache License, Versio",
"end": 244,
"score": 0.9999305009841919,
"start": 219,
"tag": "EMAIL",
"value": "[email protected]"
},
{
"context": " begin\n Ada.Strings.Unbounded.Append (Name, \"Katniss Everdeen\");\n Stream.Start_Document;\n Stream.Star",
"end": 5503,
"score": 0.9484994411468506,
"start": 5487,
"tag": "NAME",
"value": "Katniss Everdeen"
},
{
"context": "el\", \"gold\");\n Stream.Write_Entity (\"name\", \"hunter\");\n Stream.End_Entity (\"badge\");\n\n Stre",
"end": 6127,
"score": 0.9370161294937134,
"start": 6121,
"tag": "NAME",
"value": "hunter"
},
{
"context": "el\", \"gold\");\n Stream.Write_Entity (\"name\", \"archery\");\n Stream.End_Entity (\"badge\");\n Strea",
"end": 6292,
"score": 0.9921996593475342,
"start": 6285,
"tag": "NAME",
"value": "archery"
}
] |
regtests/util-serialize-io-json-tests.adb
|
My-Colaborations/ada-util
| 0 |
-----------------------------------------------------------------------
-- serialize-io-json-tests -- Unit tests for JSON parser
-- Copyright (C) 2011, 2016, 2017, 2020 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.Stream_IO;
with Ada.Characters.Wide_Wide_Latin_1;
with Ada.Calendar.Formatting;
with Util.Test_Caller;
with Util.Log.Loggers;
with Util.Streams.Files;
with Util.Beans.Objects.Readers;
package body Util.Serialize.IO.JSON.Tests is
use Util.Log;
Log : constant Loggers.Logger := Loggers.Create ("Util.Serialize.IO.JSON");
package Caller is new Util.Test_Caller (Test, "Serialize.IO.JSON");
procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite) is
begin
Caller.Add_Test (Suite, "Test Util.Serialize.IO.JSON.Parse (parse errors)",
Test_Parse_Error'Access);
Caller.Add_Test (Suite, "Test Util.Serialize.IO.JSON.Parse (parse Ok)",
Test_Parser'Access);
Caller.Add_Test (Suite, "Test Util.Serialize.IO.JSON.Write",
Test_Output'Access);
Caller.Add_Test (Suite, "Test Util.Serialize.IO.JSON.Write (Simple)",
Test_Simple_Output'Access);
Caller.Add_Test (Suite, "Test Util.Serialize.IO.JSON.Write (Nullable)",
Test_Nullable'Access);
Caller.Add_Test (Suite, "Test Util.Serialize.IO.JSON.Read",
Test_Read'Access);
end Add_Tests;
-- ------------------------------
-- Check various JSON parsing errors.
-- ------------------------------
procedure Test_Parse_Error (T : in out Test) is
pragma Unreferenced (T);
procedure Check_Parse_Error (Content : in String);
procedure Check_Parse_Error (Content : in String) is
P : Parser;
R : Util.Beans.Objects.Readers.Reader;
begin
P.Parse_String (Content, R);
Log.Error ("No exception raised for: {0}", Content);
exception
when Parse_Error =>
null;
end Check_Parse_Error;
begin
Check_Parse_Error ("{ ""person"":23");
Check_Parse_Error ("{ person: 23]");
Check_Parse_Error ("[ }");
Check_Parse_Error ("{[]}");
Check_Parse_Error ("{");
Check_Parse_Error ("{[");
Check_Parse_Error ("{ ""person");
Check_Parse_Error ("{ ""person"":");
Check_Parse_Error ("{ ""person"":""asf");
Check_Parse_Error ("{ ""person"":""asf""");
Check_Parse_Error ("{ ""person"":""asf"",");
Check_Parse_Error ("{ ""person"":""\uze""}");
Check_Parse_Error ("{ ""person"":""\u012-""}");
Check_Parse_Error ("{ ""person"":""\u012G""}");
end Test_Parse_Error;
-- ------------------------------
-- Check various (basic) JSON valid strings (no mapper).
-- ------------------------------
procedure Test_Parser (T : in out Test) is
procedure Check_Parse (Content : in String);
procedure Check_Parse (Content : in String) is
P : Parser;
R : Util.Beans.Objects.Readers.Reader;
Root : Util.Beans.Objects.Object;
begin
P.Parse_String (Content, R);
Root := R.Get_Root;
T.Assert (not Util.Beans.Objects.Is_Null (Root), "Null result for " & Content);
exception
when Parse_Error =>
Log.Error ("Parse error for: " & Content);
raise;
end Check_Parse;
begin
Check_Parse ("{ ""person"":23}");
Check_Parse ("{ }");
Check_Parse ("{""person"":""asf""}");
Check_Parse ("{""person"":""asf"",""age"":""2""}");
Check_Parse ("{ ""person"":""\u0123""}");
Check_Parse ("{ ""person"":""\u4567""}");
Check_Parse ("{ ""person"":""\u89ab""}");
Check_Parse ("{ ""person"":""\ucdef""}");
Check_Parse ("{ ""person"":""\u1CDE""}");
Check_Parse ("{ ""person"":""\u2ABF""}");
Check_Parse ("[{ ""person"":""\u2ABF""}]");
Check_Parse ("""testt""");
Check_Parse ("""""");
Check_Parse ("123");
end Test_Parser;
-- ------------------------------
-- Generate some output stream for the test.
-- ------------------------------
procedure Write_Stream (Stream : in out Util.Serialize.IO.Output_Stream'Class) is
Name : Ada.Strings.Unbounded.Unbounded_String;
Wide : constant Wide_Wide_String :=
Ada.Characters.Wide_Wide_Latin_1.CR &
Ada.Characters.Wide_Wide_Latin_1.LF &
Ada.Characters.Wide_Wide_Latin_1.HT &
Wide_Wide_Character'Val (16#080#) &
Wide_Wide_Character'Val (16#1fC#) &
Wide_Wide_Character'Val (16#20AC#) & -- Euro sign
Wide_Wide_Character'Val (16#2acbf#);
T : constant Ada.Calendar.Time := Ada.Calendar.Formatting.Time_Of (2011, 11, 19, 23, 0, 0);
begin
Ada.Strings.Unbounded.Append (Name, "Katniss Everdeen");
Stream.Start_Document;
Stream.Start_Entity ("root");
Stream.Start_Entity ("person");
Stream.Write_Attribute ("id", 1);
Stream.Write_Attribute ("name", Name);
Stream.Write_Entity ("name", Name);
Stream.Write_Entity ("gender", "female");
Stream.Write_Entity ("volunteer", True);
Stream.Write_Entity ("age", 17);
Stream.Write_Entity ("date", T);
Stream.Write_Wide_Entity ("skin", "olive skin");
Stream.Start_Array ("badges");
Stream.Start_Entity ("badge");
Stream.Write_Entity ("level", "gold");
Stream.Write_Entity ("name", "hunter");
Stream.End_Entity ("badge");
Stream.Start_Entity ("badge");
Stream.Write_Entity ("level", "gold");
Stream.Write_Entity ("name", "archery");
Stream.End_Entity ("badge");
Stream.End_Array ("badges");
Stream.Start_Entity ("district");
Stream.Write_Attribute ("id", 12);
Stream.Write_Wide_Attribute ("industry", "Coal mining");
Stream.Write_Attribute ("state", "<destroyed>");
Stream.Write_Long_Entity ("members", 10_000);
Stream.Write_Entity ("description", "<TBW>&""");
Stream.Write_Wide_Entity ("wescape", "'""<>&;,@!`~[]{}^%*()-+=");
Stream.Write_Entity ("escape", "'""<>&;,@!`~\[]{}^%*()-+=");
Stream.Write_Wide_Entity ("wide", Wide);
Stream.End_Entity ("district");
Stream.End_Entity ("person");
Stream.End_Entity ("root");
Stream.End_Document;
end Write_Stream;
-- ------------------------------
-- Test the JSON output stream generation.
-- ------------------------------
procedure Test_Output (T : in out Test) is
File : aliased Util.Streams.Files.File_Stream;
Buffer : aliased Util.Streams.Texts.Print_Stream;
Stream : Util.Serialize.IO.JSON.Output_Stream;
Expect : constant String := Util.Tests.Get_Path ("regtests/expect/test-stream.json");
Path : constant String := Util.Tests.Get_Test_Path ("regtests/result/test-stream.json");
begin
File.Create (Mode => Ada.Streams.Stream_IO.Out_File, Name => Path);
Buffer.Initialize (Output => File'Unchecked_Access, Size => 10000);
Stream.Initialize (Output => Buffer'Unchecked_Access);
Write_Stream (Stream);
Stream.Close;
Util.Tests.Assert_Equal_Files (T => T,
Expect => Expect,
Test => Path,
Message => "JSON output serialization");
end Test_Output;
-- ------------------------------
-- Test the JSON output stream generation (simple JSON documents).
-- ------------------------------
procedure Test_Simple_Output (T : in out Test) is
function Get_Array return String;
function Get_Struct return String;
function Get_Named_Struct return String;
function Get_Integer return String;
function Get_String return String;
function Get_Array return String is
Buffer : aliased Util.Streams.Texts.Print_Stream;
Stream : Util.Serialize.IO.JSON.Output_Stream;
begin
Buffer.Initialize (Output => null, Size => 10000);
Stream.Initialize (Output => Buffer'Unchecked_Access);
Stream.Start_Document;
Stream.Start_Array ("");
Stream.Write_Entity ("", 23);
Stream.Write_Entity ("", 45);
Stream.End_Array ("");
Stream.End_Document;
Stream.Close;
return Util.Streams.Texts.To_String (Buffer);
end Get_Array;
function Get_Struct return String is
Buffer : aliased Util.Streams.Texts.Print_Stream;
Stream : Util.Serialize.IO.JSON.Output_Stream;
begin
Buffer.Initialize (Output => null, Size => 10000);
Stream.Initialize (Output => Buffer'Unchecked_Access);
Stream.Start_Document;
Stream.Start_Entity ("");
Stream.Write_Entity ("age", 23);
Stream.Write_Entity ("id", 45);
Stream.End_Entity ("");
Stream.End_Document;
Stream.Close;
return Util.Streams.Texts.To_String (Buffer);
end Get_Struct;
function Get_Named_Struct return String is
Buffer : aliased Util.Streams.Texts.Print_Stream;
Stream : Util.Serialize.IO.JSON.Output_Stream;
begin
Buffer.Initialize (Output => null, Size => 10000);
Stream.Initialize (Output => Buffer'Unchecked_Access);
Stream.Start_Document;
Stream.Start_Entity ("name");
Stream.Write_Entity ("age", 23);
Stream.Write_Entity ("id", 45);
Stream.End_Entity ("");
Stream.End_Document;
Stream.Close;
return Util.Streams.Texts.To_String (Buffer);
end Get_Named_Struct;
function Get_Integer return String is
Buffer : aliased Util.Streams.Texts.Print_Stream;
Stream : Util.Serialize.IO.JSON.Output_Stream;
begin
Buffer.Initialize (Output => null, Size => 10000);
Stream.Initialize (Output => Buffer'Unchecked_Access);
Stream.Start_Document;
Stream.Write_Entity ("", 23);
Stream.End_Document;
Stream.Close;
return Util.Streams.Texts.To_String (Buffer);
end Get_Integer;
function Get_String return String is
Buffer : aliased Util.Streams.Texts.Print_Stream;
Stream : Util.Serialize.IO.JSON.Output_Stream;
begin
Buffer.Initialize (Output => null, Size => 10000);
Stream.Initialize (Output => Buffer'Unchecked_Access);
Stream.Start_Document;
Stream.Write_Entity ("", "test");
Stream.End_Document;
Stream.Close;
return Util.Streams.Texts.To_String (Buffer);
end Get_String;
A1 : constant String := Get_Array;
S1 : constant String := Get_Struct;
S2 : constant String := Get_Named_Struct;
I1 : constant String := Get_Integer;
S3 : constant String := Get_String;
begin
Log.Error ("Array: {0}", A1);
Util.Tests.Assert_Equals (T, "[ 23, 45]", A1,
"Invalid JSON array");
Log.Error ("Struct: {0}", S1);
Util.Tests.Assert_Equals (T, "{""age"": 23,""id"": 45}", S1,
"Invalid JSON struct");
Log.Error ("Struct: {0}", S2);
Util.Tests.Assert_Equals (T, "{""name"":{""age"": 23,""id"": 45}}", S2,
"Invalid JSON struct");
Log.Error ("Struct: {0}", I1);
Util.Tests.Assert_Equals (T, " 23", I1,
"Invalid JSON struct");
Log.Error ("Struct: {0}", S3);
Util.Tests.Assert_Equals (T, """test""", S3,
"Invalid JSON struct");
end Test_Simple_Output;
-- ------------------------------
-- Test the JSON output stream generation and parsing for nullable basic types.
-- ------------------------------
procedure Test_Nullable (T : in out Test) is
Buffer : aliased Util.Streams.Texts.Print_Stream;
Stream : Util.Serialize.IO.JSON.Output_Stream;
S : Util.Nullables.Nullable_String;
B : Util.Nullables.Nullable_Boolean;
I : Util.Nullables.Nullable_Integer;
D : Util.Nullables.Nullable_Time;
begin
Buffer.Initialize (Output => null, Size => 10000);
Stream.Initialize (Output => Buffer'Unchecked_Access);
Stream.Start_Document;
Stream.Start_Entity ("");
Stream.Write_Entity ("string", S);
Stream.Write_Entity ("bool", B);
Stream.Write_Entity ("int", I);
Stream.Write_Entity ("date", D);
Stream.End_Entity ("");
Stream.End_Document;
Stream.Close;
declare
Data : constant String := Util.Streams.Texts.To_String (Buffer);
begin
Log.Error ("JSON: {0}", Data);
Util.Tests.Assert_Equals (T,
"{""string"":null,""bool"":null,""int"":null,""date"":null}",
Data,
"Invalid JSON for nullable values");
end;
end Test_Nullable;
-- ------------------------------
-- Test reading a JSON content into an Object tree.
-- ------------------------------
procedure Test_Read (T : in out Test) is
use Util.Beans.Objects;
Path : constant String := Util.Tests.Get_Test_Path ("regtests/files/pass01.json");
Root : Util.Beans.Objects.Object;
Value : Util.Beans.Objects.Object;
Item : Util.Beans.Objects.Object;
begin
Root := Read (Path);
T.Assert (not Util.Beans.Objects.Is_Null (Root), "Read should not return null object");
T.Assert (Util.Beans.Objects.Is_Array (Root), "Root object is an array");
Value := Util.Beans.Objects.Get_Value (Root, 1);
Util.Tests.Assert_Equals (T, "JSON Test Pattern pass1",
Util.Beans.Objects.To_String (Value), "Invalid first element");
Value := Util.Beans.Objects.Get_Value (Root, 4);
T.Assert (Util.Beans.Objects.Is_Array (Value), "Element 4 should be an empty array");
Util.Tests.Assert_Equals (T, 0, Util.Beans.Objects.Get_Count (Value), "Invalid array");
Value := Util.Beans.Objects.Get_Value (Root, 8);
T.Assert (Util.Beans.Objects.Is_Null (Value), "Element 8 should be null");
Value := Util.Beans.Objects.Get_Value (Root, 9);
T.Assert (not Util.Beans.Objects.Is_Null (Value), "Element 9 should not be null");
Item := Util.Beans.Objects.Get_Value (Value, "integer");
Util.Tests.Assert_Equals (T, 1234567890, Util.Beans.Objects.To_Integer (Item),
"Invalid integer value");
Item := Util.Beans.Objects.Get_Value (Value, "zero");
Util.Tests.Assert_Equals (T, 0, Util.Beans.Objects.To_Integer (Item),
"Invalid integer value (0)");
Item := Util.Beans.Objects.Get_Value (Value, "one");
Util.Tests.Assert_Equals (T, 1, Util.Beans.Objects.To_Integer (Item),
"Invalid integer value (1)");
Item := Util.Beans.Objects.Get_Value (Value, "true");
T.Assert (Util.Beans.Objects.Get_Type (Item) = TYPE_BOOLEAN,
"The value true should be a boolean");
T.Assert (Util.Beans.Objects.To_Boolean (Item),
"The value true should be... true!");
Item := Util.Beans.Objects.Get_Value (Value, "false");
T.Assert (Util.Beans.Objects.Get_Type (Item) = TYPE_BOOLEAN,
"The value false should be a boolean");
T.Assert (not Util.Beans.Objects.To_Boolean (Item),
"The value false should be... false!");
Item := Util.Beans.Objects.Get_Value (Value, " s p a c e d ");
T.Assert (Is_Array (Item), "The value should be an array");
for I in 1 .. 7 loop
Util.Tests.Assert_Equals (T, I, To_Integer (Get_Value (Item, I)),
"Invalid array value at " & Integer'Image (I));
end loop;
end Test_Read;
end Util.Serialize.IO.JSON.Tests;
|
1129
|
-----------------------------------------------------------------------
-- serialize-io-json-tests -- Unit tests for JSON parser
-- Copyright (C) 2011, 2016, 2017, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- 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.Stream_IO;
with Ada.Characters.Wide_Wide_Latin_1;
with Ada.Calendar.Formatting;
with Util.Test_Caller;
with Util.Log.Loggers;
with Util.Streams.Files;
with Util.Beans.Objects.Readers;
package body Util.Serialize.IO.JSON.Tests is
use Util.Log;
Log : constant Loggers.Logger := Loggers.Create ("Util.Serialize.IO.JSON");
package Caller is new Util.Test_Caller (Test, "Serialize.IO.JSON");
procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite) is
begin
Caller.Add_Test (Suite, "Test Util.Serialize.IO.JSON.Parse (parse errors)",
Test_Parse_Error'Access);
Caller.Add_Test (Suite, "Test Util.Serialize.IO.JSON.Parse (parse Ok)",
Test_Parser'Access);
Caller.Add_Test (Suite, "Test Util.Serialize.IO.JSON.Write",
Test_Output'Access);
Caller.Add_Test (Suite, "Test Util.Serialize.IO.JSON.Write (Simple)",
Test_Simple_Output'Access);
Caller.Add_Test (Suite, "Test Util.Serialize.IO.JSON.Write (Nullable)",
Test_Nullable'Access);
Caller.Add_Test (Suite, "Test Util.Serialize.IO.JSON.Read",
Test_Read'Access);
end Add_Tests;
-- ------------------------------
-- Check various JSON parsing errors.
-- ------------------------------
procedure Test_Parse_Error (T : in out Test) is
pragma Unreferenced (T);
procedure Check_Parse_Error (Content : in String);
procedure Check_Parse_Error (Content : in String) is
P : Parser;
R : Util.Beans.Objects.Readers.Reader;
begin
P.Parse_String (Content, R);
Log.Error ("No exception raised for: {0}", Content);
exception
when Parse_Error =>
null;
end Check_Parse_Error;
begin
Check_Parse_Error ("{ ""person"":23");
Check_Parse_Error ("{ person: 23]");
Check_Parse_Error ("[ }");
Check_Parse_Error ("{[]}");
Check_Parse_Error ("{");
Check_Parse_Error ("{[");
Check_Parse_Error ("{ ""person");
Check_Parse_Error ("{ ""person"":");
Check_Parse_Error ("{ ""person"":""asf");
Check_Parse_Error ("{ ""person"":""asf""");
Check_Parse_Error ("{ ""person"":""asf"",");
Check_Parse_Error ("{ ""person"":""\uze""}");
Check_Parse_Error ("{ ""person"":""\u012-""}");
Check_Parse_Error ("{ ""person"":""\u012G""}");
end Test_Parse_Error;
-- ------------------------------
-- Check various (basic) JSON valid strings (no mapper).
-- ------------------------------
procedure Test_Parser (T : in out Test) is
procedure Check_Parse (Content : in String);
procedure Check_Parse (Content : in String) is
P : Parser;
R : Util.Beans.Objects.Readers.Reader;
Root : Util.Beans.Objects.Object;
begin
P.Parse_String (Content, R);
Root := R.Get_Root;
T.Assert (not Util.Beans.Objects.Is_Null (Root), "Null result for " & Content);
exception
when Parse_Error =>
Log.Error ("Parse error for: " & Content);
raise;
end Check_Parse;
begin
Check_Parse ("{ ""person"":23}");
Check_Parse ("{ }");
Check_Parse ("{""person"":""asf""}");
Check_Parse ("{""person"":""asf"",""age"":""2""}");
Check_Parse ("{ ""person"":""\u0123""}");
Check_Parse ("{ ""person"":""\u4567""}");
Check_Parse ("{ ""person"":""\u89ab""}");
Check_Parse ("{ ""person"":""\ucdef""}");
Check_Parse ("{ ""person"":""\u1CDE""}");
Check_Parse ("{ ""person"":""\u2ABF""}");
Check_Parse ("[{ ""person"":""\u2ABF""}]");
Check_Parse ("""testt""");
Check_Parse ("""""");
Check_Parse ("123");
end Test_Parser;
-- ------------------------------
-- Generate some output stream for the test.
-- ------------------------------
procedure Write_Stream (Stream : in out Util.Serialize.IO.Output_Stream'Class) is
Name : Ada.Strings.Unbounded.Unbounded_String;
Wide : constant Wide_Wide_String :=
Ada.Characters.Wide_Wide_Latin_1.CR &
Ada.Characters.Wide_Wide_Latin_1.LF &
Ada.Characters.Wide_Wide_Latin_1.HT &
Wide_Wide_Character'Val (16#080#) &
Wide_Wide_Character'Val (16#1fC#) &
Wide_Wide_Character'Val (16#20AC#) & -- Euro sign
Wide_Wide_Character'Val (16#2acbf#);
T : constant Ada.Calendar.Time := Ada.Calendar.Formatting.Time_Of (2011, 11, 19, 23, 0, 0);
begin
Ada.Strings.Unbounded.Append (Name, "<NAME>");
Stream.Start_Document;
Stream.Start_Entity ("root");
Stream.Start_Entity ("person");
Stream.Write_Attribute ("id", 1);
Stream.Write_Attribute ("name", Name);
Stream.Write_Entity ("name", Name);
Stream.Write_Entity ("gender", "female");
Stream.Write_Entity ("volunteer", True);
Stream.Write_Entity ("age", 17);
Stream.Write_Entity ("date", T);
Stream.Write_Wide_Entity ("skin", "olive skin");
Stream.Start_Array ("badges");
Stream.Start_Entity ("badge");
Stream.Write_Entity ("level", "gold");
Stream.Write_Entity ("name", "<NAME>");
Stream.End_Entity ("badge");
Stream.Start_Entity ("badge");
Stream.Write_Entity ("level", "gold");
Stream.Write_Entity ("name", "<NAME>");
Stream.End_Entity ("badge");
Stream.End_Array ("badges");
Stream.Start_Entity ("district");
Stream.Write_Attribute ("id", 12);
Stream.Write_Wide_Attribute ("industry", "Coal mining");
Stream.Write_Attribute ("state", "<destroyed>");
Stream.Write_Long_Entity ("members", 10_000);
Stream.Write_Entity ("description", "<TBW>&""");
Stream.Write_Wide_Entity ("wescape", "'""<>&;,@!`~[]{}^%*()-+=");
Stream.Write_Entity ("escape", "'""<>&;,@!`~\[]{}^%*()-+=");
Stream.Write_Wide_Entity ("wide", Wide);
Stream.End_Entity ("district");
Stream.End_Entity ("person");
Stream.End_Entity ("root");
Stream.End_Document;
end Write_Stream;
-- ------------------------------
-- Test the JSON output stream generation.
-- ------------------------------
procedure Test_Output (T : in out Test) is
File : aliased Util.Streams.Files.File_Stream;
Buffer : aliased Util.Streams.Texts.Print_Stream;
Stream : Util.Serialize.IO.JSON.Output_Stream;
Expect : constant String := Util.Tests.Get_Path ("regtests/expect/test-stream.json");
Path : constant String := Util.Tests.Get_Test_Path ("regtests/result/test-stream.json");
begin
File.Create (Mode => Ada.Streams.Stream_IO.Out_File, Name => Path);
Buffer.Initialize (Output => File'Unchecked_Access, Size => 10000);
Stream.Initialize (Output => Buffer'Unchecked_Access);
Write_Stream (Stream);
Stream.Close;
Util.Tests.Assert_Equal_Files (T => T,
Expect => Expect,
Test => Path,
Message => "JSON output serialization");
end Test_Output;
-- ------------------------------
-- Test the JSON output stream generation (simple JSON documents).
-- ------------------------------
procedure Test_Simple_Output (T : in out Test) is
function Get_Array return String;
function Get_Struct return String;
function Get_Named_Struct return String;
function Get_Integer return String;
function Get_String return String;
function Get_Array return String is
Buffer : aliased Util.Streams.Texts.Print_Stream;
Stream : Util.Serialize.IO.JSON.Output_Stream;
begin
Buffer.Initialize (Output => null, Size => 10000);
Stream.Initialize (Output => Buffer'Unchecked_Access);
Stream.Start_Document;
Stream.Start_Array ("");
Stream.Write_Entity ("", 23);
Stream.Write_Entity ("", 45);
Stream.End_Array ("");
Stream.End_Document;
Stream.Close;
return Util.Streams.Texts.To_String (Buffer);
end Get_Array;
function Get_Struct return String is
Buffer : aliased Util.Streams.Texts.Print_Stream;
Stream : Util.Serialize.IO.JSON.Output_Stream;
begin
Buffer.Initialize (Output => null, Size => 10000);
Stream.Initialize (Output => Buffer'Unchecked_Access);
Stream.Start_Document;
Stream.Start_Entity ("");
Stream.Write_Entity ("age", 23);
Stream.Write_Entity ("id", 45);
Stream.End_Entity ("");
Stream.End_Document;
Stream.Close;
return Util.Streams.Texts.To_String (Buffer);
end Get_Struct;
function Get_Named_Struct return String is
Buffer : aliased Util.Streams.Texts.Print_Stream;
Stream : Util.Serialize.IO.JSON.Output_Stream;
begin
Buffer.Initialize (Output => null, Size => 10000);
Stream.Initialize (Output => Buffer'Unchecked_Access);
Stream.Start_Document;
Stream.Start_Entity ("name");
Stream.Write_Entity ("age", 23);
Stream.Write_Entity ("id", 45);
Stream.End_Entity ("");
Stream.End_Document;
Stream.Close;
return Util.Streams.Texts.To_String (Buffer);
end Get_Named_Struct;
function Get_Integer return String is
Buffer : aliased Util.Streams.Texts.Print_Stream;
Stream : Util.Serialize.IO.JSON.Output_Stream;
begin
Buffer.Initialize (Output => null, Size => 10000);
Stream.Initialize (Output => Buffer'Unchecked_Access);
Stream.Start_Document;
Stream.Write_Entity ("", 23);
Stream.End_Document;
Stream.Close;
return Util.Streams.Texts.To_String (Buffer);
end Get_Integer;
function Get_String return String is
Buffer : aliased Util.Streams.Texts.Print_Stream;
Stream : Util.Serialize.IO.JSON.Output_Stream;
begin
Buffer.Initialize (Output => null, Size => 10000);
Stream.Initialize (Output => Buffer'Unchecked_Access);
Stream.Start_Document;
Stream.Write_Entity ("", "test");
Stream.End_Document;
Stream.Close;
return Util.Streams.Texts.To_String (Buffer);
end Get_String;
A1 : constant String := Get_Array;
S1 : constant String := Get_Struct;
S2 : constant String := Get_Named_Struct;
I1 : constant String := Get_Integer;
S3 : constant String := Get_String;
begin
Log.Error ("Array: {0}", A1);
Util.Tests.Assert_Equals (T, "[ 23, 45]", A1,
"Invalid JSON array");
Log.Error ("Struct: {0}", S1);
Util.Tests.Assert_Equals (T, "{""age"": 23,""id"": 45}", S1,
"Invalid JSON struct");
Log.Error ("Struct: {0}", S2);
Util.Tests.Assert_Equals (T, "{""name"":{""age"": 23,""id"": 45}}", S2,
"Invalid JSON struct");
Log.Error ("Struct: {0}", I1);
Util.Tests.Assert_Equals (T, " 23", I1,
"Invalid JSON struct");
Log.Error ("Struct: {0}", S3);
Util.Tests.Assert_Equals (T, """test""", S3,
"Invalid JSON struct");
end Test_Simple_Output;
-- ------------------------------
-- Test the JSON output stream generation and parsing for nullable basic types.
-- ------------------------------
procedure Test_Nullable (T : in out Test) is
Buffer : aliased Util.Streams.Texts.Print_Stream;
Stream : Util.Serialize.IO.JSON.Output_Stream;
S : Util.Nullables.Nullable_String;
B : Util.Nullables.Nullable_Boolean;
I : Util.Nullables.Nullable_Integer;
D : Util.Nullables.Nullable_Time;
begin
Buffer.Initialize (Output => null, Size => 10000);
Stream.Initialize (Output => Buffer'Unchecked_Access);
Stream.Start_Document;
Stream.Start_Entity ("");
Stream.Write_Entity ("string", S);
Stream.Write_Entity ("bool", B);
Stream.Write_Entity ("int", I);
Stream.Write_Entity ("date", D);
Stream.End_Entity ("");
Stream.End_Document;
Stream.Close;
declare
Data : constant String := Util.Streams.Texts.To_String (Buffer);
begin
Log.Error ("JSON: {0}", Data);
Util.Tests.Assert_Equals (T,
"{""string"":null,""bool"":null,""int"":null,""date"":null}",
Data,
"Invalid JSON for nullable values");
end;
end Test_Nullable;
-- ------------------------------
-- Test reading a JSON content into an Object tree.
-- ------------------------------
procedure Test_Read (T : in out Test) is
use Util.Beans.Objects;
Path : constant String := Util.Tests.Get_Test_Path ("regtests/files/pass01.json");
Root : Util.Beans.Objects.Object;
Value : Util.Beans.Objects.Object;
Item : Util.Beans.Objects.Object;
begin
Root := Read (Path);
T.Assert (not Util.Beans.Objects.Is_Null (Root), "Read should not return null object");
T.Assert (Util.Beans.Objects.Is_Array (Root), "Root object is an array");
Value := Util.Beans.Objects.Get_Value (Root, 1);
Util.Tests.Assert_Equals (T, "JSON Test Pattern pass1",
Util.Beans.Objects.To_String (Value), "Invalid first element");
Value := Util.Beans.Objects.Get_Value (Root, 4);
T.Assert (Util.Beans.Objects.Is_Array (Value), "Element 4 should be an empty array");
Util.Tests.Assert_Equals (T, 0, Util.Beans.Objects.Get_Count (Value), "Invalid array");
Value := Util.Beans.Objects.Get_Value (Root, 8);
T.Assert (Util.Beans.Objects.Is_Null (Value), "Element 8 should be null");
Value := Util.Beans.Objects.Get_Value (Root, 9);
T.Assert (not Util.Beans.Objects.Is_Null (Value), "Element 9 should not be null");
Item := Util.Beans.Objects.Get_Value (Value, "integer");
Util.Tests.Assert_Equals (T, 1234567890, Util.Beans.Objects.To_Integer (Item),
"Invalid integer value");
Item := Util.Beans.Objects.Get_Value (Value, "zero");
Util.Tests.Assert_Equals (T, 0, Util.Beans.Objects.To_Integer (Item),
"Invalid integer value (0)");
Item := Util.Beans.Objects.Get_Value (Value, "one");
Util.Tests.Assert_Equals (T, 1, Util.Beans.Objects.To_Integer (Item),
"Invalid integer value (1)");
Item := Util.Beans.Objects.Get_Value (Value, "true");
T.Assert (Util.Beans.Objects.Get_Type (Item) = TYPE_BOOLEAN,
"The value true should be a boolean");
T.Assert (Util.Beans.Objects.To_Boolean (Item),
"The value true should be... true!");
Item := Util.Beans.Objects.Get_Value (Value, "false");
T.Assert (Util.Beans.Objects.Get_Type (Item) = TYPE_BOOLEAN,
"The value false should be a boolean");
T.Assert (not Util.Beans.Objects.To_Boolean (Item),
"The value false should be... false!");
Item := Util.Beans.Objects.Get_Value (Value, " s p a c e d ");
T.Assert (Is_Array (Item), "The value should be an array");
for I in 1 .. 7 loop
Util.Tests.Assert_Equals (T, I, To_Integer (Get_Value (Item, I)),
"Invalid array value at " & Integer'Image (I));
end loop;
end Test_Read;
end Util.Serialize.IO.JSON.Tests;
| true |
-----------------------------------------------------------------------
-- serialize-io-json-tests -- Unit tests for JSON parser
-- Copyright (C) 2011, 2016, 2017, 2020 PI:NAME:<NAME>END_PI
-- Written by PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
--
-- 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.Stream_IO;
with Ada.Characters.Wide_Wide_Latin_1;
with Ada.Calendar.Formatting;
with Util.Test_Caller;
with Util.Log.Loggers;
with Util.Streams.Files;
with Util.Beans.Objects.Readers;
package body Util.Serialize.IO.JSON.Tests is
use Util.Log;
Log : constant Loggers.Logger := Loggers.Create ("Util.Serialize.IO.JSON");
package Caller is new Util.Test_Caller (Test, "Serialize.IO.JSON");
procedure Add_Tests (Suite : in Util.Tests.Access_Test_Suite) is
begin
Caller.Add_Test (Suite, "Test Util.Serialize.IO.JSON.Parse (parse errors)",
Test_Parse_Error'Access);
Caller.Add_Test (Suite, "Test Util.Serialize.IO.JSON.Parse (parse Ok)",
Test_Parser'Access);
Caller.Add_Test (Suite, "Test Util.Serialize.IO.JSON.Write",
Test_Output'Access);
Caller.Add_Test (Suite, "Test Util.Serialize.IO.JSON.Write (Simple)",
Test_Simple_Output'Access);
Caller.Add_Test (Suite, "Test Util.Serialize.IO.JSON.Write (Nullable)",
Test_Nullable'Access);
Caller.Add_Test (Suite, "Test Util.Serialize.IO.JSON.Read",
Test_Read'Access);
end Add_Tests;
-- ------------------------------
-- Check various JSON parsing errors.
-- ------------------------------
procedure Test_Parse_Error (T : in out Test) is
pragma Unreferenced (T);
procedure Check_Parse_Error (Content : in String);
procedure Check_Parse_Error (Content : in String) is
P : Parser;
R : Util.Beans.Objects.Readers.Reader;
begin
P.Parse_String (Content, R);
Log.Error ("No exception raised for: {0}", Content);
exception
when Parse_Error =>
null;
end Check_Parse_Error;
begin
Check_Parse_Error ("{ ""person"":23");
Check_Parse_Error ("{ person: 23]");
Check_Parse_Error ("[ }");
Check_Parse_Error ("{[]}");
Check_Parse_Error ("{");
Check_Parse_Error ("{[");
Check_Parse_Error ("{ ""person");
Check_Parse_Error ("{ ""person"":");
Check_Parse_Error ("{ ""person"":""asf");
Check_Parse_Error ("{ ""person"":""asf""");
Check_Parse_Error ("{ ""person"":""asf"",");
Check_Parse_Error ("{ ""person"":""\uze""}");
Check_Parse_Error ("{ ""person"":""\u012-""}");
Check_Parse_Error ("{ ""person"":""\u012G""}");
end Test_Parse_Error;
-- ------------------------------
-- Check various (basic) JSON valid strings (no mapper).
-- ------------------------------
procedure Test_Parser (T : in out Test) is
procedure Check_Parse (Content : in String);
procedure Check_Parse (Content : in String) is
P : Parser;
R : Util.Beans.Objects.Readers.Reader;
Root : Util.Beans.Objects.Object;
begin
P.Parse_String (Content, R);
Root := R.Get_Root;
T.Assert (not Util.Beans.Objects.Is_Null (Root), "Null result for " & Content);
exception
when Parse_Error =>
Log.Error ("Parse error for: " & Content);
raise;
end Check_Parse;
begin
Check_Parse ("{ ""person"":23}");
Check_Parse ("{ }");
Check_Parse ("{""person"":""asf""}");
Check_Parse ("{""person"":""asf"",""age"":""2""}");
Check_Parse ("{ ""person"":""\u0123""}");
Check_Parse ("{ ""person"":""\u4567""}");
Check_Parse ("{ ""person"":""\u89ab""}");
Check_Parse ("{ ""person"":""\ucdef""}");
Check_Parse ("{ ""person"":""\u1CDE""}");
Check_Parse ("{ ""person"":""\u2ABF""}");
Check_Parse ("[{ ""person"":""\u2ABF""}]");
Check_Parse ("""testt""");
Check_Parse ("""""");
Check_Parse ("123");
end Test_Parser;
-- ------------------------------
-- Generate some output stream for the test.
-- ------------------------------
procedure Write_Stream (Stream : in out Util.Serialize.IO.Output_Stream'Class) is
Name : Ada.Strings.Unbounded.Unbounded_String;
Wide : constant Wide_Wide_String :=
Ada.Characters.Wide_Wide_Latin_1.CR &
Ada.Characters.Wide_Wide_Latin_1.LF &
Ada.Characters.Wide_Wide_Latin_1.HT &
Wide_Wide_Character'Val (16#080#) &
Wide_Wide_Character'Val (16#1fC#) &
Wide_Wide_Character'Val (16#20AC#) & -- Euro sign
Wide_Wide_Character'Val (16#2acbf#);
T : constant Ada.Calendar.Time := Ada.Calendar.Formatting.Time_Of (2011, 11, 19, 23, 0, 0);
begin
Ada.Strings.Unbounded.Append (Name, "PI:NAME:<NAME>END_PI");
Stream.Start_Document;
Stream.Start_Entity ("root");
Stream.Start_Entity ("person");
Stream.Write_Attribute ("id", 1);
Stream.Write_Attribute ("name", Name);
Stream.Write_Entity ("name", Name);
Stream.Write_Entity ("gender", "female");
Stream.Write_Entity ("volunteer", True);
Stream.Write_Entity ("age", 17);
Stream.Write_Entity ("date", T);
Stream.Write_Wide_Entity ("skin", "olive skin");
Stream.Start_Array ("badges");
Stream.Start_Entity ("badge");
Stream.Write_Entity ("level", "gold");
Stream.Write_Entity ("name", "PI:NAME:<NAME>END_PI");
Stream.End_Entity ("badge");
Stream.Start_Entity ("badge");
Stream.Write_Entity ("level", "gold");
Stream.Write_Entity ("name", "PI:NAME:<NAME>END_PI");
Stream.End_Entity ("badge");
Stream.End_Array ("badges");
Stream.Start_Entity ("district");
Stream.Write_Attribute ("id", 12);
Stream.Write_Wide_Attribute ("industry", "Coal mining");
Stream.Write_Attribute ("state", "<destroyed>");
Stream.Write_Long_Entity ("members", 10_000);
Stream.Write_Entity ("description", "<TBW>&""");
Stream.Write_Wide_Entity ("wescape", "'""<>&;,@!`~[]{}^%*()-+=");
Stream.Write_Entity ("escape", "'""<>&;,@!`~\[]{}^%*()-+=");
Stream.Write_Wide_Entity ("wide", Wide);
Stream.End_Entity ("district");
Stream.End_Entity ("person");
Stream.End_Entity ("root");
Stream.End_Document;
end Write_Stream;
-- ------------------------------
-- Test the JSON output stream generation.
-- ------------------------------
procedure Test_Output (T : in out Test) is
File : aliased Util.Streams.Files.File_Stream;
Buffer : aliased Util.Streams.Texts.Print_Stream;
Stream : Util.Serialize.IO.JSON.Output_Stream;
Expect : constant String := Util.Tests.Get_Path ("regtests/expect/test-stream.json");
Path : constant String := Util.Tests.Get_Test_Path ("regtests/result/test-stream.json");
begin
File.Create (Mode => Ada.Streams.Stream_IO.Out_File, Name => Path);
Buffer.Initialize (Output => File'Unchecked_Access, Size => 10000);
Stream.Initialize (Output => Buffer'Unchecked_Access);
Write_Stream (Stream);
Stream.Close;
Util.Tests.Assert_Equal_Files (T => T,
Expect => Expect,
Test => Path,
Message => "JSON output serialization");
end Test_Output;
-- ------------------------------
-- Test the JSON output stream generation (simple JSON documents).
-- ------------------------------
procedure Test_Simple_Output (T : in out Test) is
function Get_Array return String;
function Get_Struct return String;
function Get_Named_Struct return String;
function Get_Integer return String;
function Get_String return String;
function Get_Array return String is
Buffer : aliased Util.Streams.Texts.Print_Stream;
Stream : Util.Serialize.IO.JSON.Output_Stream;
begin
Buffer.Initialize (Output => null, Size => 10000);
Stream.Initialize (Output => Buffer'Unchecked_Access);
Stream.Start_Document;
Stream.Start_Array ("");
Stream.Write_Entity ("", 23);
Stream.Write_Entity ("", 45);
Stream.End_Array ("");
Stream.End_Document;
Stream.Close;
return Util.Streams.Texts.To_String (Buffer);
end Get_Array;
function Get_Struct return String is
Buffer : aliased Util.Streams.Texts.Print_Stream;
Stream : Util.Serialize.IO.JSON.Output_Stream;
begin
Buffer.Initialize (Output => null, Size => 10000);
Stream.Initialize (Output => Buffer'Unchecked_Access);
Stream.Start_Document;
Stream.Start_Entity ("");
Stream.Write_Entity ("age", 23);
Stream.Write_Entity ("id", 45);
Stream.End_Entity ("");
Stream.End_Document;
Stream.Close;
return Util.Streams.Texts.To_String (Buffer);
end Get_Struct;
function Get_Named_Struct return String is
Buffer : aliased Util.Streams.Texts.Print_Stream;
Stream : Util.Serialize.IO.JSON.Output_Stream;
begin
Buffer.Initialize (Output => null, Size => 10000);
Stream.Initialize (Output => Buffer'Unchecked_Access);
Stream.Start_Document;
Stream.Start_Entity ("name");
Stream.Write_Entity ("age", 23);
Stream.Write_Entity ("id", 45);
Stream.End_Entity ("");
Stream.End_Document;
Stream.Close;
return Util.Streams.Texts.To_String (Buffer);
end Get_Named_Struct;
function Get_Integer return String is
Buffer : aliased Util.Streams.Texts.Print_Stream;
Stream : Util.Serialize.IO.JSON.Output_Stream;
begin
Buffer.Initialize (Output => null, Size => 10000);
Stream.Initialize (Output => Buffer'Unchecked_Access);
Stream.Start_Document;
Stream.Write_Entity ("", 23);
Stream.End_Document;
Stream.Close;
return Util.Streams.Texts.To_String (Buffer);
end Get_Integer;
function Get_String return String is
Buffer : aliased Util.Streams.Texts.Print_Stream;
Stream : Util.Serialize.IO.JSON.Output_Stream;
begin
Buffer.Initialize (Output => null, Size => 10000);
Stream.Initialize (Output => Buffer'Unchecked_Access);
Stream.Start_Document;
Stream.Write_Entity ("", "test");
Stream.End_Document;
Stream.Close;
return Util.Streams.Texts.To_String (Buffer);
end Get_String;
A1 : constant String := Get_Array;
S1 : constant String := Get_Struct;
S2 : constant String := Get_Named_Struct;
I1 : constant String := Get_Integer;
S3 : constant String := Get_String;
begin
Log.Error ("Array: {0}", A1);
Util.Tests.Assert_Equals (T, "[ 23, 45]", A1,
"Invalid JSON array");
Log.Error ("Struct: {0}", S1);
Util.Tests.Assert_Equals (T, "{""age"": 23,""id"": 45}", S1,
"Invalid JSON struct");
Log.Error ("Struct: {0}", S2);
Util.Tests.Assert_Equals (T, "{""name"":{""age"": 23,""id"": 45}}", S2,
"Invalid JSON struct");
Log.Error ("Struct: {0}", I1);
Util.Tests.Assert_Equals (T, " 23", I1,
"Invalid JSON struct");
Log.Error ("Struct: {0}", S3);
Util.Tests.Assert_Equals (T, """test""", S3,
"Invalid JSON struct");
end Test_Simple_Output;
-- ------------------------------
-- Test the JSON output stream generation and parsing for nullable basic types.
-- ------------------------------
procedure Test_Nullable (T : in out Test) is
Buffer : aliased Util.Streams.Texts.Print_Stream;
Stream : Util.Serialize.IO.JSON.Output_Stream;
S : Util.Nullables.Nullable_String;
B : Util.Nullables.Nullable_Boolean;
I : Util.Nullables.Nullable_Integer;
D : Util.Nullables.Nullable_Time;
begin
Buffer.Initialize (Output => null, Size => 10000);
Stream.Initialize (Output => Buffer'Unchecked_Access);
Stream.Start_Document;
Stream.Start_Entity ("");
Stream.Write_Entity ("string", S);
Stream.Write_Entity ("bool", B);
Stream.Write_Entity ("int", I);
Stream.Write_Entity ("date", D);
Stream.End_Entity ("");
Stream.End_Document;
Stream.Close;
declare
Data : constant String := Util.Streams.Texts.To_String (Buffer);
begin
Log.Error ("JSON: {0}", Data);
Util.Tests.Assert_Equals (T,
"{""string"":null,""bool"":null,""int"":null,""date"":null}",
Data,
"Invalid JSON for nullable values");
end;
end Test_Nullable;
-- ------------------------------
-- Test reading a JSON content into an Object tree.
-- ------------------------------
procedure Test_Read (T : in out Test) is
use Util.Beans.Objects;
Path : constant String := Util.Tests.Get_Test_Path ("regtests/files/pass01.json");
Root : Util.Beans.Objects.Object;
Value : Util.Beans.Objects.Object;
Item : Util.Beans.Objects.Object;
begin
Root := Read (Path);
T.Assert (not Util.Beans.Objects.Is_Null (Root), "Read should not return null object");
T.Assert (Util.Beans.Objects.Is_Array (Root), "Root object is an array");
Value := Util.Beans.Objects.Get_Value (Root, 1);
Util.Tests.Assert_Equals (T, "JSON Test Pattern pass1",
Util.Beans.Objects.To_String (Value), "Invalid first element");
Value := Util.Beans.Objects.Get_Value (Root, 4);
T.Assert (Util.Beans.Objects.Is_Array (Value), "Element 4 should be an empty array");
Util.Tests.Assert_Equals (T, 0, Util.Beans.Objects.Get_Count (Value), "Invalid array");
Value := Util.Beans.Objects.Get_Value (Root, 8);
T.Assert (Util.Beans.Objects.Is_Null (Value), "Element 8 should be null");
Value := Util.Beans.Objects.Get_Value (Root, 9);
T.Assert (not Util.Beans.Objects.Is_Null (Value), "Element 9 should not be null");
Item := Util.Beans.Objects.Get_Value (Value, "integer");
Util.Tests.Assert_Equals (T, 1234567890, Util.Beans.Objects.To_Integer (Item),
"Invalid integer value");
Item := Util.Beans.Objects.Get_Value (Value, "zero");
Util.Tests.Assert_Equals (T, 0, Util.Beans.Objects.To_Integer (Item),
"Invalid integer value (0)");
Item := Util.Beans.Objects.Get_Value (Value, "one");
Util.Tests.Assert_Equals (T, 1, Util.Beans.Objects.To_Integer (Item),
"Invalid integer value (1)");
Item := Util.Beans.Objects.Get_Value (Value, "true");
T.Assert (Util.Beans.Objects.Get_Type (Item) = TYPE_BOOLEAN,
"The value true should be a boolean");
T.Assert (Util.Beans.Objects.To_Boolean (Item),
"The value true should be... true!");
Item := Util.Beans.Objects.Get_Value (Value, "false");
T.Assert (Util.Beans.Objects.Get_Type (Item) = TYPE_BOOLEAN,
"The value false should be a boolean");
T.Assert (not Util.Beans.Objects.To_Boolean (Item),
"The value false should be... false!");
Item := Util.Beans.Objects.Get_Value (Value, " s p a c e d ");
T.Assert (Is_Array (Item), "The value should be an array");
for I in 1 .. 7 loop
Util.Tests.Assert_Equals (T, I, To_Integer (Get_Value (Item, I)),
"Invalid array value at " & Integer'Image (I));
end loop;
end Test_Read;
end Util.Serialize.IO.JSON.Tests;
|
[
{
"context": "-- Copyright (c) 2019 Maxim Reznik <[email protected]>\n--\n-- SPDX-License-Identifi",
"end": 35,
"score": 0.9998550415039062,
"start": 23,
"tag": "NAME",
"value": "Maxim Reznik"
},
{
"context": "-- Copyright (c) 2019 Maxim Reznik <[email protected]>\n--\n-- SPDX-License-Identifier: MIT\n-- License-",
"end": 55,
"score": 0.9999308586120605,
"start": 37,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
source/slim-messages-meta.ads
|
reznikmm/slimp
| 0 |
-- Copyright (c) 2019 Maxim Reznik <[email protected]>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with League.Strings;
package Slim.Messages.META is
type META_Message is new Message with private;
not overriding function Value (Self : META_Message)
return League.Strings.Universal_String;
private
subtype Byte is Ada.Streams.Stream_Element;
type META_Message is new Message with record
Value : League.Strings.Universal_String;
end record;
overriding function Read
(Data : not null access
League.Stream_Element_Vectors.Stream_Element_Vector)
return META_Message;
overriding procedure Write
(Self : META_Message;
Tag : out Message_Tag;
Data : out League.Stream_Element_Vectors.Stream_Element_Vector);
overriding procedure Visit
(Self : not null access META_Message;
Visiter : in out Slim.Message_Visiters.Visiter'Class);
end Slim.Messages.META;
|
15253
|
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with League.Strings;
package Slim.Messages.META is
type META_Message is new Message with private;
not overriding function Value (Self : META_Message)
return League.Strings.Universal_String;
private
subtype Byte is Ada.Streams.Stream_Element;
type META_Message is new Message with record
Value : League.Strings.Universal_String;
end record;
overriding function Read
(Data : not null access
League.Stream_Element_Vectors.Stream_Element_Vector)
return META_Message;
overriding procedure Write
(Self : META_Message;
Tag : out Message_Tag;
Data : out League.Stream_Element_Vectors.Stream_Element_Vector);
overriding procedure Visit
(Self : not null access META_Message;
Visiter : in out Slim.Message_Visiters.Visiter'Class);
end Slim.Messages.META;
| true |
-- Copyright (c) 2019 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with League.Strings;
package Slim.Messages.META is
type META_Message is new Message with private;
not overriding function Value (Self : META_Message)
return League.Strings.Universal_String;
private
subtype Byte is Ada.Streams.Stream_Element;
type META_Message is new Message with record
Value : League.Strings.Universal_String;
end record;
overriding function Read
(Data : not null access
League.Stream_Element_Vectors.Stream_Element_Vector)
return META_Message;
overriding procedure Write
(Self : META_Message;
Tag : out Message_Tag;
Data : out League.Stream_Element_Vectors.Stream_Element_Vector);
overriding procedure Visit
(Self : not null access META_Message;
Visiter : in out Slim.Message_Visiters.Visiter'Class);
end Slim.Messages.META;
|
[
{
"context": "s -- Stream utilities\n-- Copyright (C) 2010, 2011 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@g",
"end": 153,
"score": 0.9998759031295776,
"start": 138,
"tag": "NAME",
"value": "Stephane Carrez"
},
{
"context": "ight (C) 2010, 2011 Stephane Carrez\n-- Written by Stephane Carrez ([email protected])\n--\n-- Licensed under",
"end": 184,
"score": 0.9998806715011597,
"start": 169,
"tag": "NAME",
"value": "Stephane Carrez"
},
{
"context": "1 Stephane Carrez\n-- Written by Stephane Carrez ([email protected])\n--\n-- Licensed under the Apache License, Versio",
"end": 211,
"score": 0.9999289512634277,
"start": 186,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
src/util-streams.adb
|
Letractively/ada-util
| 0 |
-----------------------------------------------------------------------
-- Util.Streams -- Stream utilities
-- Copyright (C) 2010, 2011 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.
-----------------------------------------------------------------------
package body Util.Streams is
use Ada.Streams;
-- ------------------------------
-- Copy the input stream to the output stream until the end of the input stream
-- is reached.
-- ------------------------------
procedure Copy (From : in out Input_Stream'Class;
Into : in out Output_Stream'Class) is
Buffer : Stream_Element_Array (0 .. 4_096);
Last : Stream_Element_Offset;
begin
loop
From.Read (Buffer, Last);
if Last > Buffer'First then
Into.Write (Buffer (Buffer'First .. Last));
end if;
exit when Last < Buffer'Last;
end loop;
end Copy;
end Util.Streams;
|
20708
|
-----------------------------------------------------------------------
-- Util.Streams -- Stream utilities
-- Copyright (C) 2010, 2011 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- 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 body Util.Streams is
use Ada.Streams;
-- ------------------------------
-- Copy the input stream to the output stream until the end of the input stream
-- is reached.
-- ------------------------------
procedure Copy (From : in out Input_Stream'Class;
Into : in out Output_Stream'Class) is
Buffer : Stream_Element_Array (0 .. 4_096);
Last : Stream_Element_Offset;
begin
loop
From.Read (Buffer, Last);
if Last > Buffer'First then
Into.Write (Buffer (Buffer'First .. Last));
end if;
exit when Last < Buffer'Last;
end loop;
end Copy;
end Util.Streams;
| true |
-----------------------------------------------------------------------
-- Util.Streams -- Stream utilities
-- Copyright (C) 2010, 2011 PI:NAME:<NAME>END_PI
-- Written by PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
--
-- 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 body Util.Streams is
use Ada.Streams;
-- ------------------------------
-- Copy the input stream to the output stream until the end of the input stream
-- is reached.
-- ------------------------------
procedure Copy (From : in out Input_Stream'Class;
Into : in out Output_Stream'Class) is
Buffer : Stream_Element_Array (0 .. 4_096);
Last : Stream_Element_Offset;
begin
loop
From.Read (Buffer, Last);
if Last > Buffer'First then
Into.Write (Buffer (Buffer'First .. Last));
end if;
exit when Last < Buffer'Last;
end loop;
end Copy;
end Util.Streams;
|
[
{
"context": "e-Identifier: Apache-2.0\n--\n-- Copyright (c) 2019 onox <[email protected]>\n--\n-- Licensed under the A",
"end": 70,
"score": 0.9993691444396973,
"start": 66,
"tag": "USERNAME",
"value": "onox"
},
{
"context": "ifier: Apache-2.0\n--\n-- Copyright (c) 2019 onox <[email protected]>\n--\n-- Licensed under the Apache License, Versio",
"end": 91,
"score": 0.999923825263977,
"start": 72,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
orka/src/orka/interface/orka-inputs-joysticks-filtering.ads
|
onox/orka
| 52 |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2019 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.
with Ada.Numerics;
package Orka.Inputs.Joysticks.Filtering is
pragma Preelaborate;
function RC (Cutoff_Frequency : GL.Types.Single) return GL.Types.Single is
(1.0 / (2.0 * Ada.Numerics.Pi * Cutoff_Frequency));
-- Return the RC for a given cutoff frequency in Hertz
--
-- 1
-- fc = ---------
-- 2*Pi * RC
function Low_Pass_Filter
(Current, Last : Axis_Position;
RC, DT : GL.Types.Single) return Axis_Position;
function Dead_Zone (Value, Threshold : Axis_Position) return Axis_Position
with Pre => Threshold >= 0.0;
function Invert (Value : Axis_Position; Enable : Boolean) return Axis_Position;
end Orka.Inputs.Joysticks.Filtering;
|
1782
|
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2019 onox <<EMAIL>>
--
-- 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.Numerics;
package Orka.Inputs.Joysticks.Filtering is
pragma Preelaborate;
function RC (Cutoff_Frequency : GL.Types.Single) return GL.Types.Single is
(1.0 / (2.0 * Ada.Numerics.Pi * Cutoff_Frequency));
-- Return the RC for a given cutoff frequency in Hertz
--
-- 1
-- fc = ---------
-- 2*Pi * RC
function Low_Pass_Filter
(Current, Last : Axis_Position;
RC, DT : GL.Types.Single) return Axis_Position;
function Dead_Zone (Value, Threshold : Axis_Position) return Axis_Position
with Pre => Threshold >= 0.0;
function Invert (Value : Axis_Position; Enable : Boolean) return Axis_Position;
end Orka.Inputs.Joysticks.Filtering;
| true |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2019 onox <PI:EMAIL:<EMAIL>END_PI>
--
-- 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.Numerics;
package Orka.Inputs.Joysticks.Filtering is
pragma Preelaborate;
function RC (Cutoff_Frequency : GL.Types.Single) return GL.Types.Single is
(1.0 / (2.0 * Ada.Numerics.Pi * Cutoff_Frequency));
-- Return the RC for a given cutoff frequency in Hertz
--
-- 1
-- fc = ---------
-- 2*Pi * RC
function Low_Pass_Filter
(Current, Last : Axis_Position;
RC, DT : GL.Types.Single) return Axis_Position;
function Dead_Zone (Value, Threshold : Axis_Position) return Axis_Position
with Pre => Threshold >= 0.0;
function Invert (Value : Axis_Position; Enable : Boolean) return Axis_Position;
end Orka.Inputs.Joysticks.Filtering;
|
[
{
"context": "-- Copyright (c) 2019 Maxim Reznik <[email protected]>\n--\n-- SPDX-License-Identifi",
"end": 35,
"score": 0.9998520016670227,
"start": 23,
"tag": "NAME",
"value": "Maxim Reznik"
},
{
"context": "-- Copyright (c) 2019 Maxim Reznik <[email protected]>\n--\n-- SPDX-License-Identifier: MIT\n-- License-",
"end": 55,
"score": 0.9999315738677979,
"start": 37,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
source/nodes/program-nodes-simple_expression_ranges.ads
|
optikos/oasis
| 0 |
-- Copyright (c) 2019 Maxim Reznik <[email protected]>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Expressions;
with Program.Lexical_Elements;
with Program.Elements.Simple_Expression_Ranges;
with Program.Element_Visitors;
package Program.Nodes.Simple_Expression_Ranges is
pragma Preelaborate;
type Simple_Expression_Range is
new Program.Nodes.Node
and Program.Elements.Simple_Expression_Ranges.Simple_Expression_Range
and Program.Elements.Simple_Expression_Ranges
.Simple_Expression_Range_Text
with private;
function Create
(Lower_Bound : not null Program.Elements.Expressions
.Expression_Access;
Double_Dot_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Upper_Bound : not null Program.Elements.Expressions
.Expression_Access)
return Simple_Expression_Range;
type Implicit_Simple_Expression_Range is
new Program.Nodes.Node
and Program.Elements.Simple_Expression_Ranges.Simple_Expression_Range
with private;
function Create
(Lower_Bound : not null Program.Elements.Expressions
.Expression_Access;
Upper_Bound : not null Program.Elements.Expressions
.Expression_Access;
Is_Part_Of_Implicit : Boolean := False;
Is_Part_Of_Inherited : Boolean := False;
Is_Part_Of_Instance : Boolean := False)
return Implicit_Simple_Expression_Range
with Pre =>
Is_Part_Of_Implicit or Is_Part_Of_Inherited or Is_Part_Of_Instance;
private
type Base_Simple_Expression_Range is
abstract new Program.Nodes.Node
and Program.Elements.Simple_Expression_Ranges.Simple_Expression_Range
with record
Lower_Bound : not null Program.Elements.Expressions.Expression_Access;
Upper_Bound : not null Program.Elements.Expressions.Expression_Access;
end record;
procedure Initialize
(Self : aliased in out Base_Simple_Expression_Range'Class);
overriding procedure Visit
(Self : not null access Base_Simple_Expression_Range;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class);
overriding function Lower_Bound
(Self : Base_Simple_Expression_Range)
return not null Program.Elements.Expressions.Expression_Access;
overriding function Upper_Bound
(Self : Base_Simple_Expression_Range)
return not null Program.Elements.Expressions.Expression_Access;
overriding function Is_Simple_Expression_Range_Element
(Self : Base_Simple_Expression_Range)
return Boolean;
overriding function Is_Constraint_Element
(Self : Base_Simple_Expression_Range)
return Boolean;
overriding function Is_Definition_Element
(Self : Base_Simple_Expression_Range)
return Boolean;
type Simple_Expression_Range is
new Base_Simple_Expression_Range
and Program.Elements.Simple_Expression_Ranges
.Simple_Expression_Range_Text
with record
Double_Dot_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
end record;
overriding function To_Simple_Expression_Range_Text
(Self : aliased in out Simple_Expression_Range)
return Program.Elements.Simple_Expression_Ranges
.Simple_Expression_Range_Text_Access;
overriding function Double_Dot_Token
(Self : Simple_Expression_Range)
return not null Program.Lexical_Elements.Lexical_Element_Access;
type Implicit_Simple_Expression_Range is
new Base_Simple_Expression_Range
with record
Is_Part_Of_Implicit : Boolean;
Is_Part_Of_Inherited : Boolean;
Is_Part_Of_Instance : Boolean;
end record;
overriding function To_Simple_Expression_Range_Text
(Self : aliased in out Implicit_Simple_Expression_Range)
return Program.Elements.Simple_Expression_Ranges
.Simple_Expression_Range_Text_Access;
overriding function Is_Part_Of_Implicit
(Self : Implicit_Simple_Expression_Range)
return Boolean;
overriding function Is_Part_Of_Inherited
(Self : Implicit_Simple_Expression_Range)
return Boolean;
overriding function Is_Part_Of_Instance
(Self : Implicit_Simple_Expression_Range)
return Boolean;
end Program.Nodes.Simple_Expression_Ranges;
|
18527
|
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Expressions;
with Program.Lexical_Elements;
with Program.Elements.Simple_Expression_Ranges;
with Program.Element_Visitors;
package Program.Nodes.Simple_Expression_Ranges is
pragma Preelaborate;
type Simple_Expression_Range is
new Program.Nodes.Node
and Program.Elements.Simple_Expression_Ranges.Simple_Expression_Range
and Program.Elements.Simple_Expression_Ranges
.Simple_Expression_Range_Text
with private;
function Create
(Lower_Bound : not null Program.Elements.Expressions
.Expression_Access;
Double_Dot_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Upper_Bound : not null Program.Elements.Expressions
.Expression_Access)
return Simple_Expression_Range;
type Implicit_Simple_Expression_Range is
new Program.Nodes.Node
and Program.Elements.Simple_Expression_Ranges.Simple_Expression_Range
with private;
function Create
(Lower_Bound : not null Program.Elements.Expressions
.Expression_Access;
Upper_Bound : not null Program.Elements.Expressions
.Expression_Access;
Is_Part_Of_Implicit : Boolean := False;
Is_Part_Of_Inherited : Boolean := False;
Is_Part_Of_Instance : Boolean := False)
return Implicit_Simple_Expression_Range
with Pre =>
Is_Part_Of_Implicit or Is_Part_Of_Inherited or Is_Part_Of_Instance;
private
type Base_Simple_Expression_Range is
abstract new Program.Nodes.Node
and Program.Elements.Simple_Expression_Ranges.Simple_Expression_Range
with record
Lower_Bound : not null Program.Elements.Expressions.Expression_Access;
Upper_Bound : not null Program.Elements.Expressions.Expression_Access;
end record;
procedure Initialize
(Self : aliased in out Base_Simple_Expression_Range'Class);
overriding procedure Visit
(Self : not null access Base_Simple_Expression_Range;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class);
overriding function Lower_Bound
(Self : Base_Simple_Expression_Range)
return not null Program.Elements.Expressions.Expression_Access;
overriding function Upper_Bound
(Self : Base_Simple_Expression_Range)
return not null Program.Elements.Expressions.Expression_Access;
overriding function Is_Simple_Expression_Range_Element
(Self : Base_Simple_Expression_Range)
return Boolean;
overriding function Is_Constraint_Element
(Self : Base_Simple_Expression_Range)
return Boolean;
overriding function Is_Definition_Element
(Self : Base_Simple_Expression_Range)
return Boolean;
type Simple_Expression_Range is
new Base_Simple_Expression_Range
and Program.Elements.Simple_Expression_Ranges
.Simple_Expression_Range_Text
with record
Double_Dot_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
end record;
overriding function To_Simple_Expression_Range_Text
(Self : aliased in out Simple_Expression_Range)
return Program.Elements.Simple_Expression_Ranges
.Simple_Expression_Range_Text_Access;
overriding function Double_Dot_Token
(Self : Simple_Expression_Range)
return not null Program.Lexical_Elements.Lexical_Element_Access;
type Implicit_Simple_Expression_Range is
new Base_Simple_Expression_Range
with record
Is_Part_Of_Implicit : Boolean;
Is_Part_Of_Inherited : Boolean;
Is_Part_Of_Instance : Boolean;
end record;
overriding function To_Simple_Expression_Range_Text
(Self : aliased in out Implicit_Simple_Expression_Range)
return Program.Elements.Simple_Expression_Ranges
.Simple_Expression_Range_Text_Access;
overriding function Is_Part_Of_Implicit
(Self : Implicit_Simple_Expression_Range)
return Boolean;
overriding function Is_Part_Of_Inherited
(Self : Implicit_Simple_Expression_Range)
return Boolean;
overriding function Is_Part_Of_Instance
(Self : Implicit_Simple_Expression_Range)
return Boolean;
end Program.Nodes.Simple_Expression_Ranges;
| true |
-- Copyright (c) 2019 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Expressions;
with Program.Lexical_Elements;
with Program.Elements.Simple_Expression_Ranges;
with Program.Element_Visitors;
package Program.Nodes.Simple_Expression_Ranges is
pragma Preelaborate;
type Simple_Expression_Range is
new Program.Nodes.Node
and Program.Elements.Simple_Expression_Ranges.Simple_Expression_Range
and Program.Elements.Simple_Expression_Ranges
.Simple_Expression_Range_Text
with private;
function Create
(Lower_Bound : not null Program.Elements.Expressions
.Expression_Access;
Double_Dot_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Upper_Bound : not null Program.Elements.Expressions
.Expression_Access)
return Simple_Expression_Range;
type Implicit_Simple_Expression_Range is
new Program.Nodes.Node
and Program.Elements.Simple_Expression_Ranges.Simple_Expression_Range
with private;
function Create
(Lower_Bound : not null Program.Elements.Expressions
.Expression_Access;
Upper_Bound : not null Program.Elements.Expressions
.Expression_Access;
Is_Part_Of_Implicit : Boolean := False;
Is_Part_Of_Inherited : Boolean := False;
Is_Part_Of_Instance : Boolean := False)
return Implicit_Simple_Expression_Range
with Pre =>
Is_Part_Of_Implicit or Is_Part_Of_Inherited or Is_Part_Of_Instance;
private
type Base_Simple_Expression_Range is
abstract new Program.Nodes.Node
and Program.Elements.Simple_Expression_Ranges.Simple_Expression_Range
with record
Lower_Bound : not null Program.Elements.Expressions.Expression_Access;
Upper_Bound : not null Program.Elements.Expressions.Expression_Access;
end record;
procedure Initialize
(Self : aliased in out Base_Simple_Expression_Range'Class);
overriding procedure Visit
(Self : not null access Base_Simple_Expression_Range;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class);
overriding function Lower_Bound
(Self : Base_Simple_Expression_Range)
return not null Program.Elements.Expressions.Expression_Access;
overriding function Upper_Bound
(Self : Base_Simple_Expression_Range)
return not null Program.Elements.Expressions.Expression_Access;
overriding function Is_Simple_Expression_Range_Element
(Self : Base_Simple_Expression_Range)
return Boolean;
overriding function Is_Constraint_Element
(Self : Base_Simple_Expression_Range)
return Boolean;
overriding function Is_Definition_Element
(Self : Base_Simple_Expression_Range)
return Boolean;
type Simple_Expression_Range is
new Base_Simple_Expression_Range
and Program.Elements.Simple_Expression_Ranges
.Simple_Expression_Range_Text
with record
Double_Dot_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
end record;
overriding function To_Simple_Expression_Range_Text
(Self : aliased in out Simple_Expression_Range)
return Program.Elements.Simple_Expression_Ranges
.Simple_Expression_Range_Text_Access;
overriding function Double_Dot_Token
(Self : Simple_Expression_Range)
return not null Program.Lexical_Elements.Lexical_Element_Access;
type Implicit_Simple_Expression_Range is
new Base_Simple_Expression_Range
with record
Is_Part_Of_Implicit : Boolean;
Is_Part_Of_Inherited : Boolean;
Is_Part_Of_Instance : Boolean;
end record;
overriding function To_Simple_Expression_Range_Text
(Self : aliased in out Implicit_Simple_Expression_Range)
return Program.Elements.Simple_Expression_Ranges
.Simple_Expression_Range_Text_Access;
overriding function Is_Part_Of_Implicit
(Self : Implicit_Simple_Expression_Range)
return Boolean;
overriding function Is_Part_Of_Inherited
(Self : Implicit_Simple_Expression_Range)
return Boolean;
overriding function Is_Part_Of_Instance
(Self : Implicit_Simple_Expression_Range)
return Boolean;
end Program.Nodes.Simple_Expression_Ranges;
|
[
{
"context": "s.\n -- *\n -- * Copyright (C) 1996-2020 by\n -- * David Turner, Robert Wilhelm, and Werner Lemberg.\n -- *\n -- ",
"end": 320,
"score": 0.9998242259025574,
"start": 308,
"tag": "NAME",
"value": "David Turner"
},
{
"context": " * Copyright (C) 1996-2020 by\n -- * David Turner, Robert Wilhelm, and Werner Lemberg.\n -- *\n -- * This file is p",
"end": 336,
"score": 0.9998070597648621,
"start": 322,
"tag": "NAME",
"value": "Robert Wilhelm"
},
{
"context": "6-2020 by\n -- * David Turner, Robert Wilhelm, and Werner Lemberg.\n -- *\n -- * This file is part of the FreeType ",
"end": 356,
"score": 0.9998300671577454,
"start": 342,
"tag": "NAME",
"value": "Werner Lemberg"
}
] |
include/ft2build.ads
|
docandrew/troodon
| 5 |
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
package ft2build is
--***************************************************************************
-- *
-- * ft2build.h
-- *
-- * FreeType 2 build and setup macros.
-- *
-- * Copyright (C) 1996-2020 by
-- * David Turner, Robert Wilhelm, and Werner Lemberg.
-- *
-- * This file is part of the FreeType project, and may only be used,
-- * modified, and distributed under the terms of the FreeType project
-- * license, LICENSE.TXT. By continuing to use, modify, or distribute
-- * this file you indicate that you have read the license and
-- * understand and accept it fully.
-- *
--
--*************************************************************************
-- *
-- * This is the 'entry point' for FreeType header file inclusions, to be
-- * loaded before all other header files.
-- *
-- * A typical example is
-- *
-- * ```
-- * #include <ft2build.h>
-- * #include <freetype/freetype.h>
-- * ```
-- *
--
-- END
end ft2build;
|
19872
|
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
package ft2build is
--***************************************************************************
-- *
-- * ft2build.h
-- *
-- * FreeType 2 build and setup macros.
-- *
-- * Copyright (C) 1996-2020 by
-- * <NAME>, <NAME>, and <NAME>.
-- *
-- * This file is part of the FreeType project, and may only be used,
-- * modified, and distributed under the terms of the FreeType project
-- * license, LICENSE.TXT. By continuing to use, modify, or distribute
-- * this file you indicate that you have read the license and
-- * understand and accept it fully.
-- *
--
--*************************************************************************
-- *
-- * This is the 'entry point' for FreeType header file inclusions, to be
-- * loaded before all other header files.
-- *
-- * A typical example is
-- *
-- * ```
-- * #include <ft2build.h>
-- * #include <freetype/freetype.h>
-- * ```
-- *
--
-- END
end ft2build;
| true |
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
package ft2build is
--***************************************************************************
-- *
-- * ft2build.h
-- *
-- * FreeType 2 build and setup macros.
-- *
-- * Copyright (C) 1996-2020 by
-- * PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI, and PI:NAME:<NAME>END_PI.
-- *
-- * This file is part of the FreeType project, and may only be used,
-- * modified, and distributed under the terms of the FreeType project
-- * license, LICENSE.TXT. By continuing to use, modify, or distribute
-- * this file you indicate that you have read the license and
-- * understand and accept it fully.
-- *
--
--*************************************************************************
-- *
-- * This is the 'entry point' for FreeType header file inclusions, to be
-- * loaded before all other header files.
-- *
-- * A typical example is
-- *
-- * ```
-- * #include <ft2build.h>
-- * #include <freetype/freetype.h>
-- * ```
-- *
--
-- END
end ft2build;
|
[
{
"context": "rays -- Static index arrays\n-- Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@g",
"end": 154,
"score": 0.9998695254325867,
"start": 139,
"tag": "NAME",
"value": "Stephane Carrez"
},
{
"context": " Copyright (C) 2015 Stephane Carrez\n-- Written by Stephane Carrez ([email protected])\n--\n-- Licensed under",
"end": 185,
"score": 0.9998756647109985,
"start": 170,
"tag": "NAME",
"value": "Stephane Carrez"
},
{
"context": "5 Stephane Carrez\n-- Written by Stephane Carrez ([email protected])\n--\n-- Licensed under the Apache License, Versio",
"end": 212,
"score": 0.9999268651008606,
"start": 187,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
awa/src/awa-index_arrays.adb
|
fuzzysloth/ada-awa
| 81 |
-----------------------------------------------------------------------
-- awa-index_arrays -- Static index arrays
-- Copyright (C) 2015 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 Ada.Unchecked_Deallocation;
package body AWA.Index_Arrays is
Log : constant Util.Log.Loggers.Logger := Util.Log.Loggers.Create ("AWA.Index_Arrays");
type Name_Pair is record
Name : Element_Type_Access := null;
Index : Index_Type := Index_Type'First;
end record;
type Name_Pair_Array is array (Index_Type range <>) of Name_Pair;
type Name_Pair_Array_Access is access all Name_Pair_Array;
type Name_Array is array (Index_Type range <>) of Element_Type_Access;
type Name_Array_Access is access all Name_Array;
-- Register a definition by its name and allocate a unique runtime index.
procedure Add_Index (Name : in Element_Type_Access;
Index : out Index_Type);
-- A static list of names. This array is created during the elaboration
-- of definitions. It is sorted on names.
Indexes : Name_Pair_Array_Access;
-- A static list of names indexed by the index.
Names : Name_Array_Access;
-- The index of the last definition.
Last_Index : Index_Type := Index_Type'First;
-- ------------------------------
-- Register a definition by its name and allocate a unique runtime index.
-- ------------------------------
procedure Add_Index (Name : in Element_Type_Access;
Index : out Index_Type) is
procedure Free is
new Ada.Unchecked_Deallocation (Object => Name_Pair_Array,
Name => Name_Pair_Array_Access);
procedure Free is
new Ada.Unchecked_Deallocation (Object => Name_Array,
Name => Name_Array_Access);
Left : Index_Type := Index_Type'First + 1;
Right : Index_Type := Last_Index;
begin
-- Check the storage and allocate it if necessary.
if Indexes = null then
Indexes := new Name_Pair_Array (Index_Type'First + 1 .. Index_Type'First + 10);
Names := new Name_Array (Index_Type'First + 1 .. Index_Type'First + 10);
elsif Indexes'Last = Last_Index then
declare
E : constant Name_Pair_Array_Access
:= new Name_Pair_Array (1 .. Last_Index + 10);
N : constant Name_Array_Access := new Name_Array (1 .. Last_Index + 10);
begin
E (Indexes'Range) := Indexes.all;
N (Names'Range) := Names.all;
Free (Indexes);
Free (Names);
Names := N;
Indexes := E;
end;
end if;
-- Find the definition position within the sorted table.
-- If a definition is already registered, bark and re-use the previous index.
while Left <= Right loop
declare
Pos : constant Index_Type := (Left + Right + 1) / 2;
Item : constant Element_Type_Access := Indexes (Pos).Name;
begin
if Name.all = Item.all then
Log.Error ("Definition " & Name.all & " is already registered.");
Index := Indexes (Pos).Index;
return;
elsif Name.all < Item.all then
Right := Pos - 1;
else
Left := Pos + 1;
end if;
end;
end loop;
-- Insert the new definition at the good position now.
if Left = 0 then
Left := Left + 1;
end if;
if Left <= Last_Index then
Indexes (Left + 1 .. Last_Index + 1) := Indexes (Left .. Last_Index);
end if;
Last_Index := Last_Index + 1;
Indexes (Left).Name := Name;
Indexes (Left).Index := Last_Index;
Names (Last_Index) := Name;
Index := Last_Index;
Log.Debug ("Definition " & Name.all & " index is {0}", Index_Type'Image (Index));
end Add_Index;
-- ------------------------------
-- Declare a new definition
-- ------------------------------
package body Definition is
Index : Index_Type;
Index_Name : aliased constant Element_Type := Name;
function Kind return Index_Type is
begin
return Index;
end Kind;
begin
Add_Index (Index_Name'Access, Index);
end Definition;
-- ------------------------------
-- Find the runtime index given the name.
-- Raises Not_Found exception if the name is not recognized.
-- ------------------------------
function Find (Name : in Element_Type) return Index_Type is
Left : Index_Type := 1;
Right : Index_Type := Last_Index;
begin
while Left <= Right loop
declare
Pos : constant Index_Type := (Left + Right + 1) / 2;
Item : constant Element_Type_Access := Indexes (Pos).Name;
begin
if Name = Item.all then
return Indexes (Pos).Index;
elsif Name < Item.all then
Right := Pos - 1;
else
Left := Pos + 1;
end if;
end;
end loop;
Log.Error ("Definition " & Name & " not recognized.");
raise Not_Found with "Definition " & Name & " not found";
end Find;
-- ------------------------------
-- Get the element associated with the index.
-- ------------------------------
function Get_Element (Index : in Index_Type) return Element_Type_Access is
begin
if Index = Invalid_Index or Index > Last_Index then
Log.Error ("Index {0} is out of bounds", Index_Type'Image (Index));
raise Not_Found;
end if;
return Names (Index);
end Get_Element;
-- ------------------------------
-- Check if the index is a valid index.
-- ------------------------------
function Is_Valid (Index : in Index_Type) return Boolean is
begin
return Index > Invalid_Index and Index <= Last_Index;
end Is_Valid;
-- ------------------------------
-- Get the last valid index.
-- ------------------------------
function Get_Last return Index_Type is
begin
return Last_Index;
end Get_Last;
end AWA.Index_Arrays;
|
19349
|
-----------------------------------------------------------------------
-- awa-index_arrays -- Static index arrays
-- Copyright (C) 2015 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- 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 Ada.Unchecked_Deallocation;
package body AWA.Index_Arrays is
Log : constant Util.Log.Loggers.Logger := Util.Log.Loggers.Create ("AWA.Index_Arrays");
type Name_Pair is record
Name : Element_Type_Access := null;
Index : Index_Type := Index_Type'First;
end record;
type Name_Pair_Array is array (Index_Type range <>) of Name_Pair;
type Name_Pair_Array_Access is access all Name_Pair_Array;
type Name_Array is array (Index_Type range <>) of Element_Type_Access;
type Name_Array_Access is access all Name_Array;
-- Register a definition by its name and allocate a unique runtime index.
procedure Add_Index (Name : in Element_Type_Access;
Index : out Index_Type);
-- A static list of names. This array is created during the elaboration
-- of definitions. It is sorted on names.
Indexes : Name_Pair_Array_Access;
-- A static list of names indexed by the index.
Names : Name_Array_Access;
-- The index of the last definition.
Last_Index : Index_Type := Index_Type'First;
-- ------------------------------
-- Register a definition by its name and allocate a unique runtime index.
-- ------------------------------
procedure Add_Index (Name : in Element_Type_Access;
Index : out Index_Type) is
procedure Free is
new Ada.Unchecked_Deallocation (Object => Name_Pair_Array,
Name => Name_Pair_Array_Access);
procedure Free is
new Ada.Unchecked_Deallocation (Object => Name_Array,
Name => Name_Array_Access);
Left : Index_Type := Index_Type'First + 1;
Right : Index_Type := Last_Index;
begin
-- Check the storage and allocate it if necessary.
if Indexes = null then
Indexes := new Name_Pair_Array (Index_Type'First + 1 .. Index_Type'First + 10);
Names := new Name_Array (Index_Type'First + 1 .. Index_Type'First + 10);
elsif Indexes'Last = Last_Index then
declare
E : constant Name_Pair_Array_Access
:= new Name_Pair_Array (1 .. Last_Index + 10);
N : constant Name_Array_Access := new Name_Array (1 .. Last_Index + 10);
begin
E (Indexes'Range) := Indexes.all;
N (Names'Range) := Names.all;
Free (Indexes);
Free (Names);
Names := N;
Indexes := E;
end;
end if;
-- Find the definition position within the sorted table.
-- If a definition is already registered, bark and re-use the previous index.
while Left <= Right loop
declare
Pos : constant Index_Type := (Left + Right + 1) / 2;
Item : constant Element_Type_Access := Indexes (Pos).Name;
begin
if Name.all = Item.all then
Log.Error ("Definition " & Name.all & " is already registered.");
Index := Indexes (Pos).Index;
return;
elsif Name.all < Item.all then
Right := Pos - 1;
else
Left := Pos + 1;
end if;
end;
end loop;
-- Insert the new definition at the good position now.
if Left = 0 then
Left := Left + 1;
end if;
if Left <= Last_Index then
Indexes (Left + 1 .. Last_Index + 1) := Indexes (Left .. Last_Index);
end if;
Last_Index := Last_Index + 1;
Indexes (Left).Name := Name;
Indexes (Left).Index := Last_Index;
Names (Last_Index) := Name;
Index := Last_Index;
Log.Debug ("Definition " & Name.all & " index is {0}", Index_Type'Image (Index));
end Add_Index;
-- ------------------------------
-- Declare a new definition
-- ------------------------------
package body Definition is
Index : Index_Type;
Index_Name : aliased constant Element_Type := Name;
function Kind return Index_Type is
begin
return Index;
end Kind;
begin
Add_Index (Index_Name'Access, Index);
end Definition;
-- ------------------------------
-- Find the runtime index given the name.
-- Raises Not_Found exception if the name is not recognized.
-- ------------------------------
function Find (Name : in Element_Type) return Index_Type is
Left : Index_Type := 1;
Right : Index_Type := Last_Index;
begin
while Left <= Right loop
declare
Pos : constant Index_Type := (Left + Right + 1) / 2;
Item : constant Element_Type_Access := Indexes (Pos).Name;
begin
if Name = Item.all then
return Indexes (Pos).Index;
elsif Name < Item.all then
Right := Pos - 1;
else
Left := Pos + 1;
end if;
end;
end loop;
Log.Error ("Definition " & Name & " not recognized.");
raise Not_Found with "Definition " & Name & " not found";
end Find;
-- ------------------------------
-- Get the element associated with the index.
-- ------------------------------
function Get_Element (Index : in Index_Type) return Element_Type_Access is
begin
if Index = Invalid_Index or Index > Last_Index then
Log.Error ("Index {0} is out of bounds", Index_Type'Image (Index));
raise Not_Found;
end if;
return Names (Index);
end Get_Element;
-- ------------------------------
-- Check if the index is a valid index.
-- ------------------------------
function Is_Valid (Index : in Index_Type) return Boolean is
begin
return Index > Invalid_Index and Index <= Last_Index;
end Is_Valid;
-- ------------------------------
-- Get the last valid index.
-- ------------------------------
function Get_Last return Index_Type is
begin
return Last_Index;
end Get_Last;
end AWA.Index_Arrays;
| true |
-----------------------------------------------------------------------
-- awa-index_arrays -- Static index arrays
-- Copyright (C) 2015 PI:NAME:<NAME>END_PI
-- Written by PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
--
-- 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 Ada.Unchecked_Deallocation;
package body AWA.Index_Arrays is
Log : constant Util.Log.Loggers.Logger := Util.Log.Loggers.Create ("AWA.Index_Arrays");
type Name_Pair is record
Name : Element_Type_Access := null;
Index : Index_Type := Index_Type'First;
end record;
type Name_Pair_Array is array (Index_Type range <>) of Name_Pair;
type Name_Pair_Array_Access is access all Name_Pair_Array;
type Name_Array is array (Index_Type range <>) of Element_Type_Access;
type Name_Array_Access is access all Name_Array;
-- Register a definition by its name and allocate a unique runtime index.
procedure Add_Index (Name : in Element_Type_Access;
Index : out Index_Type);
-- A static list of names. This array is created during the elaboration
-- of definitions. It is sorted on names.
Indexes : Name_Pair_Array_Access;
-- A static list of names indexed by the index.
Names : Name_Array_Access;
-- The index of the last definition.
Last_Index : Index_Type := Index_Type'First;
-- ------------------------------
-- Register a definition by its name and allocate a unique runtime index.
-- ------------------------------
procedure Add_Index (Name : in Element_Type_Access;
Index : out Index_Type) is
procedure Free is
new Ada.Unchecked_Deallocation (Object => Name_Pair_Array,
Name => Name_Pair_Array_Access);
procedure Free is
new Ada.Unchecked_Deallocation (Object => Name_Array,
Name => Name_Array_Access);
Left : Index_Type := Index_Type'First + 1;
Right : Index_Type := Last_Index;
begin
-- Check the storage and allocate it if necessary.
if Indexes = null then
Indexes := new Name_Pair_Array (Index_Type'First + 1 .. Index_Type'First + 10);
Names := new Name_Array (Index_Type'First + 1 .. Index_Type'First + 10);
elsif Indexes'Last = Last_Index then
declare
E : constant Name_Pair_Array_Access
:= new Name_Pair_Array (1 .. Last_Index + 10);
N : constant Name_Array_Access := new Name_Array (1 .. Last_Index + 10);
begin
E (Indexes'Range) := Indexes.all;
N (Names'Range) := Names.all;
Free (Indexes);
Free (Names);
Names := N;
Indexes := E;
end;
end if;
-- Find the definition position within the sorted table.
-- If a definition is already registered, bark and re-use the previous index.
while Left <= Right loop
declare
Pos : constant Index_Type := (Left + Right + 1) / 2;
Item : constant Element_Type_Access := Indexes (Pos).Name;
begin
if Name.all = Item.all then
Log.Error ("Definition " & Name.all & " is already registered.");
Index := Indexes (Pos).Index;
return;
elsif Name.all < Item.all then
Right := Pos - 1;
else
Left := Pos + 1;
end if;
end;
end loop;
-- Insert the new definition at the good position now.
if Left = 0 then
Left := Left + 1;
end if;
if Left <= Last_Index then
Indexes (Left + 1 .. Last_Index + 1) := Indexes (Left .. Last_Index);
end if;
Last_Index := Last_Index + 1;
Indexes (Left).Name := Name;
Indexes (Left).Index := Last_Index;
Names (Last_Index) := Name;
Index := Last_Index;
Log.Debug ("Definition " & Name.all & " index is {0}", Index_Type'Image (Index));
end Add_Index;
-- ------------------------------
-- Declare a new definition
-- ------------------------------
package body Definition is
Index : Index_Type;
Index_Name : aliased constant Element_Type := Name;
function Kind return Index_Type is
begin
return Index;
end Kind;
begin
Add_Index (Index_Name'Access, Index);
end Definition;
-- ------------------------------
-- Find the runtime index given the name.
-- Raises Not_Found exception if the name is not recognized.
-- ------------------------------
function Find (Name : in Element_Type) return Index_Type is
Left : Index_Type := 1;
Right : Index_Type := Last_Index;
begin
while Left <= Right loop
declare
Pos : constant Index_Type := (Left + Right + 1) / 2;
Item : constant Element_Type_Access := Indexes (Pos).Name;
begin
if Name = Item.all then
return Indexes (Pos).Index;
elsif Name < Item.all then
Right := Pos - 1;
else
Left := Pos + 1;
end if;
end;
end loop;
Log.Error ("Definition " & Name & " not recognized.");
raise Not_Found with "Definition " & Name & " not found";
end Find;
-- ------------------------------
-- Get the element associated with the index.
-- ------------------------------
function Get_Element (Index : in Index_Type) return Element_Type_Access is
begin
if Index = Invalid_Index or Index > Last_Index then
Log.Error ("Index {0} is out of bounds", Index_Type'Image (Index));
raise Not_Found;
end if;
return Names (Index);
end Get_Element;
-- ------------------------------
-- Check if the index is a valid index.
-- ------------------------------
function Is_Valid (Index : in Index_Type) return Boolean is
begin
return Index > Invalid_Index and Index <= Last_Index;
end Is_Valid;
-- ------------------------------
-- Get the last valid index.
-- ------------------------------
function Get_Last return Index_Type is
begin
return Last_Index;
end Get_Last;
end AWA.Index_Arrays;
|
[
{
"context": "right (C) 2009, 2010, 2011, 2012, 2015, 2016, 2020 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@g",
"end": 183,
"score": 0.9998784065246582,
"start": 168,
"tag": "NAME",
"value": "Stephane Carrez"
},
{
"context": "2, 2015, 2016, 2020 Stephane Carrez\n-- Written by Stephane Carrez ([email protected])\n--\n-- Licensed under",
"end": 214,
"score": 0.9998881220817566,
"start": 199,
"tag": "NAME",
"value": "Stephane Carrez"
},
{
"context": "0 Stephane Carrez\n-- Written by Stephane Carrez ([email protected])\n--\n-- Licensed under the Apache License, Versio",
"end": 241,
"score": 0.9999294281005859,
"start": 216,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
src/servlet-server.ads
|
My-Colaborations/ada-servlet
| 6 |
-----------------------------------------------------------------------
-- servlet-server -- Servlet Server
-- Copyright (C) 2009, 2010, 2011, 2012, 2015, 2016, 2020 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.Finalization;
with Ada.Strings.Unbounded;
with Servlet.Requests;
with Servlet.Responses;
with Servlet.Core;
package Servlet.Server is
subtype Port_Number is Natural range 0 .. 65535;
type Configuration is record
Listening_Port : Port_Number := 8080;
Max_Connection : Positive := 5;
Buffer_Size : Positive := 128 * 1024;
Accept_Queue_Size : Positive := 63;
Upload_Size_Limit : Positive := 16#500_000#;
Input_Line_Size_Limit : Positive := 16#4000#;
Reuse_Address : Boolean := True;
TCP_No_Delay : Boolean := False;
Upload_Directory : Ada.Strings.Unbounded.Unbounded_String;
end record;
type Container is tagged limited private;
-- Register the application to serve requests
procedure Register_Application (Server : in out Container;
URI : in String;
Context : in Core.Servlet_Registry_Access);
-- Remove the application
procedure Remove_Application (Server : in out Container;
Context : in Core.Servlet_Registry_Access);
-- Configure the server before starting it.
procedure Configure (Server : in out Container;
Config : in Configuration) is null;
-- Start the applications that have been registered.
procedure Start (Server : in out Container);
-- Receives standard HTTP requests from the public service method and
-- dispatches them to the Do_XXX methods defined in this class. This method
-- is an HTTP-specific version of the Servlet.service(Request, Response)
-- method. There's no need to override this method.
procedure Service (Server : in Container;
Request : in out Requests.Request'Class;
Response : in out Responses.Response'Class);
-- Get the current registry associated with the current request being processed
-- by the current thread. Returns null if there is no current request.
function Current return Core.Servlet_Registry_Access;
-- Set the current registry (for unit testing mostly).
procedure Set_Context (Context : in Core.Servlet_Registry_Access);
-- Give access to the current request and response object to the `Process`
-- procedure. If there is no current request for the thread, do nothing.
procedure Update_Context (Process : not null access
procedure (Request : in out Requests.Request'Class;
Response : in out Responses.Response'Class));
-- Iterate over the application which are registered.
procedure Iterate (Server : in Container;
Process : not null access
procedure (URI : in String;
Context : in Core.Servlet_Registry_Access));
private
-- Binding to record the Servlet applications and bind them to URI prefixes.
-- It is expected that the number of Servlet applications is small
-- (1-10 per server).
type Binding (Len : Natural) is record
Context : Core.Servlet_Registry_Access;
Base_URI : String (1 .. Len);
end record;
type Binding_Access is access all Binding;
type Binding_Array is array (Natural range <>) of Binding_Access;
type Binding_Array_Access is access all Binding_Array;
type Container is new Ada.Finalization.Limited_Controlled with record
Nb_Bindings : Natural := 0;
Applications : Binding_Array_Access := null;
Default : Core.Servlet_Registry;
Is_Started : Boolean := False;
end record;
type Request_Context is record
Application : Core.Servlet_Registry_Access;
Request : Requests.Request_Access;
Response : Responses.Response_Access;
end record;
-- Set the current registry. This is called by `Service` once the
-- registry is identified from the URI.
procedure Set_Context (Context : in Request_Context);
-- Release the storage.
overriding
procedure Finalize (Server : in out Container);
end Servlet.Server;
|
23357
|
-----------------------------------------------------------------------
-- servlet-server -- Servlet Server
-- Copyright (C) 2009, 2010, 2011, 2012, 2015, 2016, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- 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.Finalization;
with Ada.Strings.Unbounded;
with Servlet.Requests;
with Servlet.Responses;
with Servlet.Core;
package Servlet.Server is
subtype Port_Number is Natural range 0 .. 65535;
type Configuration is record
Listening_Port : Port_Number := 8080;
Max_Connection : Positive := 5;
Buffer_Size : Positive := 128 * 1024;
Accept_Queue_Size : Positive := 63;
Upload_Size_Limit : Positive := 16#500_000#;
Input_Line_Size_Limit : Positive := 16#4000#;
Reuse_Address : Boolean := True;
TCP_No_Delay : Boolean := False;
Upload_Directory : Ada.Strings.Unbounded.Unbounded_String;
end record;
type Container is tagged limited private;
-- Register the application to serve requests
procedure Register_Application (Server : in out Container;
URI : in String;
Context : in Core.Servlet_Registry_Access);
-- Remove the application
procedure Remove_Application (Server : in out Container;
Context : in Core.Servlet_Registry_Access);
-- Configure the server before starting it.
procedure Configure (Server : in out Container;
Config : in Configuration) is null;
-- Start the applications that have been registered.
procedure Start (Server : in out Container);
-- Receives standard HTTP requests from the public service method and
-- dispatches them to the Do_XXX methods defined in this class. This method
-- is an HTTP-specific version of the Servlet.service(Request, Response)
-- method. There's no need to override this method.
procedure Service (Server : in Container;
Request : in out Requests.Request'Class;
Response : in out Responses.Response'Class);
-- Get the current registry associated with the current request being processed
-- by the current thread. Returns null if there is no current request.
function Current return Core.Servlet_Registry_Access;
-- Set the current registry (for unit testing mostly).
procedure Set_Context (Context : in Core.Servlet_Registry_Access);
-- Give access to the current request and response object to the `Process`
-- procedure. If there is no current request for the thread, do nothing.
procedure Update_Context (Process : not null access
procedure (Request : in out Requests.Request'Class;
Response : in out Responses.Response'Class));
-- Iterate over the application which are registered.
procedure Iterate (Server : in Container;
Process : not null access
procedure (URI : in String;
Context : in Core.Servlet_Registry_Access));
private
-- Binding to record the Servlet applications and bind them to URI prefixes.
-- It is expected that the number of Servlet applications is small
-- (1-10 per server).
type Binding (Len : Natural) is record
Context : Core.Servlet_Registry_Access;
Base_URI : String (1 .. Len);
end record;
type Binding_Access is access all Binding;
type Binding_Array is array (Natural range <>) of Binding_Access;
type Binding_Array_Access is access all Binding_Array;
type Container is new Ada.Finalization.Limited_Controlled with record
Nb_Bindings : Natural := 0;
Applications : Binding_Array_Access := null;
Default : Core.Servlet_Registry;
Is_Started : Boolean := False;
end record;
type Request_Context is record
Application : Core.Servlet_Registry_Access;
Request : Requests.Request_Access;
Response : Responses.Response_Access;
end record;
-- Set the current registry. This is called by `Service` once the
-- registry is identified from the URI.
procedure Set_Context (Context : in Request_Context);
-- Release the storage.
overriding
procedure Finalize (Server : in out Container);
end Servlet.Server;
| true |
-----------------------------------------------------------------------
-- servlet-server -- Servlet Server
-- Copyright (C) 2009, 2010, 2011, 2012, 2015, 2016, 2020 PI:NAME:<NAME>END_PI
-- Written by PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
--
-- 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.Finalization;
with Ada.Strings.Unbounded;
with Servlet.Requests;
with Servlet.Responses;
with Servlet.Core;
package Servlet.Server is
subtype Port_Number is Natural range 0 .. 65535;
type Configuration is record
Listening_Port : Port_Number := 8080;
Max_Connection : Positive := 5;
Buffer_Size : Positive := 128 * 1024;
Accept_Queue_Size : Positive := 63;
Upload_Size_Limit : Positive := 16#500_000#;
Input_Line_Size_Limit : Positive := 16#4000#;
Reuse_Address : Boolean := True;
TCP_No_Delay : Boolean := False;
Upload_Directory : Ada.Strings.Unbounded.Unbounded_String;
end record;
type Container is tagged limited private;
-- Register the application to serve requests
procedure Register_Application (Server : in out Container;
URI : in String;
Context : in Core.Servlet_Registry_Access);
-- Remove the application
procedure Remove_Application (Server : in out Container;
Context : in Core.Servlet_Registry_Access);
-- Configure the server before starting it.
procedure Configure (Server : in out Container;
Config : in Configuration) is null;
-- Start the applications that have been registered.
procedure Start (Server : in out Container);
-- Receives standard HTTP requests from the public service method and
-- dispatches them to the Do_XXX methods defined in this class. This method
-- is an HTTP-specific version of the Servlet.service(Request, Response)
-- method. There's no need to override this method.
procedure Service (Server : in Container;
Request : in out Requests.Request'Class;
Response : in out Responses.Response'Class);
-- Get the current registry associated with the current request being processed
-- by the current thread. Returns null if there is no current request.
function Current return Core.Servlet_Registry_Access;
-- Set the current registry (for unit testing mostly).
procedure Set_Context (Context : in Core.Servlet_Registry_Access);
-- Give access to the current request and response object to the `Process`
-- procedure. If there is no current request for the thread, do nothing.
procedure Update_Context (Process : not null access
procedure (Request : in out Requests.Request'Class;
Response : in out Responses.Response'Class));
-- Iterate over the application which are registered.
procedure Iterate (Server : in Container;
Process : not null access
procedure (URI : in String;
Context : in Core.Servlet_Registry_Access));
private
-- Binding to record the Servlet applications and bind them to URI prefixes.
-- It is expected that the number of Servlet applications is small
-- (1-10 per server).
type Binding (Len : Natural) is record
Context : Core.Servlet_Registry_Access;
Base_URI : String (1 .. Len);
end record;
type Binding_Access is access all Binding;
type Binding_Array is array (Natural range <>) of Binding_Access;
type Binding_Array_Access is access all Binding_Array;
type Container is new Ada.Finalization.Limited_Controlled with record
Nb_Bindings : Natural := 0;
Applications : Binding_Array_Access := null;
Default : Core.Servlet_Registry;
Is_Started : Boolean := False;
end record;
type Request_Context is record
Application : Core.Servlet_Registry_Access;
Request : Requests.Request_Access;
Response : Responses.Response_Access;
end record;
-- Set the current registry. This is called by `Service` once the
-- registry is identified from the URI.
procedure Set_Context (Context : in Request_Context);
-- Release the storage.
overriding
procedure Finalize (Server : in out Container);
end Servlet.Server;
|
[
{
"context": "-- Shoot'n'loot\n-- Copyright (c) 2020 Fabien Chouteau\n\nwith Menus;\n\nwith Arith_64;\npragma Unreferenced ",
"end": 55,
"score": 0.9998272061347961,
"start": 40,
"tag": "NAME",
"value": "Fabien Chouteau"
}
] |
src/main.adb
|
thomas070605/shoot-n-loot
| 0 |
-- Shoot'n'loot
-- Copyright (c) 2020 Fabien Chouteau
with Menus;
with Arith_64;
pragma Unreferenced (Arith_64);
procedure Main is
begin
Menus.Run;
end Main;
|
16802
|
-- Shoot'n'loot
-- Copyright (c) 2020 <NAME>
with Menus;
with Arith_64;
pragma Unreferenced (Arith_64);
procedure Main is
begin
Menus.Run;
end Main;
| true |
-- Shoot'n'loot
-- Copyright (c) 2020 PI:NAME:<NAME>END_PI
with Menus;
with Arith_64;
pragma Unreferenced (Arith_64);
procedure Main is
begin
Menus.Run;
end Main;
|
[
{
"context": "s-monitor -- Helios monitor\n-- Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@g",
"end": 147,
"score": 0.9998725056648254,
"start": 132,
"tag": "NAME",
"value": "Stephane Carrez"
},
{
"context": " Copyright (C) 2017 Stephane Carrez\n-- Written by Stephane Carrez ([email protected])\n--\n-- Licensed under",
"end": 178,
"score": 0.9998800158500671,
"start": 163,
"tag": "NAME",
"value": "Stephane Carrez"
},
{
"context": "7 Stephane Carrez\n-- Written by Stephane Carrez ([email protected])\n--\n-- Licensed under the Apache License, Versio",
"end": 205,
"score": 0.9999244809150696,
"start": 180,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
src/helios-monitor.adb
|
stcarrez/helios
| 1 |
-----------------------------------------------------------------------
-- helios-monitor -- Helios monitor
-- 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.Properties.Basic;
with Util.Log.Loggers;
package body Helios.Monitor is
use type Helios.Schemas.Value_Index;
Log : constant Util.Log.Loggers.Logger := Util.Log.Loggers.Create ("Helios.Monitor");
List : Agent_Type_Access;
-- ------------------------------
-- The timer handler executed when the timer deadline has passed.
-- ------------------------------
overriding
procedure Time_Handler (Agent : in out Agent_Type;
Event : in out Util.Events.Timers.Timer_Ref'Class) is
Data : Helios.Datas.Snapshot_Type_Access;
begin
Log.Debug ("Running agent {0}", Agent.Node.Name);
Helios.Datas.Prepare (Agent.Data, Data);
Agent_Type'Class (Agent).Collect (Data.all);
Event.Repeat (Agent.Period);
Helios.Datas.Finish (Data.all);
end Time_Handler;
-- ------------------------------
-- Create a new definition with the given name. The filter parameter allows to control
-- which definition values are really needed. The "*" indicates that all values are required.
-- Otherwise, it is a comma separated list of strings. A null definition is returned if
-- the filter does not contain the definition name.
-- ------------------------------
function Create_Definition (Agent : in Agent_Type;
Name : in String;
Filter : in String := "*") return Schemas.Definition_Type_Access is
begin
return Schemas.Create_Definition (Agent.Node, Name, Filter);
end Create_Definition;
-- ------------------------------
-- Add a definition to the agent.
-- ------------------------------
procedure Add_Definition (Agent : in out Agent_Type;
Def : in Schemas.Definition_Type_Access) is
begin
Schemas.Add_Definition (Agent.Node, Def);
end Add_Definition;
-- ------------------------------
-- Find a child definition with the given name.
-- Returns null if there is no such definition.
-- ------------------------------
function Find_Definition (Agent : in Agent_Type;
Name : in String) return Schemas.Definition_Type_Access is
use type Schemas.Definition_Type_Access;
begin
if Agent.Node = null or else Agent.Node.Child = null then
return null;
else
return Schemas.Find_Definition (Agent.Node.Child, Name);
end if;
end Find_Definition;
-- ------------------------------
-- Register the agent.
-- ------------------------------
procedure Register (Agent : in Agent_Type_Access;
Name : in String;
Config : in Util.Properties.Manager) is
begin
Log.Info ("Register agent {0}", Name);
Agent.Period := Get_Period (Config, "period", 1);
Agent.Node := Schemas.Create_Definition (null, Name, "*", Schemas.V_NONE);
Agent.Start (Config);
if Agent.Node.Index > 0 then
Agent.Next := List;
List := Agent;
end if;
end Register;
-- ------------------------------
-- Get the current report and prepare the plugin agents for a new snapshot.
-- ------------------------------
function Get_Report return Helios.Datas.Report_Queue_Type is
procedure Flush (Agent : in out Agent_Type'Class);
procedure Flush (Agent : in out Agent_Type'Class) is
begin
Helios.Datas.Flush (Agent.Data);
end Flush;
begin
Iterate (Flush'Access);
return Helios.Datas.Get_Report;
end Get_Report;
-- ------------------------------
-- Iterate over the plugin agents that are registered and execute
-- the <tt>Process</tt> procedure.
-- ------------------------------
procedure Iterate (Process : not null access procedure (Agent : in out Agent_Type'Class)) is
Agent : Agent_Type_Access := List;
begin
while Agent /= null loop
Process (Agent.all);
Agent := Agent.Next;
end loop;
end Iterate;
-- ------------------------------
-- Get a period configuration parameter.
-- ------------------------------
function Get_Period (Config : in Util.Properties.Manager;
Name : in String;
Default : in Natural) return Ada.Real_Time.Time_Span is
Period : Integer
:= Util.Properties.Basic.Integer_Property.Get (Config, Name, Default);
begin
if Period <= 0 then
Period := Default;
end if;
return Ada.Real_Time.Seconds (Period);
end Get_Period;
end Helios.Monitor;
|
5338
|
-----------------------------------------------------------------------
-- helios-monitor -- Helios monitor
-- Copyright (C) 2017 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- 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.Properties.Basic;
with Util.Log.Loggers;
package body Helios.Monitor is
use type Helios.Schemas.Value_Index;
Log : constant Util.Log.Loggers.Logger := Util.Log.Loggers.Create ("Helios.Monitor");
List : Agent_Type_Access;
-- ------------------------------
-- The timer handler executed when the timer deadline has passed.
-- ------------------------------
overriding
procedure Time_Handler (Agent : in out Agent_Type;
Event : in out Util.Events.Timers.Timer_Ref'Class) is
Data : Helios.Datas.Snapshot_Type_Access;
begin
Log.Debug ("Running agent {0}", Agent.Node.Name);
Helios.Datas.Prepare (Agent.Data, Data);
Agent_Type'Class (Agent).Collect (Data.all);
Event.Repeat (Agent.Period);
Helios.Datas.Finish (Data.all);
end Time_Handler;
-- ------------------------------
-- Create a new definition with the given name. The filter parameter allows to control
-- which definition values are really needed. The "*" indicates that all values are required.
-- Otherwise, it is a comma separated list of strings. A null definition is returned if
-- the filter does not contain the definition name.
-- ------------------------------
function Create_Definition (Agent : in Agent_Type;
Name : in String;
Filter : in String := "*") return Schemas.Definition_Type_Access is
begin
return Schemas.Create_Definition (Agent.Node, Name, Filter);
end Create_Definition;
-- ------------------------------
-- Add a definition to the agent.
-- ------------------------------
procedure Add_Definition (Agent : in out Agent_Type;
Def : in Schemas.Definition_Type_Access) is
begin
Schemas.Add_Definition (Agent.Node, Def);
end Add_Definition;
-- ------------------------------
-- Find a child definition with the given name.
-- Returns null if there is no such definition.
-- ------------------------------
function Find_Definition (Agent : in Agent_Type;
Name : in String) return Schemas.Definition_Type_Access is
use type Schemas.Definition_Type_Access;
begin
if Agent.Node = null or else Agent.Node.Child = null then
return null;
else
return Schemas.Find_Definition (Agent.Node.Child, Name);
end if;
end Find_Definition;
-- ------------------------------
-- Register the agent.
-- ------------------------------
procedure Register (Agent : in Agent_Type_Access;
Name : in String;
Config : in Util.Properties.Manager) is
begin
Log.Info ("Register agent {0}", Name);
Agent.Period := Get_Period (Config, "period", 1);
Agent.Node := Schemas.Create_Definition (null, Name, "*", Schemas.V_NONE);
Agent.Start (Config);
if Agent.Node.Index > 0 then
Agent.Next := List;
List := Agent;
end if;
end Register;
-- ------------------------------
-- Get the current report and prepare the plugin agents for a new snapshot.
-- ------------------------------
function Get_Report return Helios.Datas.Report_Queue_Type is
procedure Flush (Agent : in out Agent_Type'Class);
procedure Flush (Agent : in out Agent_Type'Class) is
begin
Helios.Datas.Flush (Agent.Data);
end Flush;
begin
Iterate (Flush'Access);
return Helios.Datas.Get_Report;
end Get_Report;
-- ------------------------------
-- Iterate over the plugin agents that are registered and execute
-- the <tt>Process</tt> procedure.
-- ------------------------------
procedure Iterate (Process : not null access procedure (Agent : in out Agent_Type'Class)) is
Agent : Agent_Type_Access := List;
begin
while Agent /= null loop
Process (Agent.all);
Agent := Agent.Next;
end loop;
end Iterate;
-- ------------------------------
-- Get a period configuration parameter.
-- ------------------------------
function Get_Period (Config : in Util.Properties.Manager;
Name : in String;
Default : in Natural) return Ada.Real_Time.Time_Span is
Period : Integer
:= Util.Properties.Basic.Integer_Property.Get (Config, Name, Default);
begin
if Period <= 0 then
Period := Default;
end if;
return Ada.Real_Time.Seconds (Period);
end Get_Period;
end Helios.Monitor;
| true |
-----------------------------------------------------------------------
-- helios-monitor -- Helios monitor
-- Copyright (C) 2017 PI:NAME:<NAME>END_PI
-- Written by PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
--
-- 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.Properties.Basic;
with Util.Log.Loggers;
package body Helios.Monitor is
use type Helios.Schemas.Value_Index;
Log : constant Util.Log.Loggers.Logger := Util.Log.Loggers.Create ("Helios.Monitor");
List : Agent_Type_Access;
-- ------------------------------
-- The timer handler executed when the timer deadline has passed.
-- ------------------------------
overriding
procedure Time_Handler (Agent : in out Agent_Type;
Event : in out Util.Events.Timers.Timer_Ref'Class) is
Data : Helios.Datas.Snapshot_Type_Access;
begin
Log.Debug ("Running agent {0}", Agent.Node.Name);
Helios.Datas.Prepare (Agent.Data, Data);
Agent_Type'Class (Agent).Collect (Data.all);
Event.Repeat (Agent.Period);
Helios.Datas.Finish (Data.all);
end Time_Handler;
-- ------------------------------
-- Create a new definition with the given name. The filter parameter allows to control
-- which definition values are really needed. The "*" indicates that all values are required.
-- Otherwise, it is a comma separated list of strings. A null definition is returned if
-- the filter does not contain the definition name.
-- ------------------------------
function Create_Definition (Agent : in Agent_Type;
Name : in String;
Filter : in String := "*") return Schemas.Definition_Type_Access is
begin
return Schemas.Create_Definition (Agent.Node, Name, Filter);
end Create_Definition;
-- ------------------------------
-- Add a definition to the agent.
-- ------------------------------
procedure Add_Definition (Agent : in out Agent_Type;
Def : in Schemas.Definition_Type_Access) is
begin
Schemas.Add_Definition (Agent.Node, Def);
end Add_Definition;
-- ------------------------------
-- Find a child definition with the given name.
-- Returns null if there is no such definition.
-- ------------------------------
function Find_Definition (Agent : in Agent_Type;
Name : in String) return Schemas.Definition_Type_Access is
use type Schemas.Definition_Type_Access;
begin
if Agent.Node = null or else Agent.Node.Child = null then
return null;
else
return Schemas.Find_Definition (Agent.Node.Child, Name);
end if;
end Find_Definition;
-- ------------------------------
-- Register the agent.
-- ------------------------------
procedure Register (Agent : in Agent_Type_Access;
Name : in String;
Config : in Util.Properties.Manager) is
begin
Log.Info ("Register agent {0}", Name);
Agent.Period := Get_Period (Config, "period", 1);
Agent.Node := Schemas.Create_Definition (null, Name, "*", Schemas.V_NONE);
Agent.Start (Config);
if Agent.Node.Index > 0 then
Agent.Next := List;
List := Agent;
end if;
end Register;
-- ------------------------------
-- Get the current report and prepare the plugin agents for a new snapshot.
-- ------------------------------
function Get_Report return Helios.Datas.Report_Queue_Type is
procedure Flush (Agent : in out Agent_Type'Class);
procedure Flush (Agent : in out Agent_Type'Class) is
begin
Helios.Datas.Flush (Agent.Data);
end Flush;
begin
Iterate (Flush'Access);
return Helios.Datas.Get_Report;
end Get_Report;
-- ------------------------------
-- Iterate over the plugin agents that are registered and execute
-- the <tt>Process</tt> procedure.
-- ------------------------------
procedure Iterate (Process : not null access procedure (Agent : in out Agent_Type'Class)) is
Agent : Agent_Type_Access := List;
begin
while Agent /= null loop
Process (Agent.all);
Agent := Agent.Next;
end loop;
end Iterate;
-- ------------------------------
-- Get a period configuration parameter.
-- ------------------------------
function Get_Period (Config : in Util.Properties.Manager;
Name : in String;
Default : in Natural) return Ada.Real_Time.Time_Span is
Period : Integer
:= Util.Properties.Basic.Integer_Property.Get (Config, Name, Default);
begin
if Period <= 0 then
Period := Default;
end if;
return Ada.Real_Time.Seconds (Period);
end Get_Period;
end Helios.Monitor;
|
[
{
"context": " --\n-- Copyright © 2012, Vadim Godunko <[email protected]> --\n-- Al",
"end": 824,
"score": 0.9998882412910461,
"start": 811,
"tag": "NAME",
"value": "Vadim Godunko"
},
{
"context": " --\n-- Copyright © 2012, Vadim Godunko <[email protected]> --\n-- All rights reserved. ",
"end": 844,
"score": 0.999931812286377,
"start": 826,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
source/amf/dd/amf-internals-dg_styles.adb
|
svn2github/matreshka
| 24 |
------------------------------------------------------------------------------
-- --
-- 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.DC;
with AMF.DG.Fills;
with AMF.Elements;
with AMF.Internals.Helpers;
with AMF.Internals.Tables.DD_Attributes;
with AMF.Real_Collections;
with AMF.Visitors.DG_Iterators;
with AMF.Visitors.DG_Visitors;
with League.Strings.Internals;
with Matreshka.Internals.Strings;
package body AMF.Internals.DG_Styles is
--------------
-- Get_Fill --
--------------
overriding function Get_Fill
(Self : not null access constant DG_Style_Proxy)
return AMF.DG.Fills.DG_Fill_Access is
begin
return
AMF.DG.Fills.DG_Fill_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.DD_Attributes.Internal_Get_Fill
(Self.Element)));
end Get_Fill;
--------------
-- Set_Fill --
--------------
overriding procedure Set_Fill
(Self : not null access DG_Style_Proxy;
To : AMF.DG.Fills.DG_Fill_Access) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Fill
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_Fill;
--------------------
-- Get_Fill_Color --
--------------------
overriding function Get_Fill_Color
(Self : not null access constant DG_Style_Proxy)
return AMF.DC.Optional_DC_Color is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Fill_Color
(Self.Element);
end Get_Fill_Color;
--------------------
-- Set_Fill_Color --
--------------------
overriding procedure Set_Fill_Color
(Self : not null access DG_Style_Proxy;
To : AMF.DC.Optional_DC_Color) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Fill_Color
(Self.Element, To);
end Set_Fill_Color;
----------------------
-- Get_Fill_Opacity --
----------------------
overriding function Get_Fill_Opacity
(Self : not null access constant DG_Style_Proxy)
return AMF.Optional_Real is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Fill_Opacity
(Self.Element);
end Get_Fill_Opacity;
----------------------
-- Set_Fill_Opacity --
----------------------
overriding procedure Set_Fill_Opacity
(Self : not null access DG_Style_Proxy;
To : AMF.Optional_Real) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Fill_Opacity
(Self.Element, To);
end Set_Fill_Opacity;
----------------------
-- Get_Stroke_Width --
----------------------
overriding function Get_Stroke_Width
(Self : not null access constant DG_Style_Proxy)
return AMF.Optional_Real is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Stroke_Width
(Self.Element);
end Get_Stroke_Width;
----------------------
-- Set_Stroke_Width --
----------------------
overriding procedure Set_Stroke_Width
(Self : not null access DG_Style_Proxy;
To : AMF.Optional_Real) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Stroke_Width
(Self.Element, To);
end Set_Stroke_Width;
------------------------
-- Get_Stroke_Opacity --
------------------------
overriding function Get_Stroke_Opacity
(Self : not null access constant DG_Style_Proxy)
return AMF.Optional_Real is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Stroke_Opacity
(Self.Element);
end Get_Stroke_Opacity;
------------------------
-- Set_Stroke_Opacity --
------------------------
overriding procedure Set_Stroke_Opacity
(Self : not null access DG_Style_Proxy;
To : AMF.Optional_Real) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Stroke_Opacity
(Self.Element, To);
end Set_Stroke_Opacity;
----------------------
-- Get_Stroke_Color --
----------------------
overriding function Get_Stroke_Color
(Self : not null access constant DG_Style_Proxy)
return AMF.DC.Optional_DC_Color is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Stroke_Color
(Self.Element);
end Get_Stroke_Color;
----------------------
-- Set_Stroke_Color --
----------------------
overriding procedure Set_Stroke_Color
(Self : not null access DG_Style_Proxy;
To : AMF.DC.Optional_DC_Color) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Stroke_Color
(Self.Element, To);
end Set_Stroke_Color;
----------------------------
-- Get_Stroke_Dash_Length --
----------------------------
overriding function Get_Stroke_Dash_Length
(Self : not null access constant DG_Style_Proxy)
return AMF.Real_Collections.Sequence_Of_Real is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Stroke_Dash_Length
(Self.Element);
end Get_Stroke_Dash_Length;
-------------------
-- Get_Font_Size --
-------------------
overriding function Get_Font_Size
(Self : not null access constant DG_Style_Proxy)
return AMF.Optional_Real is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Font_Size
(Self.Element);
end Get_Font_Size;
-------------------
-- Set_Font_Size --
-------------------
overriding procedure Set_Font_Size
(Self : not null access DG_Style_Proxy;
To : AMF.Optional_Real) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Font_Size
(Self.Element, To);
end Set_Font_Size;
-------------------
-- Get_Font_Name --
-------------------
overriding function Get_Font_Name
(Self : not null access constant DG_Style_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.DD_Attributes.Internal_Get_Font_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_Font_Name;
-------------------
-- Set_Font_Name --
-------------------
overriding procedure Set_Font_Name
(Self : not null access DG_Style_Proxy;
To : AMF.Optional_String) is
begin
if To.Is_Empty then
AMF.Internals.Tables.DD_Attributes.Internal_Set_Font_Name
(Self.Element, null);
else
AMF.Internals.Tables.DD_Attributes.Internal_Set_Font_Name
(Self.Element,
League.Strings.Internals.Internal (To.Value));
end if;
end Set_Font_Name;
--------------------
-- Get_Font_Color --
--------------------
overriding function Get_Font_Color
(Self : not null access constant DG_Style_Proxy)
return AMF.DC.Optional_DC_Color is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Font_Color
(Self.Element);
end Get_Font_Color;
--------------------
-- Set_Font_Color --
--------------------
overriding procedure Set_Font_Color
(Self : not null access DG_Style_Proxy;
To : AMF.DC.Optional_DC_Color) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Font_Color
(Self.Element, To);
end Set_Font_Color;
---------------------
-- Get_Font_Italic --
---------------------
overriding function Get_Font_Italic
(Self : not null access constant DG_Style_Proxy)
return AMF.Optional_Boolean is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Font_Italic
(Self.Element);
end Get_Font_Italic;
---------------------
-- Set_Font_Italic --
---------------------
overriding procedure Set_Font_Italic
(Self : not null access DG_Style_Proxy;
To : AMF.Optional_Boolean) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Font_Italic
(Self.Element, To);
end Set_Font_Italic;
-------------------
-- Get_Font_Bold --
-------------------
overriding function Get_Font_Bold
(Self : not null access constant DG_Style_Proxy)
return AMF.Optional_Boolean is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Font_Bold
(Self.Element);
end Get_Font_Bold;
-------------------
-- Set_Font_Bold --
-------------------
overriding procedure Set_Font_Bold
(Self : not null access DG_Style_Proxy;
To : AMF.Optional_Boolean) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Font_Bold
(Self.Element, To);
end Set_Font_Bold;
------------------------
-- Get_Font_Underline --
------------------------
overriding function Get_Font_Underline
(Self : not null access constant DG_Style_Proxy)
return AMF.Optional_Boolean is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Font_Underline
(Self.Element);
end Get_Font_Underline;
------------------------
-- Set_Font_Underline --
------------------------
overriding procedure Set_Font_Underline
(Self : not null access DG_Style_Proxy;
To : AMF.Optional_Boolean) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Font_Underline
(Self.Element, To);
end Set_Font_Underline;
-----------------------------
-- Get_Font_Strike_Through --
-----------------------------
overriding function Get_Font_Strike_Through
(Self : not null access constant DG_Style_Proxy)
return AMF.Optional_Boolean is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Font_Strike_Through
(Self.Element);
end Get_Font_Strike_Through;
-----------------------------
-- Set_Font_Strike_Through --
-----------------------------
overriding procedure Set_Font_Strike_Through
(Self : not null access DG_Style_Proxy;
To : AMF.Optional_Boolean) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Font_Strike_Through
(Self.Element, To);
end Set_Font_Strike_Through;
-------------------
-- Enter_Element --
-------------------
overriding procedure Enter_Element
(Self : not null access constant DG_Style_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control) is
begin
if Visitor in AMF.Visitors.DG_Visitors.DG_Visitor'Class then
AMF.Visitors.DG_Visitors.DG_Visitor'Class
(Visitor).Enter_Style
(AMF.DG.Styles.DG_Style_Access (Self),
Control);
end if;
end Enter_Element;
-------------------
-- Leave_Element --
-------------------
overriding procedure Leave_Element
(Self : not null access constant DG_Style_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control) is
begin
if Visitor in AMF.Visitors.DG_Visitors.DG_Visitor'Class then
AMF.Visitors.DG_Visitors.DG_Visitor'Class
(Visitor).Leave_Style
(AMF.DG.Styles.DG_Style_Access (Self),
Control);
end if;
end Leave_Element;
-------------------
-- Visit_Element --
-------------------
overriding procedure Visit_Element
(Self : not null access constant DG_Style_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.DG_Iterators.DG_Iterator'Class then
AMF.Visitors.DG_Iterators.DG_Iterator'Class
(Iterator).Visit_Style
(Visitor,
AMF.DG.Styles.DG_Style_Access (Self),
Control);
end if;
end Visit_Element;
end AMF.Internals.DG_Styles;
|
27825
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2012, <NAME> <<EMAIL>> --
-- 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.DC;
with AMF.DG.Fills;
with AMF.Elements;
with AMF.Internals.Helpers;
with AMF.Internals.Tables.DD_Attributes;
with AMF.Real_Collections;
with AMF.Visitors.DG_Iterators;
with AMF.Visitors.DG_Visitors;
with League.Strings.Internals;
with Matreshka.Internals.Strings;
package body AMF.Internals.DG_Styles is
--------------
-- Get_Fill --
--------------
overriding function Get_Fill
(Self : not null access constant DG_Style_Proxy)
return AMF.DG.Fills.DG_Fill_Access is
begin
return
AMF.DG.Fills.DG_Fill_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.DD_Attributes.Internal_Get_Fill
(Self.Element)));
end Get_Fill;
--------------
-- Set_Fill --
--------------
overriding procedure Set_Fill
(Self : not null access DG_Style_Proxy;
To : AMF.DG.Fills.DG_Fill_Access) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Fill
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_Fill;
--------------------
-- Get_Fill_Color --
--------------------
overriding function Get_Fill_Color
(Self : not null access constant DG_Style_Proxy)
return AMF.DC.Optional_DC_Color is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Fill_Color
(Self.Element);
end Get_Fill_Color;
--------------------
-- Set_Fill_Color --
--------------------
overriding procedure Set_Fill_Color
(Self : not null access DG_Style_Proxy;
To : AMF.DC.Optional_DC_Color) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Fill_Color
(Self.Element, To);
end Set_Fill_Color;
----------------------
-- Get_Fill_Opacity --
----------------------
overriding function Get_Fill_Opacity
(Self : not null access constant DG_Style_Proxy)
return AMF.Optional_Real is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Fill_Opacity
(Self.Element);
end Get_Fill_Opacity;
----------------------
-- Set_Fill_Opacity --
----------------------
overriding procedure Set_Fill_Opacity
(Self : not null access DG_Style_Proxy;
To : AMF.Optional_Real) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Fill_Opacity
(Self.Element, To);
end Set_Fill_Opacity;
----------------------
-- Get_Stroke_Width --
----------------------
overriding function Get_Stroke_Width
(Self : not null access constant DG_Style_Proxy)
return AMF.Optional_Real is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Stroke_Width
(Self.Element);
end Get_Stroke_Width;
----------------------
-- Set_Stroke_Width --
----------------------
overriding procedure Set_Stroke_Width
(Self : not null access DG_Style_Proxy;
To : AMF.Optional_Real) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Stroke_Width
(Self.Element, To);
end Set_Stroke_Width;
------------------------
-- Get_Stroke_Opacity --
------------------------
overriding function Get_Stroke_Opacity
(Self : not null access constant DG_Style_Proxy)
return AMF.Optional_Real is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Stroke_Opacity
(Self.Element);
end Get_Stroke_Opacity;
------------------------
-- Set_Stroke_Opacity --
------------------------
overriding procedure Set_Stroke_Opacity
(Self : not null access DG_Style_Proxy;
To : AMF.Optional_Real) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Stroke_Opacity
(Self.Element, To);
end Set_Stroke_Opacity;
----------------------
-- Get_Stroke_Color --
----------------------
overriding function Get_Stroke_Color
(Self : not null access constant DG_Style_Proxy)
return AMF.DC.Optional_DC_Color is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Stroke_Color
(Self.Element);
end Get_Stroke_Color;
----------------------
-- Set_Stroke_Color --
----------------------
overriding procedure Set_Stroke_Color
(Self : not null access DG_Style_Proxy;
To : AMF.DC.Optional_DC_Color) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Stroke_Color
(Self.Element, To);
end Set_Stroke_Color;
----------------------------
-- Get_Stroke_Dash_Length --
----------------------------
overriding function Get_Stroke_Dash_Length
(Self : not null access constant DG_Style_Proxy)
return AMF.Real_Collections.Sequence_Of_Real is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Stroke_Dash_Length
(Self.Element);
end Get_Stroke_Dash_Length;
-------------------
-- Get_Font_Size --
-------------------
overriding function Get_Font_Size
(Self : not null access constant DG_Style_Proxy)
return AMF.Optional_Real is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Font_Size
(Self.Element);
end Get_Font_Size;
-------------------
-- Set_Font_Size --
-------------------
overriding procedure Set_Font_Size
(Self : not null access DG_Style_Proxy;
To : AMF.Optional_Real) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Font_Size
(Self.Element, To);
end Set_Font_Size;
-------------------
-- Get_Font_Name --
-------------------
overriding function Get_Font_Name
(Self : not null access constant DG_Style_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.DD_Attributes.Internal_Get_Font_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_Font_Name;
-------------------
-- Set_Font_Name --
-------------------
overriding procedure Set_Font_Name
(Self : not null access DG_Style_Proxy;
To : AMF.Optional_String) is
begin
if To.Is_Empty then
AMF.Internals.Tables.DD_Attributes.Internal_Set_Font_Name
(Self.Element, null);
else
AMF.Internals.Tables.DD_Attributes.Internal_Set_Font_Name
(Self.Element,
League.Strings.Internals.Internal (To.Value));
end if;
end Set_Font_Name;
--------------------
-- Get_Font_Color --
--------------------
overriding function Get_Font_Color
(Self : not null access constant DG_Style_Proxy)
return AMF.DC.Optional_DC_Color is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Font_Color
(Self.Element);
end Get_Font_Color;
--------------------
-- Set_Font_Color --
--------------------
overriding procedure Set_Font_Color
(Self : not null access DG_Style_Proxy;
To : AMF.DC.Optional_DC_Color) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Font_Color
(Self.Element, To);
end Set_Font_Color;
---------------------
-- Get_Font_Italic --
---------------------
overriding function Get_Font_Italic
(Self : not null access constant DG_Style_Proxy)
return AMF.Optional_Boolean is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Font_Italic
(Self.Element);
end Get_Font_Italic;
---------------------
-- Set_Font_Italic --
---------------------
overriding procedure Set_Font_Italic
(Self : not null access DG_Style_Proxy;
To : AMF.Optional_Boolean) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Font_Italic
(Self.Element, To);
end Set_Font_Italic;
-------------------
-- Get_Font_Bold --
-------------------
overriding function Get_Font_Bold
(Self : not null access constant DG_Style_Proxy)
return AMF.Optional_Boolean is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Font_Bold
(Self.Element);
end Get_Font_Bold;
-------------------
-- Set_Font_Bold --
-------------------
overriding procedure Set_Font_Bold
(Self : not null access DG_Style_Proxy;
To : AMF.Optional_Boolean) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Font_Bold
(Self.Element, To);
end Set_Font_Bold;
------------------------
-- Get_Font_Underline --
------------------------
overriding function Get_Font_Underline
(Self : not null access constant DG_Style_Proxy)
return AMF.Optional_Boolean is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Font_Underline
(Self.Element);
end Get_Font_Underline;
------------------------
-- Set_Font_Underline --
------------------------
overriding procedure Set_Font_Underline
(Self : not null access DG_Style_Proxy;
To : AMF.Optional_Boolean) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Font_Underline
(Self.Element, To);
end Set_Font_Underline;
-----------------------------
-- Get_Font_Strike_Through --
-----------------------------
overriding function Get_Font_Strike_Through
(Self : not null access constant DG_Style_Proxy)
return AMF.Optional_Boolean is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Font_Strike_Through
(Self.Element);
end Get_Font_Strike_Through;
-----------------------------
-- Set_Font_Strike_Through --
-----------------------------
overriding procedure Set_Font_Strike_Through
(Self : not null access DG_Style_Proxy;
To : AMF.Optional_Boolean) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Font_Strike_Through
(Self.Element, To);
end Set_Font_Strike_Through;
-------------------
-- Enter_Element --
-------------------
overriding procedure Enter_Element
(Self : not null access constant DG_Style_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control) is
begin
if Visitor in AMF.Visitors.DG_Visitors.DG_Visitor'Class then
AMF.Visitors.DG_Visitors.DG_Visitor'Class
(Visitor).Enter_Style
(AMF.DG.Styles.DG_Style_Access (Self),
Control);
end if;
end Enter_Element;
-------------------
-- Leave_Element --
-------------------
overriding procedure Leave_Element
(Self : not null access constant DG_Style_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control) is
begin
if Visitor in AMF.Visitors.DG_Visitors.DG_Visitor'Class then
AMF.Visitors.DG_Visitors.DG_Visitor'Class
(Visitor).Leave_Style
(AMF.DG.Styles.DG_Style_Access (Self),
Control);
end if;
end Leave_Element;
-------------------
-- Visit_Element --
-------------------
overriding procedure Visit_Element
(Self : not null access constant DG_Style_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.DG_Iterators.DG_Iterator'Class then
AMF.Visitors.DG_Iterators.DG_Iterator'Class
(Iterator).Visit_Style
(Visitor,
AMF.DG.Styles.DG_Style_Access (Self),
Control);
end if;
end Visit_Element;
end AMF.Internals.DG_Styles;
| true |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2012, PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI> --
-- 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.DC;
with AMF.DG.Fills;
with AMF.Elements;
with AMF.Internals.Helpers;
with AMF.Internals.Tables.DD_Attributes;
with AMF.Real_Collections;
with AMF.Visitors.DG_Iterators;
with AMF.Visitors.DG_Visitors;
with League.Strings.Internals;
with Matreshka.Internals.Strings;
package body AMF.Internals.DG_Styles is
--------------
-- Get_Fill --
--------------
overriding function Get_Fill
(Self : not null access constant DG_Style_Proxy)
return AMF.DG.Fills.DG_Fill_Access is
begin
return
AMF.DG.Fills.DG_Fill_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.DD_Attributes.Internal_Get_Fill
(Self.Element)));
end Get_Fill;
--------------
-- Set_Fill --
--------------
overriding procedure Set_Fill
(Self : not null access DG_Style_Proxy;
To : AMF.DG.Fills.DG_Fill_Access) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Fill
(Self.Element,
AMF.Internals.Helpers.To_Element
(AMF.Elements.Element_Access (To)));
end Set_Fill;
--------------------
-- Get_Fill_Color --
--------------------
overriding function Get_Fill_Color
(Self : not null access constant DG_Style_Proxy)
return AMF.DC.Optional_DC_Color is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Fill_Color
(Self.Element);
end Get_Fill_Color;
--------------------
-- Set_Fill_Color --
--------------------
overriding procedure Set_Fill_Color
(Self : not null access DG_Style_Proxy;
To : AMF.DC.Optional_DC_Color) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Fill_Color
(Self.Element, To);
end Set_Fill_Color;
----------------------
-- Get_Fill_Opacity --
----------------------
overriding function Get_Fill_Opacity
(Self : not null access constant DG_Style_Proxy)
return AMF.Optional_Real is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Fill_Opacity
(Self.Element);
end Get_Fill_Opacity;
----------------------
-- Set_Fill_Opacity --
----------------------
overriding procedure Set_Fill_Opacity
(Self : not null access DG_Style_Proxy;
To : AMF.Optional_Real) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Fill_Opacity
(Self.Element, To);
end Set_Fill_Opacity;
----------------------
-- Get_Stroke_Width --
----------------------
overriding function Get_Stroke_Width
(Self : not null access constant DG_Style_Proxy)
return AMF.Optional_Real is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Stroke_Width
(Self.Element);
end Get_Stroke_Width;
----------------------
-- Set_Stroke_Width --
----------------------
overriding procedure Set_Stroke_Width
(Self : not null access DG_Style_Proxy;
To : AMF.Optional_Real) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Stroke_Width
(Self.Element, To);
end Set_Stroke_Width;
------------------------
-- Get_Stroke_Opacity --
------------------------
overriding function Get_Stroke_Opacity
(Self : not null access constant DG_Style_Proxy)
return AMF.Optional_Real is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Stroke_Opacity
(Self.Element);
end Get_Stroke_Opacity;
------------------------
-- Set_Stroke_Opacity --
------------------------
overriding procedure Set_Stroke_Opacity
(Self : not null access DG_Style_Proxy;
To : AMF.Optional_Real) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Stroke_Opacity
(Self.Element, To);
end Set_Stroke_Opacity;
----------------------
-- Get_Stroke_Color --
----------------------
overriding function Get_Stroke_Color
(Self : not null access constant DG_Style_Proxy)
return AMF.DC.Optional_DC_Color is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Stroke_Color
(Self.Element);
end Get_Stroke_Color;
----------------------
-- Set_Stroke_Color --
----------------------
overriding procedure Set_Stroke_Color
(Self : not null access DG_Style_Proxy;
To : AMF.DC.Optional_DC_Color) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Stroke_Color
(Self.Element, To);
end Set_Stroke_Color;
----------------------------
-- Get_Stroke_Dash_Length --
----------------------------
overriding function Get_Stroke_Dash_Length
(Self : not null access constant DG_Style_Proxy)
return AMF.Real_Collections.Sequence_Of_Real is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Stroke_Dash_Length
(Self.Element);
end Get_Stroke_Dash_Length;
-------------------
-- Get_Font_Size --
-------------------
overriding function Get_Font_Size
(Self : not null access constant DG_Style_Proxy)
return AMF.Optional_Real is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Font_Size
(Self.Element);
end Get_Font_Size;
-------------------
-- Set_Font_Size --
-------------------
overriding procedure Set_Font_Size
(Self : not null access DG_Style_Proxy;
To : AMF.Optional_Real) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Font_Size
(Self.Element, To);
end Set_Font_Size;
-------------------
-- Get_Font_Name --
-------------------
overriding function Get_Font_Name
(Self : not null access constant DG_Style_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.DD_Attributes.Internal_Get_Font_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_Font_Name;
-------------------
-- Set_Font_Name --
-------------------
overriding procedure Set_Font_Name
(Self : not null access DG_Style_Proxy;
To : AMF.Optional_String) is
begin
if To.Is_Empty then
AMF.Internals.Tables.DD_Attributes.Internal_Set_Font_Name
(Self.Element, null);
else
AMF.Internals.Tables.DD_Attributes.Internal_Set_Font_Name
(Self.Element,
League.Strings.Internals.Internal (To.Value));
end if;
end Set_Font_Name;
--------------------
-- Get_Font_Color --
--------------------
overriding function Get_Font_Color
(Self : not null access constant DG_Style_Proxy)
return AMF.DC.Optional_DC_Color is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Font_Color
(Self.Element);
end Get_Font_Color;
--------------------
-- Set_Font_Color --
--------------------
overriding procedure Set_Font_Color
(Self : not null access DG_Style_Proxy;
To : AMF.DC.Optional_DC_Color) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Font_Color
(Self.Element, To);
end Set_Font_Color;
---------------------
-- Get_Font_Italic --
---------------------
overriding function Get_Font_Italic
(Self : not null access constant DG_Style_Proxy)
return AMF.Optional_Boolean is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Font_Italic
(Self.Element);
end Get_Font_Italic;
---------------------
-- Set_Font_Italic --
---------------------
overriding procedure Set_Font_Italic
(Self : not null access DG_Style_Proxy;
To : AMF.Optional_Boolean) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Font_Italic
(Self.Element, To);
end Set_Font_Italic;
-------------------
-- Get_Font_Bold --
-------------------
overriding function Get_Font_Bold
(Self : not null access constant DG_Style_Proxy)
return AMF.Optional_Boolean is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Font_Bold
(Self.Element);
end Get_Font_Bold;
-------------------
-- Set_Font_Bold --
-------------------
overriding procedure Set_Font_Bold
(Self : not null access DG_Style_Proxy;
To : AMF.Optional_Boolean) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Font_Bold
(Self.Element, To);
end Set_Font_Bold;
------------------------
-- Get_Font_Underline --
------------------------
overriding function Get_Font_Underline
(Self : not null access constant DG_Style_Proxy)
return AMF.Optional_Boolean is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Font_Underline
(Self.Element);
end Get_Font_Underline;
------------------------
-- Set_Font_Underline --
------------------------
overriding procedure Set_Font_Underline
(Self : not null access DG_Style_Proxy;
To : AMF.Optional_Boolean) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Font_Underline
(Self.Element, To);
end Set_Font_Underline;
-----------------------------
-- Get_Font_Strike_Through --
-----------------------------
overriding function Get_Font_Strike_Through
(Self : not null access constant DG_Style_Proxy)
return AMF.Optional_Boolean is
begin
return
AMF.Internals.Tables.DD_Attributes.Internal_Get_Font_Strike_Through
(Self.Element);
end Get_Font_Strike_Through;
-----------------------------
-- Set_Font_Strike_Through --
-----------------------------
overriding procedure Set_Font_Strike_Through
(Self : not null access DG_Style_Proxy;
To : AMF.Optional_Boolean) is
begin
AMF.Internals.Tables.DD_Attributes.Internal_Set_Font_Strike_Through
(Self.Element, To);
end Set_Font_Strike_Through;
-------------------
-- Enter_Element --
-------------------
overriding procedure Enter_Element
(Self : not null access constant DG_Style_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control) is
begin
if Visitor in AMF.Visitors.DG_Visitors.DG_Visitor'Class then
AMF.Visitors.DG_Visitors.DG_Visitor'Class
(Visitor).Enter_Style
(AMF.DG.Styles.DG_Style_Access (Self),
Control);
end if;
end Enter_Element;
-------------------
-- Leave_Element --
-------------------
overriding procedure Leave_Element
(Self : not null access constant DG_Style_Proxy;
Visitor : in out AMF.Visitors.Abstract_Visitor'Class;
Control : in out AMF.Visitors.Traverse_Control) is
begin
if Visitor in AMF.Visitors.DG_Visitors.DG_Visitor'Class then
AMF.Visitors.DG_Visitors.DG_Visitor'Class
(Visitor).Leave_Style
(AMF.DG.Styles.DG_Style_Access (Self),
Control);
end if;
end Leave_Element;
-------------------
-- Visit_Element --
-------------------
overriding procedure Visit_Element
(Self : not null access constant DG_Style_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.DG_Iterators.DG_Iterator'Class then
AMF.Visitors.DG_Iterators.DG_Iterator'Class
(Iterator).Visit_Style
(Visitor,
AMF.DG.Styles.DG_Style_Access (Self),
Control);
end if;
end Visit_Element;
end AMF.Internals.DG_Styles;
|
[
{
"context": "-- SPDX-FileCopyrightText: 2019 Max Reznik <[email protected]>\n--\n-- SPDX-License-Identifi",
"end": 43,
"score": 0.9998567700386047,
"start": 33,
"tag": "NAME",
"value": "Max Reznik"
},
{
"context": "-- SPDX-FileCopyrightText: 2019 Max Reznik <[email protected]>\n--\n-- SPDX-License-Identifier: MIT\n------------",
"end": 63,
"score": 0.999929666519165,
"start": 45,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
source/nodes/program-nodes-formal_ordinary_fixed_point_definitions.adb
|
reznikmm/gela
| 0 |
-- SPDX-FileCopyrightText: 2019 Max Reznik <[email protected]>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Nodes.Formal_Ordinary_Fixed_Point_Definitions is
function Create
(Delta_Token : not null Program.Lexical_Elements.Lexical_Element_Access;
Box_Token : not null Program.Lexical_Elements.Lexical_Element_Access)
return Formal_Ordinary_Fixed_Point_Definition is
begin
return Result : Formal_Ordinary_Fixed_Point_Definition :=
(Delta_Token => Delta_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_Ordinary_Fixed_Point_Definition is
begin
return Result : Implicit_Formal_Ordinary_Fixed_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 Delta_Token
(Self : Formal_Ordinary_Fixed_Point_Definition)
return not null Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.Delta_Token;
end Delta_Token;
overriding function Box_Token
(Self : Formal_Ordinary_Fixed_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_Ordinary_Fixed_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_Ordinary_Fixed_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_Ordinary_Fixed_Point_Definition)
return Boolean is
begin
return Self.Is_Part_Of_Instance;
end Is_Part_Of_Instance;
procedure Initialize
(Self : in out Base_Formal_Ordinary_Fixed_Point_Definition'Class)
is
begin
null;
end Initialize;
overriding function Is_Formal_Ordinary_Fixed_Point_Definition
(Self : Base_Formal_Ordinary_Fixed_Point_Definition)
return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Formal_Ordinary_Fixed_Point_Definition;
overriding function Is_Formal_Type_Definition
(Self : Base_Formal_Ordinary_Fixed_Point_Definition)
return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Formal_Type_Definition;
overriding function Is_Definition
(Self : Base_Formal_Ordinary_Fixed_Point_Definition)
return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Definition;
overriding procedure Visit
(Self : not null access Base_Formal_Ordinary_Fixed_Point_Definition;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class) is
begin
Visitor.Formal_Ordinary_Fixed_Point_Definition (Self);
end Visit;
overriding function To_Formal_Ordinary_Fixed_Point_Definition_Text
(Self : in out Formal_Ordinary_Fixed_Point_Definition)
return Program.Elements.Formal_Ordinary_Fixed_Point_Definitions
.Formal_Ordinary_Fixed_Point_Definition_Text_Access is
begin
return Self'Unchecked_Access;
end To_Formal_Ordinary_Fixed_Point_Definition_Text;
overriding function To_Formal_Ordinary_Fixed_Point_Definition_Text
(Self : in out Implicit_Formal_Ordinary_Fixed_Point_Definition)
return Program.Elements.Formal_Ordinary_Fixed_Point_Definitions
.Formal_Ordinary_Fixed_Point_Definition_Text_Access is
pragma Unreferenced (Self);
begin
return null;
end To_Formal_Ordinary_Fixed_Point_Definition_Text;
end Program.Nodes.Formal_Ordinary_Fixed_Point_Definitions;
|
17134
|
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Nodes.Formal_Ordinary_Fixed_Point_Definitions is
function Create
(Delta_Token : not null Program.Lexical_Elements.Lexical_Element_Access;
Box_Token : not null Program.Lexical_Elements.Lexical_Element_Access)
return Formal_Ordinary_Fixed_Point_Definition is
begin
return Result : Formal_Ordinary_Fixed_Point_Definition :=
(Delta_Token => Delta_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_Ordinary_Fixed_Point_Definition is
begin
return Result : Implicit_Formal_Ordinary_Fixed_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 Delta_Token
(Self : Formal_Ordinary_Fixed_Point_Definition)
return not null Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.Delta_Token;
end Delta_Token;
overriding function Box_Token
(Self : Formal_Ordinary_Fixed_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_Ordinary_Fixed_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_Ordinary_Fixed_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_Ordinary_Fixed_Point_Definition)
return Boolean is
begin
return Self.Is_Part_Of_Instance;
end Is_Part_Of_Instance;
procedure Initialize
(Self : in out Base_Formal_Ordinary_Fixed_Point_Definition'Class)
is
begin
null;
end Initialize;
overriding function Is_Formal_Ordinary_Fixed_Point_Definition
(Self : Base_Formal_Ordinary_Fixed_Point_Definition)
return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Formal_Ordinary_Fixed_Point_Definition;
overriding function Is_Formal_Type_Definition
(Self : Base_Formal_Ordinary_Fixed_Point_Definition)
return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Formal_Type_Definition;
overriding function Is_Definition
(Self : Base_Formal_Ordinary_Fixed_Point_Definition)
return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Definition;
overriding procedure Visit
(Self : not null access Base_Formal_Ordinary_Fixed_Point_Definition;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class) is
begin
Visitor.Formal_Ordinary_Fixed_Point_Definition (Self);
end Visit;
overriding function To_Formal_Ordinary_Fixed_Point_Definition_Text
(Self : in out Formal_Ordinary_Fixed_Point_Definition)
return Program.Elements.Formal_Ordinary_Fixed_Point_Definitions
.Formal_Ordinary_Fixed_Point_Definition_Text_Access is
begin
return Self'Unchecked_Access;
end To_Formal_Ordinary_Fixed_Point_Definition_Text;
overriding function To_Formal_Ordinary_Fixed_Point_Definition_Text
(Self : in out Implicit_Formal_Ordinary_Fixed_Point_Definition)
return Program.Elements.Formal_Ordinary_Fixed_Point_Definitions
.Formal_Ordinary_Fixed_Point_Definition_Text_Access is
pragma Unreferenced (Self);
begin
return null;
end To_Formal_Ordinary_Fixed_Point_Definition_Text;
end Program.Nodes.Formal_Ordinary_Fixed_Point_Definitions;
| true |
-- SPDX-FileCopyrightText: 2019 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Nodes.Formal_Ordinary_Fixed_Point_Definitions is
function Create
(Delta_Token : not null Program.Lexical_Elements.Lexical_Element_Access;
Box_Token : not null Program.Lexical_Elements.Lexical_Element_Access)
return Formal_Ordinary_Fixed_Point_Definition is
begin
return Result : Formal_Ordinary_Fixed_Point_Definition :=
(Delta_Token => Delta_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_Ordinary_Fixed_Point_Definition is
begin
return Result : Implicit_Formal_Ordinary_Fixed_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 Delta_Token
(Self : Formal_Ordinary_Fixed_Point_Definition)
return not null Program.Lexical_Elements.Lexical_Element_Access is
begin
return Self.Delta_Token;
end Delta_Token;
overriding function Box_Token
(Self : Formal_Ordinary_Fixed_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_Ordinary_Fixed_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_Ordinary_Fixed_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_Ordinary_Fixed_Point_Definition)
return Boolean is
begin
return Self.Is_Part_Of_Instance;
end Is_Part_Of_Instance;
procedure Initialize
(Self : in out Base_Formal_Ordinary_Fixed_Point_Definition'Class)
is
begin
null;
end Initialize;
overriding function Is_Formal_Ordinary_Fixed_Point_Definition
(Self : Base_Formal_Ordinary_Fixed_Point_Definition)
return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Formal_Ordinary_Fixed_Point_Definition;
overriding function Is_Formal_Type_Definition
(Self : Base_Formal_Ordinary_Fixed_Point_Definition)
return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Formal_Type_Definition;
overriding function Is_Definition
(Self : Base_Formal_Ordinary_Fixed_Point_Definition)
return Boolean is
pragma Unreferenced (Self);
begin
return True;
end Is_Definition;
overriding procedure Visit
(Self : not null access Base_Formal_Ordinary_Fixed_Point_Definition;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class) is
begin
Visitor.Formal_Ordinary_Fixed_Point_Definition (Self);
end Visit;
overriding function To_Formal_Ordinary_Fixed_Point_Definition_Text
(Self : in out Formal_Ordinary_Fixed_Point_Definition)
return Program.Elements.Formal_Ordinary_Fixed_Point_Definitions
.Formal_Ordinary_Fixed_Point_Definition_Text_Access is
begin
return Self'Unchecked_Access;
end To_Formal_Ordinary_Fixed_Point_Definition_Text;
overriding function To_Formal_Ordinary_Fixed_Point_Definition_Text
(Self : in out Implicit_Formal_Ordinary_Fixed_Point_Definition)
return Program.Elements.Formal_Ordinary_Fixed_Point_Definitions
.Formal_Ordinary_Fixed_Point_Definition_Text_Access is
pragma Unreferenced (Self);
begin
return null;
end To_Formal_Ordinary_Fixed_Point_Definition_Text;
end Program.Nodes.Formal_Ordinary_Fixed_Point_Definitions;
|
[
{
"context": "-- Simple stack\n-- Copyright (C) 2010, 2011, 2013 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@g",
"end": 154,
"score": 0.9998871088027954,
"start": 139,
"tag": "NAME",
"value": "Stephane Carrez"
},
{
"context": "C) 2010, 2011, 2013 Stephane Carrez\n-- Written by Stephane Carrez ([email protected])\n--\n-- Licensed under",
"end": 185,
"score": 0.9998920559883118,
"start": 170,
"tag": "NAME",
"value": "Stephane Carrez"
},
{
"context": "3 Stephane Carrez\n-- Written by Stephane Carrez ([email protected])\n--\n-- Licensed under the Apache License, Versio",
"end": 212,
"score": 0.9999268651008606,
"start": 187,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
src/util-stacks.ads
|
Letractively/ada-util
| 60 |
-----------------------------------------------------------------------
-- util-stacks -- Simple stack
-- Copyright (C) 2010, 2011, 2013 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.Finalization;
generic
type Element_Type is private;
type Element_Type_Access is access all Element_Type;
package Util.Stacks is
pragma Preelaborate;
type Stack is limited private;
-- Get access to the current stack element.
function Current (Container : in Stack) return Element_Type_Access;
-- Push an element on top of the stack making the new element the current one.
procedure Push (Container : in out Stack);
-- Pop the top element.
procedure Pop (Container : in out Stack);
-- Clear the stack.
procedure Clear (Container : in out Stack);
private
type Element_Type_Array is array (Natural range <>) of aliased Element_Type;
type Element_Type_Array_Access is access all Element_Type_Array;
type Stack is new Ada.Finalization.Limited_Controlled with record
Current : Element_Type_Access := null;
Stack : Element_Type_Array_Access := null;
Pos : Natural := 0;
end record;
-- Release the stack
overriding
procedure Finalize (Obj : in out Stack);
end Util.Stacks;
|
16159
|
-----------------------------------------------------------------------
-- util-stacks -- Simple stack
-- Copyright (C) 2010, 2011, 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- 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.Finalization;
generic
type Element_Type is private;
type Element_Type_Access is access all Element_Type;
package Util.Stacks is
pragma Preelaborate;
type Stack is limited private;
-- Get access to the current stack element.
function Current (Container : in Stack) return Element_Type_Access;
-- Push an element on top of the stack making the new element the current one.
procedure Push (Container : in out Stack);
-- Pop the top element.
procedure Pop (Container : in out Stack);
-- Clear the stack.
procedure Clear (Container : in out Stack);
private
type Element_Type_Array is array (Natural range <>) of aliased Element_Type;
type Element_Type_Array_Access is access all Element_Type_Array;
type Stack is new Ada.Finalization.Limited_Controlled with record
Current : Element_Type_Access := null;
Stack : Element_Type_Array_Access := null;
Pos : Natural := 0;
end record;
-- Release the stack
overriding
procedure Finalize (Obj : in out Stack);
end Util.Stacks;
| true |
-----------------------------------------------------------------------
-- util-stacks -- Simple stack
-- Copyright (C) 2010, 2011, 2013 PI:NAME:<NAME>END_PI
-- Written by PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
--
-- 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.Finalization;
generic
type Element_Type is private;
type Element_Type_Access is access all Element_Type;
package Util.Stacks is
pragma Preelaborate;
type Stack is limited private;
-- Get access to the current stack element.
function Current (Container : in Stack) return Element_Type_Access;
-- Push an element on top of the stack making the new element the current one.
procedure Push (Container : in out Stack);
-- Pop the top element.
procedure Pop (Container : in out Stack);
-- Clear the stack.
procedure Clear (Container : in out Stack);
private
type Element_Type_Array is array (Natural range <>) of aliased Element_Type;
type Element_Type_Array_Access is access all Element_Type_Array;
type Stack is new Ada.Finalization.Limited_Controlled with record
Current : Element_Type_Access := null;
Stack : Element_Type_Array_Access := null;
Pos : Natural := 0;
end record;
-- Release the stack
overriding
procedure Finalize (Obj : in out Stack);
end Util.Stacks;
|
[
{
"context": "s for the program. --\n-- Author : Simon Rowe <[email protected]> ",
"end": 267,
"score": 0.9998626708984375,
"start": 257,
"tag": "NAME",
"value": "Simon Rowe"
},
{
"context": "gram. --\n-- Author : Simon Rowe <[email protected]> --\n-- License : M",
"end": 288,
"score": 0.9999305009841919,
"start": 269,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
src/cmd_flags.adb
|
wiremoons/apass
| 3 |
-------------------------------------------------------------------------------
-- Package : Cmd_Flags --
-- Description : Manage user provided CLI flags for the program. --
-- Author : Simon Rowe <[email protected]> --
-- License : MIT Open Source. --
-------------------------------------------------------------------------------
with Ada.Text_IO; use Ada.Text_IO;
with GNAT.Command_Line; use GNAT.Command_Line;
-- local packages
with Show_Version;
package body Cmd_Flags is
function Command_Line_Flags_Exist return Boolean is
----------------------------------------------
-- Parse and manage and command line flags --
----------------------------------------------
-- GNAT.Command_Line variables and config
Help_Option : aliased Boolean := False;
Version_Option : aliased Boolean := False;
Config : Command_Line_Configuration;
begin
-- define params for the 'help' option
Define_Switch
(Config,
Help_Option'Access,
Switch => "-h",
Long_Switch => "--help",
Help => "Show command line usage for application");
-- define params for the 'version' option
Define_Switch
(Config,
Version_Option'Access,
Switch => "-v",
Long_Switch => "--version",
Help => "Show version details");
-- Additional help message as first line of 'Display_Help()'
Set_Usage
(Config,
Usage => "[switches] [arguments]",
Help => "Program to generate passwords from random three letter words.");
-- cli flags parse using config and above defined switched
Getopt (Config);
-- show program 'version' if requested
if Version_Option then
Show_Version.Show;
return True;
end if;
-- show 'help' if requested
if Help_Option then
New_Line (1);
Display_Help (Config);
return True;
end if;
-- no cli params : so just return
--Try_Help; -- alternative one line response
return False;
exception
when Invalid_Switch =>
New_Line (1);
Put_Line (Standard_Error, "Exception caught: caused by the use of an invalid command line switch.");
New_Line (1);
Display_Help (Config);
return True;
when Invalid_Parameter =>
New_Line (1);
Put_Line
(Standard_Error,
"Exception caught: caused by the use of an invalid parameter to a command line switch.");
New_Line (1);
Display_Help (Config);
return True;
when Exit_From_Command_Line =>
New_Line (1);
Put_Line (Standard_Error, "Exit following display of help message.");
return True;
end Command_Line_Flags_Exist;
end Cmd_Flags;
|
8485
|
-------------------------------------------------------------------------------
-- Package : Cmd_Flags --
-- Description : Manage user provided CLI flags for the program. --
-- Author : <NAME> <<EMAIL>> --
-- License : MIT Open Source. --
-------------------------------------------------------------------------------
with Ada.Text_IO; use Ada.Text_IO;
with GNAT.Command_Line; use GNAT.Command_Line;
-- local packages
with Show_Version;
package body Cmd_Flags is
function Command_Line_Flags_Exist return Boolean is
----------------------------------------------
-- Parse and manage and command line flags --
----------------------------------------------
-- GNAT.Command_Line variables and config
Help_Option : aliased Boolean := False;
Version_Option : aliased Boolean := False;
Config : Command_Line_Configuration;
begin
-- define params for the 'help' option
Define_Switch
(Config,
Help_Option'Access,
Switch => "-h",
Long_Switch => "--help",
Help => "Show command line usage for application");
-- define params for the 'version' option
Define_Switch
(Config,
Version_Option'Access,
Switch => "-v",
Long_Switch => "--version",
Help => "Show version details");
-- Additional help message as first line of 'Display_Help()'
Set_Usage
(Config,
Usage => "[switches] [arguments]",
Help => "Program to generate passwords from random three letter words.");
-- cli flags parse using config and above defined switched
Getopt (Config);
-- show program 'version' if requested
if Version_Option then
Show_Version.Show;
return True;
end if;
-- show 'help' if requested
if Help_Option then
New_Line (1);
Display_Help (Config);
return True;
end if;
-- no cli params : so just return
--Try_Help; -- alternative one line response
return False;
exception
when Invalid_Switch =>
New_Line (1);
Put_Line (Standard_Error, "Exception caught: caused by the use of an invalid command line switch.");
New_Line (1);
Display_Help (Config);
return True;
when Invalid_Parameter =>
New_Line (1);
Put_Line
(Standard_Error,
"Exception caught: caused by the use of an invalid parameter to a command line switch.");
New_Line (1);
Display_Help (Config);
return True;
when Exit_From_Command_Line =>
New_Line (1);
Put_Line (Standard_Error, "Exit following display of help message.");
return True;
end Command_Line_Flags_Exist;
end Cmd_Flags;
| true |
-------------------------------------------------------------------------------
-- Package : Cmd_Flags --
-- Description : Manage user provided CLI flags for the program. --
-- Author : PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI> --
-- License : MIT Open Source. --
-------------------------------------------------------------------------------
with Ada.Text_IO; use Ada.Text_IO;
with GNAT.Command_Line; use GNAT.Command_Line;
-- local packages
with Show_Version;
package body Cmd_Flags is
function Command_Line_Flags_Exist return Boolean is
----------------------------------------------
-- Parse and manage and command line flags --
----------------------------------------------
-- GNAT.Command_Line variables and config
Help_Option : aliased Boolean := False;
Version_Option : aliased Boolean := False;
Config : Command_Line_Configuration;
begin
-- define params for the 'help' option
Define_Switch
(Config,
Help_Option'Access,
Switch => "-h",
Long_Switch => "--help",
Help => "Show command line usage for application");
-- define params for the 'version' option
Define_Switch
(Config,
Version_Option'Access,
Switch => "-v",
Long_Switch => "--version",
Help => "Show version details");
-- Additional help message as first line of 'Display_Help()'
Set_Usage
(Config,
Usage => "[switches] [arguments]",
Help => "Program to generate passwords from random three letter words.");
-- cli flags parse using config and above defined switched
Getopt (Config);
-- show program 'version' if requested
if Version_Option then
Show_Version.Show;
return True;
end if;
-- show 'help' if requested
if Help_Option then
New_Line (1);
Display_Help (Config);
return True;
end if;
-- no cli params : so just return
--Try_Help; -- alternative one line response
return False;
exception
when Invalid_Switch =>
New_Line (1);
Put_Line (Standard_Error, "Exception caught: caused by the use of an invalid command line switch.");
New_Line (1);
Display_Help (Config);
return True;
when Invalid_Parameter =>
New_Line (1);
Put_Line
(Standard_Error,
"Exception caught: caused by the use of an invalid parameter to a command line switch.");
New_Line (1);
Display_Help (Config);
return True;
when Exit_From_Command_Line =>
New_Line (1);
Put_Line (Standard_Error, "Exit following display of help message.");
return True;
end Command_Line_Flags_Exist;
end Cmd_Flags;
|
[
{
"context": "-------\n-- Copyright (C) 2020 by Heisenbug Ltd. ([email protected])\n--\n-- This work is free. You can redistribute i",
"end": 142,
"score": 0.9999220967292786,
"start": 123,
"tag": "EMAIL",
"value": "[email protected]"
},
{
"context": "roxy_User => +User,\n Proxy_Pwd => +Password,\n Timeouts => AWS.Client.Timeouts",
"end": 7741,
"score": 0.96827232837677,
"start": 7733,
"tag": "PASSWORD",
"value": "Password"
}
] |
src/open_weather_map-client.adb
|
Jellix/open_weather_map_api
| 1 |
--------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. ([email protected])
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hocevar. See the LICENSE file for more details.
--------------------------------------------------------------------------------
pragma License (Unrestricted);
with Ada.Environment_Variables;
with Ada.Text_IO;
with Ada.Unchecked_Deallocation;
with GNATCOLL.JSON;
package body Open_Weather_Map.Client is
My_Debug : constant not null GNATCOLL.Traces.Trace_Handle :=
GNATCOLL.Traces.Create (Unit_Name => "OWM.CLIENT");
-----------------------------------------------------------------------------
-- Free
-----------------------------------------------------------------------------
procedure Free is
new Ada.Unchecked_Deallocation
(Object => AWS.Client.HTTP_Connection,
Name => AWS.Client.HTTP_Connection_Access);
type T_Local_Access is access all T;
-----------------------------------------------------------------------------
-- Free
-----------------------------------------------------------------------------
procedure Free is new Ada.Unchecked_Deallocation (Object => T,
Name => T_Local_Access);
-----------------------------------------------------------------------------
-- Connection
-----------------------------------------------------------------------------
function Connection
(Self : in out T) return not null AWS.Client.HTTP_Connection_Access
is
use type Ada.Real_Time.Time;
Next_Allowed : constant Ada.Real_Time.Time := Self.Last_Access + Self.Rate_Limit;
Now : constant Ada.Real_Time.Time := Ada.Real_Time.Clock;
begin
My_Debug.all.Trace (Message => "Connection");
if Next_Allowed > Now then
My_Debug.all.Trace
(Message => "Connection: Rate limit exceeded, throttling...");
delay until Next_Allowed;
My_Debug.all.Trace (Message => "Connection: Rate limited.");
Self.Last_Access := Next_Allowed;
else
Self.Last_Access := Now;
end if;
return Self.HTTP_Connection;
end Connection;
-----------------------------------------------------------------------------
-- Create
-----------------------------------------------------------------------------
function Create
(Configuration : in GNATCOLL.JSON.JSON_Value;
Rate_Limit : in Ada.Real_Time.Time_Span := Default_Rate_Limit) return T_Access
is
Result : T_Access;
begin
My_Debug.all.Trace (Message => "Create");
begin
Result := new T;
Result.all.Initialize (Configuration => Configuration,
Rate_Limit => Rate_Limit);
return Result;
exception
when others =>
Destroy (Result);
raise;
end;
end Create;
-----------------------------------------------------------------------------
-- Destroy
-----------------------------------------------------------------------------
procedure Destroy (Self : in out T_Access) is
begin
if Self /= null then
Self.all.Finalize;
Free (T_Local_Access (Self));
end if;
end Destroy;
-----------------------------------------------------------------------------
-- Finalize
-----------------------------------------------------------------------------
overriding procedure Finalize (Self : in out T) is
begin
My_Debug.all.Trace (Message => "Finalize");
Free (Self.HTTP_Connection);
end Finalize;
-----------------------------------------------------------------------------
-- Initialize
-----------------------------------------------------------------------------
procedure Initialize
(Self : out T;
Configuration : in GNATCOLL.JSON.JSON_Value;
Rate_Limit : in Ada.Real_Time.Time_Span := Default_Rate_Limit)
is
-- Proxy information.
Network_Address : Ada.Strings.Unbounded.Unbounded_String;
User : Ada.Strings.Unbounded.Unbounded_String;
Password : Ada.Strings.Unbounded.Unbounded_String;
--------------------------------------------------------------------------
-- "+"
--------------------------------------------------------------------------
function "+"
(Source : in Ada.Strings.Unbounded.Unbounded_String) return String
renames Ada.Strings.Unbounded.To_String;
begin
My_Debug.all.Trace (Message => "Initialize");
Self.Rate_Limit := Rate_Limit;
Self.Last_Access := Ada.Real_Time.Time_First;
Get_Proxy_Information :
declare
use type Ada.Strings.Unbounded.Unbounded_String;
begin
-- TODO: Better error handling.
My_Debug.all.Trace
(Message => "Initialize: Loading proxy configuration...");
-- Try to get proxy URL from configuration file.
if
Configuration.Has_Field (Field => Config_Names.Field_Network_Address)
then
Network_Address :=
Configuration.Get (Field => Config_Names.Field_Network_Address);
end if;
-- If there's still no proxy URL, try to get it from the environment
-- variables.
if
Network_Address = AWS.Client.No_Data and then
Ada.Environment_Variables.Exists
(Name => Config_Names.Env_Network_Address)
then
Network_Address :=
Ada.Strings.Unbounded.To_Unbounded_String
(Source =>
Ada.Environment_Variables.Value
(Name => Config_Names.Env_Network_Address));
end if;
-- Proxy user and password are only useful if there actually is a
-- proxy.
if Network_Address /= AWS.Client.No_Data then
if Configuration.Has_Field (Field => Config_Names.Field_User) then
User := Configuration.Get (Field => Config_Names.Field_User);
-- Passwords only make sense if there's also a username.
if
Configuration.Has_Field (Field => Config_Names.Field_Password)
then
Password :=
Configuration.Get (Field => Config_Names.Field_Password);
end if;
end if;
end if;
My_Debug.all.Trace
(Message => "Initialize: Proxy configuration loaded.");
exception
when E : others =>
My_Debug.all.Trace
(E => E,
Msg => "Initialize: Error parsing configuration data: ");
Ada.Text_IO.Put_Line
(File => Ada.Text_IO.Standard_Error,
Item =>
"Warning: Missing or invalid JSON data, " &
"proxy configuration may only be partial.");
end Get_Proxy_Information;
My_Debug.all.Trace
(Message =>
"Initialize: Proxy """ & (+Network_Address) & """" &
", user: """ & (+User) & """, password not shown.");
Create_Network_Connection :
begin
My_Debug.all.Trace
(Message => "Initialize: Creating network connection...");
Self.HTTP_Connection := new AWS.Client.HTTP_Connection'
(AWS.Client.Create
(Host => API_Host,
Proxy => +Network_Address,
Proxy_User => +User,
Proxy_Pwd => +Password,
Timeouts => AWS.Client.Timeouts (Each => 10.0)));
My_Debug.all.Trace
(Message => "Initialize: Network connection created.");
exception
when E : others =>
My_Debug.all.Trace
(E => E,
Msg => "Initialize: Error creating network connection: ");
Ada.Text_IO.Put_Line
(File => Ada.Text_IO.Standard_Error,
Item => "Error: HTTP connection failed!");
end Create_Network_Connection;
end Initialize;
end Open_Weather_Map.Client;
|
23934
|
--------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (<EMAIL>)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hocevar. See the LICENSE file for more details.
--------------------------------------------------------------------------------
pragma License (Unrestricted);
with Ada.Environment_Variables;
with Ada.Text_IO;
with Ada.Unchecked_Deallocation;
with GNATCOLL.JSON;
package body Open_Weather_Map.Client is
My_Debug : constant not null GNATCOLL.Traces.Trace_Handle :=
GNATCOLL.Traces.Create (Unit_Name => "OWM.CLIENT");
-----------------------------------------------------------------------------
-- Free
-----------------------------------------------------------------------------
procedure Free is
new Ada.Unchecked_Deallocation
(Object => AWS.Client.HTTP_Connection,
Name => AWS.Client.HTTP_Connection_Access);
type T_Local_Access is access all T;
-----------------------------------------------------------------------------
-- Free
-----------------------------------------------------------------------------
procedure Free is new Ada.Unchecked_Deallocation (Object => T,
Name => T_Local_Access);
-----------------------------------------------------------------------------
-- Connection
-----------------------------------------------------------------------------
function Connection
(Self : in out T) return not null AWS.Client.HTTP_Connection_Access
is
use type Ada.Real_Time.Time;
Next_Allowed : constant Ada.Real_Time.Time := Self.Last_Access + Self.Rate_Limit;
Now : constant Ada.Real_Time.Time := Ada.Real_Time.Clock;
begin
My_Debug.all.Trace (Message => "Connection");
if Next_Allowed > Now then
My_Debug.all.Trace
(Message => "Connection: Rate limit exceeded, throttling...");
delay until Next_Allowed;
My_Debug.all.Trace (Message => "Connection: Rate limited.");
Self.Last_Access := Next_Allowed;
else
Self.Last_Access := Now;
end if;
return Self.HTTP_Connection;
end Connection;
-----------------------------------------------------------------------------
-- Create
-----------------------------------------------------------------------------
function Create
(Configuration : in GNATCOLL.JSON.JSON_Value;
Rate_Limit : in Ada.Real_Time.Time_Span := Default_Rate_Limit) return T_Access
is
Result : T_Access;
begin
My_Debug.all.Trace (Message => "Create");
begin
Result := new T;
Result.all.Initialize (Configuration => Configuration,
Rate_Limit => Rate_Limit);
return Result;
exception
when others =>
Destroy (Result);
raise;
end;
end Create;
-----------------------------------------------------------------------------
-- Destroy
-----------------------------------------------------------------------------
procedure Destroy (Self : in out T_Access) is
begin
if Self /= null then
Self.all.Finalize;
Free (T_Local_Access (Self));
end if;
end Destroy;
-----------------------------------------------------------------------------
-- Finalize
-----------------------------------------------------------------------------
overriding procedure Finalize (Self : in out T) is
begin
My_Debug.all.Trace (Message => "Finalize");
Free (Self.HTTP_Connection);
end Finalize;
-----------------------------------------------------------------------------
-- Initialize
-----------------------------------------------------------------------------
procedure Initialize
(Self : out T;
Configuration : in GNATCOLL.JSON.JSON_Value;
Rate_Limit : in Ada.Real_Time.Time_Span := Default_Rate_Limit)
is
-- Proxy information.
Network_Address : Ada.Strings.Unbounded.Unbounded_String;
User : Ada.Strings.Unbounded.Unbounded_String;
Password : Ada.Strings.Unbounded.Unbounded_String;
--------------------------------------------------------------------------
-- "+"
--------------------------------------------------------------------------
function "+"
(Source : in Ada.Strings.Unbounded.Unbounded_String) return String
renames Ada.Strings.Unbounded.To_String;
begin
My_Debug.all.Trace (Message => "Initialize");
Self.Rate_Limit := Rate_Limit;
Self.Last_Access := Ada.Real_Time.Time_First;
Get_Proxy_Information :
declare
use type Ada.Strings.Unbounded.Unbounded_String;
begin
-- TODO: Better error handling.
My_Debug.all.Trace
(Message => "Initialize: Loading proxy configuration...");
-- Try to get proxy URL from configuration file.
if
Configuration.Has_Field (Field => Config_Names.Field_Network_Address)
then
Network_Address :=
Configuration.Get (Field => Config_Names.Field_Network_Address);
end if;
-- If there's still no proxy URL, try to get it from the environment
-- variables.
if
Network_Address = AWS.Client.No_Data and then
Ada.Environment_Variables.Exists
(Name => Config_Names.Env_Network_Address)
then
Network_Address :=
Ada.Strings.Unbounded.To_Unbounded_String
(Source =>
Ada.Environment_Variables.Value
(Name => Config_Names.Env_Network_Address));
end if;
-- Proxy user and password are only useful if there actually is a
-- proxy.
if Network_Address /= AWS.Client.No_Data then
if Configuration.Has_Field (Field => Config_Names.Field_User) then
User := Configuration.Get (Field => Config_Names.Field_User);
-- Passwords only make sense if there's also a username.
if
Configuration.Has_Field (Field => Config_Names.Field_Password)
then
Password :=
Configuration.Get (Field => Config_Names.Field_Password);
end if;
end if;
end if;
My_Debug.all.Trace
(Message => "Initialize: Proxy configuration loaded.");
exception
when E : others =>
My_Debug.all.Trace
(E => E,
Msg => "Initialize: Error parsing configuration data: ");
Ada.Text_IO.Put_Line
(File => Ada.Text_IO.Standard_Error,
Item =>
"Warning: Missing or invalid JSON data, " &
"proxy configuration may only be partial.");
end Get_Proxy_Information;
My_Debug.all.Trace
(Message =>
"Initialize: Proxy """ & (+Network_Address) & """" &
", user: """ & (+User) & """, password not shown.");
Create_Network_Connection :
begin
My_Debug.all.Trace
(Message => "Initialize: Creating network connection...");
Self.HTTP_Connection := new AWS.Client.HTTP_Connection'
(AWS.Client.Create
(Host => API_Host,
Proxy => +Network_Address,
Proxy_User => +User,
Proxy_Pwd => +<PASSWORD>,
Timeouts => AWS.Client.Timeouts (Each => 10.0)));
My_Debug.all.Trace
(Message => "Initialize: Network connection created.");
exception
when E : others =>
My_Debug.all.Trace
(E => E,
Msg => "Initialize: Error creating network connection: ");
Ada.Text_IO.Put_Line
(File => Ada.Text_IO.Standard_Error,
Item => "Error: HTTP connection failed!");
end Create_Network_Connection;
end Initialize;
end Open_Weather_Map.Client;
| true |
--------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (PI:EMAIL:<EMAIL>END_PI)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hocevar. See the LICENSE file for more details.
--------------------------------------------------------------------------------
pragma License (Unrestricted);
with Ada.Environment_Variables;
with Ada.Text_IO;
with Ada.Unchecked_Deallocation;
with GNATCOLL.JSON;
package body Open_Weather_Map.Client is
My_Debug : constant not null GNATCOLL.Traces.Trace_Handle :=
GNATCOLL.Traces.Create (Unit_Name => "OWM.CLIENT");
-----------------------------------------------------------------------------
-- Free
-----------------------------------------------------------------------------
procedure Free is
new Ada.Unchecked_Deallocation
(Object => AWS.Client.HTTP_Connection,
Name => AWS.Client.HTTP_Connection_Access);
type T_Local_Access is access all T;
-----------------------------------------------------------------------------
-- Free
-----------------------------------------------------------------------------
procedure Free is new Ada.Unchecked_Deallocation (Object => T,
Name => T_Local_Access);
-----------------------------------------------------------------------------
-- Connection
-----------------------------------------------------------------------------
function Connection
(Self : in out T) return not null AWS.Client.HTTP_Connection_Access
is
use type Ada.Real_Time.Time;
Next_Allowed : constant Ada.Real_Time.Time := Self.Last_Access + Self.Rate_Limit;
Now : constant Ada.Real_Time.Time := Ada.Real_Time.Clock;
begin
My_Debug.all.Trace (Message => "Connection");
if Next_Allowed > Now then
My_Debug.all.Trace
(Message => "Connection: Rate limit exceeded, throttling...");
delay until Next_Allowed;
My_Debug.all.Trace (Message => "Connection: Rate limited.");
Self.Last_Access := Next_Allowed;
else
Self.Last_Access := Now;
end if;
return Self.HTTP_Connection;
end Connection;
-----------------------------------------------------------------------------
-- Create
-----------------------------------------------------------------------------
function Create
(Configuration : in GNATCOLL.JSON.JSON_Value;
Rate_Limit : in Ada.Real_Time.Time_Span := Default_Rate_Limit) return T_Access
is
Result : T_Access;
begin
My_Debug.all.Trace (Message => "Create");
begin
Result := new T;
Result.all.Initialize (Configuration => Configuration,
Rate_Limit => Rate_Limit);
return Result;
exception
when others =>
Destroy (Result);
raise;
end;
end Create;
-----------------------------------------------------------------------------
-- Destroy
-----------------------------------------------------------------------------
procedure Destroy (Self : in out T_Access) is
begin
if Self /= null then
Self.all.Finalize;
Free (T_Local_Access (Self));
end if;
end Destroy;
-----------------------------------------------------------------------------
-- Finalize
-----------------------------------------------------------------------------
overriding procedure Finalize (Self : in out T) is
begin
My_Debug.all.Trace (Message => "Finalize");
Free (Self.HTTP_Connection);
end Finalize;
-----------------------------------------------------------------------------
-- Initialize
-----------------------------------------------------------------------------
procedure Initialize
(Self : out T;
Configuration : in GNATCOLL.JSON.JSON_Value;
Rate_Limit : in Ada.Real_Time.Time_Span := Default_Rate_Limit)
is
-- Proxy information.
Network_Address : Ada.Strings.Unbounded.Unbounded_String;
User : Ada.Strings.Unbounded.Unbounded_String;
Password : Ada.Strings.Unbounded.Unbounded_String;
--------------------------------------------------------------------------
-- "+"
--------------------------------------------------------------------------
function "+"
(Source : in Ada.Strings.Unbounded.Unbounded_String) return String
renames Ada.Strings.Unbounded.To_String;
begin
My_Debug.all.Trace (Message => "Initialize");
Self.Rate_Limit := Rate_Limit;
Self.Last_Access := Ada.Real_Time.Time_First;
Get_Proxy_Information :
declare
use type Ada.Strings.Unbounded.Unbounded_String;
begin
-- TODO: Better error handling.
My_Debug.all.Trace
(Message => "Initialize: Loading proxy configuration...");
-- Try to get proxy URL from configuration file.
if
Configuration.Has_Field (Field => Config_Names.Field_Network_Address)
then
Network_Address :=
Configuration.Get (Field => Config_Names.Field_Network_Address);
end if;
-- If there's still no proxy URL, try to get it from the environment
-- variables.
if
Network_Address = AWS.Client.No_Data and then
Ada.Environment_Variables.Exists
(Name => Config_Names.Env_Network_Address)
then
Network_Address :=
Ada.Strings.Unbounded.To_Unbounded_String
(Source =>
Ada.Environment_Variables.Value
(Name => Config_Names.Env_Network_Address));
end if;
-- Proxy user and password are only useful if there actually is a
-- proxy.
if Network_Address /= AWS.Client.No_Data then
if Configuration.Has_Field (Field => Config_Names.Field_User) then
User := Configuration.Get (Field => Config_Names.Field_User);
-- Passwords only make sense if there's also a username.
if
Configuration.Has_Field (Field => Config_Names.Field_Password)
then
Password :=
Configuration.Get (Field => Config_Names.Field_Password);
end if;
end if;
end if;
My_Debug.all.Trace
(Message => "Initialize: Proxy configuration loaded.");
exception
when E : others =>
My_Debug.all.Trace
(E => E,
Msg => "Initialize: Error parsing configuration data: ");
Ada.Text_IO.Put_Line
(File => Ada.Text_IO.Standard_Error,
Item =>
"Warning: Missing or invalid JSON data, " &
"proxy configuration may only be partial.");
end Get_Proxy_Information;
My_Debug.all.Trace
(Message =>
"Initialize: Proxy """ & (+Network_Address) & """" &
", user: """ & (+User) & """, password not shown.");
Create_Network_Connection :
begin
My_Debug.all.Trace
(Message => "Initialize: Creating network connection...");
Self.HTTP_Connection := new AWS.Client.HTTP_Connection'
(AWS.Client.Create
(Host => API_Host,
Proxy => +Network_Address,
Proxy_User => +User,
Proxy_Pwd => +PI:PASSWORD:<PASSWORD>END_PI,
Timeouts => AWS.Client.Timeouts (Each => 10.0)));
My_Debug.all.Trace
(Message => "Initialize: Network connection created.");
exception
when E : others =>
My_Debug.all.Trace
(E => E,
Msg => "Initialize: Error creating network connection: ");
Ada.Text_IO.Put_Line
(File => Ada.Text_IO.Standard_Error,
Item => "Error: HTTP connection failed!");
end Create_Network_Connection;
end Initialize;
end Open_Weather_Map.Client;
|
[
{
"context": "lause License\n -- *\n -- * Copyright © 2008-2021, Jice and the libtcod contributors.\n -- * All right",
"end": 311,
"score": 0.9832300543785095,
"start": 310,
"tag": "NAME",
"value": "J"
},
{
"context": "use License\n -- *\n -- * Copyright © 2008-2021, Jice and the libtcod contributors.\n -- * All rights r",
"end": 314,
"score": 0.6671465635299683,
"start": 311,
"tag": "USERNAME",
"value": "ice"
}
] |
src/generated/fov_types_h.ads
|
csb6/libtcod-ada
| 0 |
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Extensions;
package fov_types_h is
-- arg-macro: function FOV_PERMISSIVE (x)
-- return (TCOD_fov_algorithm_t)(FOV_PERMISSIVE_0 + (x));
-- BSD 3-Clause License
-- *
-- * Copyright © 2008-2021, Jice and the libtcod contributors.
-- * 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.
--
--*
-- * Private map cell struct.
--
type TCOD_MapCell is record
transparent : aliased Extensions.bool; -- fov_types.h:39
walkable : aliased Extensions.bool; -- fov_types.h:40
fov : aliased Extensions.bool; -- fov_types.h:41
end record
with Convention => C_Pass_By_Copy; -- fov_types.h:38
--*
-- * Private map struct.
--
type TCOD_Map is record
width : aliased int; -- fov_types.h:47
height : aliased int; -- fov_types.h:48
nbcells : aliased int; -- fov_types.h:49
cells : access TCOD_MapCell; -- fov_types.h:50
end record
with Convention => C_Pass_By_Copy; -- fov_types.h:46
type TCOD_map_t is access all TCOD_Map; -- fov_types.h:52
--*
-- \rst
-- Field-of-view options for :any:`TCOD_map_compute_fov`.
-- \endrst
--
--*
-- Trace multiple Bresenham lines along the perimeter.
-- Based on: http://www.roguebasin.com/index.php?title=Ray_casting
--
--*
-- Cast Bresenham line shadows on a per-tile basis.
-- Based on: http://www.oocities.org/temerra/los_rays.html
--
--*
-- Recursive Shadowcast.
-- Based on: http://www.roguebasin.com/index.php?title=FOV_using_recursive_shadowcasting
--
--*
-- Precise Permissive Field of View.
-- Based on: http://www.roguebasin.com/index.php?title=Precise_Permissive_Field_of_View
--
--*
-- Mingos' Restrictive Precise Angle Shadowcasting (contribution by Mingos)
-- Based on: http://www.roguebasin.com/index.php?title=Restrictive_Precise_Angle_Shadowcasting
--
--*
-- Symmetric Shadowcast.
-- Based on: https://www.albertford.com/shadowcasting/
-- \rst
-- .. versionadded :: 1.16
-- \endrst
--
type TCOD_fov_algorithm_t is
(FOV_BASIC,
FOV_DIAMOND,
FOV_SHADOW,
FOV_PERMISSIVE_0,
FOV_PERMISSIVE_1,
FOV_PERMISSIVE_2,
FOV_PERMISSIVE_3,
FOV_PERMISSIVE_4,
FOV_PERMISSIVE_5,
FOV_PERMISSIVE_6,
FOV_PERMISSIVE_7,
FOV_PERMISSIVE_8,
FOV_RESTRICTIVE,
FOV_SYMMETRIC_SHADOWCAST,
NB_FOV_ALGORITHMS)
with Convention => C; -- fov_types.h:107
end fov_types_h;
|
10396
|
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Extensions;
package fov_types_h is
-- arg-macro: function FOV_PERMISSIVE (x)
-- return (TCOD_fov_algorithm_t)(FOV_PERMISSIVE_0 + (x));
-- BSD 3-Clause License
-- *
-- * Copyright © 2008-2021, <NAME>ice and the libtcod contributors.
-- * 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.
--
--*
-- * Private map cell struct.
--
type TCOD_MapCell is record
transparent : aliased Extensions.bool; -- fov_types.h:39
walkable : aliased Extensions.bool; -- fov_types.h:40
fov : aliased Extensions.bool; -- fov_types.h:41
end record
with Convention => C_Pass_By_Copy; -- fov_types.h:38
--*
-- * Private map struct.
--
type TCOD_Map is record
width : aliased int; -- fov_types.h:47
height : aliased int; -- fov_types.h:48
nbcells : aliased int; -- fov_types.h:49
cells : access TCOD_MapCell; -- fov_types.h:50
end record
with Convention => C_Pass_By_Copy; -- fov_types.h:46
type TCOD_map_t is access all TCOD_Map; -- fov_types.h:52
--*
-- \rst
-- Field-of-view options for :any:`TCOD_map_compute_fov`.
-- \endrst
--
--*
-- Trace multiple Bresenham lines along the perimeter.
-- Based on: http://www.roguebasin.com/index.php?title=Ray_casting
--
--*
-- Cast Bresenham line shadows on a per-tile basis.
-- Based on: http://www.oocities.org/temerra/los_rays.html
--
--*
-- Recursive Shadowcast.
-- Based on: http://www.roguebasin.com/index.php?title=FOV_using_recursive_shadowcasting
--
--*
-- Precise Permissive Field of View.
-- Based on: http://www.roguebasin.com/index.php?title=Precise_Permissive_Field_of_View
--
--*
-- Mingos' Restrictive Precise Angle Shadowcasting (contribution by Mingos)
-- Based on: http://www.roguebasin.com/index.php?title=Restrictive_Precise_Angle_Shadowcasting
--
--*
-- Symmetric Shadowcast.
-- Based on: https://www.albertford.com/shadowcasting/
-- \rst
-- .. versionadded :: 1.16
-- \endrst
--
type TCOD_fov_algorithm_t is
(FOV_BASIC,
FOV_DIAMOND,
FOV_SHADOW,
FOV_PERMISSIVE_0,
FOV_PERMISSIVE_1,
FOV_PERMISSIVE_2,
FOV_PERMISSIVE_3,
FOV_PERMISSIVE_4,
FOV_PERMISSIVE_5,
FOV_PERMISSIVE_6,
FOV_PERMISSIVE_7,
FOV_PERMISSIVE_8,
FOV_RESTRICTIVE,
FOV_SYMMETRIC_SHADOWCAST,
NB_FOV_ALGORITHMS)
with Convention => C; -- fov_types.h:107
end fov_types_h;
| true |
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Extensions;
package fov_types_h is
-- arg-macro: function FOV_PERMISSIVE (x)
-- return (TCOD_fov_algorithm_t)(FOV_PERMISSIVE_0 + (x));
-- BSD 3-Clause License
-- *
-- * Copyright © 2008-2021, PI:NAME:<NAME>END_PIice and the libtcod contributors.
-- * 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.
--
--*
-- * Private map cell struct.
--
type TCOD_MapCell is record
transparent : aliased Extensions.bool; -- fov_types.h:39
walkable : aliased Extensions.bool; -- fov_types.h:40
fov : aliased Extensions.bool; -- fov_types.h:41
end record
with Convention => C_Pass_By_Copy; -- fov_types.h:38
--*
-- * Private map struct.
--
type TCOD_Map is record
width : aliased int; -- fov_types.h:47
height : aliased int; -- fov_types.h:48
nbcells : aliased int; -- fov_types.h:49
cells : access TCOD_MapCell; -- fov_types.h:50
end record
with Convention => C_Pass_By_Copy; -- fov_types.h:46
type TCOD_map_t is access all TCOD_Map; -- fov_types.h:52
--*
-- \rst
-- Field-of-view options for :any:`TCOD_map_compute_fov`.
-- \endrst
--
--*
-- Trace multiple Bresenham lines along the perimeter.
-- Based on: http://www.roguebasin.com/index.php?title=Ray_casting
--
--*
-- Cast Bresenham line shadows on a per-tile basis.
-- Based on: http://www.oocities.org/temerra/los_rays.html
--
--*
-- Recursive Shadowcast.
-- Based on: http://www.roguebasin.com/index.php?title=FOV_using_recursive_shadowcasting
--
--*
-- Precise Permissive Field of View.
-- Based on: http://www.roguebasin.com/index.php?title=Precise_Permissive_Field_of_View
--
--*
-- Mingos' Restrictive Precise Angle Shadowcasting (contribution by Mingos)
-- Based on: http://www.roguebasin.com/index.php?title=Restrictive_Precise_Angle_Shadowcasting
--
--*
-- Symmetric Shadowcast.
-- Based on: https://www.albertford.com/shadowcasting/
-- \rst
-- .. versionadded :: 1.16
-- \endrst
--
type TCOD_fov_algorithm_t is
(FOV_BASIC,
FOV_DIAMOND,
FOV_SHADOW,
FOV_PERMISSIVE_0,
FOV_PERMISSIVE_1,
FOV_PERMISSIVE_2,
FOV_PERMISSIVE_3,
FOV_PERMISSIVE_4,
FOV_PERMISSIVE_5,
FOV_PERMISSIVE_6,
FOV_PERMISSIVE_7,
FOV_PERMISSIVE_8,
FOV_RESTRICTIVE,
FOV_SYMMETRIC_SHADOWCAST,
NB_FOV_ALGORITHMS)
with Convention => C; -- fov_types.h:107
end fov_types_h;
|
[
{
"context": "pes --\n-- |___/_|\\_\\_|_|____| by: Timm Felden --\n-- ",
"end": 284,
"score": 0.9998790621757507,
"start": 273,
"tag": "NAME",
"value": "Timm Felden"
}
] |
src/skill-field_types-plain_types.adb
|
skill-lang/adaCommon
| 0 |
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ implementation of builtin field types --
-- |___/_|\_\_|_|____| by: Timm Felden --
-- --
pragma Ada_2012;
with Ada.Containers;
with Ada.Containers.Doubly_Linked_Lists;
with Ada.Containers.Hashed_Maps;
with Ada.Containers.Hashed_Sets;
with Ada.Containers.Vectors;
with Skill.Types;
with Skill.Hashes; use Skill.Hashes;
with Skill.Types.Pools;
with Ada.Tags;
package body Skill.Field_Types.Plain_Types is
procedure Write_Box
(This : access Field_Type;
Output : Streams.Writer.Sub_Stream;
Target : Types.Box)
is
begin
Write_Single (Output, Unboxed (Target));
end Write_Box;
end Skill.Field_Types.Plain_Types;
|
17297
|
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ implementation of builtin field types --
-- |___/_|\_\_|_|____| by: <NAME> --
-- --
pragma Ada_2012;
with Ada.Containers;
with Ada.Containers.Doubly_Linked_Lists;
with Ada.Containers.Hashed_Maps;
with Ada.Containers.Hashed_Sets;
with Ada.Containers.Vectors;
with Skill.Types;
with Skill.Hashes; use Skill.Hashes;
with Skill.Types.Pools;
with Ada.Tags;
package body Skill.Field_Types.Plain_Types is
procedure Write_Box
(This : access Field_Type;
Output : Streams.Writer.Sub_Stream;
Target : Types.Box)
is
begin
Write_Single (Output, Unboxed (Target));
end Write_Box;
end Skill.Field_Types.Plain_Types;
| true |
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ implementation of builtin field types --
-- |___/_|\_\_|_|____| by: PI:NAME:<NAME>END_PI --
-- --
pragma Ada_2012;
with Ada.Containers;
with Ada.Containers.Doubly_Linked_Lists;
with Ada.Containers.Hashed_Maps;
with Ada.Containers.Hashed_Sets;
with Ada.Containers.Vectors;
with Skill.Types;
with Skill.Hashes; use Skill.Hashes;
with Skill.Types.Pools;
with Ada.Tags;
package body Skill.Field_Types.Plain_Types is
procedure Write_Box
(This : access Field_Type;
Output : Streams.Writer.Sub_Stream;
Target : Types.Box)
is
begin
Write_Single (Output, Unboxed (Target));
end Write_Box;
end Skill.Field_Types.Plain_Types;
|
[
{
"context": "-- Copyright 2017-2021 Jeff Foley. All rights reserved.\n-- Use of this source code ",
"end": 33,
"score": 0.9998540878295898,
"start": 23,
"tag": "NAME",
"value": "Jeff Foley"
},
{
"context": "ENSE file.\n\nlocal json = require(\"json\")\n\nname = \"WhoisXMLAPI\"\ntype = \"api\"\n\nfunction start()\n setratelimit(",
"end": 204,
"score": 0.9543917179107666,
"start": 193,
"tag": "USERNAME",
"value": "WhoisXMLAPI"
}
] |
resources/scripts/api/whoisxmlapi.ads
|
houey/Amass
| 2 |
-- Copyright 2017-2021 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local json = require("json")
name = "WhoisXMLAPI"
type = "api"
function start()
setratelimit(2)
end
function check()
local c
local cfg = datasrc_config()
if cfg ~= nil then
c = cfg.credentials
end
if (c ~= nil and c.key ~= nil and c.key ~= "") then
return true
end
return false
end
function vertical(ctx, domain)
local c
local cfg = datasrc_config()
if cfg ~= nil then
c = cfg.credentials
end
if (c == nil or c.key == nil or c.key == "") then
return
end
local resp, err = request(ctx, {
url=verturl(domain, c.key),
headers={['Content-Type']="application/json"},
})
if (err ~= nil and err ~= "") then
return
end
local j = json.decode(resp)
if (j == nil or j.result == nil or j.result.count == 0 or #(j.result.records) == 0) then
return
end
for _, r in pairs(j.result.records) do
newname(ctx, r.domain)
end
end
function verturl(domain, key)
return "https://subdomains.whoisxmlapi.com/api/v1?apiKey=" .. key .. "&domainName=" .. domain
end
function horizontal(ctx, domain)
local c
local cfg = datasrc_config()
if cfg ~= nil then
c = cfg.credentials
end
if (c == nil or c.key == nil or c.key == "") then
return
end
local body, err = json.encode({
apiKey=c.key,
searchType="current",
mode="purchase",
basicSearchTerms={
include={domain},
},
})
if (err ~= nil and err ~= "") then
return
end
resp, err = request(ctx, {
method="POST",
data=body,
url="https://reverse-whois.whoisxmlapi.com/api/v2",
headers={['Content-Type']="application/json"},
})
if (err ~= nil and err ~= "") then
return
end
local j = json.decode(resp)
if (j == nil or j.domainsCount == 0) then
return
end
for _, name in pairs(j.domainsList) do
associated(ctx, domain, name)
end
end
function asn(ctx, addr, asn)
local c
local cfg = datasrc_config()
if cfg ~= nil then
c = cfg.credentials
end
if (c == nil or c.key == nil or c.key == "") then
return
end
local prefix
if (asn == 0) then
if (addr == "") then
return
end
asn = getasn(ctx, addr, c.key)
if (asn == 0) then
return
end
end
local a = asinfo(ctx, asn, c.key)
if (a == nil) then
return
end
newasn(ctx, {
['addr']=addr,
['asn']=asn,
['prefix']=a.netblocks[1],
['cc']=a.cc,
['registry']=a.registry,
['desc']=a.desc,
['netblocks']=a.netblocks,
})
end
function getasn(ctx, ip, key)
local resp, err = request(ctx, {
url="https://ip-netblocks.whoisxmlapi.com/api/v2?apiKey=" .. key .. "&ip=" .. ip,
headers={['Content-Type']="application/json"},
})
if (err ~= nil and err ~= "") then
return 0
end
local j = json.decode(resp)
if (j == nil or j.result == nil or j.result.count == 0 or #(j.result.inetnums) == 0) then
return
end
local asn = 0
for _, r in pairs(j.result.inetnums) do
if r.as ~= nil and r.as.asn > 0 then
asn = r.as.asn
break
end
end
return asn
end
function asinfo(ctx, asn, key)
local resp, err = request(ctx, {
url="https://ip-netblocks.whoisxmlapi.com/api/v2?apiKey=" .. key .. "&asn=" .. tostring(asn),
headers={['Content-Type']="application/json"},
})
if (err ~= nil and err ~= "") then
return nil
end
local j = json.decode(resp)
if (j == nil or j.result == nil or j.result.count == 0 or #(j.result.inetnums) == 0) then
return nil
end
local cc = ""
local name = ""
local registry = ""
local netblocks = {}
for i, r in pairs(j.result.inetnums) do
if i == 1 then
registry = r.source
if r.org ~= nil then
cc = r.org.country
name = r.org.name
end
end
if r.as ~= nil and r.as.asn == asn and r.as.route ~= nil and r.as.route ~= "" then
table.insert(netblocks, r.as.route)
end
end
return {
['asn']=asn,
desc=name,
['cc']=cc,
['registry']=registry,
['netblocks']=netblocks,
}
end
|
10244
|
-- Copyright 2017-2021 <NAME>. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local json = require("json")
name = "WhoisXMLAPI"
type = "api"
function start()
setratelimit(2)
end
function check()
local c
local cfg = datasrc_config()
if cfg ~= nil then
c = cfg.credentials
end
if (c ~= nil and c.key ~= nil and c.key ~= "") then
return true
end
return false
end
function vertical(ctx, domain)
local c
local cfg = datasrc_config()
if cfg ~= nil then
c = cfg.credentials
end
if (c == nil or c.key == nil or c.key == "") then
return
end
local resp, err = request(ctx, {
url=verturl(domain, c.key),
headers={['Content-Type']="application/json"},
})
if (err ~= nil and err ~= "") then
return
end
local j = json.decode(resp)
if (j == nil or j.result == nil or j.result.count == 0 or #(j.result.records) == 0) then
return
end
for _, r in pairs(j.result.records) do
newname(ctx, r.domain)
end
end
function verturl(domain, key)
return "https://subdomains.whoisxmlapi.com/api/v1?apiKey=" .. key .. "&domainName=" .. domain
end
function horizontal(ctx, domain)
local c
local cfg = datasrc_config()
if cfg ~= nil then
c = cfg.credentials
end
if (c == nil or c.key == nil or c.key == "") then
return
end
local body, err = json.encode({
apiKey=c.key,
searchType="current",
mode="purchase",
basicSearchTerms={
include={domain},
},
})
if (err ~= nil and err ~= "") then
return
end
resp, err = request(ctx, {
method="POST",
data=body,
url="https://reverse-whois.whoisxmlapi.com/api/v2",
headers={['Content-Type']="application/json"},
})
if (err ~= nil and err ~= "") then
return
end
local j = json.decode(resp)
if (j == nil or j.domainsCount == 0) then
return
end
for _, name in pairs(j.domainsList) do
associated(ctx, domain, name)
end
end
function asn(ctx, addr, asn)
local c
local cfg = datasrc_config()
if cfg ~= nil then
c = cfg.credentials
end
if (c == nil or c.key == nil or c.key == "") then
return
end
local prefix
if (asn == 0) then
if (addr == "") then
return
end
asn = getasn(ctx, addr, c.key)
if (asn == 0) then
return
end
end
local a = asinfo(ctx, asn, c.key)
if (a == nil) then
return
end
newasn(ctx, {
['addr']=addr,
['asn']=asn,
['prefix']=a.netblocks[1],
['cc']=a.cc,
['registry']=a.registry,
['desc']=a.desc,
['netblocks']=a.netblocks,
})
end
function getasn(ctx, ip, key)
local resp, err = request(ctx, {
url="https://ip-netblocks.whoisxmlapi.com/api/v2?apiKey=" .. key .. "&ip=" .. ip,
headers={['Content-Type']="application/json"},
})
if (err ~= nil and err ~= "") then
return 0
end
local j = json.decode(resp)
if (j == nil or j.result == nil or j.result.count == 0 or #(j.result.inetnums) == 0) then
return
end
local asn = 0
for _, r in pairs(j.result.inetnums) do
if r.as ~= nil and r.as.asn > 0 then
asn = r.as.asn
break
end
end
return asn
end
function asinfo(ctx, asn, key)
local resp, err = request(ctx, {
url="https://ip-netblocks.whoisxmlapi.com/api/v2?apiKey=" .. key .. "&asn=" .. tostring(asn),
headers={['Content-Type']="application/json"},
})
if (err ~= nil and err ~= "") then
return nil
end
local j = json.decode(resp)
if (j == nil or j.result == nil or j.result.count == 0 or #(j.result.inetnums) == 0) then
return nil
end
local cc = ""
local name = ""
local registry = ""
local netblocks = {}
for i, r in pairs(j.result.inetnums) do
if i == 1 then
registry = r.source
if r.org ~= nil then
cc = r.org.country
name = r.org.name
end
end
if r.as ~= nil and r.as.asn == asn and r.as.route ~= nil and r.as.route ~= "" then
table.insert(netblocks, r.as.route)
end
end
return {
['asn']=asn,
desc=name,
['cc']=cc,
['registry']=registry,
['netblocks']=netblocks,
}
end
| true |
-- Copyright 2017-2021 PI:NAME:<NAME>END_PI. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local json = require("json")
name = "WhoisXMLAPI"
type = "api"
function start()
setratelimit(2)
end
function check()
local c
local cfg = datasrc_config()
if cfg ~= nil then
c = cfg.credentials
end
if (c ~= nil and c.key ~= nil and c.key ~= "") then
return true
end
return false
end
function vertical(ctx, domain)
local c
local cfg = datasrc_config()
if cfg ~= nil then
c = cfg.credentials
end
if (c == nil or c.key == nil or c.key == "") then
return
end
local resp, err = request(ctx, {
url=verturl(domain, c.key),
headers={['Content-Type']="application/json"},
})
if (err ~= nil and err ~= "") then
return
end
local j = json.decode(resp)
if (j == nil or j.result == nil or j.result.count == 0 or #(j.result.records) == 0) then
return
end
for _, r in pairs(j.result.records) do
newname(ctx, r.domain)
end
end
function verturl(domain, key)
return "https://subdomains.whoisxmlapi.com/api/v1?apiKey=" .. key .. "&domainName=" .. domain
end
function horizontal(ctx, domain)
local c
local cfg = datasrc_config()
if cfg ~= nil then
c = cfg.credentials
end
if (c == nil or c.key == nil or c.key == "") then
return
end
local body, err = json.encode({
apiKey=c.key,
searchType="current",
mode="purchase",
basicSearchTerms={
include={domain},
},
})
if (err ~= nil and err ~= "") then
return
end
resp, err = request(ctx, {
method="POST",
data=body,
url="https://reverse-whois.whoisxmlapi.com/api/v2",
headers={['Content-Type']="application/json"},
})
if (err ~= nil and err ~= "") then
return
end
local j = json.decode(resp)
if (j == nil or j.domainsCount == 0) then
return
end
for _, name in pairs(j.domainsList) do
associated(ctx, domain, name)
end
end
function asn(ctx, addr, asn)
local c
local cfg = datasrc_config()
if cfg ~= nil then
c = cfg.credentials
end
if (c == nil or c.key == nil or c.key == "") then
return
end
local prefix
if (asn == 0) then
if (addr == "") then
return
end
asn = getasn(ctx, addr, c.key)
if (asn == 0) then
return
end
end
local a = asinfo(ctx, asn, c.key)
if (a == nil) then
return
end
newasn(ctx, {
['addr']=addr,
['asn']=asn,
['prefix']=a.netblocks[1],
['cc']=a.cc,
['registry']=a.registry,
['desc']=a.desc,
['netblocks']=a.netblocks,
})
end
function getasn(ctx, ip, key)
local resp, err = request(ctx, {
url="https://ip-netblocks.whoisxmlapi.com/api/v2?apiKey=" .. key .. "&ip=" .. ip,
headers={['Content-Type']="application/json"},
})
if (err ~= nil and err ~= "") then
return 0
end
local j = json.decode(resp)
if (j == nil or j.result == nil or j.result.count == 0 or #(j.result.inetnums) == 0) then
return
end
local asn = 0
for _, r in pairs(j.result.inetnums) do
if r.as ~= nil and r.as.asn > 0 then
asn = r.as.asn
break
end
end
return asn
end
function asinfo(ctx, asn, key)
local resp, err = request(ctx, {
url="https://ip-netblocks.whoisxmlapi.com/api/v2?apiKey=" .. key .. "&asn=" .. tostring(asn),
headers={['Content-Type']="application/json"},
})
if (err ~= nil and err ~= "") then
return nil
end
local j = json.decode(resp)
if (j == nil or j.result == nil or j.result.count == 0 or #(j.result.inetnums) == 0) then
return nil
end
local cc = ""
local name = ""
local registry = ""
local netblocks = {}
for i, r in pairs(j.result.inetnums) do
if i == 1 then
registry = r.source
if r.org ~= nil then
cc = r.org.country
name = r.org.name
end
end
if r.as ~= nil and r.as.asn == asn and r.as.route ~= nil and r.as.route ~= "" then
table.insert(netblocks, r.as.route)
end
end
return {
['asn']=asn,
desc=name,
['cc']=cc,
['registry']=registry,
['netblocks']=netblocks,
}
end
|
[
{
"context": "-- part of ParserTools, (c) 2017 Felix Krause\n-- released under the terms of the MIT license, ",
"end": 46,
"score": 0.9998494982719421,
"start": 34,
"tag": "NAME",
"value": "Felix Krause"
}
] |
Parser_Tools/src/interface/text-builder.ads
|
robdaemon/AdaYaml
| 32 |
-- part of ParserTools, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with Text.Pool;
package Text.Builder is
type Reference is new Ada.Finalization.Controlled with private;
procedure Init (Object : in out Reference; Pool : Text.Pool.Reference;
Initial_Size : Positive := 255);
function Create (Pool : Text.Pool.Reference;
Initial_Size : Positive := 255) return Reference;
function Initialized (Object : Reference) return Boolean;
procedure Append (Object : in out Reference; Value : String)
with Pre => Object.Initialized;
procedure Append (Object : in out Reference; Value : Character)
with Pre => Object.Initialized;
procedure Append (Object : in out Reference; Value : Text.Reference)
with Pre => Object.Initialized;
function Lock (Object : in out Reference) return Text.Reference;
function Length (Object : Reference) return Natural;
private
type Reference is new Ada.Finalization.Controlled with record
Pool : Text.Pool.Reference;
Buffer : UTF_8_String_Access;
Next : System.Storage_Elements.Storage_Offset := 1;
end record;
overriding procedure Adjust (Object : in out Reference);
overriding procedure Finalize (Object : in out Reference);
procedure Grow (Object : in out Reference;
Size : System.Storage_Elements.Storage_Offset);
end Text.Builder;
|
8988
|
-- part of ParserTools, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
with Text.Pool;
package Text.Builder is
type Reference is new Ada.Finalization.Controlled with private;
procedure Init (Object : in out Reference; Pool : Text.Pool.Reference;
Initial_Size : Positive := 255);
function Create (Pool : Text.Pool.Reference;
Initial_Size : Positive := 255) return Reference;
function Initialized (Object : Reference) return Boolean;
procedure Append (Object : in out Reference; Value : String)
with Pre => Object.Initialized;
procedure Append (Object : in out Reference; Value : Character)
with Pre => Object.Initialized;
procedure Append (Object : in out Reference; Value : Text.Reference)
with Pre => Object.Initialized;
function Lock (Object : in out Reference) return Text.Reference;
function Length (Object : Reference) return Natural;
private
type Reference is new Ada.Finalization.Controlled with record
Pool : Text.Pool.Reference;
Buffer : UTF_8_String_Access;
Next : System.Storage_Elements.Storage_Offset := 1;
end record;
overriding procedure Adjust (Object : in out Reference);
overriding procedure Finalize (Object : in out Reference);
procedure Grow (Object : in out Reference;
Size : System.Storage_Elements.Storage_Offset);
end Text.Builder;
| true |
-- part of ParserTools, (c) 2017 PI:NAME:<NAME>END_PI
-- released under the terms of the MIT license, see the file "copying.txt"
with Text.Pool;
package Text.Builder is
type Reference is new Ada.Finalization.Controlled with private;
procedure Init (Object : in out Reference; Pool : Text.Pool.Reference;
Initial_Size : Positive := 255);
function Create (Pool : Text.Pool.Reference;
Initial_Size : Positive := 255) return Reference;
function Initialized (Object : Reference) return Boolean;
procedure Append (Object : in out Reference; Value : String)
with Pre => Object.Initialized;
procedure Append (Object : in out Reference; Value : Character)
with Pre => Object.Initialized;
procedure Append (Object : in out Reference; Value : Text.Reference)
with Pre => Object.Initialized;
function Lock (Object : in out Reference) return Text.Reference;
function Length (Object : Reference) return Natural;
private
type Reference is new Ada.Finalization.Controlled with record
Pool : Text.Pool.Reference;
Buffer : UTF_8_String_Access;
Next : System.Storage_Elements.Storage_Offset := 1;
end record;
overriding procedure Adjust (Object : in out Reference);
overriding procedure Finalize (Object : in out Reference);
procedure Grow (Object : in out Reference;
Size : System.Storage_Elements.Storage_Offset);
end Text.Builder;
|
[
{
"context": "---------------------\n-- G E L A A S I S --\n-",
"end": 109,
"score": 0.9252067804336548,
"start": 108,
"tag": "NAME",
"value": "G"
},
{
"context": "---------------------\n-- Copyright (c) 2006-2013, Maxim Reznik\n-- All rights reserved.\n--\n-- Redistribution an",
"end": 10795,
"score": 0.9998601675033569,
"start": 10783,
"tag": "NAME",
"value": "Maxim Reznik"
},
{
"context": "the distribution.\n-- * Neither the name of the Maxim Reznik, IE nor the names of its\n-- contributors ma",
"end": 11396,
"score": 0.9977110028266907,
"start": 11384,
"tag": "NAME",
"value": "Maxim Reznik"
}
] |
source/asis/asis-gela-classes.ads
|
faelys/gela-asis
| 4 |
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- - - - - - - - - - - - - - - - --
-- Read copyright and license at the end of this file --
------------------------------------------------------------------------------
-- $Revision: 209 $ $Date: 2013-11-30 21:03:24 +0200 (Сб., 30 нояб. 2013) $
-- Purpose:
-- Represent information about a type and operations to classify it.
package Asis.Gela.Classes is
type Type_Info is private;
function Type_From_Declaration
(Tipe : Asis.Declaration;
Place : Asis.Element) return Type_Info;
-- Return information about a type given by type_declaration.
-- Place element is used to provide "point of view", because
-- type could be private from one point, but concrete from
-- another.
-- If Place is null, return last completion in the same enclosing
-- declaration
function Type_From_Subtype_Mark
(Mark : Asis.Expression;
Place : Asis.Element) return Type_Info;
-- Return information about a type given by subtype_mark
function Type_From_Indication
(Ind : Asis.Definition;
Place : Asis.Element) return Type_Info;
-- Return information about a type given by subtype_indication
-- Ind should be subtype_indication
-- (or access_definition from parameter_and_result_profile)
function Type_From_Discrete_Def
(Def : Asis.Definition;
Place : Asis.Element) return Type_Info;
-- Return information about a type given by discrete_definition
function Type_Of_Declaration
(Decl : Asis.Declaration;
Place : Asis.Element) return Type_Info;
-- Return information about a type used in object declaration
function Type_Of_Name
(Name : Asis.Defining_Name;
Place : Asis.Element) return Type_Info;
-- Return information about a type given by defining_name
function Type_Of_Range
(Lower, Upper : Asis.Expression) return Type_Info;
function Type_Of_Range
(Lower, Upper : Type_Info) return Type_Info;
procedure Set_Class_Wide (Info : in out Type_Info);
-- Turn type into class-wide
function Drop_Class (Info : Type_Info) return Type_Info;
-- Remove 'Class from Type_Info
procedure Set_Access (Info : in out Type_Info; Value : Boolean);
-- Turn type into anonymouse access
-- Clasification requests
function Is_Not_Type (Info : Type_Info) return Boolean;
function Is_Declaration (Info : Type_Info) return Boolean;
function Is_Definition (Info : Type_Info) return Boolean;
function Is_Class_Wide (Info : Type_Info) return Boolean;
function Is_Anonymous_Access (Info : Type_Info) return Boolean;
function Is_Limited (Info : Type_Info) return Boolean;
function Is_Elementary (Info : Type_Info) return Boolean;
function Is_Scalar (Info : Type_Info) return Boolean;
function Is_Discrete (Info : Type_Info) return Boolean;
function Is_Enumeration (Info : Type_Info) return Boolean;
function Is_Character (Info : Type_Info) return Boolean;
function Is_Boolean (Info : Type_Info) return Boolean;
function Is_Signed_Integer (Info : Type_Info) return Boolean;
function Is_Modular_Integer (Info : Type_Info) return Boolean;
function Is_Float_Point (Info : Type_Info) return Boolean;
function Is_Ordinary_Fixed_Point (Info : Type_Info) return Boolean;
function Is_Decimal_Fixed_Point (Info : Type_Info) return Boolean;
function Is_Constant_Access (Info : Type_Info) return Boolean;
function Is_Variable_Access (Info : Type_Info) return Boolean;
function Is_Object_Access (Info : Type_Info) return Boolean;
function Is_General_Access (Info : Type_Info) return Boolean;
function Is_Procedure_Access (Info : Type_Info) return Boolean;
function Is_Function_Access (Info : Type_Info) return Boolean;
function Is_Subprogram_Access (Info : Type_Info) return Boolean;
function Is_String (Info : Type_Info) return Boolean;
function Is_Array (Info : Type_Info) return Boolean;
function Is_Boolean_Array (Info : Type_Info) return Boolean;
function Is_Discrete_Array (Info : Type_Info) return Boolean;
function Is_Untagged_Record (Info : Type_Info) return Boolean;
function Is_Tagged (Info : Type_Info) return Boolean;
function Is_Task (Info : Type_Info) return Boolean;
function Is_Protected (Info : Type_Info) return Boolean;
function Is_Integer (Info : Type_Info) return Boolean;
function Is_Real (Info : Type_Info) return Boolean;
function Is_Fixed_Point (Info : Type_Info) return Boolean;
function Is_Numeric (Info : Type_Info) return Boolean;
function Is_Access (Info : Type_Info) return Boolean;
function Is_Composite (Info : Type_Info) return Boolean;
function Is_Universal (Info : Type_Info) return Boolean;
function Is_Incomplete (Info : Type_Info) return Boolean;
function Is_Array
(Tipe : Type_Info;
Length : Asis.List_Index) return Boolean;
function Get_Subtype (Info : Type_Info) return Asis.Declaration;
-- Misc functions
function Is_Equal (Left, Right : Type_Info) return Boolean;
function Is_Equal_Class (Left, Right : Type_Info) return Boolean;
function Hash (Info : Type_Info) return Asis.ASIS_Integer;
function Is_Covered
(Specific : Type_Info;
Class_Wide : Type_Info) return Boolean;
function Is_Expected_Type
(Specific : Type_Info;
Expected : Type_Info) return Boolean;
function Is_Subtype_Mark (Mark : Asis.Expression) return Boolean;
function Is_Type_Declaration (Decl : Asis.Declaration) return Boolean;
function Debug_Image (Info : Type_Info) return Wide_String;
function Destination_Type (Tipe : Type_Info) return Type_Info;
function Get_Array_Element_Type
(Tipe : Type_Info) return Type_Info;
function Get_Array_Index_Type
(Tipe : Type_Info;
Index : Asis.List_Index := 1) return Type_Info;
function Parent_Type (Tipe : Type_Info) return Type_Info;
function Top_Parent_Type (Tipe : Type_Info) return Type_Info;
function Function_Result_Type (Tipe : Type_Info) return Type_Info;
function Subprogram_Parameters
(Tipe : Type_Info) return Asis.Parameter_Specification_List;
function Conform_Access_Type
(Decl : Asis.Declaration;
Tipe : Type_Info) return Boolean;
function Destinated_Are_Type_Conformant
(Left, Right : Type_Info) return Boolean;
-- Left, Right should be Is_Subprogram_Access and Is_Anonymous_Access
function Find_Component
(Tipe : Type_Info;
Name : Asis.Program_Text) return Asis.Declaration;
function Get_Declaration (Info : Type_Info) return Asis.Declaration;
function Get_Type_View (Info : Type_Info) return Asis.Declaration;
function Get_Place (Info : Type_Info) return Asis.Element;
function Get_Type_Def (Tipe : Type_Info) return Asis.Definition;
function Is_Child_Of (Child, Parent : Type_Info) return Boolean;
Not_A_Type : constant Type_Info;
private
type Class_Kinds is
(An_Incomplete,
A_Character,
A_Boolean,
An_Other_Enum,
An_Universal_Integer,
A_Signed_Integer,
A_Modular_Integer,
An_Universal_Real,
A_Float_Point,
An_Universal_Fixed,
A_Ordinary_Fixed_Point,
A_Decimal_Fixed_Point,
A_Constant_Access,
A_Variable_Access,
A_Pool_Access,
A_Procedure_Access,
A_Function_Access,
A_Universal_Access,
A_String,
A_Boolean_Array,
A_Other_Discrete_Array,
An_Other_Array,
A_Untagged_Record,
A_Tagged,
A_Task,
A_Protected,
A_Private);
subtype An_Elementary is Class_Kinds
range A_Character .. A_Universal_Access;
subtype A_Scalar is Class_Kinds
range A_Character .. A_Decimal_Fixed_Point;
subtype A_Discrete is Class_Kinds
range A_Character .. A_Modular_Integer;
subtype An_Enumeration is Class_Kinds
range A_Character .. An_Other_Enum;
subtype An_Integer is Class_Kinds
range An_Universal_Integer .. A_Modular_Integer;
subtype A_Real is Class_Kinds
range An_Universal_Real .. A_Decimal_Fixed_Point;
subtype A_Fixed_Point is Class_Kinds
range An_Universal_Fixed .. A_Decimal_Fixed_Point;
subtype A_Numeric is Class_Kinds
range An_Universal_Integer .. A_Decimal_Fixed_Point;
subtype An_Access is Class_Kinds
range A_Constant_Access .. A_Universal_Access;
subtype A_Subprogram_Access is Class_Kinds
range A_Procedure_Access .. A_Function_Access;
subtype An_Object_Access is Class_Kinds
range A_Constant_Access .. A_Pool_Access;
subtype A_General_Access is Class_Kinds
range A_Constant_Access .. A_Variable_Access;
subtype A_Composite is Class_Kinds
range A_String .. A_Private;
subtype An_Array is Class_Kinds
range A_String .. An_Other_Array;
subtype A_Discrete_Array is Class_Kinds
range A_String .. A_Other_Discrete_Array;
type Info_Kinds is
(Declaration_Info, -- Ordinary type declaration
Defining_Name_Info, -- Anonymous type other then in return
Return_Info); -- Anonymous type in function return
type Type_Info (Kind : Info_Kinds := Declaration_Info) is record
Class_Kind : Class_Kinds;
Is_Class_Wide : Boolean := False;
Is_Access : Boolean := False;
Is_Limited : Boolean := False;
Place : Asis.Element; -- type viewed from Place
case Kind is
when Declaration_Info =>
Base_Type : Asis.Declaration;
Type_View : Asis.Declaration;
Subtipe : Asis.Declaration;
when Defining_Name_Info =>
Object_Name : Asis.Defining_Name; -- name of object of anon type
when Return_Info =>
Access_Definition : Asis.Definition;
end case;
end record;
Not_A_Type : constant Type_Info :=
(Declaration_Info, Class_Kinds'First, False, False, False,
others => Asis.Nil_Element);
end Asis.Gela.Classes;
------------------------------------------------------------------------------
-- Copyright (c) 2006-2013, Maxim Reznik
-- 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 Maxim Reznik, 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 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.
------------------------------------------------------------------------------
|
21371
|
------------------------------------------------------------------------------
-- <NAME> E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- - - - - - - - - - - - - - - - --
-- Read copyright and license at the end of this file --
------------------------------------------------------------------------------
-- $Revision: 209 $ $Date: 2013-11-30 21:03:24 +0200 (Сб., 30 нояб. 2013) $
-- Purpose:
-- Represent information about a type and operations to classify it.
package Asis.Gela.Classes is
type Type_Info is private;
function Type_From_Declaration
(Tipe : Asis.Declaration;
Place : Asis.Element) return Type_Info;
-- Return information about a type given by type_declaration.
-- Place element is used to provide "point of view", because
-- type could be private from one point, but concrete from
-- another.
-- If Place is null, return last completion in the same enclosing
-- declaration
function Type_From_Subtype_Mark
(Mark : Asis.Expression;
Place : Asis.Element) return Type_Info;
-- Return information about a type given by subtype_mark
function Type_From_Indication
(Ind : Asis.Definition;
Place : Asis.Element) return Type_Info;
-- Return information about a type given by subtype_indication
-- Ind should be subtype_indication
-- (or access_definition from parameter_and_result_profile)
function Type_From_Discrete_Def
(Def : Asis.Definition;
Place : Asis.Element) return Type_Info;
-- Return information about a type given by discrete_definition
function Type_Of_Declaration
(Decl : Asis.Declaration;
Place : Asis.Element) return Type_Info;
-- Return information about a type used in object declaration
function Type_Of_Name
(Name : Asis.Defining_Name;
Place : Asis.Element) return Type_Info;
-- Return information about a type given by defining_name
function Type_Of_Range
(Lower, Upper : Asis.Expression) return Type_Info;
function Type_Of_Range
(Lower, Upper : Type_Info) return Type_Info;
procedure Set_Class_Wide (Info : in out Type_Info);
-- Turn type into class-wide
function Drop_Class (Info : Type_Info) return Type_Info;
-- Remove 'Class from Type_Info
procedure Set_Access (Info : in out Type_Info; Value : Boolean);
-- Turn type into anonymouse access
-- Clasification requests
function Is_Not_Type (Info : Type_Info) return Boolean;
function Is_Declaration (Info : Type_Info) return Boolean;
function Is_Definition (Info : Type_Info) return Boolean;
function Is_Class_Wide (Info : Type_Info) return Boolean;
function Is_Anonymous_Access (Info : Type_Info) return Boolean;
function Is_Limited (Info : Type_Info) return Boolean;
function Is_Elementary (Info : Type_Info) return Boolean;
function Is_Scalar (Info : Type_Info) return Boolean;
function Is_Discrete (Info : Type_Info) return Boolean;
function Is_Enumeration (Info : Type_Info) return Boolean;
function Is_Character (Info : Type_Info) return Boolean;
function Is_Boolean (Info : Type_Info) return Boolean;
function Is_Signed_Integer (Info : Type_Info) return Boolean;
function Is_Modular_Integer (Info : Type_Info) return Boolean;
function Is_Float_Point (Info : Type_Info) return Boolean;
function Is_Ordinary_Fixed_Point (Info : Type_Info) return Boolean;
function Is_Decimal_Fixed_Point (Info : Type_Info) return Boolean;
function Is_Constant_Access (Info : Type_Info) return Boolean;
function Is_Variable_Access (Info : Type_Info) return Boolean;
function Is_Object_Access (Info : Type_Info) return Boolean;
function Is_General_Access (Info : Type_Info) return Boolean;
function Is_Procedure_Access (Info : Type_Info) return Boolean;
function Is_Function_Access (Info : Type_Info) return Boolean;
function Is_Subprogram_Access (Info : Type_Info) return Boolean;
function Is_String (Info : Type_Info) return Boolean;
function Is_Array (Info : Type_Info) return Boolean;
function Is_Boolean_Array (Info : Type_Info) return Boolean;
function Is_Discrete_Array (Info : Type_Info) return Boolean;
function Is_Untagged_Record (Info : Type_Info) return Boolean;
function Is_Tagged (Info : Type_Info) return Boolean;
function Is_Task (Info : Type_Info) return Boolean;
function Is_Protected (Info : Type_Info) return Boolean;
function Is_Integer (Info : Type_Info) return Boolean;
function Is_Real (Info : Type_Info) return Boolean;
function Is_Fixed_Point (Info : Type_Info) return Boolean;
function Is_Numeric (Info : Type_Info) return Boolean;
function Is_Access (Info : Type_Info) return Boolean;
function Is_Composite (Info : Type_Info) return Boolean;
function Is_Universal (Info : Type_Info) return Boolean;
function Is_Incomplete (Info : Type_Info) return Boolean;
function Is_Array
(Tipe : Type_Info;
Length : Asis.List_Index) return Boolean;
function Get_Subtype (Info : Type_Info) return Asis.Declaration;
-- Misc functions
function Is_Equal (Left, Right : Type_Info) return Boolean;
function Is_Equal_Class (Left, Right : Type_Info) return Boolean;
function Hash (Info : Type_Info) return Asis.ASIS_Integer;
function Is_Covered
(Specific : Type_Info;
Class_Wide : Type_Info) return Boolean;
function Is_Expected_Type
(Specific : Type_Info;
Expected : Type_Info) return Boolean;
function Is_Subtype_Mark (Mark : Asis.Expression) return Boolean;
function Is_Type_Declaration (Decl : Asis.Declaration) return Boolean;
function Debug_Image (Info : Type_Info) return Wide_String;
function Destination_Type (Tipe : Type_Info) return Type_Info;
function Get_Array_Element_Type
(Tipe : Type_Info) return Type_Info;
function Get_Array_Index_Type
(Tipe : Type_Info;
Index : Asis.List_Index := 1) return Type_Info;
function Parent_Type (Tipe : Type_Info) return Type_Info;
function Top_Parent_Type (Tipe : Type_Info) return Type_Info;
function Function_Result_Type (Tipe : Type_Info) return Type_Info;
function Subprogram_Parameters
(Tipe : Type_Info) return Asis.Parameter_Specification_List;
function Conform_Access_Type
(Decl : Asis.Declaration;
Tipe : Type_Info) return Boolean;
function Destinated_Are_Type_Conformant
(Left, Right : Type_Info) return Boolean;
-- Left, Right should be Is_Subprogram_Access and Is_Anonymous_Access
function Find_Component
(Tipe : Type_Info;
Name : Asis.Program_Text) return Asis.Declaration;
function Get_Declaration (Info : Type_Info) return Asis.Declaration;
function Get_Type_View (Info : Type_Info) return Asis.Declaration;
function Get_Place (Info : Type_Info) return Asis.Element;
function Get_Type_Def (Tipe : Type_Info) return Asis.Definition;
function Is_Child_Of (Child, Parent : Type_Info) return Boolean;
Not_A_Type : constant Type_Info;
private
type Class_Kinds is
(An_Incomplete,
A_Character,
A_Boolean,
An_Other_Enum,
An_Universal_Integer,
A_Signed_Integer,
A_Modular_Integer,
An_Universal_Real,
A_Float_Point,
An_Universal_Fixed,
A_Ordinary_Fixed_Point,
A_Decimal_Fixed_Point,
A_Constant_Access,
A_Variable_Access,
A_Pool_Access,
A_Procedure_Access,
A_Function_Access,
A_Universal_Access,
A_String,
A_Boolean_Array,
A_Other_Discrete_Array,
An_Other_Array,
A_Untagged_Record,
A_Tagged,
A_Task,
A_Protected,
A_Private);
subtype An_Elementary is Class_Kinds
range A_Character .. A_Universal_Access;
subtype A_Scalar is Class_Kinds
range A_Character .. A_Decimal_Fixed_Point;
subtype A_Discrete is Class_Kinds
range A_Character .. A_Modular_Integer;
subtype An_Enumeration is Class_Kinds
range A_Character .. An_Other_Enum;
subtype An_Integer is Class_Kinds
range An_Universal_Integer .. A_Modular_Integer;
subtype A_Real is Class_Kinds
range An_Universal_Real .. A_Decimal_Fixed_Point;
subtype A_Fixed_Point is Class_Kinds
range An_Universal_Fixed .. A_Decimal_Fixed_Point;
subtype A_Numeric is Class_Kinds
range An_Universal_Integer .. A_Decimal_Fixed_Point;
subtype An_Access is Class_Kinds
range A_Constant_Access .. A_Universal_Access;
subtype A_Subprogram_Access is Class_Kinds
range A_Procedure_Access .. A_Function_Access;
subtype An_Object_Access is Class_Kinds
range A_Constant_Access .. A_Pool_Access;
subtype A_General_Access is Class_Kinds
range A_Constant_Access .. A_Variable_Access;
subtype A_Composite is Class_Kinds
range A_String .. A_Private;
subtype An_Array is Class_Kinds
range A_String .. An_Other_Array;
subtype A_Discrete_Array is Class_Kinds
range A_String .. A_Other_Discrete_Array;
type Info_Kinds is
(Declaration_Info, -- Ordinary type declaration
Defining_Name_Info, -- Anonymous type other then in return
Return_Info); -- Anonymous type in function return
type Type_Info (Kind : Info_Kinds := Declaration_Info) is record
Class_Kind : Class_Kinds;
Is_Class_Wide : Boolean := False;
Is_Access : Boolean := False;
Is_Limited : Boolean := False;
Place : Asis.Element; -- type viewed from Place
case Kind is
when Declaration_Info =>
Base_Type : Asis.Declaration;
Type_View : Asis.Declaration;
Subtipe : Asis.Declaration;
when Defining_Name_Info =>
Object_Name : Asis.Defining_Name; -- name of object of anon type
when Return_Info =>
Access_Definition : Asis.Definition;
end case;
end record;
Not_A_Type : constant Type_Info :=
(Declaration_Info, Class_Kinds'First, False, False, False,
others => Asis.Nil_Element);
end Asis.Gela.Classes;
------------------------------------------------------------------------------
-- Copyright (c) 2006-2013, <NAME>
-- 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 <NAME>, 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 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.
------------------------------------------------------------------------------
| true |
------------------------------------------------------------------------------
-- PI:NAME:<NAME>END_PI E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- - - - - - - - - - - - - - - - --
-- Read copyright and license at the end of this file --
------------------------------------------------------------------------------
-- $Revision: 209 $ $Date: 2013-11-30 21:03:24 +0200 (Сб., 30 нояб. 2013) $
-- Purpose:
-- Represent information about a type and operations to classify it.
package Asis.Gela.Classes is
type Type_Info is private;
function Type_From_Declaration
(Tipe : Asis.Declaration;
Place : Asis.Element) return Type_Info;
-- Return information about a type given by type_declaration.
-- Place element is used to provide "point of view", because
-- type could be private from one point, but concrete from
-- another.
-- If Place is null, return last completion in the same enclosing
-- declaration
function Type_From_Subtype_Mark
(Mark : Asis.Expression;
Place : Asis.Element) return Type_Info;
-- Return information about a type given by subtype_mark
function Type_From_Indication
(Ind : Asis.Definition;
Place : Asis.Element) return Type_Info;
-- Return information about a type given by subtype_indication
-- Ind should be subtype_indication
-- (or access_definition from parameter_and_result_profile)
function Type_From_Discrete_Def
(Def : Asis.Definition;
Place : Asis.Element) return Type_Info;
-- Return information about a type given by discrete_definition
function Type_Of_Declaration
(Decl : Asis.Declaration;
Place : Asis.Element) return Type_Info;
-- Return information about a type used in object declaration
function Type_Of_Name
(Name : Asis.Defining_Name;
Place : Asis.Element) return Type_Info;
-- Return information about a type given by defining_name
function Type_Of_Range
(Lower, Upper : Asis.Expression) return Type_Info;
function Type_Of_Range
(Lower, Upper : Type_Info) return Type_Info;
procedure Set_Class_Wide (Info : in out Type_Info);
-- Turn type into class-wide
function Drop_Class (Info : Type_Info) return Type_Info;
-- Remove 'Class from Type_Info
procedure Set_Access (Info : in out Type_Info; Value : Boolean);
-- Turn type into anonymouse access
-- Clasification requests
function Is_Not_Type (Info : Type_Info) return Boolean;
function Is_Declaration (Info : Type_Info) return Boolean;
function Is_Definition (Info : Type_Info) return Boolean;
function Is_Class_Wide (Info : Type_Info) return Boolean;
function Is_Anonymous_Access (Info : Type_Info) return Boolean;
function Is_Limited (Info : Type_Info) return Boolean;
function Is_Elementary (Info : Type_Info) return Boolean;
function Is_Scalar (Info : Type_Info) return Boolean;
function Is_Discrete (Info : Type_Info) return Boolean;
function Is_Enumeration (Info : Type_Info) return Boolean;
function Is_Character (Info : Type_Info) return Boolean;
function Is_Boolean (Info : Type_Info) return Boolean;
function Is_Signed_Integer (Info : Type_Info) return Boolean;
function Is_Modular_Integer (Info : Type_Info) return Boolean;
function Is_Float_Point (Info : Type_Info) return Boolean;
function Is_Ordinary_Fixed_Point (Info : Type_Info) return Boolean;
function Is_Decimal_Fixed_Point (Info : Type_Info) return Boolean;
function Is_Constant_Access (Info : Type_Info) return Boolean;
function Is_Variable_Access (Info : Type_Info) return Boolean;
function Is_Object_Access (Info : Type_Info) return Boolean;
function Is_General_Access (Info : Type_Info) return Boolean;
function Is_Procedure_Access (Info : Type_Info) return Boolean;
function Is_Function_Access (Info : Type_Info) return Boolean;
function Is_Subprogram_Access (Info : Type_Info) return Boolean;
function Is_String (Info : Type_Info) return Boolean;
function Is_Array (Info : Type_Info) return Boolean;
function Is_Boolean_Array (Info : Type_Info) return Boolean;
function Is_Discrete_Array (Info : Type_Info) return Boolean;
function Is_Untagged_Record (Info : Type_Info) return Boolean;
function Is_Tagged (Info : Type_Info) return Boolean;
function Is_Task (Info : Type_Info) return Boolean;
function Is_Protected (Info : Type_Info) return Boolean;
function Is_Integer (Info : Type_Info) return Boolean;
function Is_Real (Info : Type_Info) return Boolean;
function Is_Fixed_Point (Info : Type_Info) return Boolean;
function Is_Numeric (Info : Type_Info) return Boolean;
function Is_Access (Info : Type_Info) return Boolean;
function Is_Composite (Info : Type_Info) return Boolean;
function Is_Universal (Info : Type_Info) return Boolean;
function Is_Incomplete (Info : Type_Info) return Boolean;
function Is_Array
(Tipe : Type_Info;
Length : Asis.List_Index) return Boolean;
function Get_Subtype (Info : Type_Info) return Asis.Declaration;
-- Misc functions
function Is_Equal (Left, Right : Type_Info) return Boolean;
function Is_Equal_Class (Left, Right : Type_Info) return Boolean;
function Hash (Info : Type_Info) return Asis.ASIS_Integer;
function Is_Covered
(Specific : Type_Info;
Class_Wide : Type_Info) return Boolean;
function Is_Expected_Type
(Specific : Type_Info;
Expected : Type_Info) return Boolean;
function Is_Subtype_Mark (Mark : Asis.Expression) return Boolean;
function Is_Type_Declaration (Decl : Asis.Declaration) return Boolean;
function Debug_Image (Info : Type_Info) return Wide_String;
function Destination_Type (Tipe : Type_Info) return Type_Info;
function Get_Array_Element_Type
(Tipe : Type_Info) return Type_Info;
function Get_Array_Index_Type
(Tipe : Type_Info;
Index : Asis.List_Index := 1) return Type_Info;
function Parent_Type (Tipe : Type_Info) return Type_Info;
function Top_Parent_Type (Tipe : Type_Info) return Type_Info;
function Function_Result_Type (Tipe : Type_Info) return Type_Info;
function Subprogram_Parameters
(Tipe : Type_Info) return Asis.Parameter_Specification_List;
function Conform_Access_Type
(Decl : Asis.Declaration;
Tipe : Type_Info) return Boolean;
function Destinated_Are_Type_Conformant
(Left, Right : Type_Info) return Boolean;
-- Left, Right should be Is_Subprogram_Access and Is_Anonymous_Access
function Find_Component
(Tipe : Type_Info;
Name : Asis.Program_Text) return Asis.Declaration;
function Get_Declaration (Info : Type_Info) return Asis.Declaration;
function Get_Type_View (Info : Type_Info) return Asis.Declaration;
function Get_Place (Info : Type_Info) return Asis.Element;
function Get_Type_Def (Tipe : Type_Info) return Asis.Definition;
function Is_Child_Of (Child, Parent : Type_Info) return Boolean;
Not_A_Type : constant Type_Info;
private
type Class_Kinds is
(An_Incomplete,
A_Character,
A_Boolean,
An_Other_Enum,
An_Universal_Integer,
A_Signed_Integer,
A_Modular_Integer,
An_Universal_Real,
A_Float_Point,
An_Universal_Fixed,
A_Ordinary_Fixed_Point,
A_Decimal_Fixed_Point,
A_Constant_Access,
A_Variable_Access,
A_Pool_Access,
A_Procedure_Access,
A_Function_Access,
A_Universal_Access,
A_String,
A_Boolean_Array,
A_Other_Discrete_Array,
An_Other_Array,
A_Untagged_Record,
A_Tagged,
A_Task,
A_Protected,
A_Private);
subtype An_Elementary is Class_Kinds
range A_Character .. A_Universal_Access;
subtype A_Scalar is Class_Kinds
range A_Character .. A_Decimal_Fixed_Point;
subtype A_Discrete is Class_Kinds
range A_Character .. A_Modular_Integer;
subtype An_Enumeration is Class_Kinds
range A_Character .. An_Other_Enum;
subtype An_Integer is Class_Kinds
range An_Universal_Integer .. A_Modular_Integer;
subtype A_Real is Class_Kinds
range An_Universal_Real .. A_Decimal_Fixed_Point;
subtype A_Fixed_Point is Class_Kinds
range An_Universal_Fixed .. A_Decimal_Fixed_Point;
subtype A_Numeric is Class_Kinds
range An_Universal_Integer .. A_Decimal_Fixed_Point;
subtype An_Access is Class_Kinds
range A_Constant_Access .. A_Universal_Access;
subtype A_Subprogram_Access is Class_Kinds
range A_Procedure_Access .. A_Function_Access;
subtype An_Object_Access is Class_Kinds
range A_Constant_Access .. A_Pool_Access;
subtype A_General_Access is Class_Kinds
range A_Constant_Access .. A_Variable_Access;
subtype A_Composite is Class_Kinds
range A_String .. A_Private;
subtype An_Array is Class_Kinds
range A_String .. An_Other_Array;
subtype A_Discrete_Array is Class_Kinds
range A_String .. A_Other_Discrete_Array;
type Info_Kinds is
(Declaration_Info, -- Ordinary type declaration
Defining_Name_Info, -- Anonymous type other then in return
Return_Info); -- Anonymous type in function return
type Type_Info (Kind : Info_Kinds := Declaration_Info) is record
Class_Kind : Class_Kinds;
Is_Class_Wide : Boolean := False;
Is_Access : Boolean := False;
Is_Limited : Boolean := False;
Place : Asis.Element; -- type viewed from Place
case Kind is
when Declaration_Info =>
Base_Type : Asis.Declaration;
Type_View : Asis.Declaration;
Subtipe : Asis.Declaration;
when Defining_Name_Info =>
Object_Name : Asis.Defining_Name; -- name of object of anon type
when Return_Info =>
Access_Definition : Asis.Definition;
end case;
end record;
Not_A_Type : constant Type_Info :=
(Declaration_Info, Class_Kinds'First, False, False, False,
others => Asis.Nil_Element);
end Asis.Gela.Classes;
------------------------------------------------------------------------------
-- Copyright (c) 2006-2013, PI:NAME:<NAME>END_PI
-- 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 PI:NAME:<NAME>END_PI, 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 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.
------------------------------------------------------------------------------
|
[
{
"context": "---------------------\n-- Copyright (c) 2013-2020, Luke A. Guest\n--\n-- This software is provided 'as-is', without",
"end": 159,
"score": 0.9998008608818054,
"start": 146,
"tag": "NAME",
"value": "Luke A. Guest"
}
] |
src/sdl.ads
|
Fabien-Chouteau/sdlada
| 1 |
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2020, 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.
--------------------------------------------------------------------------------------------------------------------
-- SDL
--
-- Ada 2012 bindings to the SDL 2.x.y library.
--------------------------------------------------------------------------------------------------------------------
with Interfaces.C;
package SDL is
package C renames Interfaces.C;
use type C.int;
type Init_Flags is mod 2 ** 32 with
Convention => C;
Null_Init_Flags : constant Init_Flags := 16#0000_0000#;
Enable_Timer : constant Init_Flags := 16#0000_0001#;
Enable_Audio : constant Init_Flags := 16#0000_0010#;
Enable_Screen : constant Init_Flags := 16#0000_0020#;
Enable_Joystick : constant Init_Flags := 16#0000_0200#;
Enable_Haptic : constant Init_Flags := 16#0000_1000#;
Enable_Game_Controller : constant Init_Flags := 16#0000_2000#;
Enable_Events : constant Init_Flags := 16#0000_4000#;
Enable_No_Parachute : constant Init_Flags := 16#0010_0000#;
Enable_Everything : constant Init_Flags :=
Enable_Timer or Enable_Audio or Enable_Screen or Enable_Joystick or Enable_Haptic or
Enable_Game_Controller or Enable_Events or Enable_No_Parachute;
-- Coordinates are for positioning things.
subtype Coordinate is C.int;
subtype Natural_Coordinate is Coordinate range 0 .. Coordinate'Last;
subtype Positive_Coordinate is Coordinate range 1 .. Coordinate'Last;
Centre_Coordinate : constant Coordinate := 0;
type Coordinates is
record
X : SDL.Coordinate;
Y : SDL.Coordinate;
end record with
Convention => C;
Zero_Coordinate : constant Coordinates := (others => 0);
subtype Natural_Coordinates is Coordinates with
Dynamic_Predicate =>
Natural_Coordinates.X >= Natural_Coordinate'First and Natural_Coordinates.Y >= Natural_Coordinate'First;
subtype Positive_Coordinates is Coordinates with
Dynamic_Predicate =>
Positive_Coordinates.X >= Positive_Coordinate'First and Positive_Coordinates.Y >= Positive_Coordinate'First;
-- Dimensions are for sizing things.
subtype Dimension is C.int;
subtype Natural_Dimension is Dimension range 0 .. Dimension'Last;
subtype Positive_Dimension is Dimension range 1 .. Dimension'Last;
type Sizes is
record
Width : Dimension;
Height : Dimension;
end record with
Convention => C;
Zero_Size : constant Sizes := (others => Natural_Dimension'First);
subtype Natural_Sizes is Sizes with
Dynamic_Predicate => Natural_Sizes.Width >= 0 and Natural_Sizes.Height >= 0;
subtype Positive_Sizes is Sizes with
Dynamic_Predicate => Positive_Sizes.Width >= 1 and Positive_Sizes.Height >= 1;
function "*" (Left : in Sizes; Scale : in Positive_Dimension) return Sizes is
(Sizes'(Width => Left.Width * Scale, Height => Left.Height * Scale));
function "/" (Left : in Sizes; Scale : in Positive_Dimension) return Sizes is
(Sizes'(Width => Left.Width / Scale, Height => Left.Height / Scale));
function Initialise (Flags : in Init_Flags := Enable_Everything) return Boolean;
procedure Finalise with
Import => True,
Convention => C,
External_Name => "SDL_Quit";
function Initialise_Sub_System (Flags : in Init_Flags) return Boolean;
procedure Finalise_Sub_System
(Flags : in Init_Flags) with
Import => True,
Convention => C,
External_Name => "SDL_QuitSubSystem";
-- Get which sub-systems were initialised.
function Was_Initialised return Init_Flags;
-- Check whether a set of sub-systems were initialised.
function Was_Initialised (Flags : in Init_Flags) return Boolean;
private
Success : constant Interfaces.C.int := 0;
type SDL_Bool is (SDL_False, SDL_True) with
Convention => C;
-- The next value is used in mapping the Ada types onto the C types, it is the word size used for all data
-- in SDL, i.e. all data is 4 byte aligned so it works with 32-bit architectures.
Word : constant := 4;
-- These constants are internal to the events system.
SDL_Query : constant C.int := -1;
SDL_Ignore : constant C.int := 0;
SDL_Disable : constant C.int := 0;
SDL_Enable : constant C.int := 1;
end SDL;
|
12336
|
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2020, <NAME>
--
-- 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.
--------------------------------------------------------------------------------------------------------------------
-- SDL
--
-- Ada 2012 bindings to the SDL 2.x.y library.
--------------------------------------------------------------------------------------------------------------------
with Interfaces.C;
package SDL is
package C renames Interfaces.C;
use type C.int;
type Init_Flags is mod 2 ** 32 with
Convention => C;
Null_Init_Flags : constant Init_Flags := 16#0000_0000#;
Enable_Timer : constant Init_Flags := 16#0000_0001#;
Enable_Audio : constant Init_Flags := 16#0000_0010#;
Enable_Screen : constant Init_Flags := 16#0000_0020#;
Enable_Joystick : constant Init_Flags := 16#0000_0200#;
Enable_Haptic : constant Init_Flags := 16#0000_1000#;
Enable_Game_Controller : constant Init_Flags := 16#0000_2000#;
Enable_Events : constant Init_Flags := 16#0000_4000#;
Enable_No_Parachute : constant Init_Flags := 16#0010_0000#;
Enable_Everything : constant Init_Flags :=
Enable_Timer or Enable_Audio or Enable_Screen or Enable_Joystick or Enable_Haptic or
Enable_Game_Controller or Enable_Events or Enable_No_Parachute;
-- Coordinates are for positioning things.
subtype Coordinate is C.int;
subtype Natural_Coordinate is Coordinate range 0 .. Coordinate'Last;
subtype Positive_Coordinate is Coordinate range 1 .. Coordinate'Last;
Centre_Coordinate : constant Coordinate := 0;
type Coordinates is
record
X : SDL.Coordinate;
Y : SDL.Coordinate;
end record with
Convention => C;
Zero_Coordinate : constant Coordinates := (others => 0);
subtype Natural_Coordinates is Coordinates with
Dynamic_Predicate =>
Natural_Coordinates.X >= Natural_Coordinate'First and Natural_Coordinates.Y >= Natural_Coordinate'First;
subtype Positive_Coordinates is Coordinates with
Dynamic_Predicate =>
Positive_Coordinates.X >= Positive_Coordinate'First and Positive_Coordinates.Y >= Positive_Coordinate'First;
-- Dimensions are for sizing things.
subtype Dimension is C.int;
subtype Natural_Dimension is Dimension range 0 .. Dimension'Last;
subtype Positive_Dimension is Dimension range 1 .. Dimension'Last;
type Sizes is
record
Width : Dimension;
Height : Dimension;
end record with
Convention => C;
Zero_Size : constant Sizes := (others => Natural_Dimension'First);
subtype Natural_Sizes is Sizes with
Dynamic_Predicate => Natural_Sizes.Width >= 0 and Natural_Sizes.Height >= 0;
subtype Positive_Sizes is Sizes with
Dynamic_Predicate => Positive_Sizes.Width >= 1 and Positive_Sizes.Height >= 1;
function "*" (Left : in Sizes; Scale : in Positive_Dimension) return Sizes is
(Sizes'(Width => Left.Width * Scale, Height => Left.Height * Scale));
function "/" (Left : in Sizes; Scale : in Positive_Dimension) return Sizes is
(Sizes'(Width => Left.Width / Scale, Height => Left.Height / Scale));
function Initialise (Flags : in Init_Flags := Enable_Everything) return Boolean;
procedure Finalise with
Import => True,
Convention => C,
External_Name => "SDL_Quit";
function Initialise_Sub_System (Flags : in Init_Flags) return Boolean;
procedure Finalise_Sub_System
(Flags : in Init_Flags) with
Import => True,
Convention => C,
External_Name => "SDL_QuitSubSystem";
-- Get which sub-systems were initialised.
function Was_Initialised return Init_Flags;
-- Check whether a set of sub-systems were initialised.
function Was_Initialised (Flags : in Init_Flags) return Boolean;
private
Success : constant Interfaces.C.int := 0;
type SDL_Bool is (SDL_False, SDL_True) with
Convention => C;
-- The next value is used in mapping the Ada types onto the C types, it is the word size used for all data
-- in SDL, i.e. all data is 4 byte aligned so it works with 32-bit architectures.
Word : constant := 4;
-- These constants are internal to the events system.
SDL_Query : constant C.int := -1;
SDL_Ignore : constant C.int := 0;
SDL_Disable : constant C.int := 0;
SDL_Enable : constant C.int := 1;
end SDL;
| true |
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2020, PI:NAME:<NAME>END_PI
--
-- 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.
--------------------------------------------------------------------------------------------------------------------
-- SDL
--
-- Ada 2012 bindings to the SDL 2.x.y library.
--------------------------------------------------------------------------------------------------------------------
with Interfaces.C;
package SDL is
package C renames Interfaces.C;
use type C.int;
type Init_Flags is mod 2 ** 32 with
Convention => C;
Null_Init_Flags : constant Init_Flags := 16#0000_0000#;
Enable_Timer : constant Init_Flags := 16#0000_0001#;
Enable_Audio : constant Init_Flags := 16#0000_0010#;
Enable_Screen : constant Init_Flags := 16#0000_0020#;
Enable_Joystick : constant Init_Flags := 16#0000_0200#;
Enable_Haptic : constant Init_Flags := 16#0000_1000#;
Enable_Game_Controller : constant Init_Flags := 16#0000_2000#;
Enable_Events : constant Init_Flags := 16#0000_4000#;
Enable_No_Parachute : constant Init_Flags := 16#0010_0000#;
Enable_Everything : constant Init_Flags :=
Enable_Timer or Enable_Audio or Enable_Screen or Enable_Joystick or Enable_Haptic or
Enable_Game_Controller or Enable_Events or Enable_No_Parachute;
-- Coordinates are for positioning things.
subtype Coordinate is C.int;
subtype Natural_Coordinate is Coordinate range 0 .. Coordinate'Last;
subtype Positive_Coordinate is Coordinate range 1 .. Coordinate'Last;
Centre_Coordinate : constant Coordinate := 0;
type Coordinates is
record
X : SDL.Coordinate;
Y : SDL.Coordinate;
end record with
Convention => C;
Zero_Coordinate : constant Coordinates := (others => 0);
subtype Natural_Coordinates is Coordinates with
Dynamic_Predicate =>
Natural_Coordinates.X >= Natural_Coordinate'First and Natural_Coordinates.Y >= Natural_Coordinate'First;
subtype Positive_Coordinates is Coordinates with
Dynamic_Predicate =>
Positive_Coordinates.X >= Positive_Coordinate'First and Positive_Coordinates.Y >= Positive_Coordinate'First;
-- Dimensions are for sizing things.
subtype Dimension is C.int;
subtype Natural_Dimension is Dimension range 0 .. Dimension'Last;
subtype Positive_Dimension is Dimension range 1 .. Dimension'Last;
type Sizes is
record
Width : Dimension;
Height : Dimension;
end record with
Convention => C;
Zero_Size : constant Sizes := (others => Natural_Dimension'First);
subtype Natural_Sizes is Sizes with
Dynamic_Predicate => Natural_Sizes.Width >= 0 and Natural_Sizes.Height >= 0;
subtype Positive_Sizes is Sizes with
Dynamic_Predicate => Positive_Sizes.Width >= 1 and Positive_Sizes.Height >= 1;
function "*" (Left : in Sizes; Scale : in Positive_Dimension) return Sizes is
(Sizes'(Width => Left.Width * Scale, Height => Left.Height * Scale));
function "/" (Left : in Sizes; Scale : in Positive_Dimension) return Sizes is
(Sizes'(Width => Left.Width / Scale, Height => Left.Height / Scale));
function Initialise (Flags : in Init_Flags := Enable_Everything) return Boolean;
procedure Finalise with
Import => True,
Convention => C,
External_Name => "SDL_Quit";
function Initialise_Sub_System (Flags : in Init_Flags) return Boolean;
procedure Finalise_Sub_System
(Flags : in Init_Flags) with
Import => True,
Convention => C,
External_Name => "SDL_QuitSubSystem";
-- Get which sub-systems were initialised.
function Was_Initialised return Init_Flags;
-- Check whether a set of sub-systems were initialised.
function Was_Initialised (Flags : in Init_Flags) return Boolean;
private
Success : constant Interfaces.C.int := 0;
type SDL_Bool is (SDL_False, SDL_True) with
Convention => C;
-- The next value is used in mapping the Ada types onto the C types, it is the word size used for all data
-- in SDL, i.e. all data is 4 byte aligned so it works with 32-bit architectures.
Word : constant := 4;
-- These constants are internal to the events system.
SDL_Query : constant C.int := -1;
SDL_Ignore : constant C.int := 0;
SDL_Disable : constant C.int := 0;
SDL_Enable : constant C.int := 1;
end SDL;
|
[
{
"context": "- Created:\tWed Apr 14 12:53:06 1993\n-- Author: \tEric Gustafson\n--\t\t<egustafs@play-doh>\n--\n\n\nwith TEXT_IO;\n\nproce",
"end": 112,
"score": 0.999817430973053,
"start": 98,
"tag": "NAME",
"value": "Eric Gustafson"
},
{
"context": "14 12:53:06 1993\n-- Author: \tEric Gustafson\n--\t\t<egustafs@play-doh>\n--\n\n\nwith TEXT_IO;\n\nprocedure INT_IN is\n\n packa",
"end": 135,
"score": 0.9969828128814697,
"start": 118,
"tag": "EMAIL",
"value": "egustafs@play-doh"
}
] |
Ada/gnat/int_in.adb
|
egustafson/sandbox
| 2 |
-- int_in.ada
--
--
-- Title: Integer Input
-- Created: Wed Apr 14 12:53:06 1993
-- Author: Eric Gustafson
-- <egustafs@play-doh>
--
with TEXT_IO;
procedure INT_IN is
package INT_IO is new TEXT_IO.INTEGER_IO( INTEGER );
use TEXT_IO;
use INT_IO;
I : INTEGER;
VALID_INPUT : BOOLEAN;
begin -- INT_IN
VALID_INPUT := FALSE;
WHILE NOT( VALID_INPUT ) loop
begin
PUT("Enter Number: ");
GET( I );
VALID_INPUT := TRUE;
NEW_LINE(2);
exception
when DATA_ERROR =>
SKIP_LINE;
NEW_LINE;
PUT_LINE("Invalid format!");
when others =>
raise;
end;
end loop;
PUT("You entered:");
PUT( I );
NEW_LINE;
end INT_IN;
|
10478
|
-- int_in.ada
--
--
-- Title: Integer Input
-- Created: Wed Apr 14 12:53:06 1993
-- Author: <NAME>
-- <<EMAIL>>
--
with TEXT_IO;
procedure INT_IN is
package INT_IO is new TEXT_IO.INTEGER_IO( INTEGER );
use TEXT_IO;
use INT_IO;
I : INTEGER;
VALID_INPUT : BOOLEAN;
begin -- INT_IN
VALID_INPUT := FALSE;
WHILE NOT( VALID_INPUT ) loop
begin
PUT("Enter Number: ");
GET( I );
VALID_INPUT := TRUE;
NEW_LINE(2);
exception
when DATA_ERROR =>
SKIP_LINE;
NEW_LINE;
PUT_LINE("Invalid format!");
when others =>
raise;
end;
end loop;
PUT("You entered:");
PUT( I );
NEW_LINE;
end INT_IN;
| true |
-- int_in.ada
--
--
-- Title: Integer Input
-- Created: Wed Apr 14 12:53:06 1993
-- Author: PI:NAME:<NAME>END_PI
-- <PI:EMAIL:<EMAIL>END_PI>
--
with TEXT_IO;
procedure INT_IN is
package INT_IO is new TEXT_IO.INTEGER_IO( INTEGER );
use TEXT_IO;
use INT_IO;
I : INTEGER;
VALID_INPUT : BOOLEAN;
begin -- INT_IN
VALID_INPUT := FALSE;
WHILE NOT( VALID_INPUT ) loop
begin
PUT("Enter Number: ");
GET( I );
VALID_INPUT := TRUE;
NEW_LINE(2);
exception
when DATA_ERROR =>
SKIP_LINE;
NEW_LINE;
PUT_LINE("Invalid format!");
when others =>
raise;
end;
end loop;
PUT("You entered:");
PUT( I );
NEW_LINE;
end INT_IN;
|
[
{
"context": " --\n-- Copyright © 2011, Vadim Godunko <[email protected]> --\n-- Al",
"end": 824,
"score": 0.9998884797096252,
"start": 811,
"tag": "NAME",
"value": "Vadim Godunko"
},
{
"context": " --\n-- Copyright © 2011, Vadim Godunko <[email protected]> --\n-- All rights reserved. ",
"end": 844,
"score": 0.9999324083328247,
"start": 826,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
source/amf/mof/cmof/amf-cmof-opaque_expressions.ads
|
svn2github/matreshka
| 24 |
------------------------------------------------------------------------------
-- --
-- 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$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
-- An opaque expression is an uninterpreted textual statement that denotes a
-- (possibly empty) set of values when evaluated in a context.
------------------------------------------------------------------------------
with AMF.CMOF.Value_Specifications;
with AMF.String_Collections;
package AMF.CMOF.Opaque_Expressions is
pragma Preelaborate;
type CMOF_Opaque_Expression is limited interface
and AMF.CMOF.Value_Specifications.CMOF_Value_Specification;
type CMOF_Opaque_Expression_Access is
access all CMOF_Opaque_Expression'Class;
for CMOF_Opaque_Expression_Access'Storage_Size use 0;
not overriding function Get_Body
(Self : not null access constant CMOF_Opaque_Expression)
return AMF.String_Collections.Sequence_Of_String is abstract;
-- Getter of OpaqueExpression::body.
--
-- The text of the expression, possibly in multiple languages.
not overriding function Get_Language
(Self : not null access constant CMOF_Opaque_Expression)
return AMF.String_Collections.Ordered_Set_Of_String is abstract;
-- Getter of OpaqueExpression::language.
--
-- Specifies the languages in which the expression is stated. The
-- interpretation of the expression body depends on the languages. If the
-- languages are unspecified, they might be implicit from the expression
-- body or the context. Languages are matched to body strings by order.
end AMF.CMOF.Opaque_Expressions;
|
16856
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011, <NAME> <<EMAIL>> --
-- 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.
------------------------------------------------------------------------------
-- An opaque expression is an uninterpreted textual statement that denotes a
-- (possibly empty) set of values when evaluated in a context.
------------------------------------------------------------------------------
with AMF.CMOF.Value_Specifications;
with AMF.String_Collections;
package AMF.CMOF.Opaque_Expressions is
pragma Preelaborate;
type CMOF_Opaque_Expression is limited interface
and AMF.CMOF.Value_Specifications.CMOF_Value_Specification;
type CMOF_Opaque_Expression_Access is
access all CMOF_Opaque_Expression'Class;
for CMOF_Opaque_Expression_Access'Storage_Size use 0;
not overriding function Get_Body
(Self : not null access constant CMOF_Opaque_Expression)
return AMF.String_Collections.Sequence_Of_String is abstract;
-- Getter of OpaqueExpression::body.
--
-- The text of the expression, possibly in multiple languages.
not overriding function Get_Language
(Self : not null access constant CMOF_Opaque_Expression)
return AMF.String_Collections.Ordered_Set_Of_String is abstract;
-- Getter of OpaqueExpression::language.
--
-- Specifies the languages in which the expression is stated. The
-- interpretation of the expression body depends on the languages. If the
-- languages are unspecified, they might be implicit from the expression
-- body or the context. Languages are matched to body strings by order.
end AMF.CMOF.Opaque_Expressions;
| true |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2011, PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI> --
-- 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.
------------------------------------------------------------------------------
-- An opaque expression is an uninterpreted textual statement that denotes a
-- (possibly empty) set of values when evaluated in a context.
------------------------------------------------------------------------------
with AMF.CMOF.Value_Specifications;
with AMF.String_Collections;
package AMF.CMOF.Opaque_Expressions is
pragma Preelaborate;
type CMOF_Opaque_Expression is limited interface
and AMF.CMOF.Value_Specifications.CMOF_Value_Specification;
type CMOF_Opaque_Expression_Access is
access all CMOF_Opaque_Expression'Class;
for CMOF_Opaque_Expression_Access'Storage_Size use 0;
not overriding function Get_Body
(Self : not null access constant CMOF_Opaque_Expression)
return AMF.String_Collections.Sequence_Of_String is abstract;
-- Getter of OpaqueExpression::body.
--
-- The text of the expression, possibly in multiple languages.
not overriding function Get_Language
(Self : not null access constant CMOF_Opaque_Expression)
return AMF.String_Collections.Ordered_Set_Of_String is abstract;
-- Getter of OpaqueExpression::language.
--
-- Specifies the languages in which the expression is stated. The
-- interpretation of the expression body depends on the languages. If the
-- languages are unspecified, they might be implicit from the expression
-- body or the context. Languages are matched to body strings by order.
end AMF.CMOF.Opaque_Expressions;
|
[
{
"context": "Stratosphere Balloon Flight Controller\n-- Author: Martin Becker ([email protected])\n\n-- @summary String funct",
"end": 97,
"score": 0.9997029900550842,
"start": 84,
"tag": "NAME",
"value": "Martin Becker"
},
{
"context": "loon Flight Controller\n-- Author: Martin Becker ([email protected])\n\n-- @summary String functions\npackage body MySt",
"end": 119,
"score": 0.9999343752861023,
"start": 99,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
prototyping/pixracer/src/lib/mystrings.adb
|
TUM-EI-RCS/StratoX
| 12 |
-- Project: Strato
-- System: Stratosphere Balloon Flight Controller
-- Author: Martin Becker ([email protected])
-- @summary String functions
package body MyStrings with SPARK_Mode is
procedure StrCpySpace (outstring : out String; instring : String) is
begin
if instring'Length >= outstring'Length then
-- trim
outstring := instring (instring'First .. instring'First - 1 + outstring'Length);
else
-- pad
declare
lastidx : constant Natural := outstring'First + instring'Length - 1;
begin
outstring := (others => ' ');
outstring (outstring'First .. lastidx) := instring;
end;
end if;
end StrCpySpace;
function RTrim (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 RTrim;
function LTrim (S : String) return String is
begin
for J in S'Range loop
if S (J) /= ' ' then
return S (J .. S'Last);
end if;
end loop;
return "";
end LTrim;
function Trim (S : String) return String is
begin
return LTrim (RTrim (S));
end Trim;
function StrChr (S : String; C : Character) return Integer is
begin
for idx in S'Range loop
if S (idx) = C then
return idx;
end if;
end loop;
return S'Last + 1;
end StrChr;
function Is_AlNum (c : Character) return Boolean is
begin
return (c in 'a' .. 'z') or (c in 'A' .. 'Z') or (c in '0' .. '9');
end Is_AlNum;
function Strip_Non_Alphanum (s : String) return String with SPARK_Mode => Off is
tmp : String (1 .. s'Length) := s;
len : Integer := 0;
begin
for c in s'Range loop
if Is_AlNum (s (c)) then
len := len + 1;
tmp (len) := s (c);
end if;
end loop;
declare
ret : constant String (1 .. len) := tmp (1 .. len); -- SPARK: "subtype constraint cannot depend on len"
begin
return ret;
end;
end Strip_Non_Alphanum;
end MyStrings;
|
931
|
-- Project: Strato
-- System: Stratosphere Balloon Flight Controller
-- Author: <NAME> (<EMAIL>)
-- @summary String functions
package body MyStrings with SPARK_Mode is
procedure StrCpySpace (outstring : out String; instring : String) is
begin
if instring'Length >= outstring'Length then
-- trim
outstring := instring (instring'First .. instring'First - 1 + outstring'Length);
else
-- pad
declare
lastidx : constant Natural := outstring'First + instring'Length - 1;
begin
outstring := (others => ' ');
outstring (outstring'First .. lastidx) := instring;
end;
end if;
end StrCpySpace;
function RTrim (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 RTrim;
function LTrim (S : String) return String is
begin
for J in S'Range loop
if S (J) /= ' ' then
return S (J .. S'Last);
end if;
end loop;
return "";
end LTrim;
function Trim (S : String) return String is
begin
return LTrim (RTrim (S));
end Trim;
function StrChr (S : String; C : Character) return Integer is
begin
for idx in S'Range loop
if S (idx) = C then
return idx;
end if;
end loop;
return S'Last + 1;
end StrChr;
function Is_AlNum (c : Character) return Boolean is
begin
return (c in 'a' .. 'z') or (c in 'A' .. 'Z') or (c in '0' .. '9');
end Is_AlNum;
function Strip_Non_Alphanum (s : String) return String with SPARK_Mode => Off is
tmp : String (1 .. s'Length) := s;
len : Integer := 0;
begin
for c in s'Range loop
if Is_AlNum (s (c)) then
len := len + 1;
tmp (len) := s (c);
end if;
end loop;
declare
ret : constant String (1 .. len) := tmp (1 .. len); -- SPARK: "subtype constraint cannot depend on len"
begin
return ret;
end;
end Strip_Non_Alphanum;
end MyStrings;
| true |
-- Project: Strato
-- System: Stratosphere Balloon Flight Controller
-- Author: PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
-- @summary String functions
package body MyStrings with SPARK_Mode is
procedure StrCpySpace (outstring : out String; instring : String) is
begin
if instring'Length >= outstring'Length then
-- trim
outstring := instring (instring'First .. instring'First - 1 + outstring'Length);
else
-- pad
declare
lastidx : constant Natural := outstring'First + instring'Length - 1;
begin
outstring := (others => ' ');
outstring (outstring'First .. lastidx) := instring;
end;
end if;
end StrCpySpace;
function RTrim (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 RTrim;
function LTrim (S : String) return String is
begin
for J in S'Range loop
if S (J) /= ' ' then
return S (J .. S'Last);
end if;
end loop;
return "";
end LTrim;
function Trim (S : String) return String is
begin
return LTrim (RTrim (S));
end Trim;
function StrChr (S : String; C : Character) return Integer is
begin
for idx in S'Range loop
if S (idx) = C then
return idx;
end if;
end loop;
return S'Last + 1;
end StrChr;
function Is_AlNum (c : Character) return Boolean is
begin
return (c in 'a' .. 'z') or (c in 'A' .. 'Z') or (c in '0' .. '9');
end Is_AlNum;
function Strip_Non_Alphanum (s : String) return String with SPARK_Mode => Off is
tmp : String (1 .. s'Length) := s;
len : Integer := 0;
begin
for c in s'Range loop
if Is_AlNum (s (c)) then
len := len + 1;
tmp (len) := s (c);
end if;
end loop;
declare
ret : constant String (1 .. len) := tmp (1 .. len); -- SPARK: "subtype constraint cannot depend on len"
begin
return ret;
end;
end Strip_Non_Alphanum;
end MyStrings;
|
[
{
"context": "PPM -- Load and save netpbm's PPM image data\n--\n-- Chip Richards, NiEstu, Phoenix AZ, Spring 2010\n\n-- This code is",
"end": 80,
"score": 0.9997661113739014,
"start": 67,
"tag": "NAME",
"value": "Chip Richards"
},
{
"context": " save netpbm's PPM image data\n--\n-- Chip Richards, NiEstu, Phoenix AZ, Spring 2010\n\n-- This code is covered",
"end": 88,
"score": 0.9998172521591187,
"start": 82,
"tag": "NAME",
"value": "NiEstu"
},
{
"context": "overed by the ISC License:\n--\n-- Copyright © 2010, NiEstu\n--\n-- Permission to use, copy, modify, and/or dis",
"end": 189,
"score": 0.9998461008071899,
"start": 183,
"tag": "NAME",
"value": "NiEstu"
}
] |
src/lumen-image-ppm.ads
|
darkestkhan/lumen
| 8 |
-- Lumen.Image.PPM -- Load and save netpbm's PPM image data
--
-- Chip Richards, NiEstu, Phoenix AZ, Spring 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.
-- Environment
with Lumen.Binary.IO;
package Lumen.Image.PPM is
function From_File (File : in Binary.IO.File_Type;
PPM_Format : in Character) return Descriptor;
end Lumen.Image.PPM;
|
21653
|
-- Lumen.Image.PPM -- Load and save netpbm's PPM image data
--
-- <NAME>, <NAME>, Phoenix AZ, Spring 2010
-- This code is covered by the ISC License:
--
-- Copyright © 2010, <NAME>
--
-- 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.
-- Environment
with Lumen.Binary.IO;
package Lumen.Image.PPM is
function From_File (File : in Binary.IO.File_Type;
PPM_Format : in Character) return Descriptor;
end Lumen.Image.PPM;
| true |
-- Lumen.Image.PPM -- Load and save netpbm's PPM image data
--
-- PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI, Phoenix AZ, Spring 2010
-- This code is covered by the ISC License:
--
-- Copyright © 2010, PI:NAME:<NAME>END_PI
--
-- 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.
-- Environment
with Lumen.Binary.IO;
package Lumen.Image.PPM is
function From_File (File : in Binary.IO.File_Type;
PPM_Format : in Character) return Descriptor;
end Lumen.Image.PPM;
|
[
{
"context": "ion files\n-- Copyright (C) 2011, 2012, 2015, 2017 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@g",
"end": 197,
"score": 0.9998671412467957,
"start": 182,
"tag": "NAME",
"value": "Stephane Carrez"
},
{
"context": "1, 2012, 2015, 2017 Stephane Carrez\n-- Written by Stephane Carrez ([email protected])\n--\n-- Licensed under",
"end": 228,
"score": 0.9998800158500671,
"start": 213,
"tag": "NAME",
"value": "Stephane Carrez"
},
{
"context": "7 Stephane Carrez\n-- Written by Stephane Carrez ([email protected])\n--\n-- Licensed under the Apache License, Versio",
"end": 255,
"score": 0.9999300837516785,
"start": 230,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
awa/src/awa-applications-configs.ads
|
fuzzysloth/ada-awa
| 0 |
-----------------------------------------------------------------------
-- awa-applications-configs -- Read application configuration files
-- Copyright (C) 2011, 2012, 2015, 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 EL.Contexts.Default;
with Util.Serialize.IO.XML;
-- The <b>AWA.Applications.Configs</b> package reads the application configuration files.
package AWA.Applications.Configs is
-- XML reader configuration. By instantiating this generic package, the XML parser
-- gets initialized to read the configuration for servlets, filters, managed beans,
-- permissions, events and other configuration elements.
generic
Reader : in out Util.Serialize.IO.XML.Parser;
App : in Application_Access;
Context : in EL.Contexts.Default.Default_Context_Access;
Override_Context : in Boolean;
package Reader_Config is
end Reader_Config;
-- Read the application configuration file and configure the application
procedure Read_Configuration (App : in out Application'Class;
File : in String;
Context : in EL.Contexts.Default.Default_Context_Access;
Override_Context : in Boolean);
-- Get the configuration path for the application name.
-- The configuration path is search from:
-- o the current directory,
-- o the 'config' directory,
-- o the Dynamo installation directory in share/dynamo
function Get_Config_Path (Name : in String) return String;
end AWA.Applications.Configs;
|
25985
|
-----------------------------------------------------------------------
-- awa-applications-configs -- Read application configuration files
-- Copyright (C) 2011, 2012, 2015, 2017 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- 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 EL.Contexts.Default;
with Util.Serialize.IO.XML;
-- The <b>AWA.Applications.Configs</b> package reads the application configuration files.
package AWA.Applications.Configs is
-- XML reader configuration. By instantiating this generic package, the XML parser
-- gets initialized to read the configuration for servlets, filters, managed beans,
-- permissions, events and other configuration elements.
generic
Reader : in out Util.Serialize.IO.XML.Parser;
App : in Application_Access;
Context : in EL.Contexts.Default.Default_Context_Access;
Override_Context : in Boolean;
package Reader_Config is
end Reader_Config;
-- Read the application configuration file and configure the application
procedure Read_Configuration (App : in out Application'Class;
File : in String;
Context : in EL.Contexts.Default.Default_Context_Access;
Override_Context : in Boolean);
-- Get the configuration path for the application name.
-- The configuration path is search from:
-- o the current directory,
-- o the 'config' directory,
-- o the Dynamo installation directory in share/dynamo
function Get_Config_Path (Name : in String) return String;
end AWA.Applications.Configs;
| true |
-----------------------------------------------------------------------
-- awa-applications-configs -- Read application configuration files
-- Copyright (C) 2011, 2012, 2015, 2017 PI:NAME:<NAME>END_PI
-- Written by PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
--
-- 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 EL.Contexts.Default;
with Util.Serialize.IO.XML;
-- The <b>AWA.Applications.Configs</b> package reads the application configuration files.
package AWA.Applications.Configs is
-- XML reader configuration. By instantiating this generic package, the XML parser
-- gets initialized to read the configuration for servlets, filters, managed beans,
-- permissions, events and other configuration elements.
generic
Reader : in out Util.Serialize.IO.XML.Parser;
App : in Application_Access;
Context : in EL.Contexts.Default.Default_Context_Access;
Override_Context : in Boolean;
package Reader_Config is
end Reader_Config;
-- Read the application configuration file and configure the application
procedure Read_Configuration (App : in out Application'Class;
File : in String;
Context : in EL.Contexts.Default.Default_Context_Access;
Override_Context : in Boolean);
-- Get the configuration path for the application name.
-- The configuration path is search from:
-- o the current directory,
-- o the 'config' directory,
-- o the Dynamo installation directory in share/dynamo
function Get_Config_Path (Name : in String) return String;
end AWA.Applications.Configs;
|
[
{
"context": " --\n-- * Richard Wai (ANNEXI-STRAYLINE) ",
"end": 1044,
"score": 0.9997112154960632,
"start": 1033,
"tag": "NAME",
"value": "Richard Wai"
}
] |
registrar-executive-unit_entry-execute-process_pack.adb
|
annexi-strayline/AURA
| 13 |
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- --
-- Core --
-- --
-- ------------------------------------------------------------------------ --
-- --
-- Copyright (C) 2020, ANNEXI-STRAYLINE Trans-Human Ltd. --
-- All rights reserved. --
-- --
-- Original Contributors: --
-- * Richard Wai (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. --
-- --
------------------------------------------------------------------------------
separate (Registrar.Executive.Unit_Entry.Execute)
package body Process_Pack is
use Parse_Pack;
use Ada_Lexical_Parser;
------------------
-- Process_With --
------------------
-- Parser_Pack is pointing at a "with" reserved word. Our job is to extract
-- the subsequent library unit names, including the implicitly withed
-- parent units, if any.
--
-- The only legal presentation is a.b.c, d.e.f, ... x.y.z; As in we expect
-- to find a number of Identifier elements, separated by '.' Delimiters,
-- for the construction of a full library unit name, or ',' to delimit the
-- end of a particular name, finally with a ';' to delimit the end of the
-- with statement. Anything else is illegal.
--
-- Note that there are some language-defined or compiler-defined
-- "subsystems" such as Ada, Interfaces, and GNAT that should not be
-- included as dependencies. These are stipped when requestiong library
-- units - see the sibling package Executive.Library_Units_Request
procedure Process_With is
New_Depend : Library_Unit;
Name_Pass : Positive := 1;
-- Represents the depth of prefixes in the name currently being built-up
begin
New_Depend.State := Requested;
New_Depend.Kind := Unknown;
Next_Element;
loop
case Category is
when Delimiter =>
if Content in "." | "," | ";"
and then New_Depend.Name.Empty
then
-- We should only be seeing this after an identifier,
-- which would have been added to the name of the new
-- dependency
Abort_Parse;
end if;
if Content = "." then
-- Each implicitly with'ed parent should be included
-- in the dependency set. Every-time we get to a period,
-- we should add that current name separately, to account
-- for that "parent" unit implicitly withed
Dependencies.Include (New_Depend);
New_Depend.Name.Append (Content);
Name_Pass := Name_Pass + 1;
-- An identifier _must_ follow
Next_Element;
if Category /= Identifier then
Abort_Parse;
end if;
elsif Content = "," then
-- End of a name, so we need to do add it to the set
Dependencies.Include (New_Depend);
New_Depend.Name.Set_Name ("");
Name_Pass := 1;
Next_Element;
if Category /= Identifier then
Abort_Parse;
end if;
elsif Content = ";" then
-- Last item to add to the set
Dependencies.Include (New_Depend);
exit;
else
-- No other delimiter would be acceptible
Abort_Parse;
end if;
when Identifier =>
-- Prohibit any configuration manifest withs. This means
-- that any pattern of Subsystem.AURA or children is prohibited
-- by AURA
Assert
(Check => (if Name_Pass = 2 then Content /= "aura"),
Message => "AURA Configuration manifests may not be "
& "withed. No subsystem may have a child unit "
& "named AURA in an AURA project.");
New_Depend.Name.Append (Content);
Next_Element;
when others =>
Abort_Parse;
end case;
end loop;
end Process_With;
---------------------------
-- Process_External_With --
---------------------------
Staged_Externals: Library_Unit_Sets.Set;
-- All External_With units that have not yet had their subsystem name
-- prepended, or included in the Dependencies set
procedure Process_External_With is
New_Depend: Library_Unit;
begin
New_Depend.State := Requested;
New_Depend.Kind := External_Unit;
Next_Element;
-- We expect to see ("abc.c","def.c", ... "xyz.c");
if not (Category = Delimiter and then Content = "(") then
Abort_Parse;
end if;
Next_Element;
if Category /= String_Literal then
Abort_Parse;
end if;
loop
-- We only have the file-name at this stage, which gets a '%'
-- prepended. The actual subsystem
-- name will get prepended once we know what it is
-- (via Process_Staged_Externals)
-- We need to check if this name is hypothentically valid (after it
-- gets the subsystem name prepended in case the actual external
-- unit withed includes '%', which we don't allow
Assert
(Check => Unit_Names.Valid_Unit_Name ("standard%" & Content),
Message => "External unit file names cannot contain '%'.");
New_Depend.Name.Set_Name ('%' & Content);
Staged_Externals.Include (New_Depend);
Next_Element;
if Category = Delimiter then
if Content = "," then
Next_Element;
if Category /= String_Literal then
Abort_Parse;
end if;
-- And around again
elsif Content = ")" then
Next_Element;
if not (Category = Delimiter and then Content = ";") then
Abort_Parse;
end if;
-- All done
exit;
else
-- Unexpected
Abort_Parse;
end if;
else
Abort_Parse;
end if;
end loop;
end Process_External_With;
-------------------------
-- Process_Declaration --
-------------------------
procedure Process_Declaration is
begin
-- First check for "separate", in which case we are really
-- not interested in the name of the separate unit (the subunit), but
-- rather the parent unit - mainly so that we can associate the correct
-- subsystem name with any External_With pragmas in this unit.
-- The main body of execute invokes Process_Delaration when we are at
-- one of the relevent reserved words
if Content = "separate" then
New_Unit.Kind := Subunit;
Next_Element;
if not (Category = Delimiter and then Content = "(") then
-- syntax error
Abort_Parse;
end if;
Next_Element;
if Category /= Identifier then
-- Syntax error
Abort_Parse;
end if;
-- Identify the complete name
New_Unit.Name.Set_Name ("");
loop
New_Unit.Name.Append (Content);
Next_Element;
if Category /= Delimiter then
Abort_Parse;
end if;
if Content = "." then
New_Unit.Name.Append (Content);
Next_Element;
-- What follows this must either be a continuation of the
-- name.
if Category /= Identifier then
Abort_Parse;
end if;
elsif Content = ")" then
exit;
else
Abort_Parse;
end if;
end loop;
-- That's all we process for this unit, since we are really
-- dealing with the parent subunit. In the body of execute,
-- the file access will be assigned as appropriate prior to
-- submission
return;
elsif Content = "package" then
New_Unit.Kind := Package_Unit;
elsif Content in "procedure" | "function" then
New_Unit.Kind := Subprogram_Unit;
else
raise Ada.Assertions.Assertion_Error with
"Expected separate, package, procedure, or function";
end if;
-- For all non-subunits, we want to get the name of the unit up until
-- "is"
-- First skip the "body" reserved word if we find it
Next_Element;
if Category = Reserved_Word and then Content = "body" then
Next_Element;
end if;
-- Names should always begin with a valid Identifier
if Category /= Identifier then
Abort_Parse;
end if;
New_Unit.Name.Set_Name ("");
loop
if Category = Identifier then
New_Unit.Name.Append (Content);
Next_Element;
if Category not in Reserved_Word | Delimiter then
Abort_Parse;
end if;
elsif Category = Delimiter and then Content = "." then
New_Unit.Name.Append (Content);
Next_Element;
if Category /= Identifier then
Abort_Parse;
end if;
elsif (Category = Delimiter
and then Content in "(" | ";")
or else (Category = Reserved_Word
and then Content in "is" | "with" | "renames")
then
-- Note this does not catch certain incorrect cases such as
-- package Thing;, but that is really a problem for the compiler
-- to deal with
exit;
else
Abort_Parse;
end if;
end loop;
end Process_Declaration;
-----------------------------
-- Filter_Standard_Library --
-----------------------------
procedure Filter_Standard_Library is
use Library_Unit_Sets;
Itr: Cursor := Dependencies.First;
Del: Cursor;
begin
while Has_Element (Itr) loop
Del := Itr;
Itr := Next (Itr);
if Dependencies(Del).Name.Subsystem_Name.To_String
in "ada" | "interfaces" | "system" | "gnat"
then
Dependencies.Delete (Del);
end if;
end loop;
end Filter_Standard_Library;
---------------------------------
-- Process_Parent_Dependencies --
---------------------------------
procedure Process_Parent_Dependencies is
Parent_Name: Unit_Names.Unit_Name
:= Unit_Names.Unit_Name (New_Unit.Name.Parent_Name);
Parent_Depend: Library_Unit;
begin
Parent_Depend.State := Requested;
Parent_Depend.Kind := Unknown;
while not Parent_Name.Empty loop
Parent_Depend.Name := Parent_Name;
Dependencies.Include (Parent_Depend);
Parent_Name := Unit_Names.Unit_Name (Parent_Name.Parent_Name);
end loop;
end Process_Parent_Dependencies;
------------------------------
-- Process_Staged_Externals --
------------------------------
procedure Process_Staged_Externals is
procedure Append_Subsystem (Position: in Library_Unit_Sets.Cursor) is
begin
-- For non-aura units, the external dependency file is expected to be
-- in the project root directory, and when entered, gets associated
-- with the root subsystem "standard".
--
-- This works well because standard can't be an actual included
-- subsystem anyways
Staged_Externals(Position).Name.Prepend
((if Order.AURA then
Wide_Wide_String'(New_Unit.Name.Subsystem_Name.To_String)
else
Wide_Wide_String'("standard")));
end Append_Subsystem;
begin
Staged_Externals.Iterate (Append_Subsystem'Access);
Dependencies.Union (Staged_Externals);
end Process_Staged_Externals;
end Process_Pack;
|
12379
|
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- --
-- Core --
-- --
-- ------------------------------------------------------------------------ --
-- --
-- Copyright (C) 2020, ANNEXI-STRAYLINE Trans-Human Ltd. --
-- All rights reserved. --
-- --
-- Original Contributors: --
-- * <NAME> (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. --
-- --
------------------------------------------------------------------------------
separate (Registrar.Executive.Unit_Entry.Execute)
package body Process_Pack is
use Parse_Pack;
use Ada_Lexical_Parser;
------------------
-- Process_With --
------------------
-- Parser_Pack is pointing at a "with" reserved word. Our job is to extract
-- the subsequent library unit names, including the implicitly withed
-- parent units, if any.
--
-- The only legal presentation is a.b.c, d.e.f, ... x.y.z; As in we expect
-- to find a number of Identifier elements, separated by '.' Delimiters,
-- for the construction of a full library unit name, or ',' to delimit the
-- end of a particular name, finally with a ';' to delimit the end of the
-- with statement. Anything else is illegal.
--
-- Note that there are some language-defined or compiler-defined
-- "subsystems" such as Ada, Interfaces, and GNAT that should not be
-- included as dependencies. These are stipped when requestiong library
-- units - see the sibling package Executive.Library_Units_Request
procedure Process_With is
New_Depend : Library_Unit;
Name_Pass : Positive := 1;
-- Represents the depth of prefixes in the name currently being built-up
begin
New_Depend.State := Requested;
New_Depend.Kind := Unknown;
Next_Element;
loop
case Category is
when Delimiter =>
if Content in "." | "," | ";"
and then New_Depend.Name.Empty
then
-- We should only be seeing this after an identifier,
-- which would have been added to the name of the new
-- dependency
Abort_Parse;
end if;
if Content = "." then
-- Each implicitly with'ed parent should be included
-- in the dependency set. Every-time we get to a period,
-- we should add that current name separately, to account
-- for that "parent" unit implicitly withed
Dependencies.Include (New_Depend);
New_Depend.Name.Append (Content);
Name_Pass := Name_Pass + 1;
-- An identifier _must_ follow
Next_Element;
if Category /= Identifier then
Abort_Parse;
end if;
elsif Content = "," then
-- End of a name, so we need to do add it to the set
Dependencies.Include (New_Depend);
New_Depend.Name.Set_Name ("");
Name_Pass := 1;
Next_Element;
if Category /= Identifier then
Abort_Parse;
end if;
elsif Content = ";" then
-- Last item to add to the set
Dependencies.Include (New_Depend);
exit;
else
-- No other delimiter would be acceptible
Abort_Parse;
end if;
when Identifier =>
-- Prohibit any configuration manifest withs. This means
-- that any pattern of Subsystem.AURA or children is prohibited
-- by AURA
Assert
(Check => (if Name_Pass = 2 then Content /= "aura"),
Message => "AURA Configuration manifests may not be "
& "withed. No subsystem may have a child unit "
& "named AURA in an AURA project.");
New_Depend.Name.Append (Content);
Next_Element;
when others =>
Abort_Parse;
end case;
end loop;
end Process_With;
---------------------------
-- Process_External_With --
---------------------------
Staged_Externals: Library_Unit_Sets.Set;
-- All External_With units that have not yet had their subsystem name
-- prepended, or included in the Dependencies set
procedure Process_External_With is
New_Depend: Library_Unit;
begin
New_Depend.State := Requested;
New_Depend.Kind := External_Unit;
Next_Element;
-- We expect to see ("abc.c","def.c", ... "xyz.c");
if not (Category = Delimiter and then Content = "(") then
Abort_Parse;
end if;
Next_Element;
if Category /= String_Literal then
Abort_Parse;
end if;
loop
-- We only have the file-name at this stage, which gets a '%'
-- prepended. The actual subsystem
-- name will get prepended once we know what it is
-- (via Process_Staged_Externals)
-- We need to check if this name is hypothentically valid (after it
-- gets the subsystem name prepended in case the actual external
-- unit withed includes '%', which we don't allow
Assert
(Check => Unit_Names.Valid_Unit_Name ("standard%" & Content),
Message => "External unit file names cannot contain '%'.");
New_Depend.Name.Set_Name ('%' & Content);
Staged_Externals.Include (New_Depend);
Next_Element;
if Category = Delimiter then
if Content = "," then
Next_Element;
if Category /= String_Literal then
Abort_Parse;
end if;
-- And around again
elsif Content = ")" then
Next_Element;
if not (Category = Delimiter and then Content = ";") then
Abort_Parse;
end if;
-- All done
exit;
else
-- Unexpected
Abort_Parse;
end if;
else
Abort_Parse;
end if;
end loop;
end Process_External_With;
-------------------------
-- Process_Declaration --
-------------------------
procedure Process_Declaration is
begin
-- First check for "separate", in which case we are really
-- not interested in the name of the separate unit (the subunit), but
-- rather the parent unit - mainly so that we can associate the correct
-- subsystem name with any External_With pragmas in this unit.
-- The main body of execute invokes Process_Delaration when we are at
-- one of the relevent reserved words
if Content = "separate" then
New_Unit.Kind := Subunit;
Next_Element;
if not (Category = Delimiter and then Content = "(") then
-- syntax error
Abort_Parse;
end if;
Next_Element;
if Category /= Identifier then
-- Syntax error
Abort_Parse;
end if;
-- Identify the complete name
New_Unit.Name.Set_Name ("");
loop
New_Unit.Name.Append (Content);
Next_Element;
if Category /= Delimiter then
Abort_Parse;
end if;
if Content = "." then
New_Unit.Name.Append (Content);
Next_Element;
-- What follows this must either be a continuation of the
-- name.
if Category /= Identifier then
Abort_Parse;
end if;
elsif Content = ")" then
exit;
else
Abort_Parse;
end if;
end loop;
-- That's all we process for this unit, since we are really
-- dealing with the parent subunit. In the body of execute,
-- the file access will be assigned as appropriate prior to
-- submission
return;
elsif Content = "package" then
New_Unit.Kind := Package_Unit;
elsif Content in "procedure" | "function" then
New_Unit.Kind := Subprogram_Unit;
else
raise Ada.Assertions.Assertion_Error with
"Expected separate, package, procedure, or function";
end if;
-- For all non-subunits, we want to get the name of the unit up until
-- "is"
-- First skip the "body" reserved word if we find it
Next_Element;
if Category = Reserved_Word and then Content = "body" then
Next_Element;
end if;
-- Names should always begin with a valid Identifier
if Category /= Identifier then
Abort_Parse;
end if;
New_Unit.Name.Set_Name ("");
loop
if Category = Identifier then
New_Unit.Name.Append (Content);
Next_Element;
if Category not in Reserved_Word | Delimiter then
Abort_Parse;
end if;
elsif Category = Delimiter and then Content = "." then
New_Unit.Name.Append (Content);
Next_Element;
if Category /= Identifier then
Abort_Parse;
end if;
elsif (Category = Delimiter
and then Content in "(" | ";")
or else (Category = Reserved_Word
and then Content in "is" | "with" | "renames")
then
-- Note this does not catch certain incorrect cases such as
-- package Thing;, but that is really a problem for the compiler
-- to deal with
exit;
else
Abort_Parse;
end if;
end loop;
end Process_Declaration;
-----------------------------
-- Filter_Standard_Library --
-----------------------------
procedure Filter_Standard_Library is
use Library_Unit_Sets;
Itr: Cursor := Dependencies.First;
Del: Cursor;
begin
while Has_Element (Itr) loop
Del := Itr;
Itr := Next (Itr);
if Dependencies(Del).Name.Subsystem_Name.To_String
in "ada" | "interfaces" | "system" | "gnat"
then
Dependencies.Delete (Del);
end if;
end loop;
end Filter_Standard_Library;
---------------------------------
-- Process_Parent_Dependencies --
---------------------------------
procedure Process_Parent_Dependencies is
Parent_Name: Unit_Names.Unit_Name
:= Unit_Names.Unit_Name (New_Unit.Name.Parent_Name);
Parent_Depend: Library_Unit;
begin
Parent_Depend.State := Requested;
Parent_Depend.Kind := Unknown;
while not Parent_Name.Empty loop
Parent_Depend.Name := Parent_Name;
Dependencies.Include (Parent_Depend);
Parent_Name := Unit_Names.Unit_Name (Parent_Name.Parent_Name);
end loop;
end Process_Parent_Dependencies;
------------------------------
-- Process_Staged_Externals --
------------------------------
procedure Process_Staged_Externals is
procedure Append_Subsystem (Position: in Library_Unit_Sets.Cursor) is
begin
-- For non-aura units, the external dependency file is expected to be
-- in the project root directory, and when entered, gets associated
-- with the root subsystem "standard".
--
-- This works well because standard can't be an actual included
-- subsystem anyways
Staged_Externals(Position).Name.Prepend
((if Order.AURA then
Wide_Wide_String'(New_Unit.Name.Subsystem_Name.To_String)
else
Wide_Wide_String'("standard")));
end Append_Subsystem;
begin
Staged_Externals.Iterate (Append_Subsystem'Access);
Dependencies.Union (Staged_Externals);
end Process_Staged_Externals;
end Process_Pack;
| true |
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- --
-- Core --
-- --
-- ------------------------------------------------------------------------ --
-- --
-- Copyright (C) 2020, ANNEXI-STRAYLINE Trans-Human Ltd. --
-- All rights reserved. --
-- --
-- Original Contributors: --
-- * PI:NAME:<NAME>END_PI (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. --
-- --
------------------------------------------------------------------------------
separate (Registrar.Executive.Unit_Entry.Execute)
package body Process_Pack is
use Parse_Pack;
use Ada_Lexical_Parser;
------------------
-- Process_With --
------------------
-- Parser_Pack is pointing at a "with" reserved word. Our job is to extract
-- the subsequent library unit names, including the implicitly withed
-- parent units, if any.
--
-- The only legal presentation is a.b.c, d.e.f, ... x.y.z; As in we expect
-- to find a number of Identifier elements, separated by '.' Delimiters,
-- for the construction of a full library unit name, or ',' to delimit the
-- end of a particular name, finally with a ';' to delimit the end of the
-- with statement. Anything else is illegal.
--
-- Note that there are some language-defined or compiler-defined
-- "subsystems" such as Ada, Interfaces, and GNAT that should not be
-- included as dependencies. These are stipped when requestiong library
-- units - see the sibling package Executive.Library_Units_Request
procedure Process_With is
New_Depend : Library_Unit;
Name_Pass : Positive := 1;
-- Represents the depth of prefixes in the name currently being built-up
begin
New_Depend.State := Requested;
New_Depend.Kind := Unknown;
Next_Element;
loop
case Category is
when Delimiter =>
if Content in "." | "," | ";"
and then New_Depend.Name.Empty
then
-- We should only be seeing this after an identifier,
-- which would have been added to the name of the new
-- dependency
Abort_Parse;
end if;
if Content = "." then
-- Each implicitly with'ed parent should be included
-- in the dependency set. Every-time we get to a period,
-- we should add that current name separately, to account
-- for that "parent" unit implicitly withed
Dependencies.Include (New_Depend);
New_Depend.Name.Append (Content);
Name_Pass := Name_Pass + 1;
-- An identifier _must_ follow
Next_Element;
if Category /= Identifier then
Abort_Parse;
end if;
elsif Content = "," then
-- End of a name, so we need to do add it to the set
Dependencies.Include (New_Depend);
New_Depend.Name.Set_Name ("");
Name_Pass := 1;
Next_Element;
if Category /= Identifier then
Abort_Parse;
end if;
elsif Content = ";" then
-- Last item to add to the set
Dependencies.Include (New_Depend);
exit;
else
-- No other delimiter would be acceptible
Abort_Parse;
end if;
when Identifier =>
-- Prohibit any configuration manifest withs. This means
-- that any pattern of Subsystem.AURA or children is prohibited
-- by AURA
Assert
(Check => (if Name_Pass = 2 then Content /= "aura"),
Message => "AURA Configuration manifests may not be "
& "withed. No subsystem may have a child unit "
& "named AURA in an AURA project.");
New_Depend.Name.Append (Content);
Next_Element;
when others =>
Abort_Parse;
end case;
end loop;
end Process_With;
---------------------------
-- Process_External_With --
---------------------------
Staged_Externals: Library_Unit_Sets.Set;
-- All External_With units that have not yet had their subsystem name
-- prepended, or included in the Dependencies set
procedure Process_External_With is
New_Depend: Library_Unit;
begin
New_Depend.State := Requested;
New_Depend.Kind := External_Unit;
Next_Element;
-- We expect to see ("abc.c","def.c", ... "xyz.c");
if not (Category = Delimiter and then Content = "(") then
Abort_Parse;
end if;
Next_Element;
if Category /= String_Literal then
Abort_Parse;
end if;
loop
-- We only have the file-name at this stage, which gets a '%'
-- prepended. The actual subsystem
-- name will get prepended once we know what it is
-- (via Process_Staged_Externals)
-- We need to check if this name is hypothentically valid (after it
-- gets the subsystem name prepended in case the actual external
-- unit withed includes '%', which we don't allow
Assert
(Check => Unit_Names.Valid_Unit_Name ("standard%" & Content),
Message => "External unit file names cannot contain '%'.");
New_Depend.Name.Set_Name ('%' & Content);
Staged_Externals.Include (New_Depend);
Next_Element;
if Category = Delimiter then
if Content = "," then
Next_Element;
if Category /= String_Literal then
Abort_Parse;
end if;
-- And around again
elsif Content = ")" then
Next_Element;
if not (Category = Delimiter and then Content = ";") then
Abort_Parse;
end if;
-- All done
exit;
else
-- Unexpected
Abort_Parse;
end if;
else
Abort_Parse;
end if;
end loop;
end Process_External_With;
-------------------------
-- Process_Declaration --
-------------------------
procedure Process_Declaration is
begin
-- First check for "separate", in which case we are really
-- not interested in the name of the separate unit (the subunit), but
-- rather the parent unit - mainly so that we can associate the correct
-- subsystem name with any External_With pragmas in this unit.
-- The main body of execute invokes Process_Delaration when we are at
-- one of the relevent reserved words
if Content = "separate" then
New_Unit.Kind := Subunit;
Next_Element;
if not (Category = Delimiter and then Content = "(") then
-- syntax error
Abort_Parse;
end if;
Next_Element;
if Category /= Identifier then
-- Syntax error
Abort_Parse;
end if;
-- Identify the complete name
New_Unit.Name.Set_Name ("");
loop
New_Unit.Name.Append (Content);
Next_Element;
if Category /= Delimiter then
Abort_Parse;
end if;
if Content = "." then
New_Unit.Name.Append (Content);
Next_Element;
-- What follows this must either be a continuation of the
-- name.
if Category /= Identifier then
Abort_Parse;
end if;
elsif Content = ")" then
exit;
else
Abort_Parse;
end if;
end loop;
-- That's all we process for this unit, since we are really
-- dealing with the parent subunit. In the body of execute,
-- the file access will be assigned as appropriate prior to
-- submission
return;
elsif Content = "package" then
New_Unit.Kind := Package_Unit;
elsif Content in "procedure" | "function" then
New_Unit.Kind := Subprogram_Unit;
else
raise Ada.Assertions.Assertion_Error with
"Expected separate, package, procedure, or function";
end if;
-- For all non-subunits, we want to get the name of the unit up until
-- "is"
-- First skip the "body" reserved word if we find it
Next_Element;
if Category = Reserved_Word and then Content = "body" then
Next_Element;
end if;
-- Names should always begin with a valid Identifier
if Category /= Identifier then
Abort_Parse;
end if;
New_Unit.Name.Set_Name ("");
loop
if Category = Identifier then
New_Unit.Name.Append (Content);
Next_Element;
if Category not in Reserved_Word | Delimiter then
Abort_Parse;
end if;
elsif Category = Delimiter and then Content = "." then
New_Unit.Name.Append (Content);
Next_Element;
if Category /= Identifier then
Abort_Parse;
end if;
elsif (Category = Delimiter
and then Content in "(" | ";")
or else (Category = Reserved_Word
and then Content in "is" | "with" | "renames")
then
-- Note this does not catch certain incorrect cases such as
-- package Thing;, but that is really a problem for the compiler
-- to deal with
exit;
else
Abort_Parse;
end if;
end loop;
end Process_Declaration;
-----------------------------
-- Filter_Standard_Library --
-----------------------------
procedure Filter_Standard_Library is
use Library_Unit_Sets;
Itr: Cursor := Dependencies.First;
Del: Cursor;
begin
while Has_Element (Itr) loop
Del := Itr;
Itr := Next (Itr);
if Dependencies(Del).Name.Subsystem_Name.To_String
in "ada" | "interfaces" | "system" | "gnat"
then
Dependencies.Delete (Del);
end if;
end loop;
end Filter_Standard_Library;
---------------------------------
-- Process_Parent_Dependencies --
---------------------------------
procedure Process_Parent_Dependencies is
Parent_Name: Unit_Names.Unit_Name
:= Unit_Names.Unit_Name (New_Unit.Name.Parent_Name);
Parent_Depend: Library_Unit;
begin
Parent_Depend.State := Requested;
Parent_Depend.Kind := Unknown;
while not Parent_Name.Empty loop
Parent_Depend.Name := Parent_Name;
Dependencies.Include (Parent_Depend);
Parent_Name := Unit_Names.Unit_Name (Parent_Name.Parent_Name);
end loop;
end Process_Parent_Dependencies;
------------------------------
-- Process_Staged_Externals --
------------------------------
procedure Process_Staged_Externals is
procedure Append_Subsystem (Position: in Library_Unit_Sets.Cursor) is
begin
-- For non-aura units, the external dependency file is expected to be
-- in the project root directory, and when entered, gets associated
-- with the root subsystem "standard".
--
-- This works well because standard can't be an actual included
-- subsystem anyways
Staged_Externals(Position).Name.Prepend
((if Order.AURA then
Wide_Wide_String'(New_Unit.Name.Subsystem_Name.To_String)
else
Wide_Wide_String'("standard")));
end Append_Subsystem;
begin
Staged_Externals.Iterate (Append_Subsystem'Access);
Dependencies.Union (Staged_Externals);
end Process_Staged_Externals;
end Process_Pack;
|
[
{
"context": " --\n-- Copyright (C) 2000-2012 A.M.F.Vargas --\n-- Antonio M. M. F",
"end": 271,
"score": 0.9998828172683716,
"start": 259,
"tag": "NAME",
"value": "A.M.F.Vargas"
},
{
"context": "12 A.M.F.Vargas --\n-- Antonio M. M. Ferreira Vargas --\n-- Manhent",
"end": 335,
"score": 0.9998829364776611,
"start": 306,
"tag": "NAME",
"value": "Antonio M. M. Ferreira Vargas"
},
{
"context": " --\n-- E-mail: [email protected] --\n-- --------------------",
"end": 549,
"score": 0.9999307990074158,
"start": 530,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
src/audio/uintn_ptrops.ads
|
rveenker/sdlada
| 1 |
-- ----------------------------------------------------------------- --
-- AdaSDL --
-- Thin binding to Simple Direct Media Layer --
-- Copyright (C) 2000-2012 A.M.F.Vargas --
-- Antonio M. M. Ferreira Vargas --
-- Manhente - Barcelos - Portugal --
-- http://adasdl.sourceforge.net --
-- E-mail: [email protected] --
-- ----------------------------------------------------------------- --
-- --
-- This library 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 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 --
-- General Public License for more details. --
-- --
-- You should have received a copy of the GNU 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. --
-- --
-- As a special exception, if other files instantiate generics from --
-- this unit, or you link this unit with other files to produce an --
-- executable, this unit does not by itself cause the resulting --
-- executable to be covered by the GNU General Public License. This --
-- exception does not however invalidate any other reasons why the --
-- executable file might be covered by the GNU Public License. --
-- ----------------------------------------------------------------- --
with Interfaces.C.Pointers;
generic
type The_Element is mod <>;
type The_Element_Array is
array (Interfaces.C.size_t range <>) of aliased The_Element;
package UintN_PtrOps is
package C renames Interfaces.C;
package Operations is
new Interfaces.C.Pointers (
Index => Interfaces.C.size_t,
Element => The_Element,
Element_Array => The_Element_Array,
Default_Terminator => 0);
subtype Pointer is Operations.Pointer;
function Value
(Ref : in Pointer;
Terminator : in The_Element)
return The_Element_Array renames Operations.Value;
function Value
(Ref : in Pointer;
Length : in C.ptrdiff_t)
return The_Element_Array renames Operations.Value;
--------------------------------
-- C-style Pointer Arithmetic --
--------------------------------
function "+" (Left : in Pointer; Right : in C.ptrdiff_t) return Pointer
renames Operations."+";
function "+" (Left : in C.ptrdiff_t; Right : in Pointer) return Pointer
renames Operations."+";
function "-" (Left : in Pointer; Right : in C.ptrdiff_t) return Pointer
renames Operations."-";
function "-" (Left : in Pointer; Right : in Pointer) return C.ptrdiff_t
renames Operations."-";
procedure Increment (Ref : in out Pointer)
renames Operations.Increment;
procedure Decrement (Ref : in out Pointer)
renames Operations.Increment;
function Virtual_Length
(Ref : in Pointer;
Terminator : in The_Element := 0)
return C.ptrdiff_t renames Operations.Virtual_Length;
procedure Copy_Terminated_Array
(Source : in Pointer;
Target : in Pointer;
Limit : in C.ptrdiff_t := C.ptrdiff_t'Last;
Terminator : in The_Element := 0)
renames Operations.Copy_Terminated_Array;
procedure Copy_Array
(Source : in Pointer;
Target : in Pointer;
Length : in C.ptrdiff_t)
renames Operations.Copy_Array;
end UintN_PtrOps;
|
14904
|
-- ----------------------------------------------------------------- --
-- AdaSDL --
-- Thin binding to Simple Direct Media Layer --
-- Copyright (C) 2000-2012 <NAME> --
-- <NAME> --
-- Manhente - Barcelos - Portugal --
-- http://adasdl.sourceforge.net --
-- E-mail: <EMAIL> --
-- ----------------------------------------------------------------- --
-- --
-- This library 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 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 --
-- General Public License for more details. --
-- --
-- You should have received a copy of the GNU 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. --
-- --
-- As a special exception, if other files instantiate generics from --
-- this unit, or you link this unit with other files to produce an --
-- executable, this unit does not by itself cause the resulting --
-- executable to be covered by the GNU General Public License. This --
-- exception does not however invalidate any other reasons why the --
-- executable file might be covered by the GNU Public License. --
-- ----------------------------------------------------------------- --
with Interfaces.C.Pointers;
generic
type The_Element is mod <>;
type The_Element_Array is
array (Interfaces.C.size_t range <>) of aliased The_Element;
package UintN_PtrOps is
package C renames Interfaces.C;
package Operations is
new Interfaces.C.Pointers (
Index => Interfaces.C.size_t,
Element => The_Element,
Element_Array => The_Element_Array,
Default_Terminator => 0);
subtype Pointer is Operations.Pointer;
function Value
(Ref : in Pointer;
Terminator : in The_Element)
return The_Element_Array renames Operations.Value;
function Value
(Ref : in Pointer;
Length : in C.ptrdiff_t)
return The_Element_Array renames Operations.Value;
--------------------------------
-- C-style Pointer Arithmetic --
--------------------------------
function "+" (Left : in Pointer; Right : in C.ptrdiff_t) return Pointer
renames Operations."+";
function "+" (Left : in C.ptrdiff_t; Right : in Pointer) return Pointer
renames Operations."+";
function "-" (Left : in Pointer; Right : in C.ptrdiff_t) return Pointer
renames Operations."-";
function "-" (Left : in Pointer; Right : in Pointer) return C.ptrdiff_t
renames Operations."-";
procedure Increment (Ref : in out Pointer)
renames Operations.Increment;
procedure Decrement (Ref : in out Pointer)
renames Operations.Increment;
function Virtual_Length
(Ref : in Pointer;
Terminator : in The_Element := 0)
return C.ptrdiff_t renames Operations.Virtual_Length;
procedure Copy_Terminated_Array
(Source : in Pointer;
Target : in Pointer;
Limit : in C.ptrdiff_t := C.ptrdiff_t'Last;
Terminator : in The_Element := 0)
renames Operations.Copy_Terminated_Array;
procedure Copy_Array
(Source : in Pointer;
Target : in Pointer;
Length : in C.ptrdiff_t)
renames Operations.Copy_Array;
end UintN_PtrOps;
| true |
-- ----------------------------------------------------------------- --
-- AdaSDL --
-- Thin binding to Simple Direct Media Layer --
-- Copyright (C) 2000-2012 PI:NAME:<NAME>END_PI --
-- PI:NAME:<NAME>END_PI --
-- Manhente - Barcelos - Portugal --
-- http://adasdl.sourceforge.net --
-- E-mail: PI:EMAIL:<EMAIL>END_PI --
-- ----------------------------------------------------------------- --
-- --
-- This library 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 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 --
-- General Public License for more details. --
-- --
-- You should have received a copy of the GNU 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. --
-- --
-- As a special exception, if other files instantiate generics from --
-- this unit, or you link this unit with other files to produce an --
-- executable, this unit does not by itself cause the resulting --
-- executable to be covered by the GNU General Public License. This --
-- exception does not however invalidate any other reasons why the --
-- executable file might be covered by the GNU Public License. --
-- ----------------------------------------------------------------- --
with Interfaces.C.Pointers;
generic
type The_Element is mod <>;
type The_Element_Array is
array (Interfaces.C.size_t range <>) of aliased The_Element;
package UintN_PtrOps is
package C renames Interfaces.C;
package Operations is
new Interfaces.C.Pointers (
Index => Interfaces.C.size_t,
Element => The_Element,
Element_Array => The_Element_Array,
Default_Terminator => 0);
subtype Pointer is Operations.Pointer;
function Value
(Ref : in Pointer;
Terminator : in The_Element)
return The_Element_Array renames Operations.Value;
function Value
(Ref : in Pointer;
Length : in C.ptrdiff_t)
return The_Element_Array renames Operations.Value;
--------------------------------
-- C-style Pointer Arithmetic --
--------------------------------
function "+" (Left : in Pointer; Right : in C.ptrdiff_t) return Pointer
renames Operations."+";
function "+" (Left : in C.ptrdiff_t; Right : in Pointer) return Pointer
renames Operations."+";
function "-" (Left : in Pointer; Right : in C.ptrdiff_t) return Pointer
renames Operations."-";
function "-" (Left : in Pointer; Right : in Pointer) return C.ptrdiff_t
renames Operations."-";
procedure Increment (Ref : in out Pointer)
renames Operations.Increment;
procedure Decrement (Ref : in out Pointer)
renames Operations.Increment;
function Virtual_Length
(Ref : in Pointer;
Terminator : in The_Element := 0)
return C.ptrdiff_t renames Operations.Virtual_Length;
procedure Copy_Terminated_Array
(Source : in Pointer;
Target : in Pointer;
Limit : in C.ptrdiff_t := C.ptrdiff_t'Last;
Terminator : in The_Element := 0)
renames Operations.Copy_Terminated_Array;
procedure Copy_Array
(Source : in Pointer;
Target : in Pointer;
Length : in C.ptrdiff_t)
renames Operations.Copy_Array;
end UintN_PtrOps;
|
[
{
"context": "- P.O. Box 1512, Madison WI 53701\r\n -- E-Mail: [email protected]\r\n --\r\n -- ARM_Form is free software: you ca",
"end": 627,
"score": 0.9999279379844666,
"start": 607,
"tag": "EMAIL",
"value": "[email protected]"
},
{
"context": "-- use license is available for this tool. Contact Randy at AXE Consultants\r\n -- for more information.\r",
"end": 1669,
"score": 0.913605809211731,
"start": 1664,
"tag": "NAME",
"value": "Randy"
}
] |
.emacs.d/elpa/ada-ref-man-2012.5/progs/arm_corr.adb
|
caqg/linux-home
| 0 |
with --ARM_Output,
--ARM_Contents,
--Ada.Text_IO,
Ada.Exceptions,
Ada.Strings.Fixed,
Ada.Strings.Maps;
package body ARM_Corr is
--
-- Ada reference manual formatter (ARM_Form).
--
-- This package defines the text output object.
-- Output objects are responsible for implementing the details of
-- a particular format.
--
-- ---------------------------------------
-- Copyright 2000, 2002, 2004, 2005, 2006, 2007, 2011, 2012
-- AXE Consultants. All rights reserved.
-- P.O. Box 1512, Madison WI 53701
-- E-Mail: [email protected]
--
-- ARM_Form is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License version 3
-- as published by the Free Software Foundation.
--
-- AXE CONSULTANTS MAKES THIS TOOL AND SOURCE CODE AVAILABLE ON AN "AS IS"
-- BASIS AND MAKES NO WARRANTY, EXPRESS OR IMPLIED, AS TO THE ACCURACY,
-- CAPABILITY, EFFICIENCY, MERCHANTABILITY, OR FUNCTIONING OF THIS TOOL.
-- IN NO EVENT WILL AXE CONSULTANTS BE LIABLE FOR ANY GENERAL,
-- CONSEQUENTIAL, INDIRECT, INCIDENTAL, EXEMPLARY, OR SPECIAL DAMAGES,
-- EVEN IF AXE CONSULTANTS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
-- DAMAGES.
--
-- A copy of the GNU General Public License is available in the file
-- gpl-3-0.txt in the standard distribution of the ARM_Form tool.
-- Otherwise, see <http://www.gnu.org/licenses/>.
--
-- If the GPLv3 license is not satisfactory for your needs, a commercial
-- use license is available for this tool. Contact Randy at AXE Consultants
-- for more information.
--
-- ---------------------------------------
--
-- Edit History:
--
-- 6/ 2/05 - RLB - Created package from text and HTML versions.
-- 1/11/06 - RLB - Eliminated dispatching Create in favor of tailored
-- versions.
-- 1/18/06 - RLB - Added additional styles.
-- 2/ 8/06 - RLB - Added additional parameters to the table command.
-- 2/10/06 - RLB - Added even more additional parameters to the
-- table command.
-- - RLB - Added picture command.
-- 9/22/06 - RLB - Added missing with.
-- 9/25/06 - RLB - Handled optional renaming of TOC.
-- - RLB - Added Last_Column_Width to Start_Table.
-- 10/13/06 - RLB - Added Local_Link_Start and Local_Link_End to allow
-- formatting in the linked text.
-- 2/ 9/07 - RLB - Changed comments on AI_Reference.
-- 2/13/07 - RLB - Revised to separate style and indent information
-- for paragraphs.
-- 12/18/07 - RLB - Added Plain_Annex.
-- 12/19/07 - RLB - Added limited colors to Text_Format.
-- 10/18/11 - RLB - Changed to GPLv3 license.
-- 10/25/11 - RLB - Added old insertion version to Revised_Clause_Header.
-- 8/31/12 - RLB - Added Output_Path.
-- 10/18/12 - RLB - Added additional hanging styles.
-- 11/26/12 - RLB - Added subdivision names to Clause_Header and
-- Revised_Clause_Header.
LINE_LENGTH : constant := 78;
-- Maximum intended line length.
Special_Set : constant Ada.Strings.Maps.Character_Set :=
Ada.Strings.Maps."or" (Ada.Strings.Maps.To_Set ('>'),
Ada.Strings.Maps.To_Set ('@'));
procedure Create (Output_Object : in out Corr_Output_Type;
File_Prefix : in String;
Output_Path : in String;
Title : in String := "") is
-- Create an Output_Object for a document.
-- The prefix of the output file names is File_Prefix - this
-- should be no more then 5 characters allowed in file names.
-- The result files will be written to Output_Path.
-- The title of the document is Title.
begin
if Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Already valid object");
end if;
Output_Object.Is_Valid := True;
Ada.Strings.Fixed.Move (Target => Output_Object.File_Prefix,
Source => File_Prefix);
Ada.Strings.Fixed.Move (Target => Output_Object.Output_Path,
Source => Output_Path);
Output_Object.Output_Path_Len := Output_Path'Length;
-- We don't use the title.
end Create;
procedure Close (Output_Object : in out Corr_Output_Type) is
-- Close an Output_Object. No further output to the object is
-- allowed after this call.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Ada.Text_IO.Is_Open (Output_Object.Output_File) then
Ada.Text_IO.Close (Output_Object.Output_File);
end if;
Output_Object.Is_Valid := False;
end Close;
procedure Section (Output_Object : in out Corr_Output_Type;
Section_Title : in String;
Section_Name : in String) is
-- Start a new section. The title is Section_Title (this is
-- intended for humans). The name is Section_Name (this is
-- intended to be suitable to be a portion of a file name).
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Section in paragraph");
end if;
if Ada.Text_IO.Is_Open (Output_Object.Output_File) then
Ada.Text_IO.Close (Output_Object.Output_File);
end if;
-- Create a new file for this section:
-- Unix directory separator for Windows and Debian
Ada.Text_IO.Create (Output_Object.Output_File, Ada.Text_IO.Out_File,
Output_Object.Output_Path(1..Output_Object.Output_Path_Len) &
Ada.Strings.Fixed.Trim (Output_Object.File_Prefix, Ada.Strings.Right) &
"-Corr-" & Section_Name & ".TXT");
Ada.Text_IO.New_Line (Output_Object.Output_File);
end Section;
procedure Set_Columns (Output_Object : in out Corr_Output_Type;
Number_of_Columns : in ARM_Output.Column_Count) is
-- Set the number of columns.
-- Raises Not_Valid_Error if in a paragraph.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"In paragraph");
end if;
-- No columns in text format.
end Set_Columns;
procedure Make_Indent (Output_Object : in out Corr_Output_Type) is
-- Internal:
-- Output the appropriate indent after a New_Line or Put_Line.
begin
--Ada.Text_IO.Put_Line("Make_Indent: Amount=" & Natural'Image(Output_Object.Indent_Amount));
for I in 1 .. Output_Object.Indent_Amount loop
Ada.Text_IO.Put (Output_Object.Output_File, ' ');
end loop;
Output_Object.Char_Count := Output_Object.Indent_Amount;
Output_Object.Out_Char_Count := Output_Object.Indent_Amount;
Output_Object.Output_Buffer_Space_Before := False;
end Make_Indent;
procedure Spill (Output_Object : in out Corr_Output_Type) is
-- Internal:
-- Empty the output buffer in preperation for a New_Line or Put_Line.
begin
if Output_Object.Output_Buffer_Space_Before then
Ada.Text_IO.Put (Output_Object.Output_File, ' ');
Output_Object.Char_Count := Output_Object.Char_Count + 1; -- Count the space.
Output_Object.Out_Char_Count := Output_Object.Out_Char_Count + 1; -- Count the space.
end if;
if Output_Object.Output_Buffer_Len /= 0 then
Ada.Text_IO.Put (Output_Object.Output_File,
Output_Object.Output_Buffer (1 .. Output_Object.Output_Buffer_Len));
--Ada.Text_IO.Put_Line("Spill: Len=" & Natural'Image(Output_Object.Output_Buffer_Len) &
-- " Space added=" & Boolean'Image(Output_Object.Output_Buffer_Space_Before) & " Text=" &
-- Output_Object.Output_Buffer (1 .. Output_Object.Output_Buffer_Len));
Output_Object.Output_Buffer_Len := 0;
Output_Object.Out_Char_Count := Output_Object.Out_Char_Count +
Output_Object.Output_Buffer_Len;
end if;
Output_Object.Output_Buffer_Space_Before := False;
end Spill;
procedure Buffer (Output_Object : in out Corr_Output_Type;
Char : in Character) is
-- Internal:
-- Add Char to the output buffer. Char will *not* be a word break
-- character.
begin
if Output_Object.Output_Buffer_Len = Output_Object.Output_Buffer'Last then
-- Oops, buffer is full. Spill it, and this character.
--Ada.Text_IO.Put_Line("** Buffer overflow!!");
Spill (Output_Object);
Ada.Text_IO.Put (Output_Object.Output_File, Char);
Output_Object.Char_Count := Output_Object.Char_Count + 1;
Output_Object.Out_Char_Count := Output_Object.Out_Char_Count + 1;
return;
end if;
Output_Object.Output_Buffer_Len := Output_Object.Output_Buffer_Len + 1;
Output_Object.Output_Buffer(Output_Object.Output_Buffer_Len) := Char;
Output_Object.Char_Count := Output_Object.Char_Count + 1;
end Buffer;
procedure Buffer (Output_Object : in out Corr_Output_Type;
Str : in String) is
-- Internal:
-- Add Char to the output buffer. String will *not* include a word
-- break character.
begin
if Output_Object.Output_Buffer_Len+Str'Length >= Output_Object.Output_Buffer'Last then
-- Oops, buffer is full. Spill it.
--Ada.Text_IO.Put_Line("** Buffer overflow!!");
Spill (Output_Object);
end if;
Output_Object.Output_Buffer(Output_Object.Output_Buffer_Len+1..Output_Object.Output_Buffer_Len+Str'Length)
:= Str;
Output_Object.Output_Buffer_Len := Output_Object.Output_Buffer_Len + Str'Length;
Output_Object.Char_Count := Output_Object.Char_Count + Str'Length;
end Buffer;
procedure Start_Paragraph (Output_Object : in out Corr_Output_Type;
Style : in ARM_Output.Paragraph_Style_Type;
Indent : in ARM_Output.Paragraph_Indent_Type;
Number : in String;
No_Prefix : in Boolean := False;
Tab_Stops : in ARM_Output.Tab_Info := ARM_Output.NO_TABS;
No_Breaks : in Boolean := False;
Keep_with_Next : in Boolean := False;
Space_After : in ARM_Output.Space_After_Type
:= ARM_Output.Normal;
Justification : in ARM_Output.Justification_Type
:= ARM_Output.Default) is
-- Start a new paragraph. The style and indent of the paragraph is as
-- specified. The (AA)RM paragraph number (which might include update
-- and version numbers as well: [12.1/1]) is Number. If the format is
-- a type with a prefix (bullets, hangining items), the prefix is
-- omitted if No_Prefix is true. Tab_Stops defines the tab stops for
-- the paragraph. If No_Breaks is True, we will try to avoid page breaks
-- in the paragraph. If Keep_with_Next is true, we will try to avoid
-- separating this paragraph and the next one. (These may have no
-- effect in formats that don't have page breaks). Space_After
-- specifies the amount of space following the paragraph. Justification
-- specifies the text justification for the paragraph. Not_Valid_Error
-- is raised if Tab_Stops /= NO_TABS for a hanging or bulleted format.
use type ARM_Output.Paragraph_Indent_Type;
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Already in paragraph");
end if;
Output_Object.Is_In_Paragraph := True;
Output_Object.Is_Hanging := False;
Output_Object.Saw_Hang_End := False;
Output_Object.Char_Count := 0;
Output_Object.Out_Char_Count := 0;
Output_Object.Output_Buffer_Space_Before := False; -- Nothing in it or on the line.
Output_Object.Output_Buffer_Len := 0;
Output_Object.Font := ARM_Output.Default;
Output_Object.Is_Bold := False;
Output_Object.Is_Italic := False;
Output_Object.Size := 0;
Output_Object.Para_Style := Style;
Output_Object.Para_Indent := Indent;
Output_Object.Is_Fixed_Format := False;
if Output_Object.Clause_Len /= 0 and then
Number /= "" then
Ada.Text_IO.New_Line (Output_Object.Output_File);
Ada.Text_IO.Put (Output_Object.Output_File, "!paragraph ");
Ada.Text_IO.Put (Output_Object.Output_File, Output_Object.Clause_Num(1..Output_Object.Clause_Len));
Ada.Text_IO.Put (Output_Object.Output_File, '(');
Ada.Text_IO.Put (Output_Object.Output_File, Number);
Ada.Text_IO.Put (Output_Object.Output_File, ") [");
Ada.Text_IO.Put (Output_Object.Output_File, ARM_Output.Paragraph_Style_Type'Image(Style) &
" :" & ARM_Output.Paragraph_Indent_Type'Image(Indent));
Ada.Text_IO.Put_Line (Output_Object.Output_File, "]");
Ada.Text_IO.New_Line (Output_Object.Output_File);
else
Ada.Text_IO.New_Line (Output_Object.Output_File);
end if;
Output_Object.Indent_Amount := Integer(Indent)*4 + 2;
case Style is
when ARM_Output.Normal =>
if Indent = 0 then
null; -- %% Temp.
Output_Object.Indent_Amount := 0; -- %% Temp.
elsif Indent = 3 then
Ada.Text_IO.Put (Output_Object.Output_File, "@xindent<");
Output_Object.Char_Count := 9;
Output_Object.Indent_Amount := 0; -- %% Temp.
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Wide_Above => null;
if Indent = 0 then
null; -- %% Temp.
Output_Object.Indent_Amount := 0; -- %% Temp.
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Small =>
if Indent = 1 then -- Notes.
Ada.Text_IO.Put (Output_Object.Output_File, "@xindent<@s9<");
Output_Object.Char_Count := 13;
Output_Object.Indent_Amount := 0; -- %% Temp.
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Small_Wide_Above =>
null; -- ** TBD (Unknown cases).
when ARM_Output.Header =>
null; -- ** TBD (Unknown cases).
when ARM_Output.Small_Header =>
if Indent = 1 then -- Notes Header.
null;
--Output_Object.Indent_Amount := 6; --** TBD.
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Index => null; --** TBD.
when ARM_Output.Syntax_Summary => null; --** TBD.
when ARM_Output.Title =>
null; -- ** TBD (Unknown cases).
when ARM_Output.Examples =>
if Indent = 1 then
Ada.Text_IO.Put (Output_Object.Output_File, "@xcode<");
Output_Object.Char_Count := 7;
Output_Object.Is_Fixed_Format := True;
Output_Object.Indent_Amount := 0; -- %% Temp.
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Small_Examples => null; --** TBD.
when ARM_Output.Swiss_Examples =>
if Indent = 1 then
Ada.Text_IO.Put (Output_Object.Output_File, "@xcode<");
Output_Object.Char_Count := 7;
Output_Object.Is_Fixed_Format := True;
Output_Object.Indent_Amount := 0; -- %% Temp.
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Small_Swiss_Examples => null; --** TBD.
when ARM_Output.Bulleted =>
if Indent = 1 then
Output_Object.Indent_Amount := 0; -- %% Temp.
if No_Prefix then
Ada.Text_IO.Put (Output_Object.Output_File, "@xindent<");
Output_Object.Char_Count := 9;
else
Ada.Text_IO.Put (Output_Object.Output_File, "@xbullet<");
Output_Object.Char_Count := 9;
end if;
else -- Unknown/unimplemented case.
null; -- ** Tbd.
end if;
when ARM_Output.Nested_Bulleted => null; --** TBD.
when ARM_Output.Small_Bulleted => null; --** TBD.
when ARM_Output.Small_Nested_Bulleted => null; --** TBD.
when ARM_Output.Giant_Hanging => null; --** TBD.
when ARM_Output.Wide_Hanging =>
if Indent = 3 then
Output_Object.Indent_Amount := 0; -- %% Temp.
Output_Object.Is_Hanging := True;
if No_Prefix then
Output_Object.Saw_Hang_End := True;
Output_Object.Char_Count := 0;
else -- Has prefix
-- No units on first line.
Output_Object.Saw_Hang_End := False;
Ada.Text_IO.Put (Output_Object.Output_File, "@xhang<@xterm<");
Output_Object.Char_Count := 14;
end if;
else -- Unknown/unimplemented case.
null; -- ** Tbd.
end if;
when ARM_Output.Medium_Hanging => null; --** TBD.
when ARM_Output.Narrow_Hanging => null; --** TBD.
when ARM_Output.Hanging_in_Bulleted => null; --** TBD.
when ARM_Output.Small_Giant_Hanging => null; --** TBD.
when ARM_Output.Small_Wide_Hanging => null; --** TBD.
when ARM_Output.Small_Medium_Hanging => null; --** TBD.
when ARM_Output.Small_Narrow_Hanging => null; --** TBD.
when ARM_Output.Small_Hanging_in_Bulleted => null; --** TBD.
when ARM_Output.Enumerated => null; --** TBD.
when ARM_Output.Small_Enumerated => null; --** TBD.
end case;
if Output_Object.Indent_Amount > 6 then
for I in 1 .. (Output_Object.Indent_Amount-6)/4 loop
Ada.Text_IO.Put (Output_Object.Output_File, " ");
Output_Object.Char_Count := Output_Object.Char_Count + 4;
end loop;
end if;
case Style is
when ARM_Output.Normal | ARM_Output.Wide_Above |
ARM_Output.Small | ARM_Output.Small_Wide_Above |
ARM_Output.Header | ARM_Output.Small_Header |
ARM_Output.Index | ARM_Output.Syntax_Summary |
ARM_Output.Title |
ARM_Output.Examples | ARM_Output.Small_Examples |
ARM_Output.Swiss_Examples | ARM_Output.Small_Swiss_Examples =>
Output_Object.Tab_Stops := Tab_Stops;
-- We'll expand proportional stops here (text characters
-- are larger than the variable ones these are set up for).
for I in 1 .. Tab_Stops.Number loop
if ARM_Output."=" (Tab_Stops.Stops(I).Kind,
ARM_Output.Left_Proportional) then
Output_Object.Tab_Stops.Stops(I).Stop :=
(Tab_Stops.Stops(I).Stop * 5 / 4) + Output_Object.Indent_Amount;
else
Output_Object.Tab_Stops.Stops(I).Stop :=
Tab_Stops.Stops(I).Stop + Output_Object.Indent_Amount;
end if;
end loop;
when ARM_Output.Bulleted | ARM_Output.Nested_Bulleted |
ARM_Output.Small_Bulleted | ARM_Output.Small_Nested_Bulleted |
ARM_Output.Giant_Hanging | ARM_Output.Wide_Hanging |
ARM_Output.Medium_Hanging | ARM_Output.Narrow_Hanging |
ARM_Output.Hanging_in_Bulleted |
ARM_Output.Small_Giant_Hanging | ARM_Output.Small_Wide_Hanging |
ARM_Output.Small_Medium_Hanging | ARM_Output.Small_Narrow_Hanging |
ARM_Output.Small_Hanging_in_Bulleted |
ARM_Output.Enumerated | ARM_Output.Small_Enumerated =>
if Tab_Stops.Number /= 0 then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Tabs in hanging/bulleted paragraph");
end if;
end case;
Output_Object.Out_Char_Count := Output_Object.Char_Count;
-- Note: No_Breaks, Keep_with_Next, and Justification have no effect
-- here.
--Ada.Text_IO.Put_Line ("Start_Paragraph - Indent=" & Natural'Image(Output_Object.Indent_Amount) & " Cnt=" &
-- Natural'Image(Output_Object.Char_Count));
end Start_Paragraph;
procedure End_Paragraph (Output_Object : in out Corr_Output_Type) is
-- End a paragraph.
use type ARM_Output.Paragraph_Indent_Type;
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
case Output_Object.Para_Style is
when ARM_Output.Normal =>
if Output_Object.Para_Indent = 0 then
null;
elsif Output_Object.Para_Indent = 3 then
Buffer (Output_Object, '>');
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Wide_Above => null;
if Output_Object.Para_Indent = 0 then
null; -- %% Temp.
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Small =>
if Output_Object.Para_Indent = 1 then -- Notes.
Buffer (Output_Object, ">>");
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Small_Wide_Above =>
null; -- ** TBD (Unknown cases).
when ARM_Output.Header =>
null; -- ** TBD (Unknown cases).
when ARM_Output.Small_Header =>
if Output_Object.Para_Indent = 1 then -- Notes Header.
null;
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Index => null; --** TBD.
when ARM_Output.Syntax_Summary => null; --** TBD.
when ARM_Output.Title => null; --** TBD.
when ARM_Output.Examples =>
if Output_Object.Para_Indent = 1 then
Buffer (Output_Object, '>');
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Small_Examples => null; --** TBD.
when ARM_Output.Swiss_Examples =>
if Output_Object.Para_Indent = 1 then
Buffer (Output_Object, '>');
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Small_Swiss_Examples => null; --** TBD.
when ARM_Output.Bulleted =>
if Output_Object.Para_Indent = 1 then
Buffer (Output_Object, '>');
else -- Unknown/unimplemented case.
null; -- ** Tbd.
end if;
when ARM_Output.Nested_Bulleted => null; --** TBD.
when ARM_Output.Small_Bulleted => null; --** TBD.
when ARM_Output.Small_Nested_Bulleted => null; --** TBD.
when ARM_Output.Giant_Hanging => null; --** TBD.
when ARM_Output.Wide_Hanging =>
if Output_Object.Para_Indent = 3 then
Buffer (Output_Object, '>');
else -- Unknown/unimplemented case.
null; -- ** Tbd.
end if;
when ARM_Output.Medium_Hanging => null; --** TBD.
when ARM_Output.Narrow_Hanging => null; --** TBD.
when ARM_Output.Hanging_in_Bulleted => null; --** TBD.
when ARM_Output.Small_Giant_Hanging => null; --** TBD.
when ARM_Output.Small_Wide_Hanging => null; --** TBD.
when ARM_Output.Small_Medium_Hanging => null; --** TBD.
when ARM_Output.Small_Narrow_Hanging => null; --** TBD.
when ARM_Output.Small_Hanging_in_Bulleted => null; --** TBD.
when ARM_Output.Enumerated => null; --** TBD.
when ARM_Output.Small_Enumerated => null; --** TBD.
end case;
if Output_Object.Output_Buffer_Len /= 0 then
Spill (Output_Object);
end if;
Output_Object.Is_In_Paragraph := False;
Ada.Text_IO.New_Line (Output_Object.Output_File, 2); -- Double space paragraphs.
end End_Paragraph;
procedure Category_Header (Output_Object : in out Corr_Output_Type;
Header_Text : String) is
-- Output a Category header (that is, "Legality Rules",
-- "Dynamic Semantics", etc.)
-- (Note: We did not use a enumeration here to insure that these
-- headers are spelled the same in all output versions).
-- Raises Not_Valid_Error if in a paragraph.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Header in paragraph");
end if;
Ada.Text_IO.New_Line (Output_Object.Output_File);
Ada.Text_IO.Put_Line (Output_Object.Output_File, "!subheader");
Ada.Text_IO.Put (Output_Object.Output_File, "@i<@s8<");
if Ada.Strings.Fixed.Count (Header_Text, Special_Set) = 0 then
Ada.Text_IO.Put (Output_Object.Output_File, Header_Text);
else
for I in Header_Text'Range loop
if Header_Text(I) = '>' then
Ada.Text_IO.Put (Output_Object.Output_File, "@>");
elsif Header_Text(I) = '@' then
Ada.Text_IO.Put (Output_Object.Output_File, "@@");
else
Ada.Text_IO.Put (Output_Object.Output_File, Header_Text(I));
end if;
end loop;
end if;
Ada.Text_IO.Put (Output_Object.Output_File, ">>");
Ada.Text_IO.New_Line (Output_Object.Output_File);
Output_Object.Char_Count := 0;
Output_Object.Out_Char_Count := 0;
end Category_Header;
procedure Clause_Header (Output_Object : in out Corr_Output_Type;
Header_Text : in String;
Level : in ARM_Contents.Level_Type;
Clause_Number : in String;
Top_Level_Subdivision_Name : in ARM_Output.Top_Level_Subdivision_Name_Kind;
No_Page_Break : in Boolean := False) is
-- Output a Clause header. The level of the header is specified
-- in Level. The Clause Number is as specified; the top-level (and
-- other) subdivision names are as specified. These should appear in
-- the table of contents.
-- For hyperlinked formats, this should generate a link target.
-- If No_Page_Break is True, suppress any page breaks.
-- Raises Not_Valid_Error if in a paragraph.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Header in paragraph");
end if;
Ada.Text_IO.New_Line (Output_Object.Output_File);
Output_Object.Clause_Len := Clause_Number'Length;
Output_Object.Clause_Num(1..Output_Object.Clause_Len) :=
Clause_Number;
-- Special for table of contents:
if Clause_Number = "" and then
(Header_Text = "Table of Contents" or else
Header_Text = "Contents") then
Ada.Text_IO.Put (Output_Object.Output_File,
"!clause ");
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
Ada.Text_IO.New_Line (Output_Object.Output_File, 2);
Output_Object.Char_Count := 0;
Output_Object.Out_Char_Count := 0;
return;
end if;
Ada.Text_IO.Put (Output_Object.Output_File,
"!clause ");
case Level is
when ARM_Contents.Plain_Annex =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number); -- Note: Clause_Number includes "Annex"
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
when ARM_Contents.Normative_Annex =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number); -- Note: Clause_Number includes "Annex"
Ada.Text_IO.Put_Line (Output_Object.Output_File,
"(normative)");
Ada.Text_IO.New_Line (Output_Object.Output_File);
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
when ARM_Contents.Informative_Annex =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number); -- Note: Clause_Number includes "Annex"
Ada.Text_IO.Put_Line (Output_Object.Output_File,
"(informative)");
Ada.Text_IO.New_Line (Output_Object.Output_File);
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
when ARM_Contents.Section =>
case Top_Level_Subdivision_Name is
when ARM_Output.Chapter =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
"Chapter " & Clause_Number & ": " & Header_Text);
when ARM_Output.Section =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
"Section " & Clause_Number & ": " & Header_Text);
when ARM_Output.Clause =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number & " " & Header_Text);
end case;
when ARM_Contents.Unnumbered_Section =>
if Header_Text /= "" then
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
end if;
when ARM_Contents.Clause | ARM_Contents.Subclause |
ARM_Contents.Subsubclause =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number & ' ' & Header_Text);
when ARM_Contents.Dead_Clause =>
raise Program_Error; -- No headers for dead clauses.
end case;
Ada.Text_IO.New_Line (Output_Object.Output_File, 2);
Output_Object.Char_Count := 0;
Output_Object.Out_Char_Count := 0;
-- We don't have any page breaks here to suppress.
end Clause_Header;
procedure Revised_Clause_Header
(Output_Object : in out Corr_Output_Type;
New_Header_Text : in String;
Old_Header_Text : in String;
Level : in ARM_Contents.Level_Type;
Clause_Number : in String;
Version : in ARM_Contents.Change_Version_Type;
Old_Version : in ARM_Contents.Change_Version_Type;
Top_Level_Subdivision_Name : in ARM_Output.Top_Level_Subdivision_Name_Kind;
No_Page_Break : in Boolean := False) is
-- Output a revised clause header. Both the original and new text will
-- be output. The level of the header is specified in Level. The Clause
-- Number is as specified; the top-level (and other) subdivision names
-- are as specified. These should appear in the table of contents.
-- For hyperlinked formats, this should generate a link target.
-- Version is the insertion version of the new text; Old_Version is
-- the insertion version of the old text.
-- If No_Page_Break is True, suppress any page breaks.
-- Raises Not_Valid_Error if in a paragraph.
function Header_Text return String is
-- Note: Version and Old_Version are not used.
begin
return '{' & New_Header_Text & "} [" & Old_Header_Text & ']';
end Header_Text;
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Header in paragraph");
end if;
Ada.Text_IO.New_Line (Output_Object.Output_File);
Output_Object.Clause_Len := Clause_Number'Length;
Output_Object.Clause_Num(1..Output_Object.Clause_Len) :=
Clause_Number;
-- Special for table of contents:
if Clause_Number = "" and then
(Header_Text = "Table of Contents" or else -- Ada 95 format
Header_Text = "Contents") then -- ISO 2004 format.
Ada.Text_IO.Put (Output_Object.Output_File,
"!clause ");
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
Ada.Text_IO.New_Line (Output_Object.Output_File, 2);
Output_Object.Char_Count := 0;
Output_Object.Out_Char_Count := 0;
return;
end if;
Ada.Text_IO.Put (Output_Object.Output_File,
"!clause ");
case Level is
when ARM_Contents.Plain_Annex =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number); -- Note: Clause_Number includes "Annex"
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
when ARM_Contents.Normative_Annex =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number); -- Note: Clause_Number includes "Annex"
Ada.Text_IO.Put_Line (Output_Object.Output_File,
"(normative)");
Ada.Text_IO.New_Line (Output_Object.Output_File);
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
when ARM_Contents.Informative_Annex =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number); -- Note: Clause_Number includes "Annex"
Ada.Text_IO.Put_Line (Output_Object.Output_File,
"(informative)");
Ada.Text_IO.New_Line (Output_Object.Output_File);
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
when ARM_Contents.Section =>
case Top_Level_Subdivision_Name is
when ARM_Output.Chapter =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
"Chapter " & Clause_Number & ": " & Header_Text);
when ARM_Output.Section =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
"Section " & Clause_Number & ": " & Header_Text);
when ARM_Output.Clause =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number & " " & Header_Text);
end case;
when ARM_Contents.Unnumbered_Section =>
if Header_Text /= "" then
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
end if;
when ARM_Contents.Clause | ARM_Contents.Subclause |
ARM_Contents.Subsubclause =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number & ' ' & Header_Text);
when ARM_Contents.Dead_Clause =>
raise Program_Error; -- No headers for dead clauses.
end case;
Ada.Text_IO.New_Line (Output_Object.Output_File, 2);
Output_Object.Char_Count := 0;
Output_Object.Out_Char_Count := 0;
-- We don't have any page breaks here to suppress.
end Revised_Clause_Header;
procedure TOC_Marker (Output_Object : in out Corr_Output_Type;
For_Start : in Boolean) is
-- Mark the start (if For_Start is True) or end (if For_Start is
-- False) of the table of contents data. Output objects that
-- auto-generate the table of contents can use this to do needed
-- actions.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
null; -- We don't care about this.
end TOC_Marker;
procedure New_Page (Output_Object : in out Corr_Output_Type;
Kind : ARM_Output.Page_Kind_Type := ARM_Output.Any_Page) is
-- Output a page break.
-- Note that this has no effect on non-printing formats.
-- Any_Page breaks to the top of the next page (whatever it is);
-- Odd_Page_Only breaks to the top of the odd-numbered page;
-- Soft_Page allows a page break but does not force one (use in
-- "No_Breaks" paragraphs.)
-- Raises Not_Valid_Error if in a paragraph if Kind = Any_Page or
-- Odd_Page, and if not in a paragraph if Kind = Soft_Page.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
case Kind is
when ARM_Output.Any_Page | ARM_Output.Odd_Page_Only =>
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Page in paragraph");
end if;
Ada.Text_IO.New_Line (Output_Object.Output_File, 2);
when ARM_Output.Soft_Page =>
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Soft page not in paragraph");
end if;
null; -- No page breaks.
Spill (Output_Object);
end case;
end New_Page;
procedure New_Column (Output_Object : in out Corr_Output_Type) is
-- Output a column break.
-- Raises Not_Valid_Error if in a paragraph, or if the number of
-- columns is 1.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"New column in paragraph");
end if;
-- No columns in text format.
Ada.Text_IO.New_Line (Output_Object.Output_File);
end New_Column;
procedure Start_Table (Output_Object : in out Corr_Output_Type;
Columns : in ARM_Output.Column_Count;
First_Column_Width : in ARM_Output.Column_Count;
Last_Column_Width : in ARM_Output.Column_Count;
Alignment : in ARM_Output.Column_Text_Alignment;
No_Page_Break : in Boolean;
Has_Border : in Boolean;
Small_Text_Size : in Boolean;
Header_Kind : in ARM_Output.Header_Kind_Type) is
-- Starts a table. The number of columns is Columns; the first
-- column has First_Column_Width times the normal column width, and
-- the last column has Last_Column_Width times the normal column width.
-- Alignment is the horizontal text alignment within the columns.
-- No_Page_Break should be True to keep the table intact on a single
-- page; False to allow it to be split across pages.
-- Has_Border should be true if a border is desired, false otherwise.
-- Small_Text_Size means that the contents will have the AARM size;
-- otherwise it will have the normal size.
-- Header_Kind determines whether the table has headers.
-- This command starts a paragraph; the entire table is a single
-- paragraph. Text will be considered part of the caption until the
-- next table marker call.
-- Raises Not_Valid_Error if in a paragraph.
begin
-- Alignment, No_Page_Break, Border, Small_Text_Size, and Header_Kind
-- not used here.
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Table in paragraph");
end if;
Output_Object.Tab_Stops.Number := Columns;
declare
Column_Units : constant ARM_Output.Column_Count :=
Columns+First_Column_Width+Last_Column_Width-2;
Width : Natural :=
(72/(Column_Units));
begin
if Column_Units <= 3 then -- Keep it from getting too wide.
Width := 22;
end if;
for I in 1 .. Columns loop
Output_Object.Tab_Stops.Stops(I) := (Kind => ARM_Output.Left_Fixed,
Stop => Width*(I+First_Column_Width-1)+10);
end loop;
end;
Output_Object.Indent_Amount := 10;
Ada.Text_IO.Put (Output_Object.Output_File, " ");
Output_Object.Char_Count := 10;
Output_Object.Out_Char_Count := 10;
Output_Object.Is_In_Paragraph := True;
Output_Object.Is_In_Table := True;
end Start_Table;
procedure Table_Marker (Output_Object : in out Corr_Output_Type;
Marker : in ARM_Output.Table_Marker_Type) is
-- Marks the end of an entity in a table.
-- If Marker is End_Caption, the table caption ends and the
-- future text is part of the table header.
-- If Marker is End_Header, the table header ends and the
-- future text is part of the table body.
-- If Marker is End_Row, a row in the table is completed, and another
-- row started.
-- If Marker is End_Row_Next_Is_Last, a row in the table is completed,
-- and another row started. That row is the last row in the table.
-- If Marker is End_Item, an item in the table header or body is ended,
-- and another started.
-- If Marker is End_Table, the entire table is finished.
-- Raises Not_Valid_Error if not in a table.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if (not Output_Object.Is_In_Paragraph) or (not Output_Object.Is_In_Table) then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Table marker not in table");
end if;
case Marker is
when ARM_Output.End_Item =>
-- Just tab over one row:
Spill (Output_Object);
Ada.Text_IO.Put_Line (Output_Object.Output_File, " ");
Output_Object.Char_Count := Output_Object.Char_Count + 1;
Output_Object.Out_Char_Count := Output_Object.Out_Char_Count + 1;
for I in 1 .. Output_Object.Tab_Stops.Number loop
if Output_Object.Tab_Stops.Stops(I).Stop > Output_Object.Char_Count then
for J in Output_Object.Char_Count+1 .. Output_Object.Tab_Stops.Stops(I).Stop-1 loop
Ada.Text_IO.Put_Line (Output_Object.Output_File, " ");
Output_Object.Char_Count := Output_Object.Char_Count + 1;
Output_Object.Out_Char_Count := Output_Object.Out_Char_Count + 1;
end loop;
end if;
end loop;
when ARM_Output.End_Caption =>
Spill (Output_Object);
Ada.Text_IO.New_Line (Output_Object.Output_File, 2);
Ada.Text_IO.Put (Output_Object.Output_File, " ");
Output_Object.Char_Count := 10;
Output_Object.Out_Char_Count := 10;
when ARM_Output.End_Header =>
Spill (Output_Object);
Ada.Text_IO.New_Line (Output_Object.Output_File, 2);
Ada.Text_IO.Put (Output_Object.Output_File, " ");
Output_Object.Char_Count := 10;
Output_Object.Out_Char_Count := 10;
when ARM_Output.End_Row | ARM_Output.End_Row_Next_Is_Last =>
Spill (Output_Object);
Ada.Text_IO.New_Line (Output_Object.Output_File, 1);
Ada.Text_IO.Put (Output_Object.Output_File, " ");
Output_Object.Char_Count := 10;
Output_Object.Out_Char_Count := 10;
when ARM_Output.End_Table =>
Spill (Output_Object);
Output_Object.Is_In_Paragraph := False;
Output_Object.Is_In_Table := False;
Ada.Text_IO.New_Line (Output_Object.Output_File);
Output_Object.Tab_Stops := ARM_Output.NO_TABS;
end case;
end Table_Marker;
procedure Separator_Line (Output_Object : in out Corr_Output_Type;
Is_Thin : Boolean := True) is
-- Output a separator line. It is thin if "Is_Thin" is true.
-- Raises Not_Valid_Error if in a paragraph.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Separator in paragraph");
end if;
Ada.Text_IO.New_Line (Output_Object.Output_File);
if Is_Thin then
Ada.Text_IO.Put_Line (Output_Object.Output_File, "---------------------------------------------------------------------");
else
Ada.Text_IO.Put_Line (Output_Object.Output_File, "=====================================================================");
end if;
Ada.Text_IO.New_Line (Output_Object.Output_File);
end Separator_Line;
-- Text output: These are only allowed after a Start_Paragraph and
-- before any End_Paragraph. Raises Not_Valid_Error if not allowed.
procedure Ordinary_Text (Output_Object : in out Corr_Output_Type;
Text : in String) is
-- Output ordinary text.
-- The text must end at a word break, never in the middle of a word.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
--Ada.Text_IO.Put_Line ("Ordinary_Text: Cnt=" & Natural'Image(Output_Object.Char_Count) &
--" Buffer=" & Natural'Image(Output_Object.Output_Buffer_Len));
if Output_Object.Char_Count + Text'Length >= LINE_LENGTH - 2 and then
Output_Object.Out_Char_Count > Output_Object.Indent_Amount then
-- We want a line break here if the line is too long and something was output:
Ada.Text_IO.New_Line (Output_Object.Output_File);
Make_Indent (Output_Object);
--Output_Object.Output_Buffer_Space_Before := False;
-- Start of line, this is done by Make_Indent.
Spill (Output_Object);
else
Spill (Output_Object);
end if;
if Ada.Strings.Fixed.Count (Text, Special_Set) = 0 then
Ada.Text_IO.Put (Output_Object.Output_File, Text);
Output_Object.Char_Count := Output_Object.Char_Count + Text'Length;
Output_Object.Out_Char_Count := Output_Object.Out_Char_Count + Text'Length;
else
for I in Text'Range loop
if Text(I) = '>' then
Ada.Text_IO.Put (Output_Object.Output_File, "@>");
Output_Object.Char_Count := Output_Object.Char_Count + 2;
Output_Object.Out_Char_Count := Output_Object.Out_Char_Count + 2;
elsif Text(I) = '@' then
Ada.Text_IO.Put (Output_Object.Output_File, "@@");
Output_Object.Char_Count := Output_Object.Char_Count + 2;
Output_Object.Out_Char_Count := Output_Object.Out_Char_Count + 2;
else
Ada.Text_IO.Put (Output_Object.Output_File, Text(I));
Output_Object.Char_Count := Output_Object.Char_Count + 1;
Output_Object.Out_Char_Count := Output_Object.Out_Char_Count + 1;
end if;
end loop;
end if;
Output_Object.Output_Buffer_Space_Before := False; -- No space between
-- this and any following text.
end Ordinary_Text;
procedure Ordinary_Character (Output_Object : in out Corr_Output_Type;
Char : in Character) is
-- Output an ordinary character.
-- Spaces will be used to break lines as needed.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
if Output_Object.Char_Count >= LINE_LENGTH and then
Output_Object.Out_Char_Count > Output_Object.Indent_Amount then
-- Insert a break here if anything has been output (but don't
-- Spill the buffer):
--Ada.Text_IO.Put_Line ("Ordinary_Char [Break, no spill]: Cnt=" & Natural'Image(Output_Object.Char_Count));
Ada.Text_IO.New_Line (Output_Object.Output_File);
Make_Indent (Output_Object);
--Output_Object.Output_Buffer_Space_Before := False;
-- Start of line, this is done by Make_Indent.
-- Note that this may make the space disappear.
-- Add the contents of the buffer to the character count for this line:
Output_Object.Char_Count := Output_Object.Char_Count +
Output_Object.Output_Buffer_Len;
if Char = '>' then
Buffer (Output_Object, "@>");
elsif Char = '@' then
Buffer (Output_Object, "@@");
elsif Char /= ' ' then
Buffer (Output_Object, Char);
else -- Break character, spill on the new line:
if Output_Object.Output_Buffer_Len /= 0 then
Spill (Output_Object); -- Output the buffer up to the space.
Output_Object.Output_Buffer_Space_Before := True; -- Mid-line now.
-- else nothing in buffer, so nothing to output; just skip it.
end if;
end if;
elsif Char = ' ' then
-- Break character, and it fits on this line:
if Output_Object.Output_Buffer_Len /= 0 then
--Ada.Text_IO.Put_Line ("Ordinary_Char [Space spill]: Cnt=" & Natural'Image(Output_Object.Char_Count));
Spill (Output_Object); -- Output the buffer up to the space.
Output_Object.Output_Buffer_Space_Before := True; -- Mid-line now.
else -- nothing in buffer.
-- nothing to output. But make sure we display a space before
-- the next item.
Output_Object.Output_Buffer_Space_Before := True; -- Mid-line now.
end if;
elsif Char = '>' then
Buffer (Output_Object, "@>");
elsif Char = '@' then
Buffer (Output_Object, "@@");
else
Buffer (Output_Object, Char);
end if;
end Ordinary_Character;
procedure Hard_Space (Output_Object : in out Corr_Output_Type) is
-- Output a hard space. No line break should happen at a hard space.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
if Output_Object.Is_Fixed_Format then
-- In this format, all spaces are hard spaces.
Buffer (Output_Object, ' ');
else -- A hard space command.
Buffer (Output_Object, "@ ");
end if;
end Hard_Space;
procedure Line_Break (Output_Object : in out Corr_Output_Type) is
-- Output a line break. This does not start a new paragraph.
-- This corresponds to a "<BR>" in HTML.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
--Ada.Text_Io.Put_Line ("Line_Break");
if Output_Object.Is_Fixed_Format then
-- In this format, all line breaks are significant.
null;
else -- A hard space command.
Buffer (Output_Object, "@hr");
end if;
if Output_Object.Output_Buffer_Len /= 0 then
Spill (Output_Object);
end if;
Ada.Text_IO.New_Line (Output_Object.Output_File);
Make_Indent (Output_Object);
end Line_Break;
procedure Index_Line_Break (Output_Object : in out Corr_Output_Type;
Clear_Keep_with_Next : in Boolean) is
-- Output a line break for the index. This does not start a new
-- paragraph in terms of spacing. This corresponds to a "<BR>"
-- in HTML. If Clear_Keep_with_Next is true, insure that the next
-- line does not require the following line to stay with it.
-- Raises Not_Valid_Error if the paragraph is not in the index format.
begin
Line_Break (Output_Object);
end Index_Line_Break;
procedure Soft_Line_Break (Output_Object : in out Corr_Output_Type) is
-- Output a soft line break. This is a place (in the middle of a
-- "word") that we allow a line break. It is usually used after
-- underscores in long non-terminals.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
-- if Output_Object.Char_Count >= LINE_LENGTH - 10 then
-- if Output_Object.Output_Buffer_Len /= 0 then
-- Spill (Output_Object);
-- end if;
-- Ada.Text_IO.New_Line (Output_Object.Output_File);
-- Make_Indent (Output_Object);
-- -- else we don't need a line break.
-- end if;
null; -- Ignore this, there is no counterpart in Corrigendum formatting.
end Soft_Line_Break;
procedure Soft_Hyphen_Break (Output_Object : in out Corr_Output_Type) is
-- Output a soft line break, with a hyphen. This is a place (in the middle of
-- a "word") that we allow a line break. If the line break is used,
-- a hyphen will be added to the text.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
-- if Output_Object.Char_Count >= LINE_LENGTH - 8 then
-- Spill (Output_Object);
-- Ada.Text_IO.Put_Line (Output_Object.Output_File, "-"); -- Add the hyphen and break.
-- Make_Indent (Output_Object);
-- -- else we don't need a line break.
-- end if;
null; -- Ignore this, there is no counterpart in Corrigendum formatting.
end Soft_Hyphen_Break;
procedure Tab (Output_Object : in out Corr_Output_Type) is
-- Output a tab, inserting space up to the next tab stop.
-- Raises Not_Valid_Error if the paragraph was created with
-- Tab_Stops = ARM_Output.NO_TABS.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
if ARM_Output."="(Output_Object.Tab_Stops, ARM_Output.NO_TABS) then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Tab, but none set");
end if;
-- We use the tab stops as characters here, and fixed and proportional
-- stops are treated identically.
-- Find the first stop greater than the current character count. (After
-- writing a space).
--Ada.Text_IO.Put_Line ("Tab");
Buffer (Output_Object, "@tab");
Output_Object.Output_Buffer_Space_Before := False; -- Spaces needed were output.
end Tab;
procedure Special_Character (Output_Object : in out Corr_Output_Type;
Char : in ARM_Output.Special_Character_Type) is
-- Output an special character.
begin
--** Could use Latin1 and Unicode equivalents for most of these.
case Char is
when ARM_Output.EM_Dash =>
Buffer (Output_Object, "@emdash");
when ARM_Output.EN_Dash =>
Buffer (Output_Object, "@endash");
when ARM_Output.GEQ =>
Ordinary_Text (Output_Object, ">="); -- Not available in Corrigendum, use the Ada one.
when ARM_Output.LEQ =>
Ordinary_Text (Output_Object, "<="); -- Not available in Corrigendum, use the Ada one.
when ARM_Output.NEQ =>
Ordinary_Text (Output_Object, "/="); -- Not available in Corrigendum, use the Ada one.
when ARM_Output.PI =>
Buffer (Output_Object, "@pi");
when ARM_Output.Left_Ceiling =>
Ordinary_Text (Output_Object, "Ceiling("); -- Not available in Corrigendum.
when ARM_Output.Right_Ceiling =>
Ordinary_Text (Output_Object, ")"); -- Not available in Corrigendum.
when ARM_Output.Left_Floor =>
Ordinary_Text (Output_Object, "Floor("); -- Not available in Corrigendum.
when ARM_Output.Right_Floor =>
Ordinary_Text (Output_Object, ")"); -- Not available in Corrigendum.
when ARM_Output.Thin_Space =>
Ordinary_Text (Output_Object, " "); -- Not available in Corrigendum.
when ARM_Output.Left_Quote =>
Buffer (Output_Object, "@lquote");
when ARM_Output.Right_Quote =>
Buffer (Output_Object, "@rquote");
when ARM_Output.Left_Double_Quote =>
Ordinary_Text (Output_Object, """"); -- Not available in Corrigendum, use double quote.
when ARM_Output.Right_Double_Quote =>
Ordinary_Text (Output_Object, """"); -- Not available in Corrigendum, use double quote.
when ARM_Output.Small_Dotless_I =>
Ordinary_Text (Output_Object, "i"); -- Not available in Corrigendum, use the nearest text.
when ARM_Output.Capital_Dotted_I =>
Ordinary_Text (Output_Object, "I"); -- Not available in Corrigendum, use the nearest text.
end case;
end Special_Character;
procedure Unicode_Character (Output_Object : in out Corr_Output_Type;
Char : in ARM_Output.Unicode_Type) is
-- Output a Unicode character, with code position Char.
Char_Code : constant String := ARM_Output.Unicode_Type'Image(Char);
begin
-- We don't check, but we assume this is not a normal character.
Buffer (Output_Object, "@unicode<" & Char_Code(2..Char_Code'Last) & ">");
end Unicode_Character;
procedure End_Hang_Item (Output_Object : in out Corr_Output_Type) is
-- Marks the end of a hanging item. Call only once per paragraph.
-- Raises Not_Valid_Error if the paragraph style is not in
-- Text_Prefixed_Style_Subtype, or if this has already been
-- called for the current paragraph, or if the paragraph was started
-- with No_Prefix = True.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
if not Output_Object.Is_Hanging then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not a hanging paragraph");
end if;
if Output_Object.Saw_Hang_End then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Already saw the end of the hanging part");
end if;
Output_Object.Saw_Hang_End := True;
Buffer (Output_Object, ">"); -- Close @Xterm<
end End_Hang_Item;
procedure Text_Format (Output_Object : in out Corr_Output_Type;
Format : in ARM_Output.Format_Type) is
-- Change the text format so that all of the properties are as specified.
-- Note: Changes to these properties ought be stack-like; that is,
-- Bold on, Italic on, Italic off, Bold off is OK; Bold on, Italic on,
-- Bold off, Italic off should be avoided (as separate commands).
use type ARM_Output.Change_Type;
use type ARM_Output.Location_Type;
use type ARM_Output.Size_Type;
-- Note: We ignore colors here, no colors in !Corrigendum markup.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
if not Format.Bold and Output_Object.Is_Bold then
Buffer (Output_Object, '>');
Output_Object.Is_Bold := False;
end if;
if not Format.Italic and Output_Object.Is_Italic then
Buffer (Output_Object, '>');
Output_Object.Is_Italic := False;
end if;
if Format.Size /= Output_Object.Size then
if Output_Object.Size /= 0 then
Buffer (Output_Object, '>');
end if;
end if;
-- if Format.Location /= Output_Object.Location then
-- if Output_Object.Location /= ARM_Output.Normal then
-- --Buffer (Output_Object, '>');
-- null; -- Corrigendum doesn't support this.
-- end if;
-- end if;
if ARM_Output."/=" (Format.Font, Output_Object.Font) then
case Output_Object.Font is
when ARM_Output.Default => null;
when ARM_Output.Fixed =>
Buffer (Output_Object, '>');
when ARM_Output.Roman =>
Buffer (Output_Object, '>');
when ARM_Output.Swiss =>
Buffer (Output_Object, '>');
end case;
end if;
-- For the intended purpose, there should be no Change commands.
if Format.Change /= Output_Object.Change then
if Format.Change = ARM_Output.Both then
-- Open only the one(s) needed:
case Output_Object.Change is
-- Note: Version is not used.
when ARM_Output.Insertion =>
-- Open the deletion:
Buffer(Output_Object, '[');
when ARM_Output.Deletion =>
-- Open the insertion:
Buffer(Output_Object, '{');
when ARM_Output.None =>
Buffer(Output_Object, '{');
Buffer(Output_Object, '[');
when ARM_Output.Both =>
null;
end case;
elsif Output_Object.Change = ARM_Output.Both then
-- Close only the one(s) needed:
case Format.Change is
-- Note: Version is not used.
when ARM_Output.Insertion =>
-- Close the deletion:
Buffer(Output_Object, ']');
when ARM_Output.Deletion =>
-- Close the insertion:
Buffer(Output_Object, '}');
when ARM_Output.None =>
Buffer(Output_Object, ']');
Buffer(Output_Object, '}');
when ARM_Output.Both =>
null;
end case;
else -- Both can't get here.
case Output_Object.Change is
when ARM_Output.Insertion =>
Buffer(Output_Object, '}');
when ARM_Output.Deletion =>
Buffer(Output_Object, ']');
when ARM_Output.None =>
null;
when ARM_Output.Both =>
Buffer(Output_Object, ']');
Buffer(Output_Object, '}');
end case;
case Format.Change is
-- Note: Version is not used.
when ARM_Output.Insertion =>
Buffer(Output_Object, '{');
when ARM_Output.Deletion =>
Buffer(Output_Object, '[');
when ARM_Output.None =>
null;
when ARM_Output.Both =>
Buffer(Output_Object, '{');
Buffer(Output_Object, '[');
end case;
end if;
Output_Object.Change := Format.Change;
end if;
if ARM_Output."/=" (Format.Font, Output_Object.Font) then
case Format.Font is
when ARM_Output.Default => null;
when ARM_Output.Fixed =>
Buffer (Output_Object, "@fc<");
when ARM_Output.Roman =>
Buffer (Output_Object, "@ft<");
when ARM_Output.Swiss =>
Buffer (Output_Object, "@fa<");
end case;
Output_Object.Font := Format.Font;
end if;
if Format.Location /= Output_Object.Location then
case Format.Location is
when ARM_Output.Superscript =>
--Buffer (Output_Object, "@+<");
null; -- Corrigendum doesn't support this.
when ARM_Output.Subscript =>
--Buffer (Output_Object, "@+<");
null; -- Corrigendum doesn't support this.
when ARM_Output.Normal =>
null;
end case;
Output_Object.Location := Format.Location;
end if;
if Format.Size /= Output_Object.Size then
if Format.Size < 0 then
Buffer (Output_Object, "@s" & Character'Val(10+Format.Size+Character'Pos('0')) & '<');
else
Buffer (Output_Object, "@s1" & Character'Val(Format.Size+Character'Pos('0')) & '<');
end if;
Output_Object.Size := Format.Size;
end if;
if Format.Italic and (not Output_Object.Is_Italic) then
Buffer (Output_Object, "@i<");
Output_Object.Is_Italic := True;
end if;
if Format.Bold and (not Output_Object.Is_Bold) then
Buffer (Output_Object, "@b<");
Output_Object.Is_Bold := True;
end if;
end Text_Format;
procedure Clause_Reference (Output_Object : in out Corr_Output_Type;
Text : in String;
Clause_Number : in String) is
-- Generate a reference to a clause in the standard. The text of
-- the reference is "Text", and the number of the clause is
-- Clause_Number. For hyperlinked formats, this should generate
-- a link; for other formats, the text alone is generated.
begin
Ordinary_Text (Output_Object, Text); -- Nothing special in this format.
end Clause_Reference;
procedure Index_Target (Output_Object : in out Corr_Output_Type;
Index_Key : in Natural) is
-- Generate a index target. This marks the location where an index
-- reference occurs. Index_Key names the index item involved.
-- For hyperlinked formats, this should generate a link target;
-- for other formats, nothing is generated.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
null; -- Nothing to do for plain text.
end Index_Target;
procedure Index_Reference (Output_Object : in out Corr_Output_Type;
Text : in String;
Index_Key : in Natural;
Clause_Number : in String) is
-- Generate a reference to an index target in the standard. The text
-- of the reference is "Text", and Index_Key and Clause_Number denotes
-- the target. For hyperlinked formats, this should generate
-- a link; for other formats, the text alone is generated.
begin
Ordinary_Text (Output_Object, Text); -- Nothing special in this format.
end Index_Reference;
procedure DR_Reference (Output_Object : in out Corr_Output_Type;
Text : in String;
DR_Number : in String) is
-- Generate a reference to an DR from the standard. The text
-- of the reference is "Text", and DR_Number denotes
-- the target. For hyperlinked formats, this should generate
-- a link; for other formats, the text alone is generated.
begin
Ordinary_Text (Output_Object, Text); -- Nothing special in this format.
end DR_Reference;
procedure AI_Reference (Output_Object : in out Corr_Output_Type;
Text : in String;
AI_Number : in String) is
-- Generate a reference to an AI from the standard. The text
-- of the reference is "Text", and AI_Number denotes
-- the target (in unfolded format). For hyperlinked formats, this
-- should generate a link; for other formats, the text alone is
-- generated.
begin
Ordinary_Text (Output_Object, Text); -- Nothing special in this format.
end AI_Reference;
procedure Local_Target (Output_Object : in out Corr_Output_Type;
Text : in String;
Target : in String) is
-- Generate a local target. This marks the potential target of local
-- links identified by "Target". Text is the text of the target.
-- For hyperlinked formats, this should generate a link target;
-- for other formats, only the text is generated.
begin
Ordinary_Text (Output_Object, Text); -- Nothing special in this format.
end Local_Target;
procedure Local_Link (Output_Object : in out Corr_Output_Type;
Text : in String;
Target : in String;
Clause_Number : in String) is
-- Generate a local link to the target and clause given.
-- Text is the text of the link.
-- For hyperlinked formats, this should generate a link;
-- for other formats, only the text is generated.
begin
Ordinary_Text (Output_Object, Text); -- Nothing special in this format.
end Local_Link;
procedure Local_Link_Start (Output_Object : in out Corr_Output_Type;
Target : in String;
Clause_Number : in String) is
-- Generate a local link to the target and clause given.
-- The link will surround text until Local_Link_End is called.
-- Local_Link_End must be called before this routine can be used again.
-- For hyperlinked formats, this should generate a link;
-- for other formats, only the text is generated.
begin
null; -- No link, nothing to do.
end Local_Link_Start;
procedure Local_Link_End (Output_Object : in out Corr_Output_Type;
Target : in String;
Clause_Number : in String) is
-- End a local link for the target and clause given.
-- This must be in the same paragraph as the Local_Link_Start.
-- For hyperlinked formats, this should generate a link;
-- for other formats, only the text is generated.
begin
null; -- No link, nothing to do.
end Local_Link_End;
procedure URL_Link (Output_Object : in out Corr_Output_Type;
Text : in String;
URL : in String) is
-- Generate a link to the URL given.
-- Text is the text of the link.
-- For hyperlinked formats, this should generate a link;
-- for other formats, only the text is generated.
begin
Ordinary_Text (Output_Object, Text); -- Nothing special in this format.
end URL_Link;
procedure Picture (Output_Object : in out Corr_Output_Type;
Name : in String;
Descr : in String;
Alignment : in ARM_Output.Picture_Alignment;
Height, Width : in Natural;
Border : in ARM_Output.Border_Kind) is
-- Generate a picture.
-- Name is the (simple) file name of the picture; Descr is a
-- descriptive name for the picture (it will appear in some web
-- browsers).
-- We assume that it is a .GIF or .JPG and that it will be present
-- in the same directory as the input files and the same directory as
-- the .HTML output files.
-- Alignment specifies the picture alignment.
-- Height and Width specify the picture size in pixels.
-- Border specifies the kind of border.
begin
Ordinary_Text (Output_Object, "[Picture: " & Name &
" - " & Descr & "]");
end Picture;
end ARM_Corr;
|
1287
|
with --ARM_Output,
--ARM_Contents,
--Ada.Text_IO,
Ada.Exceptions,
Ada.Strings.Fixed,
Ada.Strings.Maps;
package body ARM_Corr is
--
-- Ada reference manual formatter (ARM_Form).
--
-- This package defines the text output object.
-- Output objects are responsible for implementing the details of
-- a particular format.
--
-- ---------------------------------------
-- Copyright 2000, 2002, 2004, 2005, 2006, 2007, 2011, 2012
-- AXE Consultants. All rights reserved.
-- P.O. Box 1512, Madison WI 53701
-- E-Mail: <EMAIL>
--
-- ARM_Form is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License version 3
-- as published by the Free Software Foundation.
--
-- AXE CONSULTANTS MAKES THIS TOOL AND SOURCE CODE AVAILABLE ON AN "AS IS"
-- BASIS AND MAKES NO WARRANTY, EXPRESS OR IMPLIED, AS TO THE ACCURACY,
-- CAPABILITY, EFFICIENCY, MERCHANTABILITY, OR FUNCTIONING OF THIS TOOL.
-- IN NO EVENT WILL AXE CONSULTANTS BE LIABLE FOR ANY GENERAL,
-- CONSEQUENTIAL, INDIRECT, INCIDENTAL, EXEMPLARY, OR SPECIAL DAMAGES,
-- EVEN IF AXE CONSULTANTS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
-- DAMAGES.
--
-- A copy of the GNU General Public License is available in the file
-- gpl-3-0.txt in the standard distribution of the ARM_Form tool.
-- Otherwise, see <http://www.gnu.org/licenses/>.
--
-- If the GPLv3 license is not satisfactory for your needs, a commercial
-- use license is available for this tool. Contact <NAME> at AXE Consultants
-- for more information.
--
-- ---------------------------------------
--
-- Edit History:
--
-- 6/ 2/05 - RLB - Created package from text and HTML versions.
-- 1/11/06 - RLB - Eliminated dispatching Create in favor of tailored
-- versions.
-- 1/18/06 - RLB - Added additional styles.
-- 2/ 8/06 - RLB - Added additional parameters to the table command.
-- 2/10/06 - RLB - Added even more additional parameters to the
-- table command.
-- - RLB - Added picture command.
-- 9/22/06 - RLB - Added missing with.
-- 9/25/06 - RLB - Handled optional renaming of TOC.
-- - RLB - Added Last_Column_Width to Start_Table.
-- 10/13/06 - RLB - Added Local_Link_Start and Local_Link_End to allow
-- formatting in the linked text.
-- 2/ 9/07 - RLB - Changed comments on AI_Reference.
-- 2/13/07 - RLB - Revised to separate style and indent information
-- for paragraphs.
-- 12/18/07 - RLB - Added Plain_Annex.
-- 12/19/07 - RLB - Added limited colors to Text_Format.
-- 10/18/11 - RLB - Changed to GPLv3 license.
-- 10/25/11 - RLB - Added old insertion version to Revised_Clause_Header.
-- 8/31/12 - RLB - Added Output_Path.
-- 10/18/12 - RLB - Added additional hanging styles.
-- 11/26/12 - RLB - Added subdivision names to Clause_Header and
-- Revised_Clause_Header.
LINE_LENGTH : constant := 78;
-- Maximum intended line length.
Special_Set : constant Ada.Strings.Maps.Character_Set :=
Ada.Strings.Maps."or" (Ada.Strings.Maps.To_Set ('>'),
Ada.Strings.Maps.To_Set ('@'));
procedure Create (Output_Object : in out Corr_Output_Type;
File_Prefix : in String;
Output_Path : in String;
Title : in String := "") is
-- Create an Output_Object for a document.
-- The prefix of the output file names is File_Prefix - this
-- should be no more then 5 characters allowed in file names.
-- The result files will be written to Output_Path.
-- The title of the document is Title.
begin
if Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Already valid object");
end if;
Output_Object.Is_Valid := True;
Ada.Strings.Fixed.Move (Target => Output_Object.File_Prefix,
Source => File_Prefix);
Ada.Strings.Fixed.Move (Target => Output_Object.Output_Path,
Source => Output_Path);
Output_Object.Output_Path_Len := Output_Path'Length;
-- We don't use the title.
end Create;
procedure Close (Output_Object : in out Corr_Output_Type) is
-- Close an Output_Object. No further output to the object is
-- allowed after this call.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Ada.Text_IO.Is_Open (Output_Object.Output_File) then
Ada.Text_IO.Close (Output_Object.Output_File);
end if;
Output_Object.Is_Valid := False;
end Close;
procedure Section (Output_Object : in out Corr_Output_Type;
Section_Title : in String;
Section_Name : in String) is
-- Start a new section. The title is Section_Title (this is
-- intended for humans). The name is Section_Name (this is
-- intended to be suitable to be a portion of a file name).
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Section in paragraph");
end if;
if Ada.Text_IO.Is_Open (Output_Object.Output_File) then
Ada.Text_IO.Close (Output_Object.Output_File);
end if;
-- Create a new file for this section:
-- Unix directory separator for Windows and Debian
Ada.Text_IO.Create (Output_Object.Output_File, Ada.Text_IO.Out_File,
Output_Object.Output_Path(1..Output_Object.Output_Path_Len) &
Ada.Strings.Fixed.Trim (Output_Object.File_Prefix, Ada.Strings.Right) &
"-Corr-" & Section_Name & ".TXT");
Ada.Text_IO.New_Line (Output_Object.Output_File);
end Section;
procedure Set_Columns (Output_Object : in out Corr_Output_Type;
Number_of_Columns : in ARM_Output.Column_Count) is
-- Set the number of columns.
-- Raises Not_Valid_Error if in a paragraph.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"In paragraph");
end if;
-- No columns in text format.
end Set_Columns;
procedure Make_Indent (Output_Object : in out Corr_Output_Type) is
-- Internal:
-- Output the appropriate indent after a New_Line or Put_Line.
begin
--Ada.Text_IO.Put_Line("Make_Indent: Amount=" & Natural'Image(Output_Object.Indent_Amount));
for I in 1 .. Output_Object.Indent_Amount loop
Ada.Text_IO.Put (Output_Object.Output_File, ' ');
end loop;
Output_Object.Char_Count := Output_Object.Indent_Amount;
Output_Object.Out_Char_Count := Output_Object.Indent_Amount;
Output_Object.Output_Buffer_Space_Before := False;
end Make_Indent;
procedure Spill (Output_Object : in out Corr_Output_Type) is
-- Internal:
-- Empty the output buffer in preperation for a New_Line or Put_Line.
begin
if Output_Object.Output_Buffer_Space_Before then
Ada.Text_IO.Put (Output_Object.Output_File, ' ');
Output_Object.Char_Count := Output_Object.Char_Count + 1; -- Count the space.
Output_Object.Out_Char_Count := Output_Object.Out_Char_Count + 1; -- Count the space.
end if;
if Output_Object.Output_Buffer_Len /= 0 then
Ada.Text_IO.Put (Output_Object.Output_File,
Output_Object.Output_Buffer (1 .. Output_Object.Output_Buffer_Len));
--Ada.Text_IO.Put_Line("Spill: Len=" & Natural'Image(Output_Object.Output_Buffer_Len) &
-- " Space added=" & Boolean'Image(Output_Object.Output_Buffer_Space_Before) & " Text=" &
-- Output_Object.Output_Buffer (1 .. Output_Object.Output_Buffer_Len));
Output_Object.Output_Buffer_Len := 0;
Output_Object.Out_Char_Count := Output_Object.Out_Char_Count +
Output_Object.Output_Buffer_Len;
end if;
Output_Object.Output_Buffer_Space_Before := False;
end Spill;
procedure Buffer (Output_Object : in out Corr_Output_Type;
Char : in Character) is
-- Internal:
-- Add Char to the output buffer. Char will *not* be a word break
-- character.
begin
if Output_Object.Output_Buffer_Len = Output_Object.Output_Buffer'Last then
-- Oops, buffer is full. Spill it, and this character.
--Ada.Text_IO.Put_Line("** Buffer overflow!!");
Spill (Output_Object);
Ada.Text_IO.Put (Output_Object.Output_File, Char);
Output_Object.Char_Count := Output_Object.Char_Count + 1;
Output_Object.Out_Char_Count := Output_Object.Out_Char_Count + 1;
return;
end if;
Output_Object.Output_Buffer_Len := Output_Object.Output_Buffer_Len + 1;
Output_Object.Output_Buffer(Output_Object.Output_Buffer_Len) := Char;
Output_Object.Char_Count := Output_Object.Char_Count + 1;
end Buffer;
procedure Buffer (Output_Object : in out Corr_Output_Type;
Str : in String) is
-- Internal:
-- Add Char to the output buffer. String will *not* include a word
-- break character.
begin
if Output_Object.Output_Buffer_Len+Str'Length >= Output_Object.Output_Buffer'Last then
-- Oops, buffer is full. Spill it.
--Ada.Text_IO.Put_Line("** Buffer overflow!!");
Spill (Output_Object);
end if;
Output_Object.Output_Buffer(Output_Object.Output_Buffer_Len+1..Output_Object.Output_Buffer_Len+Str'Length)
:= Str;
Output_Object.Output_Buffer_Len := Output_Object.Output_Buffer_Len + Str'Length;
Output_Object.Char_Count := Output_Object.Char_Count + Str'Length;
end Buffer;
procedure Start_Paragraph (Output_Object : in out Corr_Output_Type;
Style : in ARM_Output.Paragraph_Style_Type;
Indent : in ARM_Output.Paragraph_Indent_Type;
Number : in String;
No_Prefix : in Boolean := False;
Tab_Stops : in ARM_Output.Tab_Info := ARM_Output.NO_TABS;
No_Breaks : in Boolean := False;
Keep_with_Next : in Boolean := False;
Space_After : in ARM_Output.Space_After_Type
:= ARM_Output.Normal;
Justification : in ARM_Output.Justification_Type
:= ARM_Output.Default) is
-- Start a new paragraph. The style and indent of the paragraph is as
-- specified. The (AA)RM paragraph number (which might include update
-- and version numbers as well: [12.1/1]) is Number. If the format is
-- a type with a prefix (bullets, hangining items), the prefix is
-- omitted if No_Prefix is true. Tab_Stops defines the tab stops for
-- the paragraph. If No_Breaks is True, we will try to avoid page breaks
-- in the paragraph. If Keep_with_Next is true, we will try to avoid
-- separating this paragraph and the next one. (These may have no
-- effect in formats that don't have page breaks). Space_After
-- specifies the amount of space following the paragraph. Justification
-- specifies the text justification for the paragraph. Not_Valid_Error
-- is raised if Tab_Stops /= NO_TABS for a hanging or bulleted format.
use type ARM_Output.Paragraph_Indent_Type;
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Already in paragraph");
end if;
Output_Object.Is_In_Paragraph := True;
Output_Object.Is_Hanging := False;
Output_Object.Saw_Hang_End := False;
Output_Object.Char_Count := 0;
Output_Object.Out_Char_Count := 0;
Output_Object.Output_Buffer_Space_Before := False; -- Nothing in it or on the line.
Output_Object.Output_Buffer_Len := 0;
Output_Object.Font := ARM_Output.Default;
Output_Object.Is_Bold := False;
Output_Object.Is_Italic := False;
Output_Object.Size := 0;
Output_Object.Para_Style := Style;
Output_Object.Para_Indent := Indent;
Output_Object.Is_Fixed_Format := False;
if Output_Object.Clause_Len /= 0 and then
Number /= "" then
Ada.Text_IO.New_Line (Output_Object.Output_File);
Ada.Text_IO.Put (Output_Object.Output_File, "!paragraph ");
Ada.Text_IO.Put (Output_Object.Output_File, Output_Object.Clause_Num(1..Output_Object.Clause_Len));
Ada.Text_IO.Put (Output_Object.Output_File, '(');
Ada.Text_IO.Put (Output_Object.Output_File, Number);
Ada.Text_IO.Put (Output_Object.Output_File, ") [");
Ada.Text_IO.Put (Output_Object.Output_File, ARM_Output.Paragraph_Style_Type'Image(Style) &
" :" & ARM_Output.Paragraph_Indent_Type'Image(Indent));
Ada.Text_IO.Put_Line (Output_Object.Output_File, "]");
Ada.Text_IO.New_Line (Output_Object.Output_File);
else
Ada.Text_IO.New_Line (Output_Object.Output_File);
end if;
Output_Object.Indent_Amount := Integer(Indent)*4 + 2;
case Style is
when ARM_Output.Normal =>
if Indent = 0 then
null; -- %% Temp.
Output_Object.Indent_Amount := 0; -- %% Temp.
elsif Indent = 3 then
Ada.Text_IO.Put (Output_Object.Output_File, "@xindent<");
Output_Object.Char_Count := 9;
Output_Object.Indent_Amount := 0; -- %% Temp.
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Wide_Above => null;
if Indent = 0 then
null; -- %% Temp.
Output_Object.Indent_Amount := 0; -- %% Temp.
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Small =>
if Indent = 1 then -- Notes.
Ada.Text_IO.Put (Output_Object.Output_File, "@xindent<@s9<");
Output_Object.Char_Count := 13;
Output_Object.Indent_Amount := 0; -- %% Temp.
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Small_Wide_Above =>
null; -- ** TBD (Unknown cases).
when ARM_Output.Header =>
null; -- ** TBD (Unknown cases).
when ARM_Output.Small_Header =>
if Indent = 1 then -- Notes Header.
null;
--Output_Object.Indent_Amount := 6; --** TBD.
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Index => null; --** TBD.
when ARM_Output.Syntax_Summary => null; --** TBD.
when ARM_Output.Title =>
null; -- ** TBD (Unknown cases).
when ARM_Output.Examples =>
if Indent = 1 then
Ada.Text_IO.Put (Output_Object.Output_File, "@xcode<");
Output_Object.Char_Count := 7;
Output_Object.Is_Fixed_Format := True;
Output_Object.Indent_Amount := 0; -- %% Temp.
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Small_Examples => null; --** TBD.
when ARM_Output.Swiss_Examples =>
if Indent = 1 then
Ada.Text_IO.Put (Output_Object.Output_File, "@xcode<");
Output_Object.Char_Count := 7;
Output_Object.Is_Fixed_Format := True;
Output_Object.Indent_Amount := 0; -- %% Temp.
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Small_Swiss_Examples => null; --** TBD.
when ARM_Output.Bulleted =>
if Indent = 1 then
Output_Object.Indent_Amount := 0; -- %% Temp.
if No_Prefix then
Ada.Text_IO.Put (Output_Object.Output_File, "@xindent<");
Output_Object.Char_Count := 9;
else
Ada.Text_IO.Put (Output_Object.Output_File, "@xbullet<");
Output_Object.Char_Count := 9;
end if;
else -- Unknown/unimplemented case.
null; -- ** Tbd.
end if;
when ARM_Output.Nested_Bulleted => null; --** TBD.
when ARM_Output.Small_Bulleted => null; --** TBD.
when ARM_Output.Small_Nested_Bulleted => null; --** TBD.
when ARM_Output.Giant_Hanging => null; --** TBD.
when ARM_Output.Wide_Hanging =>
if Indent = 3 then
Output_Object.Indent_Amount := 0; -- %% Temp.
Output_Object.Is_Hanging := True;
if No_Prefix then
Output_Object.Saw_Hang_End := True;
Output_Object.Char_Count := 0;
else -- Has prefix
-- No units on first line.
Output_Object.Saw_Hang_End := False;
Ada.Text_IO.Put (Output_Object.Output_File, "@xhang<@xterm<");
Output_Object.Char_Count := 14;
end if;
else -- Unknown/unimplemented case.
null; -- ** Tbd.
end if;
when ARM_Output.Medium_Hanging => null; --** TBD.
when ARM_Output.Narrow_Hanging => null; --** TBD.
when ARM_Output.Hanging_in_Bulleted => null; --** TBD.
when ARM_Output.Small_Giant_Hanging => null; --** TBD.
when ARM_Output.Small_Wide_Hanging => null; --** TBD.
when ARM_Output.Small_Medium_Hanging => null; --** TBD.
when ARM_Output.Small_Narrow_Hanging => null; --** TBD.
when ARM_Output.Small_Hanging_in_Bulleted => null; --** TBD.
when ARM_Output.Enumerated => null; --** TBD.
when ARM_Output.Small_Enumerated => null; --** TBD.
end case;
if Output_Object.Indent_Amount > 6 then
for I in 1 .. (Output_Object.Indent_Amount-6)/4 loop
Ada.Text_IO.Put (Output_Object.Output_File, " ");
Output_Object.Char_Count := Output_Object.Char_Count + 4;
end loop;
end if;
case Style is
when ARM_Output.Normal | ARM_Output.Wide_Above |
ARM_Output.Small | ARM_Output.Small_Wide_Above |
ARM_Output.Header | ARM_Output.Small_Header |
ARM_Output.Index | ARM_Output.Syntax_Summary |
ARM_Output.Title |
ARM_Output.Examples | ARM_Output.Small_Examples |
ARM_Output.Swiss_Examples | ARM_Output.Small_Swiss_Examples =>
Output_Object.Tab_Stops := Tab_Stops;
-- We'll expand proportional stops here (text characters
-- are larger than the variable ones these are set up for).
for I in 1 .. Tab_Stops.Number loop
if ARM_Output."=" (Tab_Stops.Stops(I).Kind,
ARM_Output.Left_Proportional) then
Output_Object.Tab_Stops.Stops(I).Stop :=
(Tab_Stops.Stops(I).Stop * 5 / 4) + Output_Object.Indent_Amount;
else
Output_Object.Tab_Stops.Stops(I).Stop :=
Tab_Stops.Stops(I).Stop + Output_Object.Indent_Amount;
end if;
end loop;
when ARM_Output.Bulleted | ARM_Output.Nested_Bulleted |
ARM_Output.Small_Bulleted | ARM_Output.Small_Nested_Bulleted |
ARM_Output.Giant_Hanging | ARM_Output.Wide_Hanging |
ARM_Output.Medium_Hanging | ARM_Output.Narrow_Hanging |
ARM_Output.Hanging_in_Bulleted |
ARM_Output.Small_Giant_Hanging | ARM_Output.Small_Wide_Hanging |
ARM_Output.Small_Medium_Hanging | ARM_Output.Small_Narrow_Hanging |
ARM_Output.Small_Hanging_in_Bulleted |
ARM_Output.Enumerated | ARM_Output.Small_Enumerated =>
if Tab_Stops.Number /= 0 then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Tabs in hanging/bulleted paragraph");
end if;
end case;
Output_Object.Out_Char_Count := Output_Object.Char_Count;
-- Note: No_Breaks, Keep_with_Next, and Justification have no effect
-- here.
--Ada.Text_IO.Put_Line ("Start_Paragraph - Indent=" & Natural'Image(Output_Object.Indent_Amount) & " Cnt=" &
-- Natural'Image(Output_Object.Char_Count));
end Start_Paragraph;
procedure End_Paragraph (Output_Object : in out Corr_Output_Type) is
-- End a paragraph.
use type ARM_Output.Paragraph_Indent_Type;
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
case Output_Object.Para_Style is
when ARM_Output.Normal =>
if Output_Object.Para_Indent = 0 then
null;
elsif Output_Object.Para_Indent = 3 then
Buffer (Output_Object, '>');
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Wide_Above => null;
if Output_Object.Para_Indent = 0 then
null; -- %% Temp.
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Small =>
if Output_Object.Para_Indent = 1 then -- Notes.
Buffer (Output_Object, ">>");
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Small_Wide_Above =>
null; -- ** TBD (Unknown cases).
when ARM_Output.Header =>
null; -- ** TBD (Unknown cases).
when ARM_Output.Small_Header =>
if Output_Object.Para_Indent = 1 then -- Notes Header.
null;
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Index => null; --** TBD.
when ARM_Output.Syntax_Summary => null; --** TBD.
when ARM_Output.Title => null; --** TBD.
when ARM_Output.Examples =>
if Output_Object.Para_Indent = 1 then
Buffer (Output_Object, '>');
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Small_Examples => null; --** TBD.
when ARM_Output.Swiss_Examples =>
if Output_Object.Para_Indent = 1 then
Buffer (Output_Object, '>');
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Small_Swiss_Examples => null; --** TBD.
when ARM_Output.Bulleted =>
if Output_Object.Para_Indent = 1 then
Buffer (Output_Object, '>');
else -- Unknown/unimplemented case.
null; -- ** Tbd.
end if;
when ARM_Output.Nested_Bulleted => null; --** TBD.
when ARM_Output.Small_Bulleted => null; --** TBD.
when ARM_Output.Small_Nested_Bulleted => null; --** TBD.
when ARM_Output.Giant_Hanging => null; --** TBD.
when ARM_Output.Wide_Hanging =>
if Output_Object.Para_Indent = 3 then
Buffer (Output_Object, '>');
else -- Unknown/unimplemented case.
null; -- ** Tbd.
end if;
when ARM_Output.Medium_Hanging => null; --** TBD.
when ARM_Output.Narrow_Hanging => null; --** TBD.
when ARM_Output.Hanging_in_Bulleted => null; --** TBD.
when ARM_Output.Small_Giant_Hanging => null; --** TBD.
when ARM_Output.Small_Wide_Hanging => null; --** TBD.
when ARM_Output.Small_Medium_Hanging => null; --** TBD.
when ARM_Output.Small_Narrow_Hanging => null; --** TBD.
when ARM_Output.Small_Hanging_in_Bulleted => null; --** TBD.
when ARM_Output.Enumerated => null; --** TBD.
when ARM_Output.Small_Enumerated => null; --** TBD.
end case;
if Output_Object.Output_Buffer_Len /= 0 then
Spill (Output_Object);
end if;
Output_Object.Is_In_Paragraph := False;
Ada.Text_IO.New_Line (Output_Object.Output_File, 2); -- Double space paragraphs.
end End_Paragraph;
procedure Category_Header (Output_Object : in out Corr_Output_Type;
Header_Text : String) is
-- Output a Category header (that is, "Legality Rules",
-- "Dynamic Semantics", etc.)
-- (Note: We did not use a enumeration here to insure that these
-- headers are spelled the same in all output versions).
-- Raises Not_Valid_Error if in a paragraph.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Header in paragraph");
end if;
Ada.Text_IO.New_Line (Output_Object.Output_File);
Ada.Text_IO.Put_Line (Output_Object.Output_File, "!subheader");
Ada.Text_IO.Put (Output_Object.Output_File, "@i<@s8<");
if Ada.Strings.Fixed.Count (Header_Text, Special_Set) = 0 then
Ada.Text_IO.Put (Output_Object.Output_File, Header_Text);
else
for I in Header_Text'Range loop
if Header_Text(I) = '>' then
Ada.Text_IO.Put (Output_Object.Output_File, "@>");
elsif Header_Text(I) = '@' then
Ada.Text_IO.Put (Output_Object.Output_File, "@@");
else
Ada.Text_IO.Put (Output_Object.Output_File, Header_Text(I));
end if;
end loop;
end if;
Ada.Text_IO.Put (Output_Object.Output_File, ">>");
Ada.Text_IO.New_Line (Output_Object.Output_File);
Output_Object.Char_Count := 0;
Output_Object.Out_Char_Count := 0;
end Category_Header;
procedure Clause_Header (Output_Object : in out Corr_Output_Type;
Header_Text : in String;
Level : in ARM_Contents.Level_Type;
Clause_Number : in String;
Top_Level_Subdivision_Name : in ARM_Output.Top_Level_Subdivision_Name_Kind;
No_Page_Break : in Boolean := False) is
-- Output a Clause header. The level of the header is specified
-- in Level. The Clause Number is as specified; the top-level (and
-- other) subdivision names are as specified. These should appear in
-- the table of contents.
-- For hyperlinked formats, this should generate a link target.
-- If No_Page_Break is True, suppress any page breaks.
-- Raises Not_Valid_Error if in a paragraph.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Header in paragraph");
end if;
Ada.Text_IO.New_Line (Output_Object.Output_File);
Output_Object.Clause_Len := Clause_Number'Length;
Output_Object.Clause_Num(1..Output_Object.Clause_Len) :=
Clause_Number;
-- Special for table of contents:
if Clause_Number = "" and then
(Header_Text = "Table of Contents" or else
Header_Text = "Contents") then
Ada.Text_IO.Put (Output_Object.Output_File,
"!clause ");
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
Ada.Text_IO.New_Line (Output_Object.Output_File, 2);
Output_Object.Char_Count := 0;
Output_Object.Out_Char_Count := 0;
return;
end if;
Ada.Text_IO.Put (Output_Object.Output_File,
"!clause ");
case Level is
when ARM_Contents.Plain_Annex =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number); -- Note: Clause_Number includes "Annex"
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
when ARM_Contents.Normative_Annex =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number); -- Note: Clause_Number includes "Annex"
Ada.Text_IO.Put_Line (Output_Object.Output_File,
"(normative)");
Ada.Text_IO.New_Line (Output_Object.Output_File);
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
when ARM_Contents.Informative_Annex =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number); -- Note: Clause_Number includes "Annex"
Ada.Text_IO.Put_Line (Output_Object.Output_File,
"(informative)");
Ada.Text_IO.New_Line (Output_Object.Output_File);
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
when ARM_Contents.Section =>
case Top_Level_Subdivision_Name is
when ARM_Output.Chapter =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
"Chapter " & Clause_Number & ": " & Header_Text);
when ARM_Output.Section =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
"Section " & Clause_Number & ": " & Header_Text);
when ARM_Output.Clause =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number & " " & Header_Text);
end case;
when ARM_Contents.Unnumbered_Section =>
if Header_Text /= "" then
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
end if;
when ARM_Contents.Clause | ARM_Contents.Subclause |
ARM_Contents.Subsubclause =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number & ' ' & Header_Text);
when ARM_Contents.Dead_Clause =>
raise Program_Error; -- No headers for dead clauses.
end case;
Ada.Text_IO.New_Line (Output_Object.Output_File, 2);
Output_Object.Char_Count := 0;
Output_Object.Out_Char_Count := 0;
-- We don't have any page breaks here to suppress.
end Clause_Header;
procedure Revised_Clause_Header
(Output_Object : in out Corr_Output_Type;
New_Header_Text : in String;
Old_Header_Text : in String;
Level : in ARM_Contents.Level_Type;
Clause_Number : in String;
Version : in ARM_Contents.Change_Version_Type;
Old_Version : in ARM_Contents.Change_Version_Type;
Top_Level_Subdivision_Name : in ARM_Output.Top_Level_Subdivision_Name_Kind;
No_Page_Break : in Boolean := False) is
-- Output a revised clause header. Both the original and new text will
-- be output. The level of the header is specified in Level. The Clause
-- Number is as specified; the top-level (and other) subdivision names
-- are as specified. These should appear in the table of contents.
-- For hyperlinked formats, this should generate a link target.
-- Version is the insertion version of the new text; Old_Version is
-- the insertion version of the old text.
-- If No_Page_Break is True, suppress any page breaks.
-- Raises Not_Valid_Error if in a paragraph.
function Header_Text return String is
-- Note: Version and Old_Version are not used.
begin
return '{' & New_Header_Text & "} [" & Old_Header_Text & ']';
end Header_Text;
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Header in paragraph");
end if;
Ada.Text_IO.New_Line (Output_Object.Output_File);
Output_Object.Clause_Len := Clause_Number'Length;
Output_Object.Clause_Num(1..Output_Object.Clause_Len) :=
Clause_Number;
-- Special for table of contents:
if Clause_Number = "" and then
(Header_Text = "Table of Contents" or else -- Ada 95 format
Header_Text = "Contents") then -- ISO 2004 format.
Ada.Text_IO.Put (Output_Object.Output_File,
"!clause ");
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
Ada.Text_IO.New_Line (Output_Object.Output_File, 2);
Output_Object.Char_Count := 0;
Output_Object.Out_Char_Count := 0;
return;
end if;
Ada.Text_IO.Put (Output_Object.Output_File,
"!clause ");
case Level is
when ARM_Contents.Plain_Annex =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number); -- Note: Clause_Number includes "Annex"
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
when ARM_Contents.Normative_Annex =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number); -- Note: Clause_Number includes "Annex"
Ada.Text_IO.Put_Line (Output_Object.Output_File,
"(normative)");
Ada.Text_IO.New_Line (Output_Object.Output_File);
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
when ARM_Contents.Informative_Annex =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number); -- Note: Clause_Number includes "Annex"
Ada.Text_IO.Put_Line (Output_Object.Output_File,
"(informative)");
Ada.Text_IO.New_Line (Output_Object.Output_File);
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
when ARM_Contents.Section =>
case Top_Level_Subdivision_Name is
when ARM_Output.Chapter =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
"Chapter " & Clause_Number & ": " & Header_Text);
when ARM_Output.Section =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
"Section " & Clause_Number & ": " & Header_Text);
when ARM_Output.Clause =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number & " " & Header_Text);
end case;
when ARM_Contents.Unnumbered_Section =>
if Header_Text /= "" then
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
end if;
when ARM_Contents.Clause | ARM_Contents.Subclause |
ARM_Contents.Subsubclause =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number & ' ' & Header_Text);
when ARM_Contents.Dead_Clause =>
raise Program_Error; -- No headers for dead clauses.
end case;
Ada.Text_IO.New_Line (Output_Object.Output_File, 2);
Output_Object.Char_Count := 0;
Output_Object.Out_Char_Count := 0;
-- We don't have any page breaks here to suppress.
end Revised_Clause_Header;
procedure TOC_Marker (Output_Object : in out Corr_Output_Type;
For_Start : in Boolean) is
-- Mark the start (if For_Start is True) or end (if For_Start is
-- False) of the table of contents data. Output objects that
-- auto-generate the table of contents can use this to do needed
-- actions.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
null; -- We don't care about this.
end TOC_Marker;
procedure New_Page (Output_Object : in out Corr_Output_Type;
Kind : ARM_Output.Page_Kind_Type := ARM_Output.Any_Page) is
-- Output a page break.
-- Note that this has no effect on non-printing formats.
-- Any_Page breaks to the top of the next page (whatever it is);
-- Odd_Page_Only breaks to the top of the odd-numbered page;
-- Soft_Page allows a page break but does not force one (use in
-- "No_Breaks" paragraphs.)
-- Raises Not_Valid_Error if in a paragraph if Kind = Any_Page or
-- Odd_Page, and if not in a paragraph if Kind = Soft_Page.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
case Kind is
when ARM_Output.Any_Page | ARM_Output.Odd_Page_Only =>
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Page in paragraph");
end if;
Ada.Text_IO.New_Line (Output_Object.Output_File, 2);
when ARM_Output.Soft_Page =>
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Soft page not in paragraph");
end if;
null; -- No page breaks.
Spill (Output_Object);
end case;
end New_Page;
procedure New_Column (Output_Object : in out Corr_Output_Type) is
-- Output a column break.
-- Raises Not_Valid_Error if in a paragraph, or if the number of
-- columns is 1.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"New column in paragraph");
end if;
-- No columns in text format.
Ada.Text_IO.New_Line (Output_Object.Output_File);
end New_Column;
procedure Start_Table (Output_Object : in out Corr_Output_Type;
Columns : in ARM_Output.Column_Count;
First_Column_Width : in ARM_Output.Column_Count;
Last_Column_Width : in ARM_Output.Column_Count;
Alignment : in ARM_Output.Column_Text_Alignment;
No_Page_Break : in Boolean;
Has_Border : in Boolean;
Small_Text_Size : in Boolean;
Header_Kind : in ARM_Output.Header_Kind_Type) is
-- Starts a table. The number of columns is Columns; the first
-- column has First_Column_Width times the normal column width, and
-- the last column has Last_Column_Width times the normal column width.
-- Alignment is the horizontal text alignment within the columns.
-- No_Page_Break should be True to keep the table intact on a single
-- page; False to allow it to be split across pages.
-- Has_Border should be true if a border is desired, false otherwise.
-- Small_Text_Size means that the contents will have the AARM size;
-- otherwise it will have the normal size.
-- Header_Kind determines whether the table has headers.
-- This command starts a paragraph; the entire table is a single
-- paragraph. Text will be considered part of the caption until the
-- next table marker call.
-- Raises Not_Valid_Error if in a paragraph.
begin
-- Alignment, No_Page_Break, Border, Small_Text_Size, and Header_Kind
-- not used here.
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Table in paragraph");
end if;
Output_Object.Tab_Stops.Number := Columns;
declare
Column_Units : constant ARM_Output.Column_Count :=
Columns+First_Column_Width+Last_Column_Width-2;
Width : Natural :=
(72/(Column_Units));
begin
if Column_Units <= 3 then -- Keep it from getting too wide.
Width := 22;
end if;
for I in 1 .. Columns loop
Output_Object.Tab_Stops.Stops(I) := (Kind => ARM_Output.Left_Fixed,
Stop => Width*(I+First_Column_Width-1)+10);
end loop;
end;
Output_Object.Indent_Amount := 10;
Ada.Text_IO.Put (Output_Object.Output_File, " ");
Output_Object.Char_Count := 10;
Output_Object.Out_Char_Count := 10;
Output_Object.Is_In_Paragraph := True;
Output_Object.Is_In_Table := True;
end Start_Table;
procedure Table_Marker (Output_Object : in out Corr_Output_Type;
Marker : in ARM_Output.Table_Marker_Type) is
-- Marks the end of an entity in a table.
-- If Marker is End_Caption, the table caption ends and the
-- future text is part of the table header.
-- If Marker is End_Header, the table header ends and the
-- future text is part of the table body.
-- If Marker is End_Row, a row in the table is completed, and another
-- row started.
-- If Marker is End_Row_Next_Is_Last, a row in the table is completed,
-- and another row started. That row is the last row in the table.
-- If Marker is End_Item, an item in the table header or body is ended,
-- and another started.
-- If Marker is End_Table, the entire table is finished.
-- Raises Not_Valid_Error if not in a table.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if (not Output_Object.Is_In_Paragraph) or (not Output_Object.Is_In_Table) then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Table marker not in table");
end if;
case Marker is
when ARM_Output.End_Item =>
-- Just tab over one row:
Spill (Output_Object);
Ada.Text_IO.Put_Line (Output_Object.Output_File, " ");
Output_Object.Char_Count := Output_Object.Char_Count + 1;
Output_Object.Out_Char_Count := Output_Object.Out_Char_Count + 1;
for I in 1 .. Output_Object.Tab_Stops.Number loop
if Output_Object.Tab_Stops.Stops(I).Stop > Output_Object.Char_Count then
for J in Output_Object.Char_Count+1 .. Output_Object.Tab_Stops.Stops(I).Stop-1 loop
Ada.Text_IO.Put_Line (Output_Object.Output_File, " ");
Output_Object.Char_Count := Output_Object.Char_Count + 1;
Output_Object.Out_Char_Count := Output_Object.Out_Char_Count + 1;
end loop;
end if;
end loop;
when ARM_Output.End_Caption =>
Spill (Output_Object);
Ada.Text_IO.New_Line (Output_Object.Output_File, 2);
Ada.Text_IO.Put (Output_Object.Output_File, " ");
Output_Object.Char_Count := 10;
Output_Object.Out_Char_Count := 10;
when ARM_Output.End_Header =>
Spill (Output_Object);
Ada.Text_IO.New_Line (Output_Object.Output_File, 2);
Ada.Text_IO.Put (Output_Object.Output_File, " ");
Output_Object.Char_Count := 10;
Output_Object.Out_Char_Count := 10;
when ARM_Output.End_Row | ARM_Output.End_Row_Next_Is_Last =>
Spill (Output_Object);
Ada.Text_IO.New_Line (Output_Object.Output_File, 1);
Ada.Text_IO.Put (Output_Object.Output_File, " ");
Output_Object.Char_Count := 10;
Output_Object.Out_Char_Count := 10;
when ARM_Output.End_Table =>
Spill (Output_Object);
Output_Object.Is_In_Paragraph := False;
Output_Object.Is_In_Table := False;
Ada.Text_IO.New_Line (Output_Object.Output_File);
Output_Object.Tab_Stops := ARM_Output.NO_TABS;
end case;
end Table_Marker;
procedure Separator_Line (Output_Object : in out Corr_Output_Type;
Is_Thin : Boolean := True) is
-- Output a separator line. It is thin if "Is_Thin" is true.
-- Raises Not_Valid_Error if in a paragraph.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Separator in paragraph");
end if;
Ada.Text_IO.New_Line (Output_Object.Output_File);
if Is_Thin then
Ada.Text_IO.Put_Line (Output_Object.Output_File, "---------------------------------------------------------------------");
else
Ada.Text_IO.Put_Line (Output_Object.Output_File, "=====================================================================");
end if;
Ada.Text_IO.New_Line (Output_Object.Output_File);
end Separator_Line;
-- Text output: These are only allowed after a Start_Paragraph and
-- before any End_Paragraph. Raises Not_Valid_Error if not allowed.
procedure Ordinary_Text (Output_Object : in out Corr_Output_Type;
Text : in String) is
-- Output ordinary text.
-- The text must end at a word break, never in the middle of a word.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
--Ada.Text_IO.Put_Line ("Ordinary_Text: Cnt=" & Natural'Image(Output_Object.Char_Count) &
--" Buffer=" & Natural'Image(Output_Object.Output_Buffer_Len));
if Output_Object.Char_Count + Text'Length >= LINE_LENGTH - 2 and then
Output_Object.Out_Char_Count > Output_Object.Indent_Amount then
-- We want a line break here if the line is too long and something was output:
Ada.Text_IO.New_Line (Output_Object.Output_File);
Make_Indent (Output_Object);
--Output_Object.Output_Buffer_Space_Before := False;
-- Start of line, this is done by Make_Indent.
Spill (Output_Object);
else
Spill (Output_Object);
end if;
if Ada.Strings.Fixed.Count (Text, Special_Set) = 0 then
Ada.Text_IO.Put (Output_Object.Output_File, Text);
Output_Object.Char_Count := Output_Object.Char_Count + Text'Length;
Output_Object.Out_Char_Count := Output_Object.Out_Char_Count + Text'Length;
else
for I in Text'Range loop
if Text(I) = '>' then
Ada.Text_IO.Put (Output_Object.Output_File, "@>");
Output_Object.Char_Count := Output_Object.Char_Count + 2;
Output_Object.Out_Char_Count := Output_Object.Out_Char_Count + 2;
elsif Text(I) = '@' then
Ada.Text_IO.Put (Output_Object.Output_File, "@@");
Output_Object.Char_Count := Output_Object.Char_Count + 2;
Output_Object.Out_Char_Count := Output_Object.Out_Char_Count + 2;
else
Ada.Text_IO.Put (Output_Object.Output_File, Text(I));
Output_Object.Char_Count := Output_Object.Char_Count + 1;
Output_Object.Out_Char_Count := Output_Object.Out_Char_Count + 1;
end if;
end loop;
end if;
Output_Object.Output_Buffer_Space_Before := False; -- No space between
-- this and any following text.
end Ordinary_Text;
procedure Ordinary_Character (Output_Object : in out Corr_Output_Type;
Char : in Character) is
-- Output an ordinary character.
-- Spaces will be used to break lines as needed.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
if Output_Object.Char_Count >= LINE_LENGTH and then
Output_Object.Out_Char_Count > Output_Object.Indent_Amount then
-- Insert a break here if anything has been output (but don't
-- Spill the buffer):
--Ada.Text_IO.Put_Line ("Ordinary_Char [Break, no spill]: Cnt=" & Natural'Image(Output_Object.Char_Count));
Ada.Text_IO.New_Line (Output_Object.Output_File);
Make_Indent (Output_Object);
--Output_Object.Output_Buffer_Space_Before := False;
-- Start of line, this is done by Make_Indent.
-- Note that this may make the space disappear.
-- Add the contents of the buffer to the character count for this line:
Output_Object.Char_Count := Output_Object.Char_Count +
Output_Object.Output_Buffer_Len;
if Char = '>' then
Buffer (Output_Object, "@>");
elsif Char = '@' then
Buffer (Output_Object, "@@");
elsif Char /= ' ' then
Buffer (Output_Object, Char);
else -- Break character, spill on the new line:
if Output_Object.Output_Buffer_Len /= 0 then
Spill (Output_Object); -- Output the buffer up to the space.
Output_Object.Output_Buffer_Space_Before := True; -- Mid-line now.
-- else nothing in buffer, so nothing to output; just skip it.
end if;
end if;
elsif Char = ' ' then
-- Break character, and it fits on this line:
if Output_Object.Output_Buffer_Len /= 0 then
--Ada.Text_IO.Put_Line ("Ordinary_Char [Space spill]: Cnt=" & Natural'Image(Output_Object.Char_Count));
Spill (Output_Object); -- Output the buffer up to the space.
Output_Object.Output_Buffer_Space_Before := True; -- Mid-line now.
else -- nothing in buffer.
-- nothing to output. But make sure we display a space before
-- the next item.
Output_Object.Output_Buffer_Space_Before := True; -- Mid-line now.
end if;
elsif Char = '>' then
Buffer (Output_Object, "@>");
elsif Char = '@' then
Buffer (Output_Object, "@@");
else
Buffer (Output_Object, Char);
end if;
end Ordinary_Character;
procedure Hard_Space (Output_Object : in out Corr_Output_Type) is
-- Output a hard space. No line break should happen at a hard space.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
if Output_Object.Is_Fixed_Format then
-- In this format, all spaces are hard spaces.
Buffer (Output_Object, ' ');
else -- A hard space command.
Buffer (Output_Object, "@ ");
end if;
end Hard_Space;
procedure Line_Break (Output_Object : in out Corr_Output_Type) is
-- Output a line break. This does not start a new paragraph.
-- This corresponds to a "<BR>" in HTML.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
--Ada.Text_Io.Put_Line ("Line_Break");
if Output_Object.Is_Fixed_Format then
-- In this format, all line breaks are significant.
null;
else -- A hard space command.
Buffer (Output_Object, "@hr");
end if;
if Output_Object.Output_Buffer_Len /= 0 then
Spill (Output_Object);
end if;
Ada.Text_IO.New_Line (Output_Object.Output_File);
Make_Indent (Output_Object);
end Line_Break;
procedure Index_Line_Break (Output_Object : in out Corr_Output_Type;
Clear_Keep_with_Next : in Boolean) is
-- Output a line break for the index. This does not start a new
-- paragraph in terms of spacing. This corresponds to a "<BR>"
-- in HTML. If Clear_Keep_with_Next is true, insure that the next
-- line does not require the following line to stay with it.
-- Raises Not_Valid_Error if the paragraph is not in the index format.
begin
Line_Break (Output_Object);
end Index_Line_Break;
procedure Soft_Line_Break (Output_Object : in out Corr_Output_Type) is
-- Output a soft line break. This is a place (in the middle of a
-- "word") that we allow a line break. It is usually used after
-- underscores in long non-terminals.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
-- if Output_Object.Char_Count >= LINE_LENGTH - 10 then
-- if Output_Object.Output_Buffer_Len /= 0 then
-- Spill (Output_Object);
-- end if;
-- Ada.Text_IO.New_Line (Output_Object.Output_File);
-- Make_Indent (Output_Object);
-- -- else we don't need a line break.
-- end if;
null; -- Ignore this, there is no counterpart in Corrigendum formatting.
end Soft_Line_Break;
procedure Soft_Hyphen_Break (Output_Object : in out Corr_Output_Type) is
-- Output a soft line break, with a hyphen. This is a place (in the middle of
-- a "word") that we allow a line break. If the line break is used,
-- a hyphen will be added to the text.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
-- if Output_Object.Char_Count >= LINE_LENGTH - 8 then
-- Spill (Output_Object);
-- Ada.Text_IO.Put_Line (Output_Object.Output_File, "-"); -- Add the hyphen and break.
-- Make_Indent (Output_Object);
-- -- else we don't need a line break.
-- end if;
null; -- Ignore this, there is no counterpart in Corrigendum formatting.
end Soft_Hyphen_Break;
procedure Tab (Output_Object : in out Corr_Output_Type) is
-- Output a tab, inserting space up to the next tab stop.
-- Raises Not_Valid_Error if the paragraph was created with
-- Tab_Stops = ARM_Output.NO_TABS.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
if ARM_Output."="(Output_Object.Tab_Stops, ARM_Output.NO_TABS) then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Tab, but none set");
end if;
-- We use the tab stops as characters here, and fixed and proportional
-- stops are treated identically.
-- Find the first stop greater than the current character count. (After
-- writing a space).
--Ada.Text_IO.Put_Line ("Tab");
Buffer (Output_Object, "@tab");
Output_Object.Output_Buffer_Space_Before := False; -- Spaces needed were output.
end Tab;
procedure Special_Character (Output_Object : in out Corr_Output_Type;
Char : in ARM_Output.Special_Character_Type) is
-- Output an special character.
begin
--** Could use Latin1 and Unicode equivalents for most of these.
case Char is
when ARM_Output.EM_Dash =>
Buffer (Output_Object, "@emdash");
when ARM_Output.EN_Dash =>
Buffer (Output_Object, "@endash");
when ARM_Output.GEQ =>
Ordinary_Text (Output_Object, ">="); -- Not available in Corrigendum, use the Ada one.
when ARM_Output.LEQ =>
Ordinary_Text (Output_Object, "<="); -- Not available in Corrigendum, use the Ada one.
when ARM_Output.NEQ =>
Ordinary_Text (Output_Object, "/="); -- Not available in Corrigendum, use the Ada one.
when ARM_Output.PI =>
Buffer (Output_Object, "@pi");
when ARM_Output.Left_Ceiling =>
Ordinary_Text (Output_Object, "Ceiling("); -- Not available in Corrigendum.
when ARM_Output.Right_Ceiling =>
Ordinary_Text (Output_Object, ")"); -- Not available in Corrigendum.
when ARM_Output.Left_Floor =>
Ordinary_Text (Output_Object, "Floor("); -- Not available in Corrigendum.
when ARM_Output.Right_Floor =>
Ordinary_Text (Output_Object, ")"); -- Not available in Corrigendum.
when ARM_Output.Thin_Space =>
Ordinary_Text (Output_Object, " "); -- Not available in Corrigendum.
when ARM_Output.Left_Quote =>
Buffer (Output_Object, "@lquote");
when ARM_Output.Right_Quote =>
Buffer (Output_Object, "@rquote");
when ARM_Output.Left_Double_Quote =>
Ordinary_Text (Output_Object, """"); -- Not available in Corrigendum, use double quote.
when ARM_Output.Right_Double_Quote =>
Ordinary_Text (Output_Object, """"); -- Not available in Corrigendum, use double quote.
when ARM_Output.Small_Dotless_I =>
Ordinary_Text (Output_Object, "i"); -- Not available in Corrigendum, use the nearest text.
when ARM_Output.Capital_Dotted_I =>
Ordinary_Text (Output_Object, "I"); -- Not available in Corrigendum, use the nearest text.
end case;
end Special_Character;
procedure Unicode_Character (Output_Object : in out Corr_Output_Type;
Char : in ARM_Output.Unicode_Type) is
-- Output a Unicode character, with code position Char.
Char_Code : constant String := ARM_Output.Unicode_Type'Image(Char);
begin
-- We don't check, but we assume this is not a normal character.
Buffer (Output_Object, "@unicode<" & Char_Code(2..Char_Code'Last) & ">");
end Unicode_Character;
procedure End_Hang_Item (Output_Object : in out Corr_Output_Type) is
-- Marks the end of a hanging item. Call only once per paragraph.
-- Raises Not_Valid_Error if the paragraph style is not in
-- Text_Prefixed_Style_Subtype, or if this has already been
-- called for the current paragraph, or if the paragraph was started
-- with No_Prefix = True.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
if not Output_Object.Is_Hanging then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not a hanging paragraph");
end if;
if Output_Object.Saw_Hang_End then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Already saw the end of the hanging part");
end if;
Output_Object.Saw_Hang_End := True;
Buffer (Output_Object, ">"); -- Close @Xterm<
end End_Hang_Item;
procedure Text_Format (Output_Object : in out Corr_Output_Type;
Format : in ARM_Output.Format_Type) is
-- Change the text format so that all of the properties are as specified.
-- Note: Changes to these properties ought be stack-like; that is,
-- Bold on, Italic on, Italic off, Bold off is OK; Bold on, Italic on,
-- Bold off, Italic off should be avoided (as separate commands).
use type ARM_Output.Change_Type;
use type ARM_Output.Location_Type;
use type ARM_Output.Size_Type;
-- Note: We ignore colors here, no colors in !Corrigendum markup.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
if not Format.Bold and Output_Object.Is_Bold then
Buffer (Output_Object, '>');
Output_Object.Is_Bold := False;
end if;
if not Format.Italic and Output_Object.Is_Italic then
Buffer (Output_Object, '>');
Output_Object.Is_Italic := False;
end if;
if Format.Size /= Output_Object.Size then
if Output_Object.Size /= 0 then
Buffer (Output_Object, '>');
end if;
end if;
-- if Format.Location /= Output_Object.Location then
-- if Output_Object.Location /= ARM_Output.Normal then
-- --Buffer (Output_Object, '>');
-- null; -- Corrigendum doesn't support this.
-- end if;
-- end if;
if ARM_Output."/=" (Format.Font, Output_Object.Font) then
case Output_Object.Font is
when ARM_Output.Default => null;
when ARM_Output.Fixed =>
Buffer (Output_Object, '>');
when ARM_Output.Roman =>
Buffer (Output_Object, '>');
when ARM_Output.Swiss =>
Buffer (Output_Object, '>');
end case;
end if;
-- For the intended purpose, there should be no Change commands.
if Format.Change /= Output_Object.Change then
if Format.Change = ARM_Output.Both then
-- Open only the one(s) needed:
case Output_Object.Change is
-- Note: Version is not used.
when ARM_Output.Insertion =>
-- Open the deletion:
Buffer(Output_Object, '[');
when ARM_Output.Deletion =>
-- Open the insertion:
Buffer(Output_Object, '{');
when ARM_Output.None =>
Buffer(Output_Object, '{');
Buffer(Output_Object, '[');
when ARM_Output.Both =>
null;
end case;
elsif Output_Object.Change = ARM_Output.Both then
-- Close only the one(s) needed:
case Format.Change is
-- Note: Version is not used.
when ARM_Output.Insertion =>
-- Close the deletion:
Buffer(Output_Object, ']');
when ARM_Output.Deletion =>
-- Close the insertion:
Buffer(Output_Object, '}');
when ARM_Output.None =>
Buffer(Output_Object, ']');
Buffer(Output_Object, '}');
when ARM_Output.Both =>
null;
end case;
else -- Both can't get here.
case Output_Object.Change is
when ARM_Output.Insertion =>
Buffer(Output_Object, '}');
when ARM_Output.Deletion =>
Buffer(Output_Object, ']');
when ARM_Output.None =>
null;
when ARM_Output.Both =>
Buffer(Output_Object, ']');
Buffer(Output_Object, '}');
end case;
case Format.Change is
-- Note: Version is not used.
when ARM_Output.Insertion =>
Buffer(Output_Object, '{');
when ARM_Output.Deletion =>
Buffer(Output_Object, '[');
when ARM_Output.None =>
null;
when ARM_Output.Both =>
Buffer(Output_Object, '{');
Buffer(Output_Object, '[');
end case;
end if;
Output_Object.Change := Format.Change;
end if;
if ARM_Output."/=" (Format.Font, Output_Object.Font) then
case Format.Font is
when ARM_Output.Default => null;
when ARM_Output.Fixed =>
Buffer (Output_Object, "@fc<");
when ARM_Output.Roman =>
Buffer (Output_Object, "@ft<");
when ARM_Output.Swiss =>
Buffer (Output_Object, "@fa<");
end case;
Output_Object.Font := Format.Font;
end if;
if Format.Location /= Output_Object.Location then
case Format.Location is
when ARM_Output.Superscript =>
--Buffer (Output_Object, "@+<");
null; -- Corrigendum doesn't support this.
when ARM_Output.Subscript =>
--Buffer (Output_Object, "@+<");
null; -- Corrigendum doesn't support this.
when ARM_Output.Normal =>
null;
end case;
Output_Object.Location := Format.Location;
end if;
if Format.Size /= Output_Object.Size then
if Format.Size < 0 then
Buffer (Output_Object, "@s" & Character'Val(10+Format.Size+Character'Pos('0')) & '<');
else
Buffer (Output_Object, "@s1" & Character'Val(Format.Size+Character'Pos('0')) & '<');
end if;
Output_Object.Size := Format.Size;
end if;
if Format.Italic and (not Output_Object.Is_Italic) then
Buffer (Output_Object, "@i<");
Output_Object.Is_Italic := True;
end if;
if Format.Bold and (not Output_Object.Is_Bold) then
Buffer (Output_Object, "@b<");
Output_Object.Is_Bold := True;
end if;
end Text_Format;
procedure Clause_Reference (Output_Object : in out Corr_Output_Type;
Text : in String;
Clause_Number : in String) is
-- Generate a reference to a clause in the standard. The text of
-- the reference is "Text", and the number of the clause is
-- Clause_Number. For hyperlinked formats, this should generate
-- a link; for other formats, the text alone is generated.
begin
Ordinary_Text (Output_Object, Text); -- Nothing special in this format.
end Clause_Reference;
procedure Index_Target (Output_Object : in out Corr_Output_Type;
Index_Key : in Natural) is
-- Generate a index target. This marks the location where an index
-- reference occurs. Index_Key names the index item involved.
-- For hyperlinked formats, this should generate a link target;
-- for other formats, nothing is generated.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
null; -- Nothing to do for plain text.
end Index_Target;
procedure Index_Reference (Output_Object : in out Corr_Output_Type;
Text : in String;
Index_Key : in Natural;
Clause_Number : in String) is
-- Generate a reference to an index target in the standard. The text
-- of the reference is "Text", and Index_Key and Clause_Number denotes
-- the target. For hyperlinked formats, this should generate
-- a link; for other formats, the text alone is generated.
begin
Ordinary_Text (Output_Object, Text); -- Nothing special in this format.
end Index_Reference;
procedure DR_Reference (Output_Object : in out Corr_Output_Type;
Text : in String;
DR_Number : in String) is
-- Generate a reference to an DR from the standard. The text
-- of the reference is "Text", and DR_Number denotes
-- the target. For hyperlinked formats, this should generate
-- a link; for other formats, the text alone is generated.
begin
Ordinary_Text (Output_Object, Text); -- Nothing special in this format.
end DR_Reference;
procedure AI_Reference (Output_Object : in out Corr_Output_Type;
Text : in String;
AI_Number : in String) is
-- Generate a reference to an AI from the standard. The text
-- of the reference is "Text", and AI_Number denotes
-- the target (in unfolded format). For hyperlinked formats, this
-- should generate a link; for other formats, the text alone is
-- generated.
begin
Ordinary_Text (Output_Object, Text); -- Nothing special in this format.
end AI_Reference;
procedure Local_Target (Output_Object : in out Corr_Output_Type;
Text : in String;
Target : in String) is
-- Generate a local target. This marks the potential target of local
-- links identified by "Target". Text is the text of the target.
-- For hyperlinked formats, this should generate a link target;
-- for other formats, only the text is generated.
begin
Ordinary_Text (Output_Object, Text); -- Nothing special in this format.
end Local_Target;
procedure Local_Link (Output_Object : in out Corr_Output_Type;
Text : in String;
Target : in String;
Clause_Number : in String) is
-- Generate a local link to the target and clause given.
-- Text is the text of the link.
-- For hyperlinked formats, this should generate a link;
-- for other formats, only the text is generated.
begin
Ordinary_Text (Output_Object, Text); -- Nothing special in this format.
end Local_Link;
procedure Local_Link_Start (Output_Object : in out Corr_Output_Type;
Target : in String;
Clause_Number : in String) is
-- Generate a local link to the target and clause given.
-- The link will surround text until Local_Link_End is called.
-- Local_Link_End must be called before this routine can be used again.
-- For hyperlinked formats, this should generate a link;
-- for other formats, only the text is generated.
begin
null; -- No link, nothing to do.
end Local_Link_Start;
procedure Local_Link_End (Output_Object : in out Corr_Output_Type;
Target : in String;
Clause_Number : in String) is
-- End a local link for the target and clause given.
-- This must be in the same paragraph as the Local_Link_Start.
-- For hyperlinked formats, this should generate a link;
-- for other formats, only the text is generated.
begin
null; -- No link, nothing to do.
end Local_Link_End;
procedure URL_Link (Output_Object : in out Corr_Output_Type;
Text : in String;
URL : in String) is
-- Generate a link to the URL given.
-- Text is the text of the link.
-- For hyperlinked formats, this should generate a link;
-- for other formats, only the text is generated.
begin
Ordinary_Text (Output_Object, Text); -- Nothing special in this format.
end URL_Link;
procedure Picture (Output_Object : in out Corr_Output_Type;
Name : in String;
Descr : in String;
Alignment : in ARM_Output.Picture_Alignment;
Height, Width : in Natural;
Border : in ARM_Output.Border_Kind) is
-- Generate a picture.
-- Name is the (simple) file name of the picture; Descr is a
-- descriptive name for the picture (it will appear in some web
-- browsers).
-- We assume that it is a .GIF or .JPG and that it will be present
-- in the same directory as the input files and the same directory as
-- the .HTML output files.
-- Alignment specifies the picture alignment.
-- Height and Width specify the picture size in pixels.
-- Border specifies the kind of border.
begin
Ordinary_Text (Output_Object, "[Picture: " & Name &
" - " & Descr & "]");
end Picture;
end ARM_Corr;
| true |
with --ARM_Output,
--ARM_Contents,
--Ada.Text_IO,
Ada.Exceptions,
Ada.Strings.Fixed,
Ada.Strings.Maps;
package body ARM_Corr is
--
-- Ada reference manual formatter (ARM_Form).
--
-- This package defines the text output object.
-- Output objects are responsible for implementing the details of
-- a particular format.
--
-- ---------------------------------------
-- Copyright 2000, 2002, 2004, 2005, 2006, 2007, 2011, 2012
-- AXE Consultants. All rights reserved.
-- P.O. Box 1512, Madison WI 53701
-- E-Mail: PI:EMAIL:<EMAIL>END_PI
--
-- ARM_Form is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License version 3
-- as published by the Free Software Foundation.
--
-- AXE CONSULTANTS MAKES THIS TOOL AND SOURCE CODE AVAILABLE ON AN "AS IS"
-- BASIS AND MAKES NO WARRANTY, EXPRESS OR IMPLIED, AS TO THE ACCURACY,
-- CAPABILITY, EFFICIENCY, MERCHANTABILITY, OR FUNCTIONING OF THIS TOOL.
-- IN NO EVENT WILL AXE CONSULTANTS BE LIABLE FOR ANY GENERAL,
-- CONSEQUENTIAL, INDIRECT, INCIDENTAL, EXEMPLARY, OR SPECIAL DAMAGES,
-- EVEN IF AXE CONSULTANTS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
-- DAMAGES.
--
-- A copy of the GNU General Public License is available in the file
-- gpl-3-0.txt in the standard distribution of the ARM_Form tool.
-- Otherwise, see <http://www.gnu.org/licenses/>.
--
-- If the GPLv3 license is not satisfactory for your needs, a commercial
-- use license is available for this tool. Contact PI:NAME:<NAME>END_PI at AXE Consultants
-- for more information.
--
-- ---------------------------------------
--
-- Edit History:
--
-- 6/ 2/05 - RLB - Created package from text and HTML versions.
-- 1/11/06 - RLB - Eliminated dispatching Create in favor of tailored
-- versions.
-- 1/18/06 - RLB - Added additional styles.
-- 2/ 8/06 - RLB - Added additional parameters to the table command.
-- 2/10/06 - RLB - Added even more additional parameters to the
-- table command.
-- - RLB - Added picture command.
-- 9/22/06 - RLB - Added missing with.
-- 9/25/06 - RLB - Handled optional renaming of TOC.
-- - RLB - Added Last_Column_Width to Start_Table.
-- 10/13/06 - RLB - Added Local_Link_Start and Local_Link_End to allow
-- formatting in the linked text.
-- 2/ 9/07 - RLB - Changed comments on AI_Reference.
-- 2/13/07 - RLB - Revised to separate style and indent information
-- for paragraphs.
-- 12/18/07 - RLB - Added Plain_Annex.
-- 12/19/07 - RLB - Added limited colors to Text_Format.
-- 10/18/11 - RLB - Changed to GPLv3 license.
-- 10/25/11 - RLB - Added old insertion version to Revised_Clause_Header.
-- 8/31/12 - RLB - Added Output_Path.
-- 10/18/12 - RLB - Added additional hanging styles.
-- 11/26/12 - RLB - Added subdivision names to Clause_Header and
-- Revised_Clause_Header.
LINE_LENGTH : constant := 78;
-- Maximum intended line length.
Special_Set : constant Ada.Strings.Maps.Character_Set :=
Ada.Strings.Maps."or" (Ada.Strings.Maps.To_Set ('>'),
Ada.Strings.Maps.To_Set ('@'));
procedure Create (Output_Object : in out Corr_Output_Type;
File_Prefix : in String;
Output_Path : in String;
Title : in String := "") is
-- Create an Output_Object for a document.
-- The prefix of the output file names is File_Prefix - this
-- should be no more then 5 characters allowed in file names.
-- The result files will be written to Output_Path.
-- The title of the document is Title.
begin
if Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Already valid object");
end if;
Output_Object.Is_Valid := True;
Ada.Strings.Fixed.Move (Target => Output_Object.File_Prefix,
Source => File_Prefix);
Ada.Strings.Fixed.Move (Target => Output_Object.Output_Path,
Source => Output_Path);
Output_Object.Output_Path_Len := Output_Path'Length;
-- We don't use the title.
end Create;
procedure Close (Output_Object : in out Corr_Output_Type) is
-- Close an Output_Object. No further output to the object is
-- allowed after this call.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Ada.Text_IO.Is_Open (Output_Object.Output_File) then
Ada.Text_IO.Close (Output_Object.Output_File);
end if;
Output_Object.Is_Valid := False;
end Close;
procedure Section (Output_Object : in out Corr_Output_Type;
Section_Title : in String;
Section_Name : in String) is
-- Start a new section. The title is Section_Title (this is
-- intended for humans). The name is Section_Name (this is
-- intended to be suitable to be a portion of a file name).
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Section in paragraph");
end if;
if Ada.Text_IO.Is_Open (Output_Object.Output_File) then
Ada.Text_IO.Close (Output_Object.Output_File);
end if;
-- Create a new file for this section:
-- Unix directory separator for Windows and Debian
Ada.Text_IO.Create (Output_Object.Output_File, Ada.Text_IO.Out_File,
Output_Object.Output_Path(1..Output_Object.Output_Path_Len) &
Ada.Strings.Fixed.Trim (Output_Object.File_Prefix, Ada.Strings.Right) &
"-Corr-" & Section_Name & ".TXT");
Ada.Text_IO.New_Line (Output_Object.Output_File);
end Section;
procedure Set_Columns (Output_Object : in out Corr_Output_Type;
Number_of_Columns : in ARM_Output.Column_Count) is
-- Set the number of columns.
-- Raises Not_Valid_Error if in a paragraph.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"In paragraph");
end if;
-- No columns in text format.
end Set_Columns;
procedure Make_Indent (Output_Object : in out Corr_Output_Type) is
-- Internal:
-- Output the appropriate indent after a New_Line or Put_Line.
begin
--Ada.Text_IO.Put_Line("Make_Indent: Amount=" & Natural'Image(Output_Object.Indent_Amount));
for I in 1 .. Output_Object.Indent_Amount loop
Ada.Text_IO.Put (Output_Object.Output_File, ' ');
end loop;
Output_Object.Char_Count := Output_Object.Indent_Amount;
Output_Object.Out_Char_Count := Output_Object.Indent_Amount;
Output_Object.Output_Buffer_Space_Before := False;
end Make_Indent;
procedure Spill (Output_Object : in out Corr_Output_Type) is
-- Internal:
-- Empty the output buffer in preperation for a New_Line or Put_Line.
begin
if Output_Object.Output_Buffer_Space_Before then
Ada.Text_IO.Put (Output_Object.Output_File, ' ');
Output_Object.Char_Count := Output_Object.Char_Count + 1; -- Count the space.
Output_Object.Out_Char_Count := Output_Object.Out_Char_Count + 1; -- Count the space.
end if;
if Output_Object.Output_Buffer_Len /= 0 then
Ada.Text_IO.Put (Output_Object.Output_File,
Output_Object.Output_Buffer (1 .. Output_Object.Output_Buffer_Len));
--Ada.Text_IO.Put_Line("Spill: Len=" & Natural'Image(Output_Object.Output_Buffer_Len) &
-- " Space added=" & Boolean'Image(Output_Object.Output_Buffer_Space_Before) & " Text=" &
-- Output_Object.Output_Buffer (1 .. Output_Object.Output_Buffer_Len));
Output_Object.Output_Buffer_Len := 0;
Output_Object.Out_Char_Count := Output_Object.Out_Char_Count +
Output_Object.Output_Buffer_Len;
end if;
Output_Object.Output_Buffer_Space_Before := False;
end Spill;
procedure Buffer (Output_Object : in out Corr_Output_Type;
Char : in Character) is
-- Internal:
-- Add Char to the output buffer. Char will *not* be a word break
-- character.
begin
if Output_Object.Output_Buffer_Len = Output_Object.Output_Buffer'Last then
-- Oops, buffer is full. Spill it, and this character.
--Ada.Text_IO.Put_Line("** Buffer overflow!!");
Spill (Output_Object);
Ada.Text_IO.Put (Output_Object.Output_File, Char);
Output_Object.Char_Count := Output_Object.Char_Count + 1;
Output_Object.Out_Char_Count := Output_Object.Out_Char_Count + 1;
return;
end if;
Output_Object.Output_Buffer_Len := Output_Object.Output_Buffer_Len + 1;
Output_Object.Output_Buffer(Output_Object.Output_Buffer_Len) := Char;
Output_Object.Char_Count := Output_Object.Char_Count + 1;
end Buffer;
procedure Buffer (Output_Object : in out Corr_Output_Type;
Str : in String) is
-- Internal:
-- Add Char to the output buffer. String will *not* include a word
-- break character.
begin
if Output_Object.Output_Buffer_Len+Str'Length >= Output_Object.Output_Buffer'Last then
-- Oops, buffer is full. Spill it.
--Ada.Text_IO.Put_Line("** Buffer overflow!!");
Spill (Output_Object);
end if;
Output_Object.Output_Buffer(Output_Object.Output_Buffer_Len+1..Output_Object.Output_Buffer_Len+Str'Length)
:= Str;
Output_Object.Output_Buffer_Len := Output_Object.Output_Buffer_Len + Str'Length;
Output_Object.Char_Count := Output_Object.Char_Count + Str'Length;
end Buffer;
procedure Start_Paragraph (Output_Object : in out Corr_Output_Type;
Style : in ARM_Output.Paragraph_Style_Type;
Indent : in ARM_Output.Paragraph_Indent_Type;
Number : in String;
No_Prefix : in Boolean := False;
Tab_Stops : in ARM_Output.Tab_Info := ARM_Output.NO_TABS;
No_Breaks : in Boolean := False;
Keep_with_Next : in Boolean := False;
Space_After : in ARM_Output.Space_After_Type
:= ARM_Output.Normal;
Justification : in ARM_Output.Justification_Type
:= ARM_Output.Default) is
-- Start a new paragraph. The style and indent of the paragraph is as
-- specified. The (AA)RM paragraph number (which might include update
-- and version numbers as well: [12.1/1]) is Number. If the format is
-- a type with a prefix (bullets, hangining items), the prefix is
-- omitted if No_Prefix is true. Tab_Stops defines the tab stops for
-- the paragraph. If No_Breaks is True, we will try to avoid page breaks
-- in the paragraph. If Keep_with_Next is true, we will try to avoid
-- separating this paragraph and the next one. (These may have no
-- effect in formats that don't have page breaks). Space_After
-- specifies the amount of space following the paragraph. Justification
-- specifies the text justification for the paragraph. Not_Valid_Error
-- is raised if Tab_Stops /= NO_TABS for a hanging or bulleted format.
use type ARM_Output.Paragraph_Indent_Type;
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Already in paragraph");
end if;
Output_Object.Is_In_Paragraph := True;
Output_Object.Is_Hanging := False;
Output_Object.Saw_Hang_End := False;
Output_Object.Char_Count := 0;
Output_Object.Out_Char_Count := 0;
Output_Object.Output_Buffer_Space_Before := False; -- Nothing in it or on the line.
Output_Object.Output_Buffer_Len := 0;
Output_Object.Font := ARM_Output.Default;
Output_Object.Is_Bold := False;
Output_Object.Is_Italic := False;
Output_Object.Size := 0;
Output_Object.Para_Style := Style;
Output_Object.Para_Indent := Indent;
Output_Object.Is_Fixed_Format := False;
if Output_Object.Clause_Len /= 0 and then
Number /= "" then
Ada.Text_IO.New_Line (Output_Object.Output_File);
Ada.Text_IO.Put (Output_Object.Output_File, "!paragraph ");
Ada.Text_IO.Put (Output_Object.Output_File, Output_Object.Clause_Num(1..Output_Object.Clause_Len));
Ada.Text_IO.Put (Output_Object.Output_File, '(');
Ada.Text_IO.Put (Output_Object.Output_File, Number);
Ada.Text_IO.Put (Output_Object.Output_File, ") [");
Ada.Text_IO.Put (Output_Object.Output_File, ARM_Output.Paragraph_Style_Type'Image(Style) &
" :" & ARM_Output.Paragraph_Indent_Type'Image(Indent));
Ada.Text_IO.Put_Line (Output_Object.Output_File, "]");
Ada.Text_IO.New_Line (Output_Object.Output_File);
else
Ada.Text_IO.New_Line (Output_Object.Output_File);
end if;
Output_Object.Indent_Amount := Integer(Indent)*4 + 2;
case Style is
when ARM_Output.Normal =>
if Indent = 0 then
null; -- %% Temp.
Output_Object.Indent_Amount := 0; -- %% Temp.
elsif Indent = 3 then
Ada.Text_IO.Put (Output_Object.Output_File, "@xindent<");
Output_Object.Char_Count := 9;
Output_Object.Indent_Amount := 0; -- %% Temp.
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Wide_Above => null;
if Indent = 0 then
null; -- %% Temp.
Output_Object.Indent_Amount := 0; -- %% Temp.
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Small =>
if Indent = 1 then -- Notes.
Ada.Text_IO.Put (Output_Object.Output_File, "@xindent<@s9<");
Output_Object.Char_Count := 13;
Output_Object.Indent_Amount := 0; -- %% Temp.
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Small_Wide_Above =>
null; -- ** TBD (Unknown cases).
when ARM_Output.Header =>
null; -- ** TBD (Unknown cases).
when ARM_Output.Small_Header =>
if Indent = 1 then -- Notes Header.
null;
--Output_Object.Indent_Amount := 6; --** TBD.
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Index => null; --** TBD.
when ARM_Output.Syntax_Summary => null; --** TBD.
when ARM_Output.Title =>
null; -- ** TBD (Unknown cases).
when ARM_Output.Examples =>
if Indent = 1 then
Ada.Text_IO.Put (Output_Object.Output_File, "@xcode<");
Output_Object.Char_Count := 7;
Output_Object.Is_Fixed_Format := True;
Output_Object.Indent_Amount := 0; -- %% Temp.
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Small_Examples => null; --** TBD.
when ARM_Output.Swiss_Examples =>
if Indent = 1 then
Ada.Text_IO.Put (Output_Object.Output_File, "@xcode<");
Output_Object.Char_Count := 7;
Output_Object.Is_Fixed_Format := True;
Output_Object.Indent_Amount := 0; -- %% Temp.
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Small_Swiss_Examples => null; --** TBD.
when ARM_Output.Bulleted =>
if Indent = 1 then
Output_Object.Indent_Amount := 0; -- %% Temp.
if No_Prefix then
Ada.Text_IO.Put (Output_Object.Output_File, "@xindent<");
Output_Object.Char_Count := 9;
else
Ada.Text_IO.Put (Output_Object.Output_File, "@xbullet<");
Output_Object.Char_Count := 9;
end if;
else -- Unknown/unimplemented case.
null; -- ** Tbd.
end if;
when ARM_Output.Nested_Bulleted => null; --** TBD.
when ARM_Output.Small_Bulleted => null; --** TBD.
when ARM_Output.Small_Nested_Bulleted => null; --** TBD.
when ARM_Output.Giant_Hanging => null; --** TBD.
when ARM_Output.Wide_Hanging =>
if Indent = 3 then
Output_Object.Indent_Amount := 0; -- %% Temp.
Output_Object.Is_Hanging := True;
if No_Prefix then
Output_Object.Saw_Hang_End := True;
Output_Object.Char_Count := 0;
else -- Has prefix
-- No units on first line.
Output_Object.Saw_Hang_End := False;
Ada.Text_IO.Put (Output_Object.Output_File, "@xhang<@xterm<");
Output_Object.Char_Count := 14;
end if;
else -- Unknown/unimplemented case.
null; -- ** Tbd.
end if;
when ARM_Output.Medium_Hanging => null; --** TBD.
when ARM_Output.Narrow_Hanging => null; --** TBD.
when ARM_Output.Hanging_in_Bulleted => null; --** TBD.
when ARM_Output.Small_Giant_Hanging => null; --** TBD.
when ARM_Output.Small_Wide_Hanging => null; --** TBD.
when ARM_Output.Small_Medium_Hanging => null; --** TBD.
when ARM_Output.Small_Narrow_Hanging => null; --** TBD.
when ARM_Output.Small_Hanging_in_Bulleted => null; --** TBD.
when ARM_Output.Enumerated => null; --** TBD.
when ARM_Output.Small_Enumerated => null; --** TBD.
end case;
if Output_Object.Indent_Amount > 6 then
for I in 1 .. (Output_Object.Indent_Amount-6)/4 loop
Ada.Text_IO.Put (Output_Object.Output_File, " ");
Output_Object.Char_Count := Output_Object.Char_Count + 4;
end loop;
end if;
case Style is
when ARM_Output.Normal | ARM_Output.Wide_Above |
ARM_Output.Small | ARM_Output.Small_Wide_Above |
ARM_Output.Header | ARM_Output.Small_Header |
ARM_Output.Index | ARM_Output.Syntax_Summary |
ARM_Output.Title |
ARM_Output.Examples | ARM_Output.Small_Examples |
ARM_Output.Swiss_Examples | ARM_Output.Small_Swiss_Examples =>
Output_Object.Tab_Stops := Tab_Stops;
-- We'll expand proportional stops here (text characters
-- are larger than the variable ones these are set up for).
for I in 1 .. Tab_Stops.Number loop
if ARM_Output."=" (Tab_Stops.Stops(I).Kind,
ARM_Output.Left_Proportional) then
Output_Object.Tab_Stops.Stops(I).Stop :=
(Tab_Stops.Stops(I).Stop * 5 / 4) + Output_Object.Indent_Amount;
else
Output_Object.Tab_Stops.Stops(I).Stop :=
Tab_Stops.Stops(I).Stop + Output_Object.Indent_Amount;
end if;
end loop;
when ARM_Output.Bulleted | ARM_Output.Nested_Bulleted |
ARM_Output.Small_Bulleted | ARM_Output.Small_Nested_Bulleted |
ARM_Output.Giant_Hanging | ARM_Output.Wide_Hanging |
ARM_Output.Medium_Hanging | ARM_Output.Narrow_Hanging |
ARM_Output.Hanging_in_Bulleted |
ARM_Output.Small_Giant_Hanging | ARM_Output.Small_Wide_Hanging |
ARM_Output.Small_Medium_Hanging | ARM_Output.Small_Narrow_Hanging |
ARM_Output.Small_Hanging_in_Bulleted |
ARM_Output.Enumerated | ARM_Output.Small_Enumerated =>
if Tab_Stops.Number /= 0 then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Tabs in hanging/bulleted paragraph");
end if;
end case;
Output_Object.Out_Char_Count := Output_Object.Char_Count;
-- Note: No_Breaks, Keep_with_Next, and Justification have no effect
-- here.
--Ada.Text_IO.Put_Line ("Start_Paragraph - Indent=" & Natural'Image(Output_Object.Indent_Amount) & " Cnt=" &
-- Natural'Image(Output_Object.Char_Count));
end Start_Paragraph;
procedure End_Paragraph (Output_Object : in out Corr_Output_Type) is
-- End a paragraph.
use type ARM_Output.Paragraph_Indent_Type;
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
case Output_Object.Para_Style is
when ARM_Output.Normal =>
if Output_Object.Para_Indent = 0 then
null;
elsif Output_Object.Para_Indent = 3 then
Buffer (Output_Object, '>');
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Wide_Above => null;
if Output_Object.Para_Indent = 0 then
null; -- %% Temp.
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Small =>
if Output_Object.Para_Indent = 1 then -- Notes.
Buffer (Output_Object, ">>");
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Small_Wide_Above =>
null; -- ** TBD (Unknown cases).
when ARM_Output.Header =>
null; -- ** TBD (Unknown cases).
when ARM_Output.Small_Header =>
if Output_Object.Para_Indent = 1 then -- Notes Header.
null;
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Index => null; --** TBD.
when ARM_Output.Syntax_Summary => null; --** TBD.
when ARM_Output.Title => null; --** TBD.
when ARM_Output.Examples =>
if Output_Object.Para_Indent = 1 then
Buffer (Output_Object, '>');
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Small_Examples => null; --** TBD.
when ARM_Output.Swiss_Examples =>
if Output_Object.Para_Indent = 1 then
Buffer (Output_Object, '>');
else -- Unknown case.
null; -- ** Tbd.
end if;
when ARM_Output.Small_Swiss_Examples => null; --** TBD.
when ARM_Output.Bulleted =>
if Output_Object.Para_Indent = 1 then
Buffer (Output_Object, '>');
else -- Unknown/unimplemented case.
null; -- ** Tbd.
end if;
when ARM_Output.Nested_Bulleted => null; --** TBD.
when ARM_Output.Small_Bulleted => null; --** TBD.
when ARM_Output.Small_Nested_Bulleted => null; --** TBD.
when ARM_Output.Giant_Hanging => null; --** TBD.
when ARM_Output.Wide_Hanging =>
if Output_Object.Para_Indent = 3 then
Buffer (Output_Object, '>');
else -- Unknown/unimplemented case.
null; -- ** Tbd.
end if;
when ARM_Output.Medium_Hanging => null; --** TBD.
when ARM_Output.Narrow_Hanging => null; --** TBD.
when ARM_Output.Hanging_in_Bulleted => null; --** TBD.
when ARM_Output.Small_Giant_Hanging => null; --** TBD.
when ARM_Output.Small_Wide_Hanging => null; --** TBD.
when ARM_Output.Small_Medium_Hanging => null; --** TBD.
when ARM_Output.Small_Narrow_Hanging => null; --** TBD.
when ARM_Output.Small_Hanging_in_Bulleted => null; --** TBD.
when ARM_Output.Enumerated => null; --** TBD.
when ARM_Output.Small_Enumerated => null; --** TBD.
end case;
if Output_Object.Output_Buffer_Len /= 0 then
Spill (Output_Object);
end if;
Output_Object.Is_In_Paragraph := False;
Ada.Text_IO.New_Line (Output_Object.Output_File, 2); -- Double space paragraphs.
end End_Paragraph;
procedure Category_Header (Output_Object : in out Corr_Output_Type;
Header_Text : String) is
-- Output a Category header (that is, "Legality Rules",
-- "Dynamic Semantics", etc.)
-- (Note: We did not use a enumeration here to insure that these
-- headers are spelled the same in all output versions).
-- Raises Not_Valid_Error if in a paragraph.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Header in paragraph");
end if;
Ada.Text_IO.New_Line (Output_Object.Output_File);
Ada.Text_IO.Put_Line (Output_Object.Output_File, "!subheader");
Ada.Text_IO.Put (Output_Object.Output_File, "@i<@s8<");
if Ada.Strings.Fixed.Count (Header_Text, Special_Set) = 0 then
Ada.Text_IO.Put (Output_Object.Output_File, Header_Text);
else
for I in Header_Text'Range loop
if Header_Text(I) = '>' then
Ada.Text_IO.Put (Output_Object.Output_File, "@>");
elsif Header_Text(I) = '@' then
Ada.Text_IO.Put (Output_Object.Output_File, "@@");
else
Ada.Text_IO.Put (Output_Object.Output_File, Header_Text(I));
end if;
end loop;
end if;
Ada.Text_IO.Put (Output_Object.Output_File, ">>");
Ada.Text_IO.New_Line (Output_Object.Output_File);
Output_Object.Char_Count := 0;
Output_Object.Out_Char_Count := 0;
end Category_Header;
procedure Clause_Header (Output_Object : in out Corr_Output_Type;
Header_Text : in String;
Level : in ARM_Contents.Level_Type;
Clause_Number : in String;
Top_Level_Subdivision_Name : in ARM_Output.Top_Level_Subdivision_Name_Kind;
No_Page_Break : in Boolean := False) is
-- Output a Clause header. The level of the header is specified
-- in Level. The Clause Number is as specified; the top-level (and
-- other) subdivision names are as specified. These should appear in
-- the table of contents.
-- For hyperlinked formats, this should generate a link target.
-- If No_Page_Break is True, suppress any page breaks.
-- Raises Not_Valid_Error if in a paragraph.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Header in paragraph");
end if;
Ada.Text_IO.New_Line (Output_Object.Output_File);
Output_Object.Clause_Len := Clause_Number'Length;
Output_Object.Clause_Num(1..Output_Object.Clause_Len) :=
Clause_Number;
-- Special for table of contents:
if Clause_Number = "" and then
(Header_Text = "Table of Contents" or else
Header_Text = "Contents") then
Ada.Text_IO.Put (Output_Object.Output_File,
"!clause ");
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
Ada.Text_IO.New_Line (Output_Object.Output_File, 2);
Output_Object.Char_Count := 0;
Output_Object.Out_Char_Count := 0;
return;
end if;
Ada.Text_IO.Put (Output_Object.Output_File,
"!clause ");
case Level is
when ARM_Contents.Plain_Annex =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number); -- Note: Clause_Number includes "Annex"
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
when ARM_Contents.Normative_Annex =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number); -- Note: Clause_Number includes "Annex"
Ada.Text_IO.Put_Line (Output_Object.Output_File,
"(normative)");
Ada.Text_IO.New_Line (Output_Object.Output_File);
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
when ARM_Contents.Informative_Annex =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number); -- Note: Clause_Number includes "Annex"
Ada.Text_IO.Put_Line (Output_Object.Output_File,
"(informative)");
Ada.Text_IO.New_Line (Output_Object.Output_File);
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
when ARM_Contents.Section =>
case Top_Level_Subdivision_Name is
when ARM_Output.Chapter =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
"Chapter " & Clause_Number & ": " & Header_Text);
when ARM_Output.Section =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
"Section " & Clause_Number & ": " & Header_Text);
when ARM_Output.Clause =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number & " " & Header_Text);
end case;
when ARM_Contents.Unnumbered_Section =>
if Header_Text /= "" then
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
end if;
when ARM_Contents.Clause | ARM_Contents.Subclause |
ARM_Contents.Subsubclause =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number & ' ' & Header_Text);
when ARM_Contents.Dead_Clause =>
raise Program_Error; -- No headers for dead clauses.
end case;
Ada.Text_IO.New_Line (Output_Object.Output_File, 2);
Output_Object.Char_Count := 0;
Output_Object.Out_Char_Count := 0;
-- We don't have any page breaks here to suppress.
end Clause_Header;
procedure Revised_Clause_Header
(Output_Object : in out Corr_Output_Type;
New_Header_Text : in String;
Old_Header_Text : in String;
Level : in ARM_Contents.Level_Type;
Clause_Number : in String;
Version : in ARM_Contents.Change_Version_Type;
Old_Version : in ARM_Contents.Change_Version_Type;
Top_Level_Subdivision_Name : in ARM_Output.Top_Level_Subdivision_Name_Kind;
No_Page_Break : in Boolean := False) is
-- Output a revised clause header. Both the original and new text will
-- be output. The level of the header is specified in Level. The Clause
-- Number is as specified; the top-level (and other) subdivision names
-- are as specified. These should appear in the table of contents.
-- For hyperlinked formats, this should generate a link target.
-- Version is the insertion version of the new text; Old_Version is
-- the insertion version of the old text.
-- If No_Page_Break is True, suppress any page breaks.
-- Raises Not_Valid_Error if in a paragraph.
function Header_Text return String is
-- Note: Version and Old_Version are not used.
begin
return '{' & New_Header_Text & "} [" & Old_Header_Text & ']';
end Header_Text;
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Header in paragraph");
end if;
Ada.Text_IO.New_Line (Output_Object.Output_File);
Output_Object.Clause_Len := Clause_Number'Length;
Output_Object.Clause_Num(1..Output_Object.Clause_Len) :=
Clause_Number;
-- Special for table of contents:
if Clause_Number = "" and then
(Header_Text = "Table of Contents" or else -- Ada 95 format
Header_Text = "Contents") then -- ISO 2004 format.
Ada.Text_IO.Put (Output_Object.Output_File,
"!clause ");
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
Ada.Text_IO.New_Line (Output_Object.Output_File, 2);
Output_Object.Char_Count := 0;
Output_Object.Out_Char_Count := 0;
return;
end if;
Ada.Text_IO.Put (Output_Object.Output_File,
"!clause ");
case Level is
when ARM_Contents.Plain_Annex =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number); -- Note: Clause_Number includes "Annex"
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
when ARM_Contents.Normative_Annex =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number); -- Note: Clause_Number includes "Annex"
Ada.Text_IO.Put_Line (Output_Object.Output_File,
"(normative)");
Ada.Text_IO.New_Line (Output_Object.Output_File);
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
when ARM_Contents.Informative_Annex =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number); -- Note: Clause_Number includes "Annex"
Ada.Text_IO.Put_Line (Output_Object.Output_File,
"(informative)");
Ada.Text_IO.New_Line (Output_Object.Output_File);
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
when ARM_Contents.Section =>
case Top_Level_Subdivision_Name is
when ARM_Output.Chapter =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
"Chapter " & Clause_Number & ": " & Header_Text);
when ARM_Output.Section =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
"Section " & Clause_Number & ": " & Header_Text);
when ARM_Output.Clause =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number & " " & Header_Text);
end case;
when ARM_Contents.Unnumbered_Section =>
if Header_Text /= "" then
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Header_Text);
end if;
when ARM_Contents.Clause | ARM_Contents.Subclause |
ARM_Contents.Subsubclause =>
Ada.Text_IO.Put_Line (Output_Object.Output_File,
Clause_Number & ' ' & Header_Text);
when ARM_Contents.Dead_Clause =>
raise Program_Error; -- No headers for dead clauses.
end case;
Ada.Text_IO.New_Line (Output_Object.Output_File, 2);
Output_Object.Char_Count := 0;
Output_Object.Out_Char_Count := 0;
-- We don't have any page breaks here to suppress.
end Revised_Clause_Header;
procedure TOC_Marker (Output_Object : in out Corr_Output_Type;
For_Start : in Boolean) is
-- Mark the start (if For_Start is True) or end (if For_Start is
-- False) of the table of contents data. Output objects that
-- auto-generate the table of contents can use this to do needed
-- actions.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
null; -- We don't care about this.
end TOC_Marker;
procedure New_Page (Output_Object : in out Corr_Output_Type;
Kind : ARM_Output.Page_Kind_Type := ARM_Output.Any_Page) is
-- Output a page break.
-- Note that this has no effect on non-printing formats.
-- Any_Page breaks to the top of the next page (whatever it is);
-- Odd_Page_Only breaks to the top of the odd-numbered page;
-- Soft_Page allows a page break but does not force one (use in
-- "No_Breaks" paragraphs.)
-- Raises Not_Valid_Error if in a paragraph if Kind = Any_Page or
-- Odd_Page, and if not in a paragraph if Kind = Soft_Page.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
case Kind is
when ARM_Output.Any_Page | ARM_Output.Odd_Page_Only =>
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Page in paragraph");
end if;
Ada.Text_IO.New_Line (Output_Object.Output_File, 2);
when ARM_Output.Soft_Page =>
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Soft page not in paragraph");
end if;
null; -- No page breaks.
Spill (Output_Object);
end case;
end New_Page;
procedure New_Column (Output_Object : in out Corr_Output_Type) is
-- Output a column break.
-- Raises Not_Valid_Error if in a paragraph, or if the number of
-- columns is 1.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"New column in paragraph");
end if;
-- No columns in text format.
Ada.Text_IO.New_Line (Output_Object.Output_File);
end New_Column;
procedure Start_Table (Output_Object : in out Corr_Output_Type;
Columns : in ARM_Output.Column_Count;
First_Column_Width : in ARM_Output.Column_Count;
Last_Column_Width : in ARM_Output.Column_Count;
Alignment : in ARM_Output.Column_Text_Alignment;
No_Page_Break : in Boolean;
Has_Border : in Boolean;
Small_Text_Size : in Boolean;
Header_Kind : in ARM_Output.Header_Kind_Type) is
-- Starts a table. The number of columns is Columns; the first
-- column has First_Column_Width times the normal column width, and
-- the last column has Last_Column_Width times the normal column width.
-- Alignment is the horizontal text alignment within the columns.
-- No_Page_Break should be True to keep the table intact on a single
-- page; False to allow it to be split across pages.
-- Has_Border should be true if a border is desired, false otherwise.
-- Small_Text_Size means that the contents will have the AARM size;
-- otherwise it will have the normal size.
-- Header_Kind determines whether the table has headers.
-- This command starts a paragraph; the entire table is a single
-- paragraph. Text will be considered part of the caption until the
-- next table marker call.
-- Raises Not_Valid_Error if in a paragraph.
begin
-- Alignment, No_Page_Break, Border, Small_Text_Size, and Header_Kind
-- not used here.
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Table in paragraph");
end if;
Output_Object.Tab_Stops.Number := Columns;
declare
Column_Units : constant ARM_Output.Column_Count :=
Columns+First_Column_Width+Last_Column_Width-2;
Width : Natural :=
(72/(Column_Units));
begin
if Column_Units <= 3 then -- Keep it from getting too wide.
Width := 22;
end if;
for I in 1 .. Columns loop
Output_Object.Tab_Stops.Stops(I) := (Kind => ARM_Output.Left_Fixed,
Stop => Width*(I+First_Column_Width-1)+10);
end loop;
end;
Output_Object.Indent_Amount := 10;
Ada.Text_IO.Put (Output_Object.Output_File, " ");
Output_Object.Char_Count := 10;
Output_Object.Out_Char_Count := 10;
Output_Object.Is_In_Paragraph := True;
Output_Object.Is_In_Table := True;
end Start_Table;
procedure Table_Marker (Output_Object : in out Corr_Output_Type;
Marker : in ARM_Output.Table_Marker_Type) is
-- Marks the end of an entity in a table.
-- If Marker is End_Caption, the table caption ends and the
-- future text is part of the table header.
-- If Marker is End_Header, the table header ends and the
-- future text is part of the table body.
-- If Marker is End_Row, a row in the table is completed, and another
-- row started.
-- If Marker is End_Row_Next_Is_Last, a row in the table is completed,
-- and another row started. That row is the last row in the table.
-- If Marker is End_Item, an item in the table header or body is ended,
-- and another started.
-- If Marker is End_Table, the entire table is finished.
-- Raises Not_Valid_Error if not in a table.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if (not Output_Object.Is_In_Paragraph) or (not Output_Object.Is_In_Table) then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Table marker not in table");
end if;
case Marker is
when ARM_Output.End_Item =>
-- Just tab over one row:
Spill (Output_Object);
Ada.Text_IO.Put_Line (Output_Object.Output_File, " ");
Output_Object.Char_Count := Output_Object.Char_Count + 1;
Output_Object.Out_Char_Count := Output_Object.Out_Char_Count + 1;
for I in 1 .. Output_Object.Tab_Stops.Number loop
if Output_Object.Tab_Stops.Stops(I).Stop > Output_Object.Char_Count then
for J in Output_Object.Char_Count+1 .. Output_Object.Tab_Stops.Stops(I).Stop-1 loop
Ada.Text_IO.Put_Line (Output_Object.Output_File, " ");
Output_Object.Char_Count := Output_Object.Char_Count + 1;
Output_Object.Out_Char_Count := Output_Object.Out_Char_Count + 1;
end loop;
end if;
end loop;
when ARM_Output.End_Caption =>
Spill (Output_Object);
Ada.Text_IO.New_Line (Output_Object.Output_File, 2);
Ada.Text_IO.Put (Output_Object.Output_File, " ");
Output_Object.Char_Count := 10;
Output_Object.Out_Char_Count := 10;
when ARM_Output.End_Header =>
Spill (Output_Object);
Ada.Text_IO.New_Line (Output_Object.Output_File, 2);
Ada.Text_IO.Put (Output_Object.Output_File, " ");
Output_Object.Char_Count := 10;
Output_Object.Out_Char_Count := 10;
when ARM_Output.End_Row | ARM_Output.End_Row_Next_Is_Last =>
Spill (Output_Object);
Ada.Text_IO.New_Line (Output_Object.Output_File, 1);
Ada.Text_IO.Put (Output_Object.Output_File, " ");
Output_Object.Char_Count := 10;
Output_Object.Out_Char_Count := 10;
when ARM_Output.End_Table =>
Spill (Output_Object);
Output_Object.Is_In_Paragraph := False;
Output_Object.Is_In_Table := False;
Ada.Text_IO.New_Line (Output_Object.Output_File);
Output_Object.Tab_Stops := ARM_Output.NO_TABS;
end case;
end Table_Marker;
procedure Separator_Line (Output_Object : in out Corr_Output_Type;
Is_Thin : Boolean := True) is
-- Output a separator line. It is thin if "Is_Thin" is true.
-- Raises Not_Valid_Error if in a paragraph.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Separator in paragraph");
end if;
Ada.Text_IO.New_Line (Output_Object.Output_File);
if Is_Thin then
Ada.Text_IO.Put_Line (Output_Object.Output_File, "---------------------------------------------------------------------");
else
Ada.Text_IO.Put_Line (Output_Object.Output_File, "=====================================================================");
end if;
Ada.Text_IO.New_Line (Output_Object.Output_File);
end Separator_Line;
-- Text output: These are only allowed after a Start_Paragraph and
-- before any End_Paragraph. Raises Not_Valid_Error if not allowed.
procedure Ordinary_Text (Output_Object : in out Corr_Output_Type;
Text : in String) is
-- Output ordinary text.
-- The text must end at a word break, never in the middle of a word.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
--Ada.Text_IO.Put_Line ("Ordinary_Text: Cnt=" & Natural'Image(Output_Object.Char_Count) &
--" Buffer=" & Natural'Image(Output_Object.Output_Buffer_Len));
if Output_Object.Char_Count + Text'Length >= LINE_LENGTH - 2 and then
Output_Object.Out_Char_Count > Output_Object.Indent_Amount then
-- We want a line break here if the line is too long and something was output:
Ada.Text_IO.New_Line (Output_Object.Output_File);
Make_Indent (Output_Object);
--Output_Object.Output_Buffer_Space_Before := False;
-- Start of line, this is done by Make_Indent.
Spill (Output_Object);
else
Spill (Output_Object);
end if;
if Ada.Strings.Fixed.Count (Text, Special_Set) = 0 then
Ada.Text_IO.Put (Output_Object.Output_File, Text);
Output_Object.Char_Count := Output_Object.Char_Count + Text'Length;
Output_Object.Out_Char_Count := Output_Object.Out_Char_Count + Text'Length;
else
for I in Text'Range loop
if Text(I) = '>' then
Ada.Text_IO.Put (Output_Object.Output_File, "@>");
Output_Object.Char_Count := Output_Object.Char_Count + 2;
Output_Object.Out_Char_Count := Output_Object.Out_Char_Count + 2;
elsif Text(I) = '@' then
Ada.Text_IO.Put (Output_Object.Output_File, "@@");
Output_Object.Char_Count := Output_Object.Char_Count + 2;
Output_Object.Out_Char_Count := Output_Object.Out_Char_Count + 2;
else
Ada.Text_IO.Put (Output_Object.Output_File, Text(I));
Output_Object.Char_Count := Output_Object.Char_Count + 1;
Output_Object.Out_Char_Count := Output_Object.Out_Char_Count + 1;
end if;
end loop;
end if;
Output_Object.Output_Buffer_Space_Before := False; -- No space between
-- this and any following text.
end Ordinary_Text;
procedure Ordinary_Character (Output_Object : in out Corr_Output_Type;
Char : in Character) is
-- Output an ordinary character.
-- Spaces will be used to break lines as needed.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
if Output_Object.Char_Count >= LINE_LENGTH and then
Output_Object.Out_Char_Count > Output_Object.Indent_Amount then
-- Insert a break here if anything has been output (but don't
-- Spill the buffer):
--Ada.Text_IO.Put_Line ("Ordinary_Char [Break, no spill]: Cnt=" & Natural'Image(Output_Object.Char_Count));
Ada.Text_IO.New_Line (Output_Object.Output_File);
Make_Indent (Output_Object);
--Output_Object.Output_Buffer_Space_Before := False;
-- Start of line, this is done by Make_Indent.
-- Note that this may make the space disappear.
-- Add the contents of the buffer to the character count for this line:
Output_Object.Char_Count := Output_Object.Char_Count +
Output_Object.Output_Buffer_Len;
if Char = '>' then
Buffer (Output_Object, "@>");
elsif Char = '@' then
Buffer (Output_Object, "@@");
elsif Char /= ' ' then
Buffer (Output_Object, Char);
else -- Break character, spill on the new line:
if Output_Object.Output_Buffer_Len /= 0 then
Spill (Output_Object); -- Output the buffer up to the space.
Output_Object.Output_Buffer_Space_Before := True; -- Mid-line now.
-- else nothing in buffer, so nothing to output; just skip it.
end if;
end if;
elsif Char = ' ' then
-- Break character, and it fits on this line:
if Output_Object.Output_Buffer_Len /= 0 then
--Ada.Text_IO.Put_Line ("Ordinary_Char [Space spill]: Cnt=" & Natural'Image(Output_Object.Char_Count));
Spill (Output_Object); -- Output the buffer up to the space.
Output_Object.Output_Buffer_Space_Before := True; -- Mid-line now.
else -- nothing in buffer.
-- nothing to output. But make sure we display a space before
-- the next item.
Output_Object.Output_Buffer_Space_Before := True; -- Mid-line now.
end if;
elsif Char = '>' then
Buffer (Output_Object, "@>");
elsif Char = '@' then
Buffer (Output_Object, "@@");
else
Buffer (Output_Object, Char);
end if;
end Ordinary_Character;
procedure Hard_Space (Output_Object : in out Corr_Output_Type) is
-- Output a hard space. No line break should happen at a hard space.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
if Output_Object.Is_Fixed_Format then
-- In this format, all spaces are hard spaces.
Buffer (Output_Object, ' ');
else -- A hard space command.
Buffer (Output_Object, "@ ");
end if;
end Hard_Space;
procedure Line_Break (Output_Object : in out Corr_Output_Type) is
-- Output a line break. This does not start a new paragraph.
-- This corresponds to a "<BR>" in HTML.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
--Ada.Text_Io.Put_Line ("Line_Break");
if Output_Object.Is_Fixed_Format then
-- In this format, all line breaks are significant.
null;
else -- A hard space command.
Buffer (Output_Object, "@hr");
end if;
if Output_Object.Output_Buffer_Len /= 0 then
Spill (Output_Object);
end if;
Ada.Text_IO.New_Line (Output_Object.Output_File);
Make_Indent (Output_Object);
end Line_Break;
procedure Index_Line_Break (Output_Object : in out Corr_Output_Type;
Clear_Keep_with_Next : in Boolean) is
-- Output a line break for the index. This does not start a new
-- paragraph in terms of spacing. This corresponds to a "<BR>"
-- in HTML. If Clear_Keep_with_Next is true, insure that the next
-- line does not require the following line to stay with it.
-- Raises Not_Valid_Error if the paragraph is not in the index format.
begin
Line_Break (Output_Object);
end Index_Line_Break;
procedure Soft_Line_Break (Output_Object : in out Corr_Output_Type) is
-- Output a soft line break. This is a place (in the middle of a
-- "word") that we allow a line break. It is usually used after
-- underscores in long non-terminals.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
-- if Output_Object.Char_Count >= LINE_LENGTH - 10 then
-- if Output_Object.Output_Buffer_Len /= 0 then
-- Spill (Output_Object);
-- end if;
-- Ada.Text_IO.New_Line (Output_Object.Output_File);
-- Make_Indent (Output_Object);
-- -- else we don't need a line break.
-- end if;
null; -- Ignore this, there is no counterpart in Corrigendum formatting.
end Soft_Line_Break;
procedure Soft_Hyphen_Break (Output_Object : in out Corr_Output_Type) is
-- Output a soft line break, with a hyphen. This is a place (in the middle of
-- a "word") that we allow a line break. If the line break is used,
-- a hyphen will be added to the text.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
-- if Output_Object.Char_Count >= LINE_LENGTH - 8 then
-- Spill (Output_Object);
-- Ada.Text_IO.Put_Line (Output_Object.Output_File, "-"); -- Add the hyphen and break.
-- Make_Indent (Output_Object);
-- -- else we don't need a line break.
-- end if;
null; -- Ignore this, there is no counterpart in Corrigendum formatting.
end Soft_Hyphen_Break;
procedure Tab (Output_Object : in out Corr_Output_Type) is
-- Output a tab, inserting space up to the next tab stop.
-- Raises Not_Valid_Error if the paragraph was created with
-- Tab_Stops = ARM_Output.NO_TABS.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
if ARM_Output."="(Output_Object.Tab_Stops, ARM_Output.NO_TABS) then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Tab, but none set");
end if;
-- We use the tab stops as characters here, and fixed and proportional
-- stops are treated identically.
-- Find the first stop greater than the current character count. (After
-- writing a space).
--Ada.Text_IO.Put_Line ("Tab");
Buffer (Output_Object, "@tab");
Output_Object.Output_Buffer_Space_Before := False; -- Spaces needed were output.
end Tab;
procedure Special_Character (Output_Object : in out Corr_Output_Type;
Char : in ARM_Output.Special_Character_Type) is
-- Output an special character.
begin
--** Could use Latin1 and Unicode equivalents for most of these.
case Char is
when ARM_Output.EM_Dash =>
Buffer (Output_Object, "@emdash");
when ARM_Output.EN_Dash =>
Buffer (Output_Object, "@endash");
when ARM_Output.GEQ =>
Ordinary_Text (Output_Object, ">="); -- Not available in Corrigendum, use the Ada one.
when ARM_Output.LEQ =>
Ordinary_Text (Output_Object, "<="); -- Not available in Corrigendum, use the Ada one.
when ARM_Output.NEQ =>
Ordinary_Text (Output_Object, "/="); -- Not available in Corrigendum, use the Ada one.
when ARM_Output.PI =>
Buffer (Output_Object, "@pi");
when ARM_Output.Left_Ceiling =>
Ordinary_Text (Output_Object, "Ceiling("); -- Not available in Corrigendum.
when ARM_Output.Right_Ceiling =>
Ordinary_Text (Output_Object, ")"); -- Not available in Corrigendum.
when ARM_Output.Left_Floor =>
Ordinary_Text (Output_Object, "Floor("); -- Not available in Corrigendum.
when ARM_Output.Right_Floor =>
Ordinary_Text (Output_Object, ")"); -- Not available in Corrigendum.
when ARM_Output.Thin_Space =>
Ordinary_Text (Output_Object, " "); -- Not available in Corrigendum.
when ARM_Output.Left_Quote =>
Buffer (Output_Object, "@lquote");
when ARM_Output.Right_Quote =>
Buffer (Output_Object, "@rquote");
when ARM_Output.Left_Double_Quote =>
Ordinary_Text (Output_Object, """"); -- Not available in Corrigendum, use double quote.
when ARM_Output.Right_Double_Quote =>
Ordinary_Text (Output_Object, """"); -- Not available in Corrigendum, use double quote.
when ARM_Output.Small_Dotless_I =>
Ordinary_Text (Output_Object, "i"); -- Not available in Corrigendum, use the nearest text.
when ARM_Output.Capital_Dotted_I =>
Ordinary_Text (Output_Object, "I"); -- Not available in Corrigendum, use the nearest text.
end case;
end Special_Character;
procedure Unicode_Character (Output_Object : in out Corr_Output_Type;
Char : in ARM_Output.Unicode_Type) is
-- Output a Unicode character, with code position Char.
Char_Code : constant String := ARM_Output.Unicode_Type'Image(Char);
begin
-- We don't check, but we assume this is not a normal character.
Buffer (Output_Object, "@unicode<" & Char_Code(2..Char_Code'Last) & ">");
end Unicode_Character;
procedure End_Hang_Item (Output_Object : in out Corr_Output_Type) is
-- Marks the end of a hanging item. Call only once per paragraph.
-- Raises Not_Valid_Error if the paragraph style is not in
-- Text_Prefixed_Style_Subtype, or if this has already been
-- called for the current paragraph, or if the paragraph was started
-- with No_Prefix = True.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
if not Output_Object.Is_Hanging then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not a hanging paragraph");
end if;
if Output_Object.Saw_Hang_End then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Already saw the end of the hanging part");
end if;
Output_Object.Saw_Hang_End := True;
Buffer (Output_Object, ">"); -- Close @Xterm<
end End_Hang_Item;
procedure Text_Format (Output_Object : in out Corr_Output_Type;
Format : in ARM_Output.Format_Type) is
-- Change the text format so that all of the properties are as specified.
-- Note: Changes to these properties ought be stack-like; that is,
-- Bold on, Italic on, Italic off, Bold off is OK; Bold on, Italic on,
-- Bold off, Italic off should be avoided (as separate commands).
use type ARM_Output.Change_Type;
use type ARM_Output.Location_Type;
use type ARM_Output.Size_Type;
-- Note: We ignore colors here, no colors in !Corrigendum markup.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
if not Format.Bold and Output_Object.Is_Bold then
Buffer (Output_Object, '>');
Output_Object.Is_Bold := False;
end if;
if not Format.Italic and Output_Object.Is_Italic then
Buffer (Output_Object, '>');
Output_Object.Is_Italic := False;
end if;
if Format.Size /= Output_Object.Size then
if Output_Object.Size /= 0 then
Buffer (Output_Object, '>');
end if;
end if;
-- if Format.Location /= Output_Object.Location then
-- if Output_Object.Location /= ARM_Output.Normal then
-- --Buffer (Output_Object, '>');
-- null; -- Corrigendum doesn't support this.
-- end if;
-- end if;
if ARM_Output."/=" (Format.Font, Output_Object.Font) then
case Output_Object.Font is
when ARM_Output.Default => null;
when ARM_Output.Fixed =>
Buffer (Output_Object, '>');
when ARM_Output.Roman =>
Buffer (Output_Object, '>');
when ARM_Output.Swiss =>
Buffer (Output_Object, '>');
end case;
end if;
-- For the intended purpose, there should be no Change commands.
if Format.Change /= Output_Object.Change then
if Format.Change = ARM_Output.Both then
-- Open only the one(s) needed:
case Output_Object.Change is
-- Note: Version is not used.
when ARM_Output.Insertion =>
-- Open the deletion:
Buffer(Output_Object, '[');
when ARM_Output.Deletion =>
-- Open the insertion:
Buffer(Output_Object, '{');
when ARM_Output.None =>
Buffer(Output_Object, '{');
Buffer(Output_Object, '[');
when ARM_Output.Both =>
null;
end case;
elsif Output_Object.Change = ARM_Output.Both then
-- Close only the one(s) needed:
case Format.Change is
-- Note: Version is not used.
when ARM_Output.Insertion =>
-- Close the deletion:
Buffer(Output_Object, ']');
when ARM_Output.Deletion =>
-- Close the insertion:
Buffer(Output_Object, '}');
when ARM_Output.None =>
Buffer(Output_Object, ']');
Buffer(Output_Object, '}');
when ARM_Output.Both =>
null;
end case;
else -- Both can't get here.
case Output_Object.Change is
when ARM_Output.Insertion =>
Buffer(Output_Object, '}');
when ARM_Output.Deletion =>
Buffer(Output_Object, ']');
when ARM_Output.None =>
null;
when ARM_Output.Both =>
Buffer(Output_Object, ']');
Buffer(Output_Object, '}');
end case;
case Format.Change is
-- Note: Version is not used.
when ARM_Output.Insertion =>
Buffer(Output_Object, '{');
when ARM_Output.Deletion =>
Buffer(Output_Object, '[');
when ARM_Output.None =>
null;
when ARM_Output.Both =>
Buffer(Output_Object, '{');
Buffer(Output_Object, '[');
end case;
end if;
Output_Object.Change := Format.Change;
end if;
if ARM_Output."/=" (Format.Font, Output_Object.Font) then
case Format.Font is
when ARM_Output.Default => null;
when ARM_Output.Fixed =>
Buffer (Output_Object, "@fc<");
when ARM_Output.Roman =>
Buffer (Output_Object, "@ft<");
when ARM_Output.Swiss =>
Buffer (Output_Object, "@fa<");
end case;
Output_Object.Font := Format.Font;
end if;
if Format.Location /= Output_Object.Location then
case Format.Location is
when ARM_Output.Superscript =>
--Buffer (Output_Object, "@+<");
null; -- Corrigendum doesn't support this.
when ARM_Output.Subscript =>
--Buffer (Output_Object, "@+<");
null; -- Corrigendum doesn't support this.
when ARM_Output.Normal =>
null;
end case;
Output_Object.Location := Format.Location;
end if;
if Format.Size /= Output_Object.Size then
if Format.Size < 0 then
Buffer (Output_Object, "@s" & Character'Val(10+Format.Size+Character'Pos('0')) & '<');
else
Buffer (Output_Object, "@s1" & Character'Val(Format.Size+Character'Pos('0')) & '<');
end if;
Output_Object.Size := Format.Size;
end if;
if Format.Italic and (not Output_Object.Is_Italic) then
Buffer (Output_Object, "@i<");
Output_Object.Is_Italic := True;
end if;
if Format.Bold and (not Output_Object.Is_Bold) then
Buffer (Output_Object, "@b<");
Output_Object.Is_Bold := True;
end if;
end Text_Format;
procedure Clause_Reference (Output_Object : in out Corr_Output_Type;
Text : in String;
Clause_Number : in String) is
-- Generate a reference to a clause in the standard. The text of
-- the reference is "Text", and the number of the clause is
-- Clause_Number. For hyperlinked formats, this should generate
-- a link; for other formats, the text alone is generated.
begin
Ordinary_Text (Output_Object, Text); -- Nothing special in this format.
end Clause_Reference;
procedure Index_Target (Output_Object : in out Corr_Output_Type;
Index_Key : in Natural) is
-- Generate a index target. This marks the location where an index
-- reference occurs. Index_Key names the index item involved.
-- For hyperlinked formats, this should generate a link target;
-- for other formats, nothing is generated.
begin
if not Output_Object.Is_Valid then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not valid object");
end if;
if not Output_Object.Is_In_Paragraph then
Ada.Exceptions.Raise_Exception (ARM_Output.Not_Valid_Error'Identity,
"Not in paragraph");
end if;
null; -- Nothing to do for plain text.
end Index_Target;
procedure Index_Reference (Output_Object : in out Corr_Output_Type;
Text : in String;
Index_Key : in Natural;
Clause_Number : in String) is
-- Generate a reference to an index target in the standard. The text
-- of the reference is "Text", and Index_Key and Clause_Number denotes
-- the target. For hyperlinked formats, this should generate
-- a link; for other formats, the text alone is generated.
begin
Ordinary_Text (Output_Object, Text); -- Nothing special in this format.
end Index_Reference;
procedure DR_Reference (Output_Object : in out Corr_Output_Type;
Text : in String;
DR_Number : in String) is
-- Generate a reference to an DR from the standard. The text
-- of the reference is "Text", and DR_Number denotes
-- the target. For hyperlinked formats, this should generate
-- a link; for other formats, the text alone is generated.
begin
Ordinary_Text (Output_Object, Text); -- Nothing special in this format.
end DR_Reference;
procedure AI_Reference (Output_Object : in out Corr_Output_Type;
Text : in String;
AI_Number : in String) is
-- Generate a reference to an AI from the standard. The text
-- of the reference is "Text", and AI_Number denotes
-- the target (in unfolded format). For hyperlinked formats, this
-- should generate a link; for other formats, the text alone is
-- generated.
begin
Ordinary_Text (Output_Object, Text); -- Nothing special in this format.
end AI_Reference;
procedure Local_Target (Output_Object : in out Corr_Output_Type;
Text : in String;
Target : in String) is
-- Generate a local target. This marks the potential target of local
-- links identified by "Target". Text is the text of the target.
-- For hyperlinked formats, this should generate a link target;
-- for other formats, only the text is generated.
begin
Ordinary_Text (Output_Object, Text); -- Nothing special in this format.
end Local_Target;
procedure Local_Link (Output_Object : in out Corr_Output_Type;
Text : in String;
Target : in String;
Clause_Number : in String) is
-- Generate a local link to the target and clause given.
-- Text is the text of the link.
-- For hyperlinked formats, this should generate a link;
-- for other formats, only the text is generated.
begin
Ordinary_Text (Output_Object, Text); -- Nothing special in this format.
end Local_Link;
procedure Local_Link_Start (Output_Object : in out Corr_Output_Type;
Target : in String;
Clause_Number : in String) is
-- Generate a local link to the target and clause given.
-- The link will surround text until Local_Link_End is called.
-- Local_Link_End must be called before this routine can be used again.
-- For hyperlinked formats, this should generate a link;
-- for other formats, only the text is generated.
begin
null; -- No link, nothing to do.
end Local_Link_Start;
procedure Local_Link_End (Output_Object : in out Corr_Output_Type;
Target : in String;
Clause_Number : in String) is
-- End a local link for the target and clause given.
-- This must be in the same paragraph as the Local_Link_Start.
-- For hyperlinked formats, this should generate a link;
-- for other formats, only the text is generated.
begin
null; -- No link, nothing to do.
end Local_Link_End;
procedure URL_Link (Output_Object : in out Corr_Output_Type;
Text : in String;
URL : in String) is
-- Generate a link to the URL given.
-- Text is the text of the link.
-- For hyperlinked formats, this should generate a link;
-- for other formats, only the text is generated.
begin
Ordinary_Text (Output_Object, Text); -- Nothing special in this format.
end URL_Link;
procedure Picture (Output_Object : in out Corr_Output_Type;
Name : in String;
Descr : in String;
Alignment : in ARM_Output.Picture_Alignment;
Height, Width : in Natural;
Border : in ARM_Output.Border_Kind) is
-- Generate a picture.
-- Name is the (simple) file name of the picture; Descr is a
-- descriptive name for the picture (it will appear in some web
-- browsers).
-- We assume that it is a .GIF or .JPG and that it will be present
-- in the same directory as the input files and the same directory as
-- the .HTML output files.
-- Alignment specifies the picture alignment.
-- Height and Width specify the picture size in pixels.
-- Border specifies the kind of border.
begin
Ordinary_Text (Output_Object, "[Picture: " & Name &
" - " & Descr & "]");
end Picture;
end ARM_Corr;
|
[
{
"context": "-- Copyright 2017-2021 Bartek thindil Jasicki\n--\n-- This file is part of Steam Sky.\n--\n-- ",
"end": 48,
"score": 0.9998524785041809,
"start": 26,
"tag": "NAME",
"value": "Bartek thindil Jasicki"
}
] |
src/ships-upgrade.adb
|
thindil/steamsky
| 80 |
-- Copyright 2017-2021 Bartek thindil Jasicki
--
-- This file is part of Steam Sky.
--
-- Steam Sky 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.
--
-- Steam Sky 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 Steam Sky. If not, see <http://www.gnu.org/licenses/>.
with Messages; use Messages;
with ShipModules; use ShipModules;
with Ships.Cargo; use Ships.Cargo;
with Ships.Crew; use Ships.Crew;
with Crew.Inventory; use Crew.Inventory;
with Config; use Config;
package body Ships.Upgrade is
procedure StartUpgrading
(ModuleIndex: Modules_Container.Extended_Index; UpgradeType: Positive) is
MaxValue, UpgradeProgress: Natural;
UpgradeAction: Ship_Upgrade;
begin
if Player_Ship.Modules(ModuleIndex).Durability = 0 and
UpgradeType /= 3 then
raise Ship_Upgrade_Error
with "You can't upgrade " &
To_String(Player_Ship.Modules(ModuleIndex).Name) &
" because it's destroyed.";
end if;
case UpgradeType is
when 1 => -- Upgrade durability
MaxValue :=
Natural
(Float
(Modules_List(Player_Ship.Modules(ModuleIndex).Proto_Index)
.Durability) *
1.5);
if Player_Ship.Modules(ModuleIndex).Max_Durability = MaxValue then
raise Ship_Upgrade_Error
with "You can't further improve the durability of " &
To_String(Player_Ship.Modules(ModuleIndex).Name) & ".";
end if;
UpgradeAction := DURABILITY;
UpgradeProgress :=
Modules_List(Player_Ship.Modules(ModuleIndex).Proto_Index)
.Durability;
when 2 => -- Upgrade various max value of selected module
MaxValue :=
Natural
(Float
(Modules_List(Player_Ship.Modules(ModuleIndex).Proto_Index)
.MaxValue) *
1.5);
case Modules_List(Player_Ship.Modules(ModuleIndex).Proto_Index)
.MType is
when ENGINE =>
if Player_Ship.Modules(ModuleIndex).Power = MaxValue then
raise Ship_Upgrade_Error
with "You can't further improve the power of " &
To_String(Player_Ship.Modules(ModuleIndex).Name) & ".";
end if;
UpgradeProgress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules(ModuleIndex).Proto_Index)
.MaxValue /
20) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when CABIN =>
if Player_Ship.Modules(ModuleIndex).Quality = MaxValue then
raise Ship_Upgrade_Error
with "You can't further improve the quality of " &
To_String(Player_Ship.Modules(ModuleIndex).Name) & ".";
end if;
UpgradeProgress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules(ModuleIndex).Proto_Index)
.MaxValue) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when GUN | BATTERING_RAM =>
declare
Damage: constant Positive :=
(if Player_Ship.Modules(ModuleIndex).M_Type = GUN then
Player_Ship.Modules(ModuleIndex).Damage
else Player_Ship.Modules(ModuleIndex).Damage2);
begin
if Damage = MaxValue then
raise Ship_Upgrade_Error
with "You can't further improve the damage of " &
To_String(Player_Ship.Modules(ModuleIndex).Name) &
".";
end if;
end;
UpgradeProgress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules(ModuleIndex).Proto_Index)
.MaxValue *
2) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when HULL =>
if Player_Ship.Modules(ModuleIndex).Max_Modules =
MaxValue then
raise Ship_Upgrade_Error
with "You can't further enlarge the size of" &
To_String(Player_Ship.Modules(ModuleIndex).Name) & ".";
end if;
UpgradeProgress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules(ModuleIndex).Proto_Index)
.MaxValue *
40) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when HARPOON_GUN =>
if Player_Ship.Modules(ModuleIndex).Duration = MaxValue then
raise Ship_Upgrade_Error
with "You can't further improve the strength of " &
To_String(Player_Ship.Modules(ModuleIndex).Name) & ".";
end if;
UpgradeProgress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules(ModuleIndex).Proto_Index)
.MaxValue *
10) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when others =>
raise Ship_Upgrade_Error
with To_String(Player_Ship.Modules(ModuleIndex).Name) &
" can't be upgraded in that way.";
end case;
UpgradeAction := MAX_VALUE;
when 3 => -- Upgrade various value of selected module
case Modules_List(Player_Ship.Modules(ModuleIndex).Proto_Index)
.MType is
when ENGINE =>
MaxValue :=
Natural
(Float
(Modules_List
(Player_Ship.Modules(ModuleIndex).Proto_Index)
.Value) /
2.0);
if MaxValue < 1 then
MaxValue := 1;
end if;
if Player_Ship.Modules(ModuleIndex).Fuel_Usage =
MaxValue then
raise Ship_Upgrade_Error
with "You can't further reduce the fuel usage of " &
To_String(Player_Ship.Modules(ModuleIndex).Name) & ".";
end if;
UpgradeProgress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules(ModuleIndex).Proto_Index)
.Value *
20) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when others =>
raise Ship_Upgrade_Error
with To_String(Player_Ship.Modules(ModuleIndex).Name) &
" can't be upgraded in that way.";
end case;
UpgradeAction := VALUE;
when 4 => -- Continue previous upgrade
if Player_Ship.Modules(ModuleIndex).Upgrade_Action = NONE then
raise Ship_Upgrade_Error
with To_String(Player_Ship.Modules(ModuleIndex).Name) &
" doesn't have any upgrade set yet.";
end if;
UpgradeAction := Player_Ship.Modules(ModuleIndex).Upgrade_Action;
when others =>
return;
end case;
declare
MaterialIndex: constant Inventory_Container.Extended_Index :=
FindItem
(Inventory => Player_Ship.Cargo,
ItemType =>
Modules_List(Player_Ship.Modules(ModuleIndex).Proto_Index)
.RepairMaterial);
begin
if MaterialIndex = 0 then
Materials_Loop :
for Item of Items_List loop
if Item.IType =
Modules_List(Player_Ship.Modules(ModuleIndex).Proto_Index)
.RepairMaterial then
raise Ship_Upgrade_Error
with "You don't have the " & To_String(Item.Name) &
" to upgrade " &
To_String(Player_Ship.Modules(ModuleIndex).Name) & ".";
end if;
end loop Materials_Loop;
end if;
end;
Player_Ship.Upgrade_Module := ModuleIndex;
if Player_Ship.Modules(ModuleIndex).Upgrade_Action /= UpgradeAction then
Player_Ship.Modules(ModuleIndex).Upgrade_Progress :=
Integer
(Float(UpgradeProgress) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
if Player_Ship.Modules(ModuleIndex).Upgrade_Progress = 0 then
Player_Ship.Modules(ModuleIndex).Upgrade_Progress := 1;
end if;
Player_Ship.Modules(ModuleIndex).Upgrade_Action := UpgradeAction;
end if;
AddMessage
("You set the " & To_String(Player_Ship.Modules(ModuleIndex).Name) &
" to upgrade.",
OrderMessage);
end StartUpgrading;
procedure UpgradeShip(Minutes: Positive) is
ResultAmount, UpgradePoints, UpgradeProgress, MaterialCost,
MaxValue: Natural := 0;
UpgradeValue: Positive;
WeightGain: Natural;
Times: Natural := 0;
OrderTime, CurrentMinutes: Integer;
UpgradedModule: Module_Data;
UpgradeMaterial, UpgradeTools: Inventory_Container.Extended_Index;
WorkerIndex: Crew_Container.Extended_Index;
procedure FindMatsAndTools is
begin
UpgradeTools := FindTools(WorkerIndex, Repair_Tools, Upgrading);
UpgradeMaterial :=
FindItem
(Inventory => Player_Ship.Cargo,
ItemType =>
Modules_List(UpgradedModule.Proto_Index).RepairMaterial);
end FindMatsAndTools;
procedure MaxUpgradeReached(MessageText: String) is
begin
AddMessage
(MessageText & To_String(UpgradedModule.Name) & ".", OrderMessage,
YELLOW);
UpgradedModule.Upgrade_Progress := 0;
UpgradedModule.Upgrade_Action := NONE;
Player_Ship.Modules(Player_Ship.Upgrade_Module) := UpgradedModule;
Player_Ship.Upgrade_Module := 0;
GiveOrders(Player_Ship, WorkerIndex, Rest);
end MaxUpgradeReached;
begin
if Player_Ship.Upgrade_Module = 0 then
return;
end if;
WorkerIndex := FindMember(Upgrading);
if WorkerIndex = 0 then
return;
end if;
UpgradedModule := Player_Ship.Modules(Player_Ship.Upgrade_Module);
CurrentMinutes := Minutes;
OrderTime := Player_Ship.Crew(WorkerIndex).OrderTime;
if UpgradedModule.Durability = 0 then
AddMessage
(To_String(Player_Ship.Crew(WorkerIndex).Name) &
" stops upgrading " & To_String(UpgradedModule.Name) &
" because it's destroyed.",
OrderMessage, RED);
GiveOrders(Player_Ship, WorkerIndex, Rest);
return;
end if;
Count_Time_Loop :
while CurrentMinutes > 0 loop
if CurrentMinutes >= OrderTime then
CurrentMinutes := CurrentMinutes - OrderTime;
Times := Times + 1;
OrderTime := 15;
else
OrderTime := OrderTime - CurrentMinutes;
CurrentMinutes := 0;
end if;
end loop Count_Time_Loop;
Player_Ship.Crew(WorkerIndex).OrderTime := OrderTime;
if Times = 0 then
return;
end if;
UpgradePoints :=
((GetSkillLevel
(Player_Ship.Crew(WorkerIndex),
Modules_List(UpgradedModule.Proto_Index).RepairSkill) /
10) *
Times) +
Times;
Upgrade_Loop :
while UpgradePoints > 0 and UpgradedModule.Upgrade_Progress > 0 loop
ResultAmount := UpgradePoints;
if ResultAmount > UpgradedModule.Upgrade_Progress then
ResultAmount := UpgradedModule.Upgrade_Progress;
end if;
FindMatsAndTools;
if UpgradeMaterial = 0 then
AddMessage
("You don't have enough materials to upgrade " &
To_String(UpgradedModule.Name),
OrderMessage, RED);
GiveOrders(Player_Ship, WorkerIndex, Rest);
exit Upgrade_Loop;
end if;
if UpgradeTools = 0 then
AddMessage
("You don't have the repair tool to upgrade " &
To_String(UpgradedModule.Name),
OrderMessage, RED);
GiveOrders(Player_Ship, WorkerIndex, Rest);
exit Upgrade_Loop;
end if;
if UpgradedModule.Upgrade_Action = MAX_VALUE then
case UpgradedModule.M_Type is
when ENGINE =>
if ResultAmount >
Player_Ship.Cargo(UpgradeMaterial).Amount * 200 then
ResultAmount :=
Player_Ship.Cargo(UpgradeMaterial).Amount * 200;
end if;
MaterialCost := ResultAmount / 200;
when CABIN =>
if ResultAmount >
Player_Ship.Cargo(UpgradeMaterial).Amount * 20 then
ResultAmount :=
Player_Ship.Cargo(UpgradeMaterial).Amount * 20;
end if;
MaterialCost := ResultAmount / 20;
when GUN | BATTERING_RAM | HARPOON_GUN =>
if ResultAmount >
Player_Ship.Cargo(UpgradeMaterial).Amount * 10 then
ResultAmount :=
Player_Ship.Cargo(UpgradeMaterial).Amount * 10;
end if;
MaterialCost := ResultAmount / 10;
when HULL =>
if ResultAmount >
Player_Ship.Cargo(UpgradeMaterial).Amount * 2 then
ResultAmount :=
Player_Ship.Cargo(UpgradeMaterial).Amount * 2;
end if;
MaterialCost := ResultAmount / 2;
when others =>
if ResultAmount >
Player_Ship.Cargo(UpgradeMaterial).Amount then
ResultAmount := Player_Ship.Cargo(UpgradeMaterial).Amount;
end if;
MaterialCost := ResultAmount;
end case;
elsif UpgradedModule.Upgrade_Action = DURABILITY then
if ResultAmount >
Player_Ship.Cargo(UpgradeMaterial).Amount * 10 then
ResultAmount := Player_Ship.Cargo(UpgradeMaterial).Amount * 10;
end if;
MaterialCost := ResultAmount / 10;
else
if ResultAmount > Player_Ship.Cargo(UpgradeMaterial).Amount then
ResultAmount := Player_Ship.Cargo(UpgradeMaterial).Amount;
end if;
MaterialCost := ResultAmount;
end if;
if MaterialCost < Times then
MaterialCost := Times;
end if;
if MaterialCost > Player_Ship.Cargo(UpgradeMaterial).Amount then
MaterialCost := Player_Ship.Cargo(UpgradeMaterial).Amount;
end if;
GainExp
(ResultAmount, Modules_List(UpgradedModule.Proto_Index).RepairSkill,
WorkerIndex);
DamageItem
(Player_Ship.Crew(WorkerIndex).Inventory, UpgradeTools,
GetSkillLevel
(Player_Ship.Crew(WorkerIndex),
Modules_List(UpgradedModule.Proto_Index).RepairSkill),
WorkerIndex);
FindMatsAndTools;
UpgradeProgress := UpgradedModule.Upgrade_Progress - ResultAmount;
UpgradePoints := UpgradePoints - ResultAmount;
UpdateCargo
(Player_Ship, Player_Ship.Cargo.Element(UpgradeMaterial).ProtoIndex,
(0 - MaterialCost));
if UpgradeProgress = 0 then
WeightGain :=
Modules_List(UpgradedModule.Proto_Index).Weight /
Modules_List(UpgradedModule.Proto_Index).Durability;
if WeightGain < 1 then
WeightGain := 1;
end if;
case UpgradedModule.Upgrade_Action is
when DURABILITY =>
if
(Modules_List(UpgradedModule.Proto_Index).Durability /
20) >
0 then
UpgradedModule.Max_Durability :=
UpgradedModule.Max_Durability +
(Modules_List(UpgradedModule.Proto_Index).Durability /
20);
UpgradedModule.Weight :=
UpgradedModule.Weight +
(WeightGain *
(Modules_List(UpgradedModule.Proto_Index).Durability /
20));
else
UpgradedModule.Max_Durability :=
UpgradedModule.Max_Durability + 1;
UpgradedModule.Weight :=
UpgradedModule.Weight + WeightGain;
end if;
AddMessage
(To_String(Player_Ship.Crew(WorkerIndex).Name) &
" has upgraded the durability of " &
To_String(UpgradedModule.Name) & ".",
OrderMessage, GREEN);
MaxValue :=
Positive
(Float
(Modules_List(UpgradedModule.Proto_Index)
.Durability) *
1.5);
if UpgradedModule.Max_Durability = MaxValue then
MaxUpgradeReached
("You've reached the maximum durability for ");
return;
else
UpgradedModule.Upgrade_Progress :=
Modules_List(UpgradedModule.Proto_Index).Durability;
end if;
when MAX_VALUE =>
case UpgradedModule.M_Type is
when HULL =>
WeightGain := WeightGain * 10;
UpgradedModule.Max_Modules :=
UpgradedModule.Max_Modules + 1;
UpgradeValue := UpgradedModule.Max_Modules;
when ENGINE =>
WeightGain :=
(Modules_List(UpgradedModule.Proto_Index).MaxValue /
40);
UpgradedModule.Power :=
UpgradedModule.Power +
(Modules_List(UpgradedModule.Proto_Index).MaxValue /
20);
UpgradeValue := UpgradedModule.Power;
when CABIN =>
UpgradedModule.Quality :=
UpgradedModule.Quality +
(Modules_List(UpgradedModule.Proto_Index).MaxValue /
20);
UpgradeValue := UpgradedModule.Quality;
when GUN =>
if
(Modules_List(UpgradedModule.Proto_Index).MaxValue /
20) >
0 then
UpgradedModule.Damage :=
UpgradedModule.Damage +
(Modules_List(UpgradedModule.Proto_Index)
.MaxValue /
20);
else
UpgradedModule.Damage := UpgradedModule.Damage + 1;
end if;
UpgradeValue := UpgradedModule.Damage;
when BATTERING_RAM =>
if
(Modules_List(UpgradedModule.Proto_Index).MaxValue /
20) >
0 then
UpgradedModule.Damage2 :=
UpgradedModule.Damage2 +
(Modules_List(UpgradedModule.Proto_Index)
.MaxValue /
20);
else
UpgradedModule.Damage2 :=
UpgradedModule.Damage2 + 1;
end if;
UpgradeValue := UpgradedModule.Damage2;
when HARPOON_GUN =>
if
(Modules_List(UpgradedModule.Proto_Index).MaxValue /
20) >
0 then
UpgradedModule.Duration :=
UpgradedModule.Duration +
(Modules_List(UpgradedModule.Proto_Index)
.MaxValue /
20);
else
UpgradedModule.Duration :=
UpgradedModule.Duration + 1;
end if;
UpgradeValue := UpgradedModule.Duration;
when others =>
null;
end case;
UpgradedModule.Weight := UpgradedModule.Weight + WeightGain;
AddMessage
(To_String(Player_Ship.Crew(WorkerIndex).Name) &
" has upgraded " & To_String(UpgradedModule.Name) & ".",
OrderMessage, GREEN);
MaxValue :=
Positive
(Float
(Modules_List(UpgradedModule.Proto_Index).MaxValue) *
1.5);
if UpgradeValue >= MaxValue then
MaxUpgradeReached
("You've reached the maximum upgrade for ");
return;
else
case Modules_List(UpgradedModule.Proto_Index).MType is
when ENGINE =>
UpgradedModule.Upgrade_Progress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules
(Player_Ship.Upgrade_Module)
.Proto_Index)
.MaxValue /
20) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when HARPOON_GUN =>
UpgradedModule.Upgrade_Progress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules
(Player_Ship.Upgrade_Module)
.Proto_Index)
.MaxValue *
10) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when GUN | BATTERING_RAM =>
UpgradedModule.Upgrade_Progress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules
(Player_Ship.Upgrade_Module)
.Proto_Index)
.MaxValue *
2) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when CABIN =>
UpgradedModule.Upgrade_Progress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules
(Player_Ship.Upgrade_Module)
.Proto_Index)
.MaxValue) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when HULL =>
UpgradedModule.Upgrade_Progress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules
(Player_Ship.Upgrade_Module)
.Proto_Index)
.MaxValue *
40) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when others =>
null;
end case;
if UpgradedModule.Upgrade_Progress = 0 then
UpgradedModule.Upgrade_Progress := 1;
end if;
end if;
when VALUE =>
if UpgradedModule.M_Type = ENGINE then
WeightGain := WeightGain * 10;
UpgradedModule.Fuel_Usage :=
UpgradedModule.Fuel_Usage - 1;
UpgradeValue := UpgradedModule.Fuel_Usage;
end if;
UpgradedModule.Weight := UpgradedModule.Weight + WeightGain;
AddMessage
(To_String(Player_Ship.Crew(WorkerIndex).Name) &
" has upgraded " & To_String(UpgradedModule.Name) & ".",
OrderMessage, GREEN);
MaxValue :=
Natural
(Float(Modules_List(UpgradedModule.Proto_Index).Value) /
2.0);
if MaxValue < 1 then
MaxValue := 1;
end if;
if UpgradeValue = MaxValue then
MaxUpgradeReached
("You've reached the maximum upgrade for ");
return;
else
case Modules_List(UpgradedModule.Proto_Index).MType is
when ENGINE =>
UpgradedModule.Upgrade_Progress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules
(Player_Ship.Upgrade_Module)
.Proto_Index)
.Value *
20) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
if UpgradedModule.Upgrade_Progress = 0 then
UpgradedModule.Upgrade_Progress := 1;
end if;
when others =>
null;
end case;
end if;
when others =>
null;
end case;
else
UpgradedModule.Upgrade_Progress := UpgradeProgress;
end if;
end loop Upgrade_Loop;
Player_Ship.Modules(Player_Ship.Upgrade_Module) := UpgradedModule;
end UpgradeShip;
end Ships.Upgrade;
|
6199
|
-- Copyright 2017-2021 <NAME>
--
-- This file is part of Steam Sky.
--
-- Steam Sky 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.
--
-- Steam Sky 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 Steam Sky. If not, see <http://www.gnu.org/licenses/>.
with Messages; use Messages;
with ShipModules; use ShipModules;
with Ships.Cargo; use Ships.Cargo;
with Ships.Crew; use Ships.Crew;
with Crew.Inventory; use Crew.Inventory;
with Config; use Config;
package body Ships.Upgrade is
procedure StartUpgrading
(ModuleIndex: Modules_Container.Extended_Index; UpgradeType: Positive) is
MaxValue, UpgradeProgress: Natural;
UpgradeAction: Ship_Upgrade;
begin
if Player_Ship.Modules(ModuleIndex).Durability = 0 and
UpgradeType /= 3 then
raise Ship_Upgrade_Error
with "You can't upgrade " &
To_String(Player_Ship.Modules(ModuleIndex).Name) &
" because it's destroyed.";
end if;
case UpgradeType is
when 1 => -- Upgrade durability
MaxValue :=
Natural
(Float
(Modules_List(Player_Ship.Modules(ModuleIndex).Proto_Index)
.Durability) *
1.5);
if Player_Ship.Modules(ModuleIndex).Max_Durability = MaxValue then
raise Ship_Upgrade_Error
with "You can't further improve the durability of " &
To_String(Player_Ship.Modules(ModuleIndex).Name) & ".";
end if;
UpgradeAction := DURABILITY;
UpgradeProgress :=
Modules_List(Player_Ship.Modules(ModuleIndex).Proto_Index)
.Durability;
when 2 => -- Upgrade various max value of selected module
MaxValue :=
Natural
(Float
(Modules_List(Player_Ship.Modules(ModuleIndex).Proto_Index)
.MaxValue) *
1.5);
case Modules_List(Player_Ship.Modules(ModuleIndex).Proto_Index)
.MType is
when ENGINE =>
if Player_Ship.Modules(ModuleIndex).Power = MaxValue then
raise Ship_Upgrade_Error
with "You can't further improve the power of " &
To_String(Player_Ship.Modules(ModuleIndex).Name) & ".";
end if;
UpgradeProgress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules(ModuleIndex).Proto_Index)
.MaxValue /
20) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when CABIN =>
if Player_Ship.Modules(ModuleIndex).Quality = MaxValue then
raise Ship_Upgrade_Error
with "You can't further improve the quality of " &
To_String(Player_Ship.Modules(ModuleIndex).Name) & ".";
end if;
UpgradeProgress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules(ModuleIndex).Proto_Index)
.MaxValue) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when GUN | BATTERING_RAM =>
declare
Damage: constant Positive :=
(if Player_Ship.Modules(ModuleIndex).M_Type = GUN then
Player_Ship.Modules(ModuleIndex).Damage
else Player_Ship.Modules(ModuleIndex).Damage2);
begin
if Damage = MaxValue then
raise Ship_Upgrade_Error
with "You can't further improve the damage of " &
To_String(Player_Ship.Modules(ModuleIndex).Name) &
".";
end if;
end;
UpgradeProgress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules(ModuleIndex).Proto_Index)
.MaxValue *
2) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when HULL =>
if Player_Ship.Modules(ModuleIndex).Max_Modules =
MaxValue then
raise Ship_Upgrade_Error
with "You can't further enlarge the size of" &
To_String(Player_Ship.Modules(ModuleIndex).Name) & ".";
end if;
UpgradeProgress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules(ModuleIndex).Proto_Index)
.MaxValue *
40) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when HARPOON_GUN =>
if Player_Ship.Modules(ModuleIndex).Duration = MaxValue then
raise Ship_Upgrade_Error
with "You can't further improve the strength of " &
To_String(Player_Ship.Modules(ModuleIndex).Name) & ".";
end if;
UpgradeProgress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules(ModuleIndex).Proto_Index)
.MaxValue *
10) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when others =>
raise Ship_Upgrade_Error
with To_String(Player_Ship.Modules(ModuleIndex).Name) &
" can't be upgraded in that way.";
end case;
UpgradeAction := MAX_VALUE;
when 3 => -- Upgrade various value of selected module
case Modules_List(Player_Ship.Modules(ModuleIndex).Proto_Index)
.MType is
when ENGINE =>
MaxValue :=
Natural
(Float
(Modules_List
(Player_Ship.Modules(ModuleIndex).Proto_Index)
.Value) /
2.0);
if MaxValue < 1 then
MaxValue := 1;
end if;
if Player_Ship.Modules(ModuleIndex).Fuel_Usage =
MaxValue then
raise Ship_Upgrade_Error
with "You can't further reduce the fuel usage of " &
To_String(Player_Ship.Modules(ModuleIndex).Name) & ".";
end if;
UpgradeProgress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules(ModuleIndex).Proto_Index)
.Value *
20) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when others =>
raise Ship_Upgrade_Error
with To_String(Player_Ship.Modules(ModuleIndex).Name) &
" can't be upgraded in that way.";
end case;
UpgradeAction := VALUE;
when 4 => -- Continue previous upgrade
if Player_Ship.Modules(ModuleIndex).Upgrade_Action = NONE then
raise Ship_Upgrade_Error
with To_String(Player_Ship.Modules(ModuleIndex).Name) &
" doesn't have any upgrade set yet.";
end if;
UpgradeAction := Player_Ship.Modules(ModuleIndex).Upgrade_Action;
when others =>
return;
end case;
declare
MaterialIndex: constant Inventory_Container.Extended_Index :=
FindItem
(Inventory => Player_Ship.Cargo,
ItemType =>
Modules_List(Player_Ship.Modules(ModuleIndex).Proto_Index)
.RepairMaterial);
begin
if MaterialIndex = 0 then
Materials_Loop :
for Item of Items_List loop
if Item.IType =
Modules_List(Player_Ship.Modules(ModuleIndex).Proto_Index)
.RepairMaterial then
raise Ship_Upgrade_Error
with "You don't have the " & To_String(Item.Name) &
" to upgrade " &
To_String(Player_Ship.Modules(ModuleIndex).Name) & ".";
end if;
end loop Materials_Loop;
end if;
end;
Player_Ship.Upgrade_Module := ModuleIndex;
if Player_Ship.Modules(ModuleIndex).Upgrade_Action /= UpgradeAction then
Player_Ship.Modules(ModuleIndex).Upgrade_Progress :=
Integer
(Float(UpgradeProgress) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
if Player_Ship.Modules(ModuleIndex).Upgrade_Progress = 0 then
Player_Ship.Modules(ModuleIndex).Upgrade_Progress := 1;
end if;
Player_Ship.Modules(ModuleIndex).Upgrade_Action := UpgradeAction;
end if;
AddMessage
("You set the " & To_String(Player_Ship.Modules(ModuleIndex).Name) &
" to upgrade.",
OrderMessage);
end StartUpgrading;
procedure UpgradeShip(Minutes: Positive) is
ResultAmount, UpgradePoints, UpgradeProgress, MaterialCost,
MaxValue: Natural := 0;
UpgradeValue: Positive;
WeightGain: Natural;
Times: Natural := 0;
OrderTime, CurrentMinutes: Integer;
UpgradedModule: Module_Data;
UpgradeMaterial, UpgradeTools: Inventory_Container.Extended_Index;
WorkerIndex: Crew_Container.Extended_Index;
procedure FindMatsAndTools is
begin
UpgradeTools := FindTools(WorkerIndex, Repair_Tools, Upgrading);
UpgradeMaterial :=
FindItem
(Inventory => Player_Ship.Cargo,
ItemType =>
Modules_List(UpgradedModule.Proto_Index).RepairMaterial);
end FindMatsAndTools;
procedure MaxUpgradeReached(MessageText: String) is
begin
AddMessage
(MessageText & To_String(UpgradedModule.Name) & ".", OrderMessage,
YELLOW);
UpgradedModule.Upgrade_Progress := 0;
UpgradedModule.Upgrade_Action := NONE;
Player_Ship.Modules(Player_Ship.Upgrade_Module) := UpgradedModule;
Player_Ship.Upgrade_Module := 0;
GiveOrders(Player_Ship, WorkerIndex, Rest);
end MaxUpgradeReached;
begin
if Player_Ship.Upgrade_Module = 0 then
return;
end if;
WorkerIndex := FindMember(Upgrading);
if WorkerIndex = 0 then
return;
end if;
UpgradedModule := Player_Ship.Modules(Player_Ship.Upgrade_Module);
CurrentMinutes := Minutes;
OrderTime := Player_Ship.Crew(WorkerIndex).OrderTime;
if UpgradedModule.Durability = 0 then
AddMessage
(To_String(Player_Ship.Crew(WorkerIndex).Name) &
" stops upgrading " & To_String(UpgradedModule.Name) &
" because it's destroyed.",
OrderMessage, RED);
GiveOrders(Player_Ship, WorkerIndex, Rest);
return;
end if;
Count_Time_Loop :
while CurrentMinutes > 0 loop
if CurrentMinutes >= OrderTime then
CurrentMinutes := CurrentMinutes - OrderTime;
Times := Times + 1;
OrderTime := 15;
else
OrderTime := OrderTime - CurrentMinutes;
CurrentMinutes := 0;
end if;
end loop Count_Time_Loop;
Player_Ship.Crew(WorkerIndex).OrderTime := OrderTime;
if Times = 0 then
return;
end if;
UpgradePoints :=
((GetSkillLevel
(Player_Ship.Crew(WorkerIndex),
Modules_List(UpgradedModule.Proto_Index).RepairSkill) /
10) *
Times) +
Times;
Upgrade_Loop :
while UpgradePoints > 0 and UpgradedModule.Upgrade_Progress > 0 loop
ResultAmount := UpgradePoints;
if ResultAmount > UpgradedModule.Upgrade_Progress then
ResultAmount := UpgradedModule.Upgrade_Progress;
end if;
FindMatsAndTools;
if UpgradeMaterial = 0 then
AddMessage
("You don't have enough materials to upgrade " &
To_String(UpgradedModule.Name),
OrderMessage, RED);
GiveOrders(Player_Ship, WorkerIndex, Rest);
exit Upgrade_Loop;
end if;
if UpgradeTools = 0 then
AddMessage
("You don't have the repair tool to upgrade " &
To_String(UpgradedModule.Name),
OrderMessage, RED);
GiveOrders(Player_Ship, WorkerIndex, Rest);
exit Upgrade_Loop;
end if;
if UpgradedModule.Upgrade_Action = MAX_VALUE then
case UpgradedModule.M_Type is
when ENGINE =>
if ResultAmount >
Player_Ship.Cargo(UpgradeMaterial).Amount * 200 then
ResultAmount :=
Player_Ship.Cargo(UpgradeMaterial).Amount * 200;
end if;
MaterialCost := ResultAmount / 200;
when CABIN =>
if ResultAmount >
Player_Ship.Cargo(UpgradeMaterial).Amount * 20 then
ResultAmount :=
Player_Ship.Cargo(UpgradeMaterial).Amount * 20;
end if;
MaterialCost := ResultAmount / 20;
when GUN | BATTERING_RAM | HARPOON_GUN =>
if ResultAmount >
Player_Ship.Cargo(UpgradeMaterial).Amount * 10 then
ResultAmount :=
Player_Ship.Cargo(UpgradeMaterial).Amount * 10;
end if;
MaterialCost := ResultAmount / 10;
when HULL =>
if ResultAmount >
Player_Ship.Cargo(UpgradeMaterial).Amount * 2 then
ResultAmount :=
Player_Ship.Cargo(UpgradeMaterial).Amount * 2;
end if;
MaterialCost := ResultAmount / 2;
when others =>
if ResultAmount >
Player_Ship.Cargo(UpgradeMaterial).Amount then
ResultAmount := Player_Ship.Cargo(UpgradeMaterial).Amount;
end if;
MaterialCost := ResultAmount;
end case;
elsif UpgradedModule.Upgrade_Action = DURABILITY then
if ResultAmount >
Player_Ship.Cargo(UpgradeMaterial).Amount * 10 then
ResultAmount := Player_Ship.Cargo(UpgradeMaterial).Amount * 10;
end if;
MaterialCost := ResultAmount / 10;
else
if ResultAmount > Player_Ship.Cargo(UpgradeMaterial).Amount then
ResultAmount := Player_Ship.Cargo(UpgradeMaterial).Amount;
end if;
MaterialCost := ResultAmount;
end if;
if MaterialCost < Times then
MaterialCost := Times;
end if;
if MaterialCost > Player_Ship.Cargo(UpgradeMaterial).Amount then
MaterialCost := Player_Ship.Cargo(UpgradeMaterial).Amount;
end if;
GainExp
(ResultAmount, Modules_List(UpgradedModule.Proto_Index).RepairSkill,
WorkerIndex);
DamageItem
(Player_Ship.Crew(WorkerIndex).Inventory, UpgradeTools,
GetSkillLevel
(Player_Ship.Crew(WorkerIndex),
Modules_List(UpgradedModule.Proto_Index).RepairSkill),
WorkerIndex);
FindMatsAndTools;
UpgradeProgress := UpgradedModule.Upgrade_Progress - ResultAmount;
UpgradePoints := UpgradePoints - ResultAmount;
UpdateCargo
(Player_Ship, Player_Ship.Cargo.Element(UpgradeMaterial).ProtoIndex,
(0 - MaterialCost));
if UpgradeProgress = 0 then
WeightGain :=
Modules_List(UpgradedModule.Proto_Index).Weight /
Modules_List(UpgradedModule.Proto_Index).Durability;
if WeightGain < 1 then
WeightGain := 1;
end if;
case UpgradedModule.Upgrade_Action is
when DURABILITY =>
if
(Modules_List(UpgradedModule.Proto_Index).Durability /
20) >
0 then
UpgradedModule.Max_Durability :=
UpgradedModule.Max_Durability +
(Modules_List(UpgradedModule.Proto_Index).Durability /
20);
UpgradedModule.Weight :=
UpgradedModule.Weight +
(WeightGain *
(Modules_List(UpgradedModule.Proto_Index).Durability /
20));
else
UpgradedModule.Max_Durability :=
UpgradedModule.Max_Durability + 1;
UpgradedModule.Weight :=
UpgradedModule.Weight + WeightGain;
end if;
AddMessage
(To_String(Player_Ship.Crew(WorkerIndex).Name) &
" has upgraded the durability of " &
To_String(UpgradedModule.Name) & ".",
OrderMessage, GREEN);
MaxValue :=
Positive
(Float
(Modules_List(UpgradedModule.Proto_Index)
.Durability) *
1.5);
if UpgradedModule.Max_Durability = MaxValue then
MaxUpgradeReached
("You've reached the maximum durability for ");
return;
else
UpgradedModule.Upgrade_Progress :=
Modules_List(UpgradedModule.Proto_Index).Durability;
end if;
when MAX_VALUE =>
case UpgradedModule.M_Type is
when HULL =>
WeightGain := WeightGain * 10;
UpgradedModule.Max_Modules :=
UpgradedModule.Max_Modules + 1;
UpgradeValue := UpgradedModule.Max_Modules;
when ENGINE =>
WeightGain :=
(Modules_List(UpgradedModule.Proto_Index).MaxValue /
40);
UpgradedModule.Power :=
UpgradedModule.Power +
(Modules_List(UpgradedModule.Proto_Index).MaxValue /
20);
UpgradeValue := UpgradedModule.Power;
when CABIN =>
UpgradedModule.Quality :=
UpgradedModule.Quality +
(Modules_List(UpgradedModule.Proto_Index).MaxValue /
20);
UpgradeValue := UpgradedModule.Quality;
when GUN =>
if
(Modules_List(UpgradedModule.Proto_Index).MaxValue /
20) >
0 then
UpgradedModule.Damage :=
UpgradedModule.Damage +
(Modules_List(UpgradedModule.Proto_Index)
.MaxValue /
20);
else
UpgradedModule.Damage := UpgradedModule.Damage + 1;
end if;
UpgradeValue := UpgradedModule.Damage;
when BATTERING_RAM =>
if
(Modules_List(UpgradedModule.Proto_Index).MaxValue /
20) >
0 then
UpgradedModule.Damage2 :=
UpgradedModule.Damage2 +
(Modules_List(UpgradedModule.Proto_Index)
.MaxValue /
20);
else
UpgradedModule.Damage2 :=
UpgradedModule.Damage2 + 1;
end if;
UpgradeValue := UpgradedModule.Damage2;
when HARPOON_GUN =>
if
(Modules_List(UpgradedModule.Proto_Index).MaxValue /
20) >
0 then
UpgradedModule.Duration :=
UpgradedModule.Duration +
(Modules_List(UpgradedModule.Proto_Index)
.MaxValue /
20);
else
UpgradedModule.Duration :=
UpgradedModule.Duration + 1;
end if;
UpgradeValue := UpgradedModule.Duration;
when others =>
null;
end case;
UpgradedModule.Weight := UpgradedModule.Weight + WeightGain;
AddMessage
(To_String(Player_Ship.Crew(WorkerIndex).Name) &
" has upgraded " & To_String(UpgradedModule.Name) & ".",
OrderMessage, GREEN);
MaxValue :=
Positive
(Float
(Modules_List(UpgradedModule.Proto_Index).MaxValue) *
1.5);
if UpgradeValue >= MaxValue then
MaxUpgradeReached
("You've reached the maximum upgrade for ");
return;
else
case Modules_List(UpgradedModule.Proto_Index).MType is
when ENGINE =>
UpgradedModule.Upgrade_Progress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules
(Player_Ship.Upgrade_Module)
.Proto_Index)
.MaxValue /
20) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when HARPOON_GUN =>
UpgradedModule.Upgrade_Progress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules
(Player_Ship.Upgrade_Module)
.Proto_Index)
.MaxValue *
10) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when GUN | BATTERING_RAM =>
UpgradedModule.Upgrade_Progress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules
(Player_Ship.Upgrade_Module)
.Proto_Index)
.MaxValue *
2) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when CABIN =>
UpgradedModule.Upgrade_Progress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules
(Player_Ship.Upgrade_Module)
.Proto_Index)
.MaxValue) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when HULL =>
UpgradedModule.Upgrade_Progress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules
(Player_Ship.Upgrade_Module)
.Proto_Index)
.MaxValue *
40) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when others =>
null;
end case;
if UpgradedModule.Upgrade_Progress = 0 then
UpgradedModule.Upgrade_Progress := 1;
end if;
end if;
when VALUE =>
if UpgradedModule.M_Type = ENGINE then
WeightGain := WeightGain * 10;
UpgradedModule.Fuel_Usage :=
UpgradedModule.Fuel_Usage - 1;
UpgradeValue := UpgradedModule.Fuel_Usage;
end if;
UpgradedModule.Weight := UpgradedModule.Weight + WeightGain;
AddMessage
(To_String(Player_Ship.Crew(WorkerIndex).Name) &
" has upgraded " & To_String(UpgradedModule.Name) & ".",
OrderMessage, GREEN);
MaxValue :=
Natural
(Float(Modules_List(UpgradedModule.Proto_Index).Value) /
2.0);
if MaxValue < 1 then
MaxValue := 1;
end if;
if UpgradeValue = MaxValue then
MaxUpgradeReached
("You've reached the maximum upgrade for ");
return;
else
case Modules_List(UpgradedModule.Proto_Index).MType is
when ENGINE =>
UpgradedModule.Upgrade_Progress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules
(Player_Ship.Upgrade_Module)
.Proto_Index)
.Value *
20) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
if UpgradedModule.Upgrade_Progress = 0 then
UpgradedModule.Upgrade_Progress := 1;
end if;
when others =>
null;
end case;
end if;
when others =>
null;
end case;
else
UpgradedModule.Upgrade_Progress := UpgradeProgress;
end if;
end loop Upgrade_Loop;
Player_Ship.Modules(Player_Ship.Upgrade_Module) := UpgradedModule;
end UpgradeShip;
end Ships.Upgrade;
| true |
-- Copyright 2017-2021 PI:NAME:<NAME>END_PI
--
-- This file is part of Steam Sky.
--
-- Steam Sky 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.
--
-- Steam Sky 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 Steam Sky. If not, see <http://www.gnu.org/licenses/>.
with Messages; use Messages;
with ShipModules; use ShipModules;
with Ships.Cargo; use Ships.Cargo;
with Ships.Crew; use Ships.Crew;
with Crew.Inventory; use Crew.Inventory;
with Config; use Config;
package body Ships.Upgrade is
procedure StartUpgrading
(ModuleIndex: Modules_Container.Extended_Index; UpgradeType: Positive) is
MaxValue, UpgradeProgress: Natural;
UpgradeAction: Ship_Upgrade;
begin
if Player_Ship.Modules(ModuleIndex).Durability = 0 and
UpgradeType /= 3 then
raise Ship_Upgrade_Error
with "You can't upgrade " &
To_String(Player_Ship.Modules(ModuleIndex).Name) &
" because it's destroyed.";
end if;
case UpgradeType is
when 1 => -- Upgrade durability
MaxValue :=
Natural
(Float
(Modules_List(Player_Ship.Modules(ModuleIndex).Proto_Index)
.Durability) *
1.5);
if Player_Ship.Modules(ModuleIndex).Max_Durability = MaxValue then
raise Ship_Upgrade_Error
with "You can't further improve the durability of " &
To_String(Player_Ship.Modules(ModuleIndex).Name) & ".";
end if;
UpgradeAction := DURABILITY;
UpgradeProgress :=
Modules_List(Player_Ship.Modules(ModuleIndex).Proto_Index)
.Durability;
when 2 => -- Upgrade various max value of selected module
MaxValue :=
Natural
(Float
(Modules_List(Player_Ship.Modules(ModuleIndex).Proto_Index)
.MaxValue) *
1.5);
case Modules_List(Player_Ship.Modules(ModuleIndex).Proto_Index)
.MType is
when ENGINE =>
if Player_Ship.Modules(ModuleIndex).Power = MaxValue then
raise Ship_Upgrade_Error
with "You can't further improve the power of " &
To_String(Player_Ship.Modules(ModuleIndex).Name) & ".";
end if;
UpgradeProgress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules(ModuleIndex).Proto_Index)
.MaxValue /
20) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when CABIN =>
if Player_Ship.Modules(ModuleIndex).Quality = MaxValue then
raise Ship_Upgrade_Error
with "You can't further improve the quality of " &
To_String(Player_Ship.Modules(ModuleIndex).Name) & ".";
end if;
UpgradeProgress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules(ModuleIndex).Proto_Index)
.MaxValue) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when GUN | BATTERING_RAM =>
declare
Damage: constant Positive :=
(if Player_Ship.Modules(ModuleIndex).M_Type = GUN then
Player_Ship.Modules(ModuleIndex).Damage
else Player_Ship.Modules(ModuleIndex).Damage2);
begin
if Damage = MaxValue then
raise Ship_Upgrade_Error
with "You can't further improve the damage of " &
To_String(Player_Ship.Modules(ModuleIndex).Name) &
".";
end if;
end;
UpgradeProgress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules(ModuleIndex).Proto_Index)
.MaxValue *
2) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when HULL =>
if Player_Ship.Modules(ModuleIndex).Max_Modules =
MaxValue then
raise Ship_Upgrade_Error
with "You can't further enlarge the size of" &
To_String(Player_Ship.Modules(ModuleIndex).Name) & ".";
end if;
UpgradeProgress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules(ModuleIndex).Proto_Index)
.MaxValue *
40) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when HARPOON_GUN =>
if Player_Ship.Modules(ModuleIndex).Duration = MaxValue then
raise Ship_Upgrade_Error
with "You can't further improve the strength of " &
To_String(Player_Ship.Modules(ModuleIndex).Name) & ".";
end if;
UpgradeProgress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules(ModuleIndex).Proto_Index)
.MaxValue *
10) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when others =>
raise Ship_Upgrade_Error
with To_String(Player_Ship.Modules(ModuleIndex).Name) &
" can't be upgraded in that way.";
end case;
UpgradeAction := MAX_VALUE;
when 3 => -- Upgrade various value of selected module
case Modules_List(Player_Ship.Modules(ModuleIndex).Proto_Index)
.MType is
when ENGINE =>
MaxValue :=
Natural
(Float
(Modules_List
(Player_Ship.Modules(ModuleIndex).Proto_Index)
.Value) /
2.0);
if MaxValue < 1 then
MaxValue := 1;
end if;
if Player_Ship.Modules(ModuleIndex).Fuel_Usage =
MaxValue then
raise Ship_Upgrade_Error
with "You can't further reduce the fuel usage of " &
To_String(Player_Ship.Modules(ModuleIndex).Name) & ".";
end if;
UpgradeProgress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules(ModuleIndex).Proto_Index)
.Value *
20) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when others =>
raise Ship_Upgrade_Error
with To_String(Player_Ship.Modules(ModuleIndex).Name) &
" can't be upgraded in that way.";
end case;
UpgradeAction := VALUE;
when 4 => -- Continue previous upgrade
if Player_Ship.Modules(ModuleIndex).Upgrade_Action = NONE then
raise Ship_Upgrade_Error
with To_String(Player_Ship.Modules(ModuleIndex).Name) &
" doesn't have any upgrade set yet.";
end if;
UpgradeAction := Player_Ship.Modules(ModuleIndex).Upgrade_Action;
when others =>
return;
end case;
declare
MaterialIndex: constant Inventory_Container.Extended_Index :=
FindItem
(Inventory => Player_Ship.Cargo,
ItemType =>
Modules_List(Player_Ship.Modules(ModuleIndex).Proto_Index)
.RepairMaterial);
begin
if MaterialIndex = 0 then
Materials_Loop :
for Item of Items_List loop
if Item.IType =
Modules_List(Player_Ship.Modules(ModuleIndex).Proto_Index)
.RepairMaterial then
raise Ship_Upgrade_Error
with "You don't have the " & To_String(Item.Name) &
" to upgrade " &
To_String(Player_Ship.Modules(ModuleIndex).Name) & ".";
end if;
end loop Materials_Loop;
end if;
end;
Player_Ship.Upgrade_Module := ModuleIndex;
if Player_Ship.Modules(ModuleIndex).Upgrade_Action /= UpgradeAction then
Player_Ship.Modules(ModuleIndex).Upgrade_Progress :=
Integer
(Float(UpgradeProgress) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
if Player_Ship.Modules(ModuleIndex).Upgrade_Progress = 0 then
Player_Ship.Modules(ModuleIndex).Upgrade_Progress := 1;
end if;
Player_Ship.Modules(ModuleIndex).Upgrade_Action := UpgradeAction;
end if;
AddMessage
("You set the " & To_String(Player_Ship.Modules(ModuleIndex).Name) &
" to upgrade.",
OrderMessage);
end StartUpgrading;
procedure UpgradeShip(Minutes: Positive) is
ResultAmount, UpgradePoints, UpgradeProgress, MaterialCost,
MaxValue: Natural := 0;
UpgradeValue: Positive;
WeightGain: Natural;
Times: Natural := 0;
OrderTime, CurrentMinutes: Integer;
UpgradedModule: Module_Data;
UpgradeMaterial, UpgradeTools: Inventory_Container.Extended_Index;
WorkerIndex: Crew_Container.Extended_Index;
procedure FindMatsAndTools is
begin
UpgradeTools := FindTools(WorkerIndex, Repair_Tools, Upgrading);
UpgradeMaterial :=
FindItem
(Inventory => Player_Ship.Cargo,
ItemType =>
Modules_List(UpgradedModule.Proto_Index).RepairMaterial);
end FindMatsAndTools;
procedure MaxUpgradeReached(MessageText: String) is
begin
AddMessage
(MessageText & To_String(UpgradedModule.Name) & ".", OrderMessage,
YELLOW);
UpgradedModule.Upgrade_Progress := 0;
UpgradedModule.Upgrade_Action := NONE;
Player_Ship.Modules(Player_Ship.Upgrade_Module) := UpgradedModule;
Player_Ship.Upgrade_Module := 0;
GiveOrders(Player_Ship, WorkerIndex, Rest);
end MaxUpgradeReached;
begin
if Player_Ship.Upgrade_Module = 0 then
return;
end if;
WorkerIndex := FindMember(Upgrading);
if WorkerIndex = 0 then
return;
end if;
UpgradedModule := Player_Ship.Modules(Player_Ship.Upgrade_Module);
CurrentMinutes := Minutes;
OrderTime := Player_Ship.Crew(WorkerIndex).OrderTime;
if UpgradedModule.Durability = 0 then
AddMessage
(To_String(Player_Ship.Crew(WorkerIndex).Name) &
" stops upgrading " & To_String(UpgradedModule.Name) &
" because it's destroyed.",
OrderMessage, RED);
GiveOrders(Player_Ship, WorkerIndex, Rest);
return;
end if;
Count_Time_Loop :
while CurrentMinutes > 0 loop
if CurrentMinutes >= OrderTime then
CurrentMinutes := CurrentMinutes - OrderTime;
Times := Times + 1;
OrderTime := 15;
else
OrderTime := OrderTime - CurrentMinutes;
CurrentMinutes := 0;
end if;
end loop Count_Time_Loop;
Player_Ship.Crew(WorkerIndex).OrderTime := OrderTime;
if Times = 0 then
return;
end if;
UpgradePoints :=
((GetSkillLevel
(Player_Ship.Crew(WorkerIndex),
Modules_List(UpgradedModule.Proto_Index).RepairSkill) /
10) *
Times) +
Times;
Upgrade_Loop :
while UpgradePoints > 0 and UpgradedModule.Upgrade_Progress > 0 loop
ResultAmount := UpgradePoints;
if ResultAmount > UpgradedModule.Upgrade_Progress then
ResultAmount := UpgradedModule.Upgrade_Progress;
end if;
FindMatsAndTools;
if UpgradeMaterial = 0 then
AddMessage
("You don't have enough materials to upgrade " &
To_String(UpgradedModule.Name),
OrderMessage, RED);
GiveOrders(Player_Ship, WorkerIndex, Rest);
exit Upgrade_Loop;
end if;
if UpgradeTools = 0 then
AddMessage
("You don't have the repair tool to upgrade " &
To_String(UpgradedModule.Name),
OrderMessage, RED);
GiveOrders(Player_Ship, WorkerIndex, Rest);
exit Upgrade_Loop;
end if;
if UpgradedModule.Upgrade_Action = MAX_VALUE then
case UpgradedModule.M_Type is
when ENGINE =>
if ResultAmount >
Player_Ship.Cargo(UpgradeMaterial).Amount * 200 then
ResultAmount :=
Player_Ship.Cargo(UpgradeMaterial).Amount * 200;
end if;
MaterialCost := ResultAmount / 200;
when CABIN =>
if ResultAmount >
Player_Ship.Cargo(UpgradeMaterial).Amount * 20 then
ResultAmount :=
Player_Ship.Cargo(UpgradeMaterial).Amount * 20;
end if;
MaterialCost := ResultAmount / 20;
when GUN | BATTERING_RAM | HARPOON_GUN =>
if ResultAmount >
Player_Ship.Cargo(UpgradeMaterial).Amount * 10 then
ResultAmount :=
Player_Ship.Cargo(UpgradeMaterial).Amount * 10;
end if;
MaterialCost := ResultAmount / 10;
when HULL =>
if ResultAmount >
Player_Ship.Cargo(UpgradeMaterial).Amount * 2 then
ResultAmount :=
Player_Ship.Cargo(UpgradeMaterial).Amount * 2;
end if;
MaterialCost := ResultAmount / 2;
when others =>
if ResultAmount >
Player_Ship.Cargo(UpgradeMaterial).Amount then
ResultAmount := Player_Ship.Cargo(UpgradeMaterial).Amount;
end if;
MaterialCost := ResultAmount;
end case;
elsif UpgradedModule.Upgrade_Action = DURABILITY then
if ResultAmount >
Player_Ship.Cargo(UpgradeMaterial).Amount * 10 then
ResultAmount := Player_Ship.Cargo(UpgradeMaterial).Amount * 10;
end if;
MaterialCost := ResultAmount / 10;
else
if ResultAmount > Player_Ship.Cargo(UpgradeMaterial).Amount then
ResultAmount := Player_Ship.Cargo(UpgradeMaterial).Amount;
end if;
MaterialCost := ResultAmount;
end if;
if MaterialCost < Times then
MaterialCost := Times;
end if;
if MaterialCost > Player_Ship.Cargo(UpgradeMaterial).Amount then
MaterialCost := Player_Ship.Cargo(UpgradeMaterial).Amount;
end if;
GainExp
(ResultAmount, Modules_List(UpgradedModule.Proto_Index).RepairSkill,
WorkerIndex);
DamageItem
(Player_Ship.Crew(WorkerIndex).Inventory, UpgradeTools,
GetSkillLevel
(Player_Ship.Crew(WorkerIndex),
Modules_List(UpgradedModule.Proto_Index).RepairSkill),
WorkerIndex);
FindMatsAndTools;
UpgradeProgress := UpgradedModule.Upgrade_Progress - ResultAmount;
UpgradePoints := UpgradePoints - ResultAmount;
UpdateCargo
(Player_Ship, Player_Ship.Cargo.Element(UpgradeMaterial).ProtoIndex,
(0 - MaterialCost));
if UpgradeProgress = 0 then
WeightGain :=
Modules_List(UpgradedModule.Proto_Index).Weight /
Modules_List(UpgradedModule.Proto_Index).Durability;
if WeightGain < 1 then
WeightGain := 1;
end if;
case UpgradedModule.Upgrade_Action is
when DURABILITY =>
if
(Modules_List(UpgradedModule.Proto_Index).Durability /
20) >
0 then
UpgradedModule.Max_Durability :=
UpgradedModule.Max_Durability +
(Modules_List(UpgradedModule.Proto_Index).Durability /
20);
UpgradedModule.Weight :=
UpgradedModule.Weight +
(WeightGain *
(Modules_List(UpgradedModule.Proto_Index).Durability /
20));
else
UpgradedModule.Max_Durability :=
UpgradedModule.Max_Durability + 1;
UpgradedModule.Weight :=
UpgradedModule.Weight + WeightGain;
end if;
AddMessage
(To_String(Player_Ship.Crew(WorkerIndex).Name) &
" has upgraded the durability of " &
To_String(UpgradedModule.Name) & ".",
OrderMessage, GREEN);
MaxValue :=
Positive
(Float
(Modules_List(UpgradedModule.Proto_Index)
.Durability) *
1.5);
if UpgradedModule.Max_Durability = MaxValue then
MaxUpgradeReached
("You've reached the maximum durability for ");
return;
else
UpgradedModule.Upgrade_Progress :=
Modules_List(UpgradedModule.Proto_Index).Durability;
end if;
when MAX_VALUE =>
case UpgradedModule.M_Type is
when HULL =>
WeightGain := WeightGain * 10;
UpgradedModule.Max_Modules :=
UpgradedModule.Max_Modules + 1;
UpgradeValue := UpgradedModule.Max_Modules;
when ENGINE =>
WeightGain :=
(Modules_List(UpgradedModule.Proto_Index).MaxValue /
40);
UpgradedModule.Power :=
UpgradedModule.Power +
(Modules_List(UpgradedModule.Proto_Index).MaxValue /
20);
UpgradeValue := UpgradedModule.Power;
when CABIN =>
UpgradedModule.Quality :=
UpgradedModule.Quality +
(Modules_List(UpgradedModule.Proto_Index).MaxValue /
20);
UpgradeValue := UpgradedModule.Quality;
when GUN =>
if
(Modules_List(UpgradedModule.Proto_Index).MaxValue /
20) >
0 then
UpgradedModule.Damage :=
UpgradedModule.Damage +
(Modules_List(UpgradedModule.Proto_Index)
.MaxValue /
20);
else
UpgradedModule.Damage := UpgradedModule.Damage + 1;
end if;
UpgradeValue := UpgradedModule.Damage;
when BATTERING_RAM =>
if
(Modules_List(UpgradedModule.Proto_Index).MaxValue /
20) >
0 then
UpgradedModule.Damage2 :=
UpgradedModule.Damage2 +
(Modules_List(UpgradedModule.Proto_Index)
.MaxValue /
20);
else
UpgradedModule.Damage2 :=
UpgradedModule.Damage2 + 1;
end if;
UpgradeValue := UpgradedModule.Damage2;
when HARPOON_GUN =>
if
(Modules_List(UpgradedModule.Proto_Index).MaxValue /
20) >
0 then
UpgradedModule.Duration :=
UpgradedModule.Duration +
(Modules_List(UpgradedModule.Proto_Index)
.MaxValue /
20);
else
UpgradedModule.Duration :=
UpgradedModule.Duration + 1;
end if;
UpgradeValue := UpgradedModule.Duration;
when others =>
null;
end case;
UpgradedModule.Weight := UpgradedModule.Weight + WeightGain;
AddMessage
(To_String(Player_Ship.Crew(WorkerIndex).Name) &
" has upgraded " & To_String(UpgradedModule.Name) & ".",
OrderMessage, GREEN);
MaxValue :=
Positive
(Float
(Modules_List(UpgradedModule.Proto_Index).MaxValue) *
1.5);
if UpgradeValue >= MaxValue then
MaxUpgradeReached
("You've reached the maximum upgrade for ");
return;
else
case Modules_List(UpgradedModule.Proto_Index).MType is
when ENGINE =>
UpgradedModule.Upgrade_Progress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules
(Player_Ship.Upgrade_Module)
.Proto_Index)
.MaxValue /
20) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when HARPOON_GUN =>
UpgradedModule.Upgrade_Progress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules
(Player_Ship.Upgrade_Module)
.Proto_Index)
.MaxValue *
10) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when GUN | BATTERING_RAM =>
UpgradedModule.Upgrade_Progress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules
(Player_Ship.Upgrade_Module)
.Proto_Index)
.MaxValue *
2) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when CABIN =>
UpgradedModule.Upgrade_Progress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules
(Player_Ship.Upgrade_Module)
.Proto_Index)
.MaxValue) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when HULL =>
UpgradedModule.Upgrade_Progress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules
(Player_Ship.Upgrade_Module)
.Proto_Index)
.MaxValue *
40) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
when others =>
null;
end case;
if UpgradedModule.Upgrade_Progress = 0 then
UpgradedModule.Upgrade_Progress := 1;
end if;
end if;
when VALUE =>
if UpgradedModule.M_Type = ENGINE then
WeightGain := WeightGain * 10;
UpgradedModule.Fuel_Usage :=
UpgradedModule.Fuel_Usage - 1;
UpgradeValue := UpgradedModule.Fuel_Usage;
end if;
UpgradedModule.Weight := UpgradedModule.Weight + WeightGain;
AddMessage
(To_String(Player_Ship.Crew(WorkerIndex).Name) &
" has upgraded " & To_String(UpgradedModule.Name) & ".",
OrderMessage, GREEN);
MaxValue :=
Natural
(Float(Modules_List(UpgradedModule.Proto_Index).Value) /
2.0);
if MaxValue < 1 then
MaxValue := 1;
end if;
if UpgradeValue = MaxValue then
MaxUpgradeReached
("You've reached the maximum upgrade for ");
return;
else
case Modules_List(UpgradedModule.Proto_Index).MType is
when ENGINE =>
UpgradedModule.Upgrade_Progress :=
Integer
(Float
(Modules_List
(Player_Ship.Modules
(Player_Ship.Upgrade_Module)
.Proto_Index)
.Value *
20) *
Float(New_Game_Settings.Upgrade_Cost_Bonus));
if UpgradedModule.Upgrade_Progress = 0 then
UpgradedModule.Upgrade_Progress := 1;
end if;
when others =>
null;
end case;
end if;
when others =>
null;
end case;
else
UpgradedModule.Upgrade_Progress := UpgradeProgress;
end if;
end loop Upgrade_Loop;
Player_Ship.Modules(Player_Ship.Upgrade_Module) := UpgradedModule;
end UpgradeShip;
end Ships.Upgrade;
|
[
{
"context": " --\n-- B I N D G E N --\n-- ",
"end": 349,
"score": 0.9545829892158508,
"start": 348,
"tag": "NAME",
"value": "B"
}
] |
llvm-gcc-4.2-2.9/gcc/ada/bindgen.adb
|
vidkidz/crossbridge
| 1 |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- B I N D G E N --
-- --
-- B o d y --
-- --
-- Copyright (C) 1992-2006, 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 2, 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 COPYING. If not, write --
-- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
-- Boston, MA 02110-1301, USA. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with ALI; use ALI;
with Binde; use Binde;
with Casing; use Casing;
with Fname; use Fname;
with GNAT.OS_Lib; use GNAT.OS_Lib;
with Gnatvsn; use Gnatvsn;
with Hostparm;
with Namet; use Namet;
with Opt; use Opt;
with Osint; use Osint;
with Osint.B; use Osint.B;
with Output; use Output;
with Rident; use Rident;
with Table; use Table;
with Targparm; use Targparm;
with Types; use Types;
with GNAT.Heap_Sort_A; use GNAT.Heap_Sort_A;
package body Bindgen is
Statement_Buffer : String (1 .. 1000);
-- Buffer used for constructing output statements
Last : Natural := 0;
-- Last location in Statement_Buffer currently set
With_DECGNAT : Boolean := False;
-- Flag which indicates whether the program uses the DECGNAT library
-- (presence of the unit DEC).
With_GNARL : Boolean := False;
-- Flag which indicates whether the program uses the GNARL library
-- (presence of the unit System.OS_Interface)
Num_Elab_Calls : Nat := 0;
-- Number of generated calls to elaboration routines
----------------------------------
-- Interface_State Pragma Table --
----------------------------------
-- This table assembles the interface state pragma information from
-- all the units in the partition. Note that Bcheck has already checked
-- that the information is consistent across partitions. The entries
-- in this table are n/u/r/s for not set/user/runtime/system.
package IS_Pragma_Settings is new Table.Table (
Table_Component_Type => Character,
Table_Index_Type => Int,
Table_Low_Bound => 0,
Table_Initial => 100,
Table_Increment => 200,
Table_Name => "IS_Pragma_Settings");
----------------------
-- Run-Time Globals --
----------------------
-- This section documents the global variables that are passed to the
-- run time from the generated binder file. The call that is made is
-- to the routine Set_Globals, which has the following spec:
-- procedure Set_Globals
-- (Main_Priority : Integer;
-- Time_Slice_Value : Integer;
-- WC_Encoding : Character;
-- Locking_Policy : Character;
-- Queuing_Policy : Character;
-- Task_Dispatching_Policy : Character;
-- Restrictions : System.Address;
-- Interrupt_States : System.Address;
-- Num_Interrupt_States : Integer;
-- Unreserve_All_Interrupts : Integer;
-- Exception_Tracebacks : Integer;
-- Zero_Cost_Exceptions : Integer;
-- Detect_Blocking : Integer);
-- Main_Priority is the priority value set by pragma Priority in the
-- main program. If no such pragma is present, the value is -1.
-- Time_Slice_Value is the time slice value set by pragma Time_Slice
-- in the main program, or by the use of a -Tnnn parameter for the
-- binder (if both are present, the binder value overrides). The
-- value is in milliseconds. A value of zero indicates that time
-- slicing should be suppressed. If no pragma is present, and no
-- -T switch was used, the value is -1.
-- WC_Encoding shows the wide character encoding method used for
-- the main program. This is one of the encoding letters defined
-- in System.WCh_Con.WC_Encoding_Letters.
-- Locking_Policy is a space if no locking policy was specified
-- for the partition. If a locking policy was specified, the value
-- is the upper case first character of the locking policy name,
-- for example, 'C' for Ceiling_Locking.
-- Queuing_Policy is a space if no queuing policy was specified
-- for the partition. If a queuing policy was specified, the value
-- is the upper case first character of the queuing policy name
-- for example, 'F' for FIFO_Queuing.
-- Task_Dispatching_Policy is a space if no task dispatching policy
-- was specified for the partition. If a task dispatching policy
-- was specified, the value is the upper case first character of
-- the policy name, e.g. 'F' for FIFO_Within_Priorities.
-- Restrictions is the address of a null-terminated string specifying the
-- restrictions information for the partition. The format is identical to
-- that of the parameter string found on R lines in ali files (see Lib.Writ
-- spec in lib-writ.ads for full details). The difference is that in this
-- context the values are the cumulative ones for the entire partition.
-- Interrupt_States is the address of a string used to specify the
-- cumulative results of Interrupt_State pragmas used in the partition.
-- The length of this string is determined by the last interrupt for which
-- such a pragma is given (the string will be a null string if no pragmas
-- were used). If pragma were present the entries apply to the interrupts
-- in sequence from the first interrupt, and are set to one of four
-- possible settings: 'n' for not specified, 'u' for user, 'r' for
-- run time, 's' for system, see description of Interrupt_State pragma
-- for further details.
-- Num_Interrupt_States is the length of the Interrupt_States string.
-- It will be set to zero if no Interrupt_State pragmas are present.
-- Unreserve_All_Interrupts is set to one if at least one unit in the
-- partition had a pragma Unreserve_All_Interrupts, and zero otherwise.
-- Exception_Tracebacks is set to one if the -E parameter was present
-- in the bind and to zero otherwise. Note that on some targets exception
-- tracebacks are provided by default, so a value of zero for this
-- parameter does not necessarily mean no trace backs are available.
-- Zero_Cost_Exceptions is set to one if zero cost exceptions are used for
-- this partition, and to zero if longjmp/setjmp exceptions are used.
-- the use of zero
-- Detect_Blocking indicates whether pragma Detect_Blocking is
-- active or not. A value of zero indicates that the pragma is not
-- present, while a value of 1 signals its presence in the
-- partition.
-----------------------
-- Local Subprograms --
-----------------------
procedure WBI (Info : String) renames Osint.B.Write_Binder_Info;
-- Convenient shorthand used throughout
procedure Gen_Adainit_Ada;
-- Generates the Adainit procedure (Ada code case)
procedure Gen_Adainit_C;
-- Generates the Adainit procedure (C code case)
procedure Gen_Adafinal_Ada;
-- Generate the Adafinal procedure (Ada code case)
procedure Gen_Adafinal_C;
-- Generate the Adafinal procedure (C code case)
procedure Gen_Elab_Calls_Ada;
-- Generate sequence of elaboration calls (Ada code case)
procedure Gen_Elab_Calls_C;
-- Generate sequence of elaboration calls (C code case)
procedure Gen_Elab_Order_Ada;
-- Generate comments showing elaboration order chosen (Ada case)
procedure Gen_Elab_Order_C;
-- Generate comments showing elaboration order chosen (C case)
procedure Gen_Elab_Defs_C;
-- Generate sequence of definitions for elaboration routines (C code case)
procedure Gen_Main_Ada;
-- Generate procedure main (Ada code case)
procedure Gen_Main_C;
-- Generate main() procedure (C code case)
procedure Gen_Object_Files_Options;
-- Output comments containing a list of the full names of the object
-- files to be linked and the list of linker options supplied by
-- Linker_Options pragmas in the source. (C and Ada code case)
procedure Gen_Output_File_Ada (Filename : String);
-- Generate output file (Ada code case)
procedure Gen_Output_File_C (Filename : String);
-- Generate output file (C code case)
procedure Gen_Restrictions_String_1;
-- Generate first restrictions string, which consists of the parameters
-- the first R line, as described in lib-writ.ads, with the restrictions
-- being those for the entire partition (from Cumulative_Restrictions).
procedure Gen_Restrictions_String_2;
-- Generate first restrictions string, which consists of the parameters
-- the second R line, as described in lib-writ.ads, with the restrictions
-- being those for the entire partition (from Cumulative_Restrictions).
procedure Gen_Versions_Ada;
-- Output series of definitions for unit versions (Ada code case)
procedure Gen_Versions_C;
-- Output series of definitions for unit versions (C code case)
function Get_Ada_Main_Name return String;
-- This function is used in the Ada main output case to compute a usable
-- name for the generated main program. The normal main program name is
-- Ada_Main, but this won't work if the user has a unit with this name.
-- This function tries Ada_Main first, and if there is such a clash, then
-- it tries Ada_Name_01, Ada_Name_02 ... Ada_Name_99 in sequence.
function Get_Main_Name return String;
-- This function is used in the Ada main output case to compute the
-- correct external main program. It is "main" by default, unless the
-- flag Use_Ada_Main_Program_Name_On_Target is set, in which case it
-- is the name of the Ada main name without the "_ada". This default
-- can be overridden explicitly using the -Mname binder switch.
function Lt_Linker_Option (Op1, Op2 : Natural) return Boolean;
-- Compare linker options, when sorting, first according to
-- Is_Internal_File (internal files come later) and then by
-- elaboration order position (latest to earliest).
procedure Move_Linker_Option (From : Natural; To : Natural);
-- Move routine for sorting linker options
procedure Public_Version_Warning;
-- Emit a warning concerning the use of the Public version under
-- certain circumstances. See details in body.
procedure Resolve_Binder_Options;
-- Set the value of With_GNARL and With_DECGNAT. The latter only on VMS
-- since it tests for a package named "dec" which might cause a conflict
-- on non-VMS systems.
procedure Set_Char (C : Character);
-- Set given character in Statement_Buffer at the Last + 1 position
-- and increment Last by one to reflect the stored character.
procedure Set_Int (N : Int);
-- Set given value in decimal in Statement_Buffer with no spaces
-- starting at the Last + 1 position, and updating Last past the value.
-- A minus sign is output for a negative value.
procedure Set_IS_Pragma_Table;
-- Initializes contents of IS_Pragma_Settings table from ALI table
procedure Set_Main_Program_Name;
-- Given the main program name in Name_Buffer (length in Name_Len)
-- generate the name of the routine to be used in the call. The name
-- is generated starting at Last + 1, and Last is updated past it.
procedure Set_Name_Buffer;
-- Set the value stored in positions 1 .. Name_Len of the Name_Buffer
procedure Set_String (S : String);
-- Sets characters of given string in Statement_Buffer, starting at the
-- Last + 1 position, and updating last past the string value.
procedure Set_Unit_Name;
-- Given a unit name in the Name_Buffer, copies it to Statement_Buffer,
-- starting at the Last + 1 position, and updating last past the value.
-- changing periods to double underscores, and updating Last appropriately.
procedure Set_Unit_Number (U : Unit_Id);
-- Sets unit number (first unit is 1, leading zeroes output to line
-- up all output unit numbers nicely as required by the value, and
-- by the total number of units.
procedure Tab_To (N : Natural);
-- If Last is greater than or equal to N, no effect, otherwise store
-- blanks in Statement_Buffer bumping Last, until Last = N.
procedure Write_Info_Ada_C (Ada : String; C : String; Common : String);
-- For C code case, write C & Common, for Ada case write Ada & Common
-- to current binder output file using Write_Binder_Info.
procedure Write_Statement_Buffer;
-- Write out contents of statement buffer up to Last, and reset Last to 0
procedure Write_Statement_Buffer (S : String);
-- First writes its argument (using Set_String (S)), then writes out the
-- contents of statement buffer up to Last, and reset Last to 0
----------------------
-- Gen_Adafinal_Ada --
----------------------
procedure Gen_Adafinal_Ada is
begin
WBI ("");
WBI (" procedure " & Ada_Final_Name.all & " is");
WBI (" begin");
-- If compiling for the JVM, we directly call Adafinal because
-- we don't import it via Do_Finalize (see Gen_Output_File_Ada).
if Hostparm.Java_VM then
WBI (" System.Standard_Library.Adafinal;");
-- If there is no finalization, there is nothing to do
elsif Cumulative_Restrictions.Set (No_Finalization) then
WBI (" null;");
else
WBI (" Do_Finalize;");
end if;
WBI (" end " & Ada_Final_Name.all & ";");
end Gen_Adafinal_Ada;
--------------------
-- Gen_Adafinal_C --
--------------------
procedure Gen_Adafinal_C is
begin
WBI ("void " & Ada_Final_Name.all & " (void) {");
WBI (" system__standard_library__adafinal ();");
WBI ("}");
WBI ("");
end Gen_Adafinal_C;
---------------------
-- Gen_Adainit_Ada --
---------------------
procedure Gen_Adainit_Ada is
Main_Priority : Int renames ALIs.Table (ALIs.First).Main_Priority;
begin
WBI (" procedure " & Ada_Init_Name.all & " is");
-- Generate externals for elaboration entities
for E in Elab_Order.First .. Elab_Order.Last loop
declare
Unum : constant Unit_Id := Elab_Order.Table (E);
U : Unit_Record renames Units.Table (Unum);
begin
-- Check for Elab_Entity to be set for this unit
if U.Set_Elab_Entity
-- Don't generate reference for stand alone library
and then not U.SAL_Interface
-- Don't generate reference for predefined file in No_Run_Time
-- mode, since we don't include the object files in this case
and then not
(No_Run_Time_Mode
and then Is_Predefined_File_Name (U.Sfile))
then
Set_String (" ");
Set_String ("E");
Set_Unit_Number (Unum);
Set_String (" : Boolean; pragma Import (Ada, ");
Set_String ("E");
Set_Unit_Number (Unum);
Set_String (", """);
Get_Name_String (U.Uname);
-- In the case of JGNAT we need to emit an Import name
-- that includes the class name (using '$' separators
-- in the case of a child unit name).
if Hostparm.Java_VM then
for J in 1 .. Name_Len - 2 loop
if Name_Buffer (J) /= '.' then
Set_Char (Name_Buffer (J));
else
Set_String ("$");
end if;
end loop;
Set_String (".");
-- If the unit name is very long, then split the
-- Import link name across lines using "&" (occurs
-- in some C2 tests).
if 2 * Name_Len + 60 > Hostparm.Max_Line_Length then
Set_String (""" &");
Write_Statement_Buffer;
Set_String (" """);
end if;
end if;
Set_Unit_Name;
Set_String ("_E"");");
Write_Statement_Buffer;
end if;
end;
end loop;
Write_Statement_Buffer;
-- If the standard library is suppressed, then the only global variable
-- that might be needed (by the Ravenscar profile) is the priority of
-- the environment. Also no exception tables are needed.
if Suppress_Standard_Library_On_Target then
if Main_Priority /= No_Main_Priority then
WBI (" Main_Priority : Integer;");
WBI (" pragma Import (C, Main_Priority," &
" ""__gl_main_priority"");");
WBI ("");
end if;
WBI (" begin");
if Main_Priority /= No_Main_Priority then
Set_String (" Main_Priority := ");
Set_Int (Main_Priority);
Set_Char (';');
Write_Statement_Buffer;
else
WBI (" null;");
end if;
-- Normal case (standard library not suppressed). Global values are
-- assigned using the runtime routine Set_Globals (we have to use
-- the routine call, rather than define the globals in the binder
-- file to deal with cross-library calls in some systems.
else
-- Generate restrictions string
Set_String (" Restrictions : constant String :=");
Write_Statement_Buffer;
Set_String (" """);
Gen_Restrictions_String_1;
Set_String (""" &");
Write_Statement_Buffer;
Set_String (" """);
Gen_Restrictions_String_2;
Set_String (""" & ASCII.Nul;");
Write_Statement_Buffer;
WBI ("");
-- Generate Interrupt_State pragma string
Set_String (" Interrupt_States : constant String :=");
Write_Statement_Buffer;
declare
Col : Natural;
begin
Set_String (" """);
Col := 9;
for J in 0 .. IS_Pragma_Settings.Last loop
if Col > 72 then
Set_String (""" &");
Write_Statement_Buffer;
Set_String (" """);
Col := 9;
else
Col := Col + 1;
end if;
Set_Char (IS_Pragma_Settings.Table (J));
end loop;
end;
Set_String (""";");
Write_Statement_Buffer;
WBI ("");
-- Generate spec for Set_Globals procedure
WBI (" procedure Set_Globals");
WBI (" (Main_Priority : Integer;");
WBI (" Time_Slice_Value : Integer;");
WBI (" WC_Encoding : Character;");
WBI (" Locking_Policy : Character;");
WBI (" Queuing_Policy : Character;");
WBI (" Task_Dispatching_Policy : Character;");
WBI (" Restrictions : System.Address;");
WBI (" Interrupt_States : System.Address;");
WBI (" Num_Interrupt_States : Integer;");
WBI (" Unreserve_All_Interrupts : Integer;");
WBI (" Exception_Tracebacks : Integer;");
WBI (" Zero_Cost_Exceptions : Integer;");
WBI (" Detect_Blocking : Integer;");
WBI (" Default_Stack_Size : Integer);");
WBI (" pragma Import (C, Set_Globals, ""__gnat_set_globals"");");
-- Import entry point for elaboration time signal handler
-- installation, and indication of if it's been called previously.
WBI ("");
WBI (" procedure Install_Handler;");
WBI (" pragma Import (C, Install_Handler, " &
"""__gnat_install_handler"");");
WBI ("");
WBI (" Handler_Installed : Integer;");
WBI (" pragma Import (C, Handler_Installed, " &
"""__gnat_handler_installed"");");
WBI (" begin");
-- Generate the call to Set_Globals
WBI (" Set_Globals");
Set_String (" (Main_Priority => ");
Set_Int (Main_Priority);
Set_Char (',');
Write_Statement_Buffer;
Set_String (" Time_Slice_Value => ");
if Task_Dispatching_Policy_Specified = 'F'
and then ALIs.Table (ALIs.First).Time_Slice_Value = -1
then
Set_Int (0);
else
Set_Int (ALIs.Table (ALIs.First).Time_Slice_Value);
end if;
Set_Char (',');
Write_Statement_Buffer;
Set_String (" WC_Encoding => '");
Set_Char (ALIs.Table (ALIs.First).WC_Encoding);
Set_String ("',");
Write_Statement_Buffer;
Set_String (" Locking_Policy => '");
Set_Char (Locking_Policy_Specified);
Set_String ("',");
Write_Statement_Buffer;
Set_String (" Queuing_Policy => '");
Set_Char (Queuing_Policy_Specified);
Set_String ("',");
Write_Statement_Buffer;
Set_String (" Task_Dispatching_Policy => '");
Set_Char (Task_Dispatching_Policy_Specified);
Set_String ("',");
Write_Statement_Buffer;
WBI (" Restrictions => Restrictions'Address,");
WBI (" Interrupt_States => " &
"Interrupt_States'Address,");
Set_String (" Num_Interrupt_States => ");
Set_Int (IS_Pragma_Settings.Last + 1);
Set_Char (',');
Write_Statement_Buffer;
Set_String (" Unreserve_All_Interrupts => ");
if Unreserve_All_Interrupts_Specified then
Set_String ("1");
else
Set_String ("0");
end if;
Set_Char (',');
Write_Statement_Buffer;
Set_String (" Exception_Tracebacks => ");
if Exception_Tracebacks then
Set_String ("1");
else
Set_String ("0");
end if;
Set_String (",");
Write_Statement_Buffer;
Set_String (" Zero_Cost_Exceptions => ");
if Zero_Cost_Exceptions_Specified then
Set_String ("1");
else
Set_String ("0");
end if;
Set_String (",");
Write_Statement_Buffer;
Set_String (" Detect_Blocking => ");
if Detect_Blocking then
Set_Int (1);
else
Set_Int (0);
end if;
Set_String (",");
Write_Statement_Buffer;
Set_String (" Default_Stack_Size => ");
Set_Int (Default_Stack_Size);
Set_String (");");
Write_Statement_Buffer;
-- Generate call to Install_Handler
WBI ("");
WBI (" if Handler_Installed = 0 then");
WBI (" Install_Handler;");
WBI (" end if;");
end if;
-- Generate call to set Initialize_Scalar values if active
if Initialize_Scalars_Used then
WBI ("");
Set_String (" System.Scalar_Values.Initialize ('");
Set_Char (Initialize_Scalars_Mode1);
Set_String ("', '");
Set_Char (Initialize_Scalars_Mode2);
Set_String ("');");
Write_Statement_Buffer;
end if;
-- Generate assignment of default secondary stack size if set
if Sec_Stack_Used and then Default_Sec_Stack_Size /= -1 then
WBI ("");
Set_String (" System.Secondary_Stack.");
Set_String ("Default_Secondary_Stack_Size := ");
Set_Int (Opt.Default_Sec_Stack_Size);
Set_Char (';');
Write_Statement_Buffer;
end if;
-- Generate elaboration calls
WBI ("");
Gen_Elab_Calls_Ada;
WBI (" end " & Ada_Init_Name.all & ";");
end Gen_Adainit_Ada;
-------------------
-- Gen_Adainit_C --
--------------------
procedure Gen_Adainit_C is
Main_Priority : Int renames ALIs.Table (ALIs.First).Main_Priority;
begin
WBI ("void " & Ada_Init_Name.all & " (void)");
WBI ("{");
-- Generate externals for elaboration entities
for E in Elab_Order.First .. Elab_Order.Last loop
declare
Unum : constant Unit_Id := Elab_Order.Table (E);
U : Unit_Record renames Units.Table (Unum);
begin
-- Check for Elab entity to be set for this unit
if U.Set_Elab_Entity
-- Don't generate reference for stand alone library
and then not U.SAL_Interface
-- Don't generate reference for predefined file in No_Run_Time
-- mode, since we don't include the object files in this case
and then not
(No_Run_Time_Mode
and then Is_Predefined_File_Name (U.Sfile))
then
Set_String (" extern char ");
Get_Name_String (U.Uname);
Set_Unit_Name;
Set_String ("_E;");
Write_Statement_Buffer;
end if;
end;
end loop;
Write_Statement_Buffer;
-- Standard library suppressed
if Suppress_Standard_Library_On_Target then
-- Case of High_Integrity_Mode mode. Set __gl_main_priority if needed
-- for the Ravenscar profile.
if Main_Priority /= No_Main_Priority then
Set_String (" extern int __gl_main_priority = ");
Set_Int (Main_Priority);
Set_Char (';');
Write_Statement_Buffer;
end if;
-- Normal case (standard library not suppressed)
else
-- Generate definition for restrictions string
Set_String (" const char *restrictions = """);
Gen_Restrictions_String_1;
Gen_Restrictions_String_2;
Set_String (""";");
Write_Statement_Buffer;
-- Generate definition for interrupt states string
Set_String (" const char *interrupt_states = """);
for J in 0 .. IS_Pragma_Settings.Last loop
Set_Char (IS_Pragma_Settings.Table (J));
end loop;
Set_String (""";");
Write_Statement_Buffer;
-- Generate declaration for secondary stack default if needed
if Sec_Stack_Used and then Default_Sec_Stack_Size /= -1 then
WBI (" extern int system__secondary_stack__" &
"default_secondary_stack_size;");
end if;
WBI ("");
-- Code for normal case (standard library not suppressed)
-- Generate call to set the runtime global variables defined in
-- init.c. We define the varables in init.c, rather than in
-- the binder generated file itself to avoid undefined externals
-- when the runtime is linked as a shareable image library.
-- We call the routine from inside adainit() because this works for
-- both programs with and without binder generated "main" functions.
WBI (" __gnat_set_globals (");
Set_String (" ");
Set_Int (Main_Priority);
Set_Char (',');
Tab_To (24);
Set_String ("/* Main_Priority */");
Write_Statement_Buffer;
Set_String (" ");
if Task_Dispatching_Policy = 'F'
and then ALIs.Table (ALIs.First).Time_Slice_Value = -1
then
Set_Int (0);
else
Set_Int (ALIs.Table (ALIs.First).Time_Slice_Value);
end if;
Set_Char (',');
Tab_To (24);
Set_String ("/* Time_Slice_Value */");
Write_Statement_Buffer;
Set_String (" '");
Set_Char (ALIs.Table (ALIs.First).WC_Encoding);
Set_String ("',");
Tab_To (24);
Set_String ("/* WC_Encoding */");
Write_Statement_Buffer;
Set_String (" '");
Set_Char (Locking_Policy_Specified);
Set_String ("',");
Tab_To (24);
Set_String ("/* Locking_Policy */");
Write_Statement_Buffer;
Set_String (" '");
Set_Char (Queuing_Policy_Specified);
Set_String ("',");
Tab_To (24);
Set_String ("/* Queuing_Policy */");
Write_Statement_Buffer;
Set_String (" '");
Set_Char (Task_Dispatching_Policy_Specified);
Set_String ("',");
Tab_To (24);
Set_String ("/* Tasking_Dispatching_Policy */");
Write_Statement_Buffer;
Set_String (" ");
Set_String ("restrictions");
Set_String (",");
Tab_To (24);
Set_String ("/* Restrictions */");
Write_Statement_Buffer;
Set_String (" ");
Set_String ("interrupt_states");
Set_String (",");
Tab_To (24);
Set_String ("/* Interrupt_States */");
Write_Statement_Buffer;
Set_String (" ");
Set_Int (IS_Pragma_Settings.Last + 1);
Set_String (",");
Tab_To (24);
Set_String ("/* Num_Interrupt_States */");
Write_Statement_Buffer;
Set_String (" ");
Set_Int (Boolean'Pos (Unreserve_All_Interrupts_Specified));
Set_String (",");
Tab_To (24);
Set_String ("/* Unreserve_All_Interrupts */");
Write_Statement_Buffer;
Set_String (" ");
Set_Int (Boolean'Pos (Exception_Tracebacks));
Set_String (",");
Tab_To (24);
Set_String ("/* Exception_Tracebacks */");
Write_Statement_Buffer;
Set_String (" ");
Set_Int (Boolean'Pos (Zero_Cost_Exceptions_Specified));
Set_String (",");
Tab_To (24);
Set_String ("/* Zero_Cost_Exceptions */");
Write_Statement_Buffer;
Set_String (" ");
if Detect_Blocking then
Set_Int (1);
else
Set_Int (0);
end if;
Set_String (",");
Tab_To (24);
Set_String ("/* Detect_Blocking */");
Write_Statement_Buffer;
Set_String (" ");
Set_Int (Default_Stack_Size);
Set_String (");");
Tab_To (24);
Set_String ("/* Default_Stack_Size */");
Write_Statement_Buffer;
WBI ("");
-- Install elaboration time signal handler
WBI (" if (__gnat_handler_installed == 0)");
WBI (" {");
WBI (" __gnat_install_handler ();");
WBI (" }");
end if;
-- Generate call to set Initialize_Scalar values if needed
if Initialize_Scalars_Used then
WBI ("");
Set_String (" system__scalar_values__initialize('");
Set_Char (Initialize_Scalars_Mode1);
Set_String ("', '");
Set_Char (Initialize_Scalars_Mode2);
Set_String ("');");
Write_Statement_Buffer;
end if;
-- Generate assignment of default secondary stack size if set
if Sec_Stack_Used and then Default_Sec_Stack_Size /= -1 then
WBI ("");
Set_String (" system__secondary_stack__");
Set_String ("default_secondary_stack_size = ");
Set_Int (Opt.Default_Sec_Stack_Size);
Set_Char (';');
Write_Statement_Buffer;
end if;
-- Generate elaboration calls
WBI ("");
Gen_Elab_Calls_C;
WBI ("}");
end Gen_Adainit_C;
------------------------
-- Gen_Elab_Calls_Ada --
------------------------
procedure Gen_Elab_Calls_Ada is
begin
for E in Elab_Order.First .. Elab_Order.Last loop
declare
Unum : constant Unit_Id := Elab_Order.Table (E);
U : Unit_Record renames Units.Table (Unum);
Unum_Spec : Unit_Id;
-- This is the unit number of the spec that corresponds to
-- this entry. It is the same as Unum except when the body
-- and spec are different and we are currently processing
-- the body, in which case it is the spec (Unum + 1).
begin
if U.Utype = Is_Body then
Unum_Spec := Unum + 1;
else
Unum_Spec := Unum;
end if;
-- Nothing to do if predefined unit in no run time mode
if No_Run_Time_Mode and then Is_Predefined_File_Name (U.Sfile) then
null;
-- Case of no elaboration code
elsif U.No_Elab then
-- The only case in which we have to do something is if
-- this is a body, with a separate spec, where the separate
-- spec has an elaboration entity defined.
-- In that case, this is where we set the elaboration entity
-- to True, we do not need to test if this has already been
-- done, since it is quicker to set the flag than to test it.
if not U.SAL_Interface and then U.Utype = Is_Body
and then Units.Table (Unum_Spec).Set_Elab_Entity
then
Set_String (" E");
Set_Unit_Number (Unum_Spec);
Set_String (" := True;");
Write_Statement_Buffer;
end if;
-- Here if elaboration code is present. If binding a library
-- or if there is a non-Ada main subprogram then we generate:
-- if not uname_E then
-- uname'elab_[spec|body];
-- uname_E := True;
-- end if;
-- Otherwise, elaboration routines are called unconditionally:
-- uname'elab_[spec|body];
-- uname_E := True;
-- The uname_E assignment is skipped if this is a separate spec,
-- since the assignment will be done when we process the body.
elsif not U.SAL_Interface then
if Force_Checking_Of_Elaboration_Flags or
Interface_Library_Unit or
(not Bind_Main_Program)
then
Set_String (" if not E");
Set_Unit_Number (Unum_Spec);
Set_String (" then");
Write_Statement_Buffer;
Set_String (" ");
end if;
Set_String (" ");
Get_Decoded_Name_String_With_Brackets (U.Uname);
if Name_Buffer (Name_Len) = 's' then
Name_Buffer (Name_Len - 1 .. Name_Len + 8) := "'elab_spec";
else
Name_Buffer (Name_Len - 1 .. Name_Len + 8) := "'elab_body";
end if;
Name_Len := Name_Len + 8;
Set_Casing (U.Icasing);
Set_Name_Buffer;
Set_Char (';');
Write_Statement_Buffer;
if U.Utype /= Is_Spec then
if Force_Checking_Of_Elaboration_Flags or
Interface_Library_Unit or
(not Bind_Main_Program)
then
Set_String (" ");
end if;
Set_String (" E");
Set_Unit_Number (Unum_Spec);
Set_String (" := True;");
Write_Statement_Buffer;
end if;
if Force_Checking_Of_Elaboration_Flags or
Interface_Library_Unit or
(not Bind_Main_Program)
then
WBI (" end if;");
end if;
end if;
end;
end loop;
end Gen_Elab_Calls_Ada;
----------------------
-- Gen_Elab_Calls_C --
----------------------
procedure Gen_Elab_Calls_C is
begin
for E in Elab_Order.First .. Elab_Order.Last loop
declare
Unum : constant Unit_Id := Elab_Order.Table (E);
U : Unit_Record renames Units.Table (Unum);
Unum_Spec : Unit_Id;
-- This is the unit number of the spec that corresponds to
-- this entry. It is the same as Unum except when the body
-- and spec are different and we are currently processing
-- the body, in which case it is the spec (Unum + 1).
begin
if U.Utype = Is_Body then
Unum_Spec := Unum + 1;
else
Unum_Spec := Unum;
end if;
-- Nothing to do if predefined unit in no run time mode
if No_Run_Time_Mode and then Is_Predefined_File_Name (U.Sfile) then
null;
-- Case of no elaboration code
elsif U.No_Elab then
-- The only case in which we have to do something is if
-- this is a body, with a separate spec, where the separate
-- spec has an elaboration entity defined.
-- In that case, this is where we set the elaboration entity
-- to True, we do not need to test if this has already been
-- done, since it is quicker to set the flag than to test it.
if not U.SAL_Interface and then U.Utype = Is_Body
and then Units.Table (Unum_Spec).Set_Elab_Entity
then
Set_String (" ");
Get_Name_String (U.Uname);
Set_Unit_Name;
Set_String ("_E = 1;");
Write_Statement_Buffer;
end if;
-- Here if elaboration code is present. If binding a library
-- or if there is a non-Ada main subprogram then we generate:
-- if (uname_E == 0) {
-- uname__elab[s|b] ();
-- uname_E++;
-- }
-- The uname_E assignment is skipped if this is a separate spec,
-- since the assignment will be done when we process the body.
elsif not U.SAL_Interface then
Get_Name_String (U.Uname);
if Force_Checking_Of_Elaboration_Flags or
Interface_Library_Unit or
(not Bind_Main_Program)
then
Set_String (" if (");
Set_Unit_Name;
Set_String ("_E == 0) {");
Write_Statement_Buffer;
Set_String (" ");
end if;
Set_String (" ");
Set_Unit_Name;
Set_String ("___elab");
Set_Char (Name_Buffer (Name_Len)); -- 's' or 'b' for spec/body
Set_String (" ();");
Write_Statement_Buffer;
if U.Utype /= Is_Spec then
if Force_Checking_Of_Elaboration_Flags or
Interface_Library_Unit or
(not Bind_Main_Program)
then
Set_String (" ");
end if;
Set_String (" ");
Set_Unit_Name;
Set_String ("_E++;");
Write_Statement_Buffer;
end if;
if Force_Checking_Of_Elaboration_Flags or
Interface_Library_Unit or
(not Bind_Main_Program)
then
WBI (" }");
end if;
end if;
end;
end loop;
end Gen_Elab_Calls_C;
----------------------
-- Gen_Elab_Defs_C --
----------------------
procedure Gen_Elab_Defs_C is
begin
for E in Elab_Order.First .. Elab_Order.Last loop
-- Generate declaration of elaboration procedure if elaboration
-- needed. Note that passive units are always excluded.
if not Units.Table (Elab_Order.Table (E)).No_Elab then
Get_Name_String (Units.Table (Elab_Order.Table (E)).Uname);
Set_String ("extern void ");
Set_Unit_Name;
Set_String ("___elab");
Set_Char (Name_Buffer (Name_Len)); -- 's' or 'b' for spec/body
Set_String (" (void);");
Write_Statement_Buffer;
end if;
end loop;
WBI ("");
end Gen_Elab_Defs_C;
------------------------
-- Gen_Elab_Order_Ada --
------------------------
procedure Gen_Elab_Order_Ada is
begin
WBI ("");
WBI (" -- BEGIN ELABORATION ORDER");
for J in Elab_Order.First .. Elab_Order.Last loop
Set_String (" -- ");
Get_Name_String (Units.Table (Elab_Order.Table (J)).Uname);
Set_Name_Buffer;
Write_Statement_Buffer;
end loop;
WBI (" -- END ELABORATION ORDER");
end Gen_Elab_Order_Ada;
----------------------
-- Gen_Elab_Order_C --
----------------------
procedure Gen_Elab_Order_C is
begin
WBI ("");
WBI ("/* BEGIN ELABORATION ORDER");
for J in Elab_Order.First .. Elab_Order.Last loop
Get_Name_String (Units.Table (Elab_Order.Table (J)).Uname);
Set_Name_Buffer;
Write_Statement_Buffer;
end loop;
WBI (" END ELABORATION ORDER */");
end Gen_Elab_Order_C;
------------------
-- Gen_Main_Ada --
------------------
procedure Gen_Main_Ada is
begin
WBI ("");
if Exit_Status_Supported_On_Target then
Set_String (" function ");
else
Set_String (" procedure ");
end if;
Set_String (Get_Main_Name);
if Command_Line_Args_On_Target then
Write_Statement_Buffer;
WBI (" (argc : Integer;");
WBI (" argv : System.Address;");
WBI (" envp : System.Address)");
if Exit_Status_Supported_On_Target then
WBI (" return Integer");
end if;
WBI (" is");
else
if Exit_Status_Supported_On_Target then
Set_String (" return Integer is");
else
Set_String (" is");
end if;
Write_Statement_Buffer;
end if;
if Opt.Default_Exit_Status /= 0
and then Bind_Main_Program
and then not Configurable_Run_Time_Mode
then
WBI (" procedure Set_Exit_Status (Status : Integer);");
WBI (" pragma Import (C, Set_Exit_Status, " &
"""__gnat_set_exit_status"");");
WBI ("");
end if;
-- Initialize and Finalize
if not Cumulative_Restrictions.Set (No_Finalization) then
WBI (" procedure initialize (Addr : System.Address);");
WBI (" pragma Import (C, initialize, ""__gnat_initialize"");");
WBI ("");
WBI (" procedure finalize;");
WBI (" pragma Import (C, finalize, ""__gnat_finalize"");");
end if;
-- If we want to analyze the stack, we have to import corresponding
-- symbols
if Dynamic_Stack_Measurement then
WBI ("");
WBI (" procedure Output_Results;");
WBI (" pragma Import (C, Output_Results, " &
"""__gnat_stack_usage_output_results"");");
WBI ("");
WBI (" " &
"procedure Initialize_Stack_Analysis (Buffer_Size : Natural);");
WBI (" pragma Import (C, Initialize_Stack_Analysis, " &
"""__gnat_stack_usage_initialize"");");
end if;
-- Deal with declarations for main program case
if not No_Main_Subprogram then
-- To call the main program, we declare it using a pragma Import
-- Ada with the right link name.
-- It might seem more obvious to "with" the main program, and call
-- it in the normal Ada manner. We do not do this for three reasons:
-- 1. It is more efficient not to recompile the main program
-- 2. We are not entitled to assume the source is accessible
-- 3. We don't know what options to use to compile it
-- It is really reason 3 that is most critical (indeed we used
-- to generate the "with", but several regression tests failed).
WBI ("");
if ALIs.Table (ALIs.First).Main_Program = Func then
WBI (" Result : Integer;");
WBI ("");
WBI (" function Ada_Main_Program return Integer;");
else
WBI (" procedure Ada_Main_Program;");
end if;
Set_String (" pragma Import (Ada, Ada_Main_Program, """);
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
Set_Main_Program_Name;
Set_String (""");");
Write_Statement_Buffer;
WBI ("");
if Bind_Main_Program
and then not Suppress_Standard_Library_On_Target
then
WBI (" SEH : aliased array (1 .. 2) of Integer;");
WBI ("");
end if;
end if;
-- Generate a reference to Ada_Main_Program_Name. This symbol is
-- not referenced elsewhere in the generated program, but is needed
-- by the debugger (that's why it is generated in the first place).
-- The reference stops Ada_Main_Program_Name from being optimized
-- away by smart linkers, such as the AiX linker.
-- Because this variable is unused, we make this variable "aliased"
-- with a pragma Volatile in order to tell the compiler to preserve
-- this variable at any level of optimization.
if Bind_Main_Program then
WBI
(" Ensure_Reference : aliased System.Address := " &
"Ada_Main_Program_Name'Address;");
WBI (" pragma Volatile (Ensure_Reference);");
WBI ("");
end if;
WBI (" begin");
-- Acquire command line arguments if present on target
if Command_Line_Args_On_Target then
WBI (" gnat_argc := argc;");
WBI (" gnat_argv := argv;");
WBI (" gnat_envp := envp;");
WBI ("");
-- If configurable run time and no command line args, then nothing
-- needs to be done since the gnat_argc/argv/envp variables are
-- suppressed in this case.
elsif Configurable_Run_Time_On_Target then
null;
-- Otherwise set dummy values (to be filled in by some other unit?)
else
WBI (" gnat_argc := 0;");
WBI (" gnat_argv := System.Null_Address;");
WBI (" gnat_envp := System.Null_Address;");
end if;
if Opt.Default_Exit_Status /= 0
and then Bind_Main_Program
and then not Configurable_Run_Time_Mode
then
Set_String (" Set_Exit_Status (");
Set_Int (Opt.Default_Exit_Status);
Set_String (");");
Write_Statement_Buffer;
end if;
if Dynamic_Stack_Measurement then
Set_String (" Initialize_Stack_Analysis (");
Set_Int (Dynamic_Stack_Measurement_Array_Size);
Set_String (");");
Write_Statement_Buffer;
end if;
if not Cumulative_Restrictions.Set (No_Finalization) then
if not No_Main_Subprogram
and then Bind_Main_Program
and then not Suppress_Standard_Library_On_Target
then
WBI (" Initialize (SEH'Address);");
else
WBI (" Initialize (System.Null_Address);");
end if;
end if;
WBI (" " & Ada_Init_Name.all & ";");
if not No_Main_Subprogram then
WBI (" Break_Start;");
if ALIs.Table (ALIs.First).Main_Program = Proc then
WBI (" Ada_Main_Program;");
else
WBI (" Result := Ada_Main_Program;");
end if;
end if;
-- Adafinal call is skipped if no finalization
if not Cumulative_Restrictions.Set (No_Finalization) then
-- If compiling for the JVM, we directly call Adafinal because
-- we don't import it via Do_Finalize (see Gen_Output_File_Ada).
if Hostparm.Java_VM then
WBI (" System.Standard_Library.Adafinal;");
else
WBI (" Do_Finalize;");
end if;
end if;
-- Prints the result of static stack analysis
if Dynamic_Stack_Measurement then
WBI (" Output_Results;");
end if;
-- Finalize is only called if we have a run time
if not Cumulative_Restrictions.Set (No_Finalization) then
WBI (" Finalize;");
end if;
-- Return result
if Exit_Status_Supported_On_Target then
if No_Main_Subprogram
or else ALIs.Table (ALIs.First).Main_Program = Proc
then
WBI (" return (gnat_exit_status);");
else
WBI (" return (Result);");
end if;
end if;
WBI (" end;");
end Gen_Main_Ada;
----------------
-- Gen_Main_C --
----------------
procedure Gen_Main_C is
begin
if Exit_Status_Supported_On_Target then
WBI ("#include <stdlib.h>");
Set_String ("int ");
else
Set_String ("void ");
end if;
Set_String (Get_Main_Name);
-- Generate command line args in prototype if present on target
if Command_Line_Args_On_Target then
Write_Statement_Buffer (" (int argc, char **argv, char **envp)");
-- Case of no command line arguments on target
else
Write_Statement_Buffer (" (void)");
end if;
WBI ("{");
-- Generate a reference to __gnat_ada_main_program_name. This symbol
-- is not referenced elsewhere in the generated program, but is
-- needed by the debugger (that's why it is generated in the first
-- place). The reference stops Ada_Main_Program_Name from being
-- optimized away by smart linkers, such as the AiX linker.
-- Because this variable is unused, we declare this variable as
-- volatile in order to tell the compiler to preserve it at any
-- level of optimization.
if Bind_Main_Program then
WBI (" char * volatile ensure_reference " &
"__attribute__ ((__unused__)) = " &
"__gnat_ada_main_program_name;");
WBI ("");
if not Suppress_Standard_Library_On_Target
and then not No_Main_Subprogram
then
WBI (" int SEH [2];");
WBI ("");
end if;
end if;
-- If main program is a function, generate result variable
if ALIs.Table (ALIs.First).Main_Program = Func then
WBI (" int result;");
end if;
-- Set command line argument values from parameters if command line
-- arguments are present on target
if Command_Line_Args_On_Target then
WBI (" gnat_argc = argc;");
WBI (" gnat_argv = argv;");
WBI (" gnat_envp = envp;");
WBI (" ");
-- If configurable run-time, then nothing to do, since in this case
-- the gnat_argc/argv/envp variables are entirely suppressed.
elsif Configurable_Run_Time_On_Target then
null;
-- if no command line arguments on target, set dummy values
else
WBI (" int result;");
WBI (" gnat_argc = 0;");
WBI (" gnat_argv = 0;");
WBI (" gnat_envp = 0;");
end if;
if Opt.Default_Exit_Status /= 0
and then Bind_Main_Program
and then not Configurable_Run_Time_Mode
then
Set_String (" __gnat_set_exit_status (");
Set_Int (Opt.Default_Exit_Status);
Set_String (");");
Write_Statement_Buffer;
end if;
-- Initializes dynamic stack measurement if needed
if Dynamic_Stack_Measurement then
Set_String (" __gnat_stack_usage_initialize (");
Set_Int (Dynamic_Stack_Measurement_Array_Size);
Set_String (");");
Write_Statement_Buffer;
end if;
-- The __gnat_initialize routine is used only if we have a run-time
if not Suppress_Standard_Library_On_Target then
if not No_Main_Subprogram and then Bind_Main_Program then
WBI (" __gnat_initialize ((void *)SEH);");
else
WBI (" __gnat_initialize ((void *)0);");
end if;
end if;
WBI (" " & Ada_Init_Name.all & " ();");
if not No_Main_Subprogram then
WBI (" __gnat_break_start ();");
WBI (" ");
-- Output main program name
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
-- Main program is procedure case
if ALIs.Table (ALIs.First).Main_Program = Proc then
Set_String (" ");
Set_Main_Program_Name;
Set_String (" ();");
Write_Statement_Buffer;
-- Main program is function case
else -- ALIs.Table (ALIs_First).Main_Program = Func
Set_String (" result = ");
Set_Main_Program_Name;
Set_String (" ();");
Write_Statement_Buffer;
end if;
end if;
-- Call adafinal if finalization active
if not Cumulative_Restrictions.Set (No_Finalization) then
WBI (" ");
WBI (" system__standard_library__adafinal ();");
end if;
-- Outputs the dynamic stack measurement if needed
if Dynamic_Stack_Measurement then
WBI (" __gnat_stack_usage_output_results ();");
end if;
-- The finalize routine is used only if we have a run-time
if not Suppress_Standard_Library_On_Target then
WBI (" __gnat_finalize ();");
end if;
-- Case of main program is a function, so the value it returns
-- is the exit status in this case.
if ALIs.Table (ALIs.First).Main_Program = Func then
if Exit_Status_Supported_On_Target then
-- VMS must use Posix exit routine in order to get the effect
-- of a Unix compatible setting of the program exit status.
-- For all other systems, we use the standard exit routine.
if OpenVMS_On_Target then
WBI (" decc$__posix_exit (result);");
else
WBI (" exit (result);");
end if;
end if;
-- Case of main program is a procedure, in which case the exit
-- status is whatever was set by a Set_Exit call most recently
else
if Exit_Status_Supported_On_Target then
-- VMS must use Posix exit routine in order to get the effect
-- of a Unix compatible setting of the program exit status.
-- For all other systems, we use the standard exit routine.
if OpenVMS_On_Target then
WBI (" decc$__posix_exit (gnat_exit_status);");
else
WBI (" exit (gnat_exit_status);");
end if;
end if;
end if;
WBI ("}");
end Gen_Main_C;
------------------------------
-- Gen_Object_Files_Options --
------------------------------
procedure Gen_Object_Files_Options is
Lgnat : Natural;
-- This keeps track of the position in the sorted set of entries
-- in the Linker_Options table of where the first entry from an
-- internal file appears.
procedure Write_Linker_Option;
-- Write binder info linker option
-------------------------
-- Write_Linker_Option --
-------------------------
procedure Write_Linker_Option is
Start : Natural;
Stop : Natural;
begin
-- Loop through string, breaking at null's
Start := 1;
while Start < Name_Len loop
-- Find null ending this section
Stop := Start + 1;
while Name_Buffer (Stop) /= ASCII.NUL
and then Stop <= Name_Len loop
Stop := Stop + 1;
end loop;
-- Process section if non-null
if Stop > Start then
if Output_Linker_Option_List then
Write_Str (Name_Buffer (Start .. Stop - 1));
Write_Eol;
end if;
Write_Info_Ada_C
(" -- ", "", Name_Buffer (Start .. Stop - 1));
end if;
Start := Stop + 1;
end loop;
end Write_Linker_Option;
-- Start of processing for Gen_Object_Files_Options
begin
WBI ("");
Write_Info_Ada_C ("-- ", "/* ", " BEGIN Object file/option list");
for E in Elab_Order.First .. Elab_Order.Last loop
-- If not spec that has an associated body, then generate a
-- comment giving the name of the corresponding object file.
if (not Units.Table (Elab_Order.Table (E)).SAL_Interface)
and then Units.Table (Elab_Order.Table (E)).Utype /= Is_Spec
then
Get_Name_String
(ALIs.Table
(Units.Table (Elab_Order.Table (E)).My_ALI).Ofile_Full_Name);
-- If the presence of an object file is necessary or if it
-- exists, then use it.
if not Hostparm.Exclude_Missing_Objects
or else GNAT.OS_Lib.Is_Regular_File (Name_Buffer (1 .. Name_Len))
then
Write_Info_Ada_C (" -- ", "", Name_Buffer (1 .. Name_Len));
if Output_Object_List then
Write_Str (Name_Buffer (1 .. Name_Len));
Write_Eol;
end if;
-- Don't link with the shared library on VMS if an internal
-- filename object is seen. Multiply defined symbols will
-- result.
if OpenVMS_On_Target
and then Is_Internal_File_Name
(ALIs.Table
(Units.Table (Elab_Order.Table (E)).My_ALI).Sfile)
then
-- Special case for g-trasym.obj, which is not included
-- in libgnat.
Get_Name_String (ALIs.Table
(Units.Table (Elab_Order.Table (E)).My_ALI).Sfile);
if Name_Buffer (1 .. 8) /= "g-trasym" then
Opt.Shared_Libgnat := False;
end if;
end if;
end if;
end if;
end loop;
-- Add a "-Ldir" for each directory in the object path
for J in 1 .. Nb_Dir_In_Obj_Search_Path loop
declare
Dir : constant String_Ptr := Dir_In_Obj_Search_Path (J);
begin
Name_Len := 0;
Add_Str_To_Name_Buffer ("-L");
Add_Str_To_Name_Buffer (Dir.all);
Write_Linker_Option;
end;
end loop;
-- Sort linker options
-- This sort accomplishes two important purposes:
-- a) All application files are sorted to the front, and all
-- GNAT internal files are sorted to the end. This results
-- in a well defined dividing line between the two sets of
-- files, for the purpose of inserting certain standard
-- library references into the linker arguments list.
-- b) Given two different units, we sort the linker options so
-- that those from a unit earlier in the elaboration order
-- comes later in the list. This is a heuristic designed
-- to create a more friendly order of linker options when
-- the operations appear in separate units. The idea is that
-- if unit A must be elaborated before unit B, then it is
-- more likely that B references libraries included by A,
-- than vice versa, so we want the libraries included by
-- A to come after the libraries included by B.
-- These two criteria are implemented by function Lt_Linker_Option.
-- Note that a special case of b) is that specs are elaborated before
-- bodies, so linker options from specs come after linker options
-- for bodies, and again, the assumption is that libraries used by
-- the body are more likely to reference libraries used by the spec,
-- than vice versa.
Sort
(Linker_Options.Last,
Move_Linker_Option'Access,
Lt_Linker_Option'Access);
-- Write user linker options, i.e. the set of linker options that
-- come from all files other than GNAT internal files, Lgnat is
-- left set to point to the first entry from a GNAT internal file,
-- or past the end of the entriers if there are no internal files.
Lgnat := Linker_Options.Last + 1;
for J in 1 .. Linker_Options.Last loop
if not Linker_Options.Table (J).Internal_File then
Get_Name_String (Linker_Options.Table (J).Name);
Write_Linker_Option;
else
Lgnat := J;
exit;
end if;
end loop;
-- Now we insert standard linker options that must appear after the
-- entries from user files, and before the entries from GNAT run-time
-- files. The reason for this decision is that libraries referenced
-- by internal routines may reference these standard library entries.
if not Opt.No_Stdlib then
Name_Len := 0;
if Opt.Shared_Libgnat then
Add_Str_To_Name_Buffer ("-shared");
else
Add_Str_To_Name_Buffer ("-static");
end if;
-- Write directly to avoid -K output (why???)
Write_Info_Ada_C (" -- ", "", Name_Buffer (1 .. Name_Len));
if With_DECGNAT then
Name_Len := 0;
if Opt.Shared_Libgnat then
Add_Str_To_Name_Buffer (Shared_Lib ("decgnat"));
else
Add_Str_To_Name_Buffer ("-ldecgnat");
end if;
Write_Linker_Option;
end if;
if With_GNARL then
Name_Len := 0;
if Opt.Shared_Libgnat then
Add_Str_To_Name_Buffer (Shared_Lib ("gnarl"));
else
Add_Str_To_Name_Buffer ("-lgnarl");
end if;
Write_Linker_Option;
end if;
Name_Len := 0;
if Opt.Shared_Libgnat then
Add_Str_To_Name_Buffer (Shared_Lib ("gnat"));
else
Add_Str_To_Name_Buffer ("-lgnat");
end if;
Write_Linker_Option;
end if;
-- Write linker options from all internal files
for J in Lgnat .. Linker_Options.Last loop
Get_Name_String (Linker_Options.Table (J).Name);
Write_Linker_Option;
end loop;
if Ada_Bind_File then
WBI ("-- END Object file/option list ");
else
WBI (" END Object file/option list */");
end if;
end Gen_Object_Files_Options;
---------------------
-- Gen_Output_File --
---------------------
procedure Gen_Output_File (Filename : String) is
Is_Public_Version : constant Boolean := Get_Gnat_Build_Type = Public;
Is_GAP_Version : constant Boolean := Get_Gnat_Build_Type = GAP;
begin
-- Acquire settings for Interrupt_State pragmas
Set_IS_Pragma_Table;
-- Override Ada_Bind_File and Bind_Main_Program for Java since
-- JGNAT only supports Ada code, and the main program is already
-- generated by the compiler.
if Hostparm.Java_VM then
Ada_Bind_File := True;
Bind_Main_Program := False;
end if;
-- Override time slice value if -T switch is set
if Time_Slice_Set then
ALIs.Table (ALIs.First).Time_Slice_Value := Opt.Time_Slice_Value;
end if;
-- Count number of elaboration calls
for E in Elab_Order.First .. Elab_Order.Last loop
if Units.Table (Elab_Order.Table (E)).No_Elab then
null;
else
Num_Elab_Calls := Num_Elab_Calls + 1;
end if;
end loop;
-- Get the time stamp of the former bind for public version warning
if Is_Public_Version or Is_GAP_Version then
Record_Time_From_Last_Bind;
end if;
-- Generate output file in appropriate language
if Ada_Bind_File then
Gen_Output_File_Ada (Filename);
else
Gen_Output_File_C (Filename);
end if;
-- Periodically issue a warning when the public version is used on
-- big projects
if Is_Public_Version then
Public_Version_Warning;
end if;
end Gen_Output_File;
-------------------------
-- Gen_Output_File_Ada --
-------------------------
procedure Gen_Output_File_Ada (Filename : String) is
Bfiles : Name_Id;
-- Name of generated bind file (spec)
Bfileb : Name_Id;
-- Name of generated bind file (body)
Ada_Main : constant String := Get_Ada_Main_Name;
-- Name to be used for generated Ada main program. See the body of
-- function Get_Ada_Main_Name for details on the form of the name.
begin
-- Create spec first
Create_Binder_Output (Filename, 's', Bfiles);
-- If we are operating in Restrictions (No_Exception_Handlers) mode,
-- then we need to make sure that the binder program is compiled with
-- the same restriction, so that no exception tables are generated.
if Cumulative_Restrictions.Set (No_Exception_Handlers) then
WBI ("pragma Restrictions (No_Exception_Handlers);");
end if;
-- Generate with of System so we can reference System.Address
WBI ("with System;");
-- Generate with of System.Initialize_Scalars if active
if Initialize_Scalars_Used then
WBI ("with System.Scalar_Values;");
end if;
-- Generate with of System.Secondary_Stack if active
if Sec_Stack_Used and then Default_Sec_Stack_Size /= -1 then
WBI ("with System.Secondary_Stack;");
end if;
Resolve_Binder_Options;
if not Suppress_Standard_Library_On_Target then
-- Usually, adafinal is called using a pragma Import C. Since
-- Import C doesn't have the same semantics for JGNAT, we use
-- standard Ada.
if Hostparm.Java_VM then
WBI ("with System.Standard_Library;");
end if;
end if;
WBI ("package " & Ada_Main & " is");
WBI (" pragma Warnings (Off);");
-- Main program case
if Bind_Main_Program then
-- Generate argc/argv stuff unless suppressed
if Command_Line_Args_On_Target
or not Configurable_Run_Time_On_Target
then
WBI ("");
WBI (" gnat_argc : Integer;");
WBI (" gnat_argv : System.Address;");
WBI (" gnat_envp : System.Address;");
-- If the standard library is not suppressed, these variables are
-- in the runtime data area for easy access from the runtime
if not Suppress_Standard_Library_On_Target then
WBI ("");
WBI (" pragma Import (C, gnat_argc);");
WBI (" pragma Import (C, gnat_argv);");
WBI (" pragma Import (C, gnat_envp);");
end if;
end if;
-- Define exit status. Again in normal mode, this is in the
-- run-time library, and is initialized there, but in the
-- configurable runtime case, the variable is declared and
-- initialized in this file.
WBI ("");
if Configurable_Run_Time_Mode then
if Exit_Status_Supported_On_Target then
WBI (" gnat_exit_status : Integer := 0;");
end if;
else
WBI (" gnat_exit_status : Integer;");
WBI (" pragma Import (C, gnat_exit_status);");
end if;
end if;
-- Generate the GNAT_Version and Ada_Main_Program_Name info only for
-- the main program. Otherwise, it can lead under some circumstances
-- to a symbol duplication during the link (for instance when a
-- C program uses 2 Ada libraries)
if Bind_Main_Program then
WBI ("");
WBI (" GNAT_Version : constant String :=");
WBI (" ""GNAT Version: " &
Gnat_Version_String & """;");
WBI (" pragma Export (C, GNAT_Version, ""__gnat_version"");");
WBI ("");
Set_String (" Ada_Main_Program_Name : constant String := """);
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
Set_Main_Program_Name;
Set_String (""" & Ascii.NUL;");
Write_Statement_Buffer;
WBI
(" pragma Export (C, Ada_Main_Program_Name, " &
"""__gnat_ada_main_program_name"");");
end if;
WBI ("");
WBI (" procedure " & Ada_Final_Name.all & ";");
WBI (" pragma Export (C, " & Ada_Final_Name.all & ", """ &
Ada_Final_Name.all & """);");
if Use_Pragma_Linker_Constructor then
WBI (" pragma Linker_Destructor (" & Ada_Final_Name.all & ");");
end if;
WBI ("");
WBI (" procedure " & Ada_Init_Name.all & ";");
WBI (" pragma Export (C, " & Ada_Init_Name.all & ", """ &
Ada_Init_Name.all & """);");
if Use_Pragma_Linker_Constructor then
WBI (" pragma Linker_Constructor (" & Ada_Init_Name.all & ");");
end if;
if Bind_Main_Program then
-- If we have the standard library, then Break_Start is defined
-- there, but when the standard library is suppressed, Break_Start
-- is defined here.
WBI ("");
WBI (" procedure Break_Start;");
if Suppress_Standard_Library_On_Target then
WBI (" pragma Export (C, Break_Start, ""__gnat_break_start"");");
else
WBI (" pragma Import (C, Break_Start, ""__gnat_break_start"");");
end if;
WBI ("");
if Exit_Status_Supported_On_Target then
Set_String (" function ");
else
Set_String (" procedure ");
end if;
Set_String (Get_Main_Name);
-- Generate argument list if present
if Command_Line_Args_On_Target then
Write_Statement_Buffer;
WBI (" (argc : Integer;");
WBI (" argv : System.Address;");
Set_String
(" envp : System.Address)");
if Exit_Status_Supported_On_Target then
Write_Statement_Buffer;
WBI (" return Integer;");
else
Write_Statement_Buffer (";");
end if;
else
if Exit_Status_Supported_On_Target then
Write_Statement_Buffer (" return Integer;");
else
Write_Statement_Buffer (";");
end if;
end if;
WBI (" pragma Export (C, " & Get_Main_Name & ", """ &
Get_Main_Name & """);");
end if;
Gen_Versions_Ada;
Gen_Elab_Order_Ada;
-- Spec is complete
WBI ("");
WBI ("end " & Ada_Main & ";");
Close_Binder_Output;
-- Prepare to write body
Create_Binder_Output (Filename, 'b', Bfileb);
-- Output Source_File_Name pragmas which look like
-- pragma Source_File_Name (Ada_Main, Spec_File_Name => "sss");
-- pragma Source_File_Name (Ada_Main, Body_File_Name => "bbb");
-- where sss/bbb are the spec/body file names respectively
Get_Name_String (Bfiles);
Name_Buffer (Name_Len + 1 .. Name_Len + 3) := """);";
WBI ("pragma Source_File_Name (" &
Ada_Main &
", Spec_File_Name => """ &
Name_Buffer (1 .. Name_Len + 3));
Get_Name_String (Bfileb);
Name_Buffer (Name_Len + 1 .. Name_Len + 3) := """);";
WBI ("pragma Source_File_Name (" &
Ada_Main &
", Body_File_Name => """ &
Name_Buffer (1 .. Name_Len + 3));
WBI ("");
WBI ("package body " & Ada_Main & " is");
WBI (" pragma Warnings (Off);");
-- Import the finalization procedure only if finalization active
if not Cumulative_Restrictions.Set (No_Finalization) then
-- In the Java case, pragma Import C cannot be used, so the
-- standard Ada constructs will be used instead.
if not Hostparm.Java_VM then
WBI ("");
WBI (" procedure Do_Finalize;");
WBI
(" pragma Import (C, Do_Finalize, " &
"""system__standard_library__adafinal"");");
WBI ("");
end if;
end if;
Gen_Adainit_Ada;
Gen_Adafinal_Ada;
if Bind_Main_Program then
-- When suppressing the standard library then generate dummy body
-- for Break_Start
if Suppress_Standard_Library_On_Target then
WBI ("");
WBI (" procedure Break_Start is");
WBI (" begin");
WBI (" null;");
WBI (" end;");
end if;
Gen_Main_Ada;
end if;
-- Output object file list and the Ada body is complete
Gen_Object_Files_Options;
WBI ("");
WBI ("end " & Ada_Main & ";");
Close_Binder_Output;
end Gen_Output_File_Ada;
-----------------------
-- Gen_Output_File_C --
-----------------------
procedure Gen_Output_File_C (Filename : String) is
Bfile : Name_Id;
-- Name of generated bind file
begin
Create_Binder_Output (Filename, 'c', Bfile);
Resolve_Binder_Options;
WBI ("extern void __gnat_set_globals");
WBI (" (int, int, char, char, char, char,");
WBI (" const char *, const char *,");
WBI (" int, int, int, int, int, int);");
if Use_Pragma_Linker_Constructor then
WBI ("extern void " & Ada_Final_Name.all &
" (void) __attribute__((destructor));");
WBI ("extern void " & Ada_Init_Name.all &
" (void) __attribute__((constructor));");
else
WBI ("extern void " & Ada_Final_Name.all & " (void);");
WBI ("extern void " & Ada_Init_Name.all & " (void);");
end if;
WBI ("extern void system__standard_library__adafinal (void);");
if not No_Main_Subprogram then
Set_String ("extern ");
if Exit_Status_Supported_On_Target then
Set_String ("int");
else
Set_String ("void");
end if;
Set_String (" main ");
if Command_Line_Args_On_Target then
Write_Statement_Buffer ("(int, char **, char **);");
else
Write_Statement_Buffer ("(void);");
end if;
if OpenVMS_On_Target then
WBI ("extern void decc$__posix_exit (int);");
else
WBI ("extern void exit (int);");
end if;
WBI ("extern void __gnat_break_start (void);");
Set_String ("extern ");
if ALIs.Table (ALIs.First).Main_Program = Proc then
Set_String ("void ");
else
Set_String ("int ");
end if;
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
Set_Main_Program_Name;
Set_String (" (void);");
Write_Statement_Buffer;
end if;
if not Suppress_Standard_Library_On_Target then
WBI ("extern void __gnat_initialize (void *);");
WBI ("extern void __gnat_finalize (void);");
WBI ("extern void __gnat_install_handler (void);");
end if;
if Dynamic_Stack_Measurement then
WBI ("");
WBI ("extern void __gnat_stack_usage_output_results (void);");
WBI ("extern void __gnat_stack_usage_initialize (int size);");
end if;
WBI ("");
Gen_Elab_Defs_C;
-- Imported variable used to track elaboration/finalization phase.
-- Used only when we have a runtime.
if not Suppress_Standard_Library_On_Target then
WBI ("extern int __gnat_handler_installed;");
WBI ("");
end if;
-- Write argv/argc exit status stuff if main program case
if Bind_Main_Program then
-- First deal with argc/argv/envp. In the normal case they
-- are in the run-time library.
if not Configurable_Run_Time_On_Target then
WBI ("extern int gnat_argc;");
WBI ("extern char **gnat_argv;");
WBI ("extern char **gnat_envp;");
-- If configurable run time and no command line args, then the
-- generation of these variables is entirely suppressed.
elsif not Command_Line_Args_On_Target then
null;
-- Otherwise, in the configurable run-time case they are right in
-- the binder file.
else
WBI ("int gnat_argc;");
WBI ("char **gnat_argv;");
WBI ("char **gnat_envp;");
end if;
-- Similarly deal with exit status
-- are in the run-time library.
if not Configurable_Run_Time_On_Target then
WBI ("extern int gnat_exit_status;");
-- If configurable run time and no exit status on target, then
-- the generation of this variables is entirely suppressed.
elsif not Exit_Status_Supported_On_Target then
null;
-- Otherwise, in the configurable run-time case this variable is
-- right in the binder file, and initialized to zero there.
else
WBI ("int gnat_exit_status = 0;");
end if;
WBI ("");
end if;
-- When suppressing the standard library, the __gnat_break_start
-- routine (for the debugger to get initial control) is defined in
-- this file.
if Suppress_Standard_Library_On_Target then
WBI ("");
WBI ("void __gnat_break_start (void) {}");
end if;
-- Generate the __gnat_version and __gnat_ada_main_program_name info
-- only for the main program. Otherwise, it can lead under some
-- circumstances to a symbol duplication during the link (for instance
-- when a C program uses 2 Ada libraries)
if Bind_Main_Program then
WBI ("");
WBI ("char __gnat_version[] = ""GNAT Version: " &
Gnat_Version_String & """;");
Set_String ("char __gnat_ada_main_program_name[] = """);
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
Set_Main_Program_Name;
Set_String (""";");
Write_Statement_Buffer;
end if;
-- Generate the adafinal routine. In no runtime mode, this is
-- not needed, since there is no finalization to do.
if not Cumulative_Restrictions.Set (No_Finalization) then
Gen_Adafinal_C;
end if;
Gen_Adainit_C;
-- Main is only present for Ada main case
if Bind_Main_Program then
Gen_Main_C;
end if;
-- Generate versions, elaboration order, list of object files
Gen_Versions_C;
Gen_Elab_Order_C;
Gen_Object_Files_Options;
-- C binder output is complete
Close_Binder_Output;
end Gen_Output_File_C;
-------------------------------
-- Gen_Restrictions_String_1 --
-------------------------------
procedure Gen_Restrictions_String_1 is
begin
for R in All_Boolean_Restrictions loop
if Cumulative_Restrictions.Set (R) then
Set_Char ('r');
elsif Cumulative_Restrictions.Violated (R) then
Set_Char ('v');
else
Set_Char ('n');
end if;
end loop;
end Gen_Restrictions_String_1;
-------------------------------
-- Gen_Restrictions_String_2 --
-------------------------------
procedure Gen_Restrictions_String_2 is
begin
for RP in All_Parameter_Restrictions loop
if Cumulative_Restrictions.Set (RP) then
Set_Char ('r');
Set_Int (Int (Cumulative_Restrictions.Value (RP)));
else
Set_Char ('n');
end if;
if not Cumulative_Restrictions.Violated (RP)
or else RP not in Checked_Parameter_Restrictions
then
Set_Char ('n');
else
Set_Char ('v');
Set_Int (Int (Cumulative_Restrictions.Count (RP)));
if Cumulative_Restrictions.Unknown (RP) then
Set_Char ('+');
end if;
end if;
end loop;
end Gen_Restrictions_String_2;
----------------------
-- Gen_Versions_Ada --
----------------------
-- This routine generates two sets of lines. The first set has the form:
-- unnnnn : constant Integer := 16#hhhhhhhh#;
-- The second set has the form
-- pragma Export (C, unnnnn, unam);
-- for each unit, where unam is the unit name suffixed by either B or
-- S for body or spec, with dots replaced by double underscores, and
-- hhhhhhhh is the version number, and nnnnn is a 5-digits serial number.
procedure Gen_Versions_Ada is
Ubuf : String (1 .. 6) := "u00000";
procedure Increment_Ubuf;
-- Little procedure to increment the serial number
procedure Increment_Ubuf is
begin
for J in reverse Ubuf'Range loop
Ubuf (J) := Character'Succ (Ubuf (J));
exit when Ubuf (J) <= '9';
Ubuf (J) := '0';
end loop;
end Increment_Ubuf;
-- Start of processing for Gen_Versions_Ada
begin
if Bind_For_Library then
-- When building libraries, the version number of each unit can
-- not be computed, since the binder does not know the full list
-- of units. Therefore, the 'Version and 'Body_Version
-- attributes cannot supported in this case.
return;
end if;
WBI ("");
WBI (" type Version_32 is mod 2 ** 32;");
for U in Units.First .. Units.Last loop
Increment_Ubuf;
WBI (" " & Ubuf & " : constant Version_32 := 16#" &
Units.Table (U).Version & "#;");
end loop;
WBI ("");
Ubuf := "u00000";
for U in Units.First .. Units.Last loop
Increment_Ubuf;
Set_String (" pragma Export (C, ");
Set_String (Ubuf);
Set_String (", """);
Get_Name_String (Units.Table (U).Uname);
for K in 1 .. Name_Len loop
if Name_Buffer (K) = '.' then
Set_Char ('_');
Set_Char ('_');
elsif Name_Buffer (K) = '%' then
exit;
else
Set_Char (Name_Buffer (K));
end if;
end loop;
if Name_Buffer (Name_Len) = 's' then
Set_Char ('S');
else
Set_Char ('B');
end if;
Set_String (""");");
Write_Statement_Buffer;
end loop;
end Gen_Versions_Ada;
--------------------
-- Gen_Versions_C --
--------------------
-- This routine generates a line of the form:
-- unsigned unam = 0xhhhhhhhh;
-- for each unit, where unam is the unit name suffixed by either B or
-- S for body or spec, with dots replaced by double underscores.
procedure Gen_Versions_C is
begin
if Bind_For_Library then
-- When building libraries, the version number of each unit can
-- not be computed, since the binder does not know the full list
-- of units. Therefore, the 'Version and 'Body_Version
-- attributes cannot supported.
return;
end if;
for U in Units.First .. Units.Last loop
Set_String ("unsigned ");
Get_Name_String (Units.Table (U).Uname);
for K in 1 .. Name_Len loop
if Name_Buffer (K) = '.' then
Set_String ("__");
elsif Name_Buffer (K) = '%' then
exit;
else
Set_Char (Name_Buffer (K));
end if;
end loop;
if Name_Buffer (Name_Len) = 's' then
Set_Char ('S');
else
Set_Char ('B');
end if;
Set_String (" = 0x");
Set_String (Units.Table (U).Version);
Set_Char (';');
Write_Statement_Buffer;
end loop;
end Gen_Versions_C;
-----------------------
-- Get_Ada_Main_Name --
-----------------------
function Get_Ada_Main_Name return String is
Suffix : constant String := "_00";
Name : String (1 .. Opt.Ada_Main_Name.all'Length + Suffix'Length) :=
Opt.Ada_Main_Name.all & Suffix;
Nlen : Natural;
begin
-- The main program generated by JGNAT expects a package called
-- ada_<main procedure>.
if Hostparm.Java_VM then
-- Get main program name
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
-- Remove the %b
return "ada_" & Name_Buffer (1 .. Name_Len - 2);
end if;
-- This loop tries the following possibilities in order
-- <Ada_Main>
-- <Ada_Main>_01
-- <Ada_Main>_02
-- ..
-- <Ada_Main>_99
-- where <Ada_Main> is equal to Opt.Ada_Main_Name. By default,
-- it is set to 'ada_main'.
for J in 0 .. 99 loop
if J = 0 then
Nlen := Name'Length - Suffix'Length;
else
Nlen := Name'Length;
Name (Name'Last) := Character'Val (J mod 10 + Character'Pos ('0'));
Name (Name'Last - 1) :=
Character'Val (J / 10 + Character'Pos ('0'));
end if;
for K in ALIs.First .. ALIs.Last loop
for L in ALIs.Table (K).First_Unit .. ALIs.Table (K).Last_Unit loop
-- Get unit name, removing %b or %e at end
Get_Name_String (Units.Table (L).Uname);
Name_Len := Name_Len - 2;
if Name_Buffer (1 .. Name_Len) = Name (1 .. Nlen) then
goto Continue;
end if;
end loop;
end loop;
return Name (1 .. Nlen);
<<Continue>>
null;
end loop;
-- If we fall through, just use a peculiar unlikely name
return ("Qwertyuiop");
end Get_Ada_Main_Name;
-------------------
-- Get_Main_Name --
-------------------
function Get_Main_Name return String is
begin
-- Explicit name given with -M switch
if Bind_Alternate_Main_Name then
return Alternate_Main_Name.all;
-- Case of main program name to be used directly
elsif Use_Ada_Main_Program_Name_On_Target then
-- Get main program name
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
-- If this is a child name, return only the name of the child,
-- since we can't have dots in a nested program name. Note that
-- we do not include the %b at the end of the unit name.
for J in reverse 1 .. Name_Len - 2 loop
if J = 1 or else Name_Buffer (J - 1) = '.' then
return Name_Buffer (J .. Name_Len - 2);
end if;
end loop;
raise Program_Error; -- impossible exit
-- Case where "main" is to be used as default
else
return "main";
end if;
end Get_Main_Name;
----------------------
-- Lt_Linker_Option --
----------------------
function Lt_Linker_Option (Op1, Op2 : Natural) return Boolean is
begin
-- Sort internal files last
if Linker_Options.Table (Op1).Internal_File
/=
Linker_Options.Table (Op2).Internal_File
then
-- Note: following test uses False < True
return Linker_Options.Table (Op1).Internal_File
<
Linker_Options.Table (Op2).Internal_File;
-- If both internal or both non-internal, sort according to the
-- elaboration position. A unit that is elaborated later should
-- come earlier in the linker options list.
else
return Units.Table (Linker_Options.Table (Op1).Unit).Elab_Position
>
Units.Table (Linker_Options.Table (Op2).Unit).Elab_Position;
end if;
end Lt_Linker_Option;
------------------------
-- Move_Linker_Option --
------------------------
procedure Move_Linker_Option (From : Natural; To : Natural) is
begin
Linker_Options.Table (To) := Linker_Options.Table (From);
end Move_Linker_Option;
----------------------------
-- Public_Version_Warning --
----------------------------
procedure Public_Version_Warning is
Time : constant Int := Time_From_Last_Bind;
-- Constants to help defining periods
Hour : constant := 60;
Day : constant := 24 * Hour;
Never : constant := Integer'Last;
-- Special value indicating no warnings should be given
-- Constants defining when the warning is issued. Programs with more
-- than Large Units will issue a warning every Period_Large amount of
-- time. Smaller programs will generate a warning every Period_Small
-- amount of time.
Large : constant := 20;
-- Threshold for considering a program small or large
Period_Large : constant := Day;
-- Periodic warning time for large programs
Period_Small : constant := Never;
-- Periodic warning time for small programs
Nb_Unit : Int;
begin
-- Compute the number of units that are not GNAT internal files
Nb_Unit := 0;
for A in ALIs.First .. ALIs.Last loop
if not Is_Internal_File_Name (ALIs.Table (A).Sfile) then
Nb_Unit := Nb_Unit + 1;
end if;
end loop;
-- Do not emit the message if the last message was emitted in the
-- specified period taking into account the number of units.
pragma Warnings (Off);
-- Turn off warning of constant condition, which may happen here
-- depending on the choice of constants in the above declarations.
if Nb_Unit < Large and then Time <= Period_Small then
return;
elsif Time <= Period_Large then
return;
end if;
pragma Warnings (On);
Write_Eol;
Write_Str ("IMPORTANT NOTICE:");
Write_Eol;
Write_Str (" This version of GNAT is unsupported"
& " and comes with absolutely no warranty.");
Write_Eol;
Write_Str (" If you intend to evaluate or use GNAT for building "
& "commercial applications,");
Write_Eol;
Write_Str (" please consult http://www.gnat.com/ for information");
Write_Eol;
Write_Str (" on the GNAT Professional product line.");
Write_Eol;
Write_Eol;
end Public_Version_Warning;
----------------------------
-- Resolve_Binder_Options --
----------------------------
procedure Resolve_Binder_Options is
begin
for E in Elab_Order.First .. Elab_Order.Last loop
Get_Name_String (Units.Table (Elab_Order.Table (E)).Uname);
-- The procedure of looking for specific packages and setting
-- flags is somewhat dubious, but there isn't a good alternative
-- at the current time ???
if Name_Buffer (1 .. 19) = "system.os_interface" then
With_GNARL := True;
end if;
if OpenVMS_On_Target and then Name_Buffer (1 .. 5) = "dec%s" then
With_DECGNAT := True;
end if;
end loop;
end Resolve_Binder_Options;
--------------
-- Set_Char --
--------------
procedure Set_Char (C : Character) is
begin
Last := Last + 1;
Statement_Buffer (Last) := C;
end Set_Char;
-------------
-- Set_Int --
-------------
procedure Set_Int (N : Int) is
begin
if N < 0 then
Set_String ("-");
Set_Int (-N);
else
if N > 9 then
Set_Int (N / 10);
end if;
Last := Last + 1;
Statement_Buffer (Last) :=
Character'Val (N mod 10 + Character'Pos ('0'));
end if;
end Set_Int;
-------------------------
-- Set_IS_Pragma_Table --
-------------------------
procedure Set_IS_Pragma_Table is
begin
for F in ALIs.First .. ALIs.Last loop
for K in ALIs.Table (F).First_Interrupt_State ..
ALIs.Table (F).Last_Interrupt_State
loop
declare
Inum : constant Int :=
Interrupt_States.Table (K).Interrupt_Id;
Stat : constant Character :=
Interrupt_States.Table (K).Interrupt_State;
begin
while IS_Pragma_Settings.Last < Inum loop
IS_Pragma_Settings.Append ('n');
end loop;
IS_Pragma_Settings.Table (Inum) := Stat;
end;
end loop;
end loop;
end Set_IS_Pragma_Table;
---------------------------
-- Set_Main_Program_Name --
---------------------------
procedure Set_Main_Program_Name is
begin
-- Note that name has %b on the end which we ignore
-- First we output the initial _ada_ since we know that the main
-- program is a library level subprogram.
Set_String ("_ada_");
-- Copy name, changing dots to double underscores
for J in 1 .. Name_Len - 2 loop
if Name_Buffer (J) = '.' then
Set_String ("__");
else
Set_Char (Name_Buffer (J));
end if;
end loop;
end Set_Main_Program_Name;
---------------------
-- Set_Name_Buffer --
---------------------
procedure Set_Name_Buffer is
begin
for J in 1 .. Name_Len loop
Set_Char (Name_Buffer (J));
end loop;
end Set_Name_Buffer;
----------------
-- Set_String --
----------------
procedure Set_String (S : String) is
begin
Statement_Buffer (Last + 1 .. Last + S'Length) := S;
Last := Last + S'Length;
end Set_String;
-------------------
-- Set_Unit_Name --
-------------------
procedure Set_Unit_Name is
begin
for J in 1 .. Name_Len - 2 loop
if Name_Buffer (J) /= '.' then
Set_Char (Name_Buffer (J));
else
Set_String ("__");
end if;
end loop;
end Set_Unit_Name;
---------------------
-- Set_Unit_Number --
---------------------
procedure Set_Unit_Number (U : Unit_Id) is
Num_Units : constant Nat := Nat (Units.Last) - Nat (Unit_Id'First);
Unum : constant Nat := Nat (U) - Nat (Unit_Id'First);
begin
if Num_Units >= 10 and then Unum < 10 then
Set_Char ('0');
end if;
if Num_Units >= 100 and then Unum < 100 then
Set_Char ('0');
end if;
Set_Int (Unum);
end Set_Unit_Number;
------------
-- Tab_To --
------------
procedure Tab_To (N : Natural) is
begin
while Last < N loop
Set_Char (' ');
end loop;
end Tab_To;
----------------------
-- Write_Info_Ada_C --
----------------------
procedure Write_Info_Ada_C (Ada : String; C : String; Common : String) is
begin
if Ada_Bind_File then
declare
S : String (1 .. Ada'Length + Common'Length);
begin
S (1 .. Ada'Length) := Ada;
S (Ada'Length + 1 .. S'Length) := Common;
WBI (S);
end;
else
declare
S : String (1 .. C'Length + Common'Length);
begin
S (1 .. C'Length) := C;
S (C'Length + 1 .. S'Length) := Common;
WBI (S);
end;
end if;
end Write_Info_Ada_C;
----------------------------
-- Write_Statement_Buffer --
----------------------------
procedure Write_Statement_Buffer is
begin
WBI (Statement_Buffer (1 .. Last));
Last := 0;
end Write_Statement_Buffer;
procedure Write_Statement_Buffer (S : String) is
begin
Set_String (S);
Write_Statement_Buffer;
end Write_Statement_Buffer;
end Bindgen;
|
2695
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- <NAME> I N D G E N --
-- --
-- B o d y --
-- --
-- Copyright (C) 1992-2006, 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 2, 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 COPYING. If not, write --
-- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
-- Boston, MA 02110-1301, USA. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with ALI; use ALI;
with Binde; use Binde;
with Casing; use Casing;
with Fname; use Fname;
with GNAT.OS_Lib; use GNAT.OS_Lib;
with Gnatvsn; use Gnatvsn;
with Hostparm;
with Namet; use Namet;
with Opt; use Opt;
with Osint; use Osint;
with Osint.B; use Osint.B;
with Output; use Output;
with Rident; use Rident;
with Table; use Table;
with Targparm; use Targparm;
with Types; use Types;
with GNAT.Heap_Sort_A; use GNAT.Heap_Sort_A;
package body Bindgen is
Statement_Buffer : String (1 .. 1000);
-- Buffer used for constructing output statements
Last : Natural := 0;
-- Last location in Statement_Buffer currently set
With_DECGNAT : Boolean := False;
-- Flag which indicates whether the program uses the DECGNAT library
-- (presence of the unit DEC).
With_GNARL : Boolean := False;
-- Flag which indicates whether the program uses the GNARL library
-- (presence of the unit System.OS_Interface)
Num_Elab_Calls : Nat := 0;
-- Number of generated calls to elaboration routines
----------------------------------
-- Interface_State Pragma Table --
----------------------------------
-- This table assembles the interface state pragma information from
-- all the units in the partition. Note that Bcheck has already checked
-- that the information is consistent across partitions. The entries
-- in this table are n/u/r/s for not set/user/runtime/system.
package IS_Pragma_Settings is new Table.Table (
Table_Component_Type => Character,
Table_Index_Type => Int,
Table_Low_Bound => 0,
Table_Initial => 100,
Table_Increment => 200,
Table_Name => "IS_Pragma_Settings");
----------------------
-- Run-Time Globals --
----------------------
-- This section documents the global variables that are passed to the
-- run time from the generated binder file. The call that is made is
-- to the routine Set_Globals, which has the following spec:
-- procedure Set_Globals
-- (Main_Priority : Integer;
-- Time_Slice_Value : Integer;
-- WC_Encoding : Character;
-- Locking_Policy : Character;
-- Queuing_Policy : Character;
-- Task_Dispatching_Policy : Character;
-- Restrictions : System.Address;
-- Interrupt_States : System.Address;
-- Num_Interrupt_States : Integer;
-- Unreserve_All_Interrupts : Integer;
-- Exception_Tracebacks : Integer;
-- Zero_Cost_Exceptions : Integer;
-- Detect_Blocking : Integer);
-- Main_Priority is the priority value set by pragma Priority in the
-- main program. If no such pragma is present, the value is -1.
-- Time_Slice_Value is the time slice value set by pragma Time_Slice
-- in the main program, or by the use of a -Tnnn parameter for the
-- binder (if both are present, the binder value overrides). The
-- value is in milliseconds. A value of zero indicates that time
-- slicing should be suppressed. If no pragma is present, and no
-- -T switch was used, the value is -1.
-- WC_Encoding shows the wide character encoding method used for
-- the main program. This is one of the encoding letters defined
-- in System.WCh_Con.WC_Encoding_Letters.
-- Locking_Policy is a space if no locking policy was specified
-- for the partition. If a locking policy was specified, the value
-- is the upper case first character of the locking policy name,
-- for example, 'C' for Ceiling_Locking.
-- Queuing_Policy is a space if no queuing policy was specified
-- for the partition. If a queuing policy was specified, the value
-- is the upper case first character of the queuing policy name
-- for example, 'F' for FIFO_Queuing.
-- Task_Dispatching_Policy is a space if no task dispatching policy
-- was specified for the partition. If a task dispatching policy
-- was specified, the value is the upper case first character of
-- the policy name, e.g. 'F' for FIFO_Within_Priorities.
-- Restrictions is the address of a null-terminated string specifying the
-- restrictions information for the partition. The format is identical to
-- that of the parameter string found on R lines in ali files (see Lib.Writ
-- spec in lib-writ.ads for full details). The difference is that in this
-- context the values are the cumulative ones for the entire partition.
-- Interrupt_States is the address of a string used to specify the
-- cumulative results of Interrupt_State pragmas used in the partition.
-- The length of this string is determined by the last interrupt for which
-- such a pragma is given (the string will be a null string if no pragmas
-- were used). If pragma were present the entries apply to the interrupts
-- in sequence from the first interrupt, and are set to one of four
-- possible settings: 'n' for not specified, 'u' for user, 'r' for
-- run time, 's' for system, see description of Interrupt_State pragma
-- for further details.
-- Num_Interrupt_States is the length of the Interrupt_States string.
-- It will be set to zero if no Interrupt_State pragmas are present.
-- Unreserve_All_Interrupts is set to one if at least one unit in the
-- partition had a pragma Unreserve_All_Interrupts, and zero otherwise.
-- Exception_Tracebacks is set to one if the -E parameter was present
-- in the bind and to zero otherwise. Note that on some targets exception
-- tracebacks are provided by default, so a value of zero for this
-- parameter does not necessarily mean no trace backs are available.
-- Zero_Cost_Exceptions is set to one if zero cost exceptions are used for
-- this partition, and to zero if longjmp/setjmp exceptions are used.
-- the use of zero
-- Detect_Blocking indicates whether pragma Detect_Blocking is
-- active or not. A value of zero indicates that the pragma is not
-- present, while a value of 1 signals its presence in the
-- partition.
-----------------------
-- Local Subprograms --
-----------------------
procedure WBI (Info : String) renames Osint.B.Write_Binder_Info;
-- Convenient shorthand used throughout
procedure Gen_Adainit_Ada;
-- Generates the Adainit procedure (Ada code case)
procedure Gen_Adainit_C;
-- Generates the Adainit procedure (C code case)
procedure Gen_Adafinal_Ada;
-- Generate the Adafinal procedure (Ada code case)
procedure Gen_Adafinal_C;
-- Generate the Adafinal procedure (C code case)
procedure Gen_Elab_Calls_Ada;
-- Generate sequence of elaboration calls (Ada code case)
procedure Gen_Elab_Calls_C;
-- Generate sequence of elaboration calls (C code case)
procedure Gen_Elab_Order_Ada;
-- Generate comments showing elaboration order chosen (Ada case)
procedure Gen_Elab_Order_C;
-- Generate comments showing elaboration order chosen (C case)
procedure Gen_Elab_Defs_C;
-- Generate sequence of definitions for elaboration routines (C code case)
procedure Gen_Main_Ada;
-- Generate procedure main (Ada code case)
procedure Gen_Main_C;
-- Generate main() procedure (C code case)
procedure Gen_Object_Files_Options;
-- Output comments containing a list of the full names of the object
-- files to be linked and the list of linker options supplied by
-- Linker_Options pragmas in the source. (C and Ada code case)
procedure Gen_Output_File_Ada (Filename : String);
-- Generate output file (Ada code case)
procedure Gen_Output_File_C (Filename : String);
-- Generate output file (C code case)
procedure Gen_Restrictions_String_1;
-- Generate first restrictions string, which consists of the parameters
-- the first R line, as described in lib-writ.ads, with the restrictions
-- being those for the entire partition (from Cumulative_Restrictions).
procedure Gen_Restrictions_String_2;
-- Generate first restrictions string, which consists of the parameters
-- the second R line, as described in lib-writ.ads, with the restrictions
-- being those for the entire partition (from Cumulative_Restrictions).
procedure Gen_Versions_Ada;
-- Output series of definitions for unit versions (Ada code case)
procedure Gen_Versions_C;
-- Output series of definitions for unit versions (C code case)
function Get_Ada_Main_Name return String;
-- This function is used in the Ada main output case to compute a usable
-- name for the generated main program. The normal main program name is
-- Ada_Main, but this won't work if the user has a unit with this name.
-- This function tries Ada_Main first, and if there is such a clash, then
-- it tries Ada_Name_01, Ada_Name_02 ... Ada_Name_99 in sequence.
function Get_Main_Name return String;
-- This function is used in the Ada main output case to compute the
-- correct external main program. It is "main" by default, unless the
-- flag Use_Ada_Main_Program_Name_On_Target is set, in which case it
-- is the name of the Ada main name without the "_ada". This default
-- can be overridden explicitly using the -Mname binder switch.
function Lt_Linker_Option (Op1, Op2 : Natural) return Boolean;
-- Compare linker options, when sorting, first according to
-- Is_Internal_File (internal files come later) and then by
-- elaboration order position (latest to earliest).
procedure Move_Linker_Option (From : Natural; To : Natural);
-- Move routine for sorting linker options
procedure Public_Version_Warning;
-- Emit a warning concerning the use of the Public version under
-- certain circumstances. See details in body.
procedure Resolve_Binder_Options;
-- Set the value of With_GNARL and With_DECGNAT. The latter only on VMS
-- since it tests for a package named "dec" which might cause a conflict
-- on non-VMS systems.
procedure Set_Char (C : Character);
-- Set given character in Statement_Buffer at the Last + 1 position
-- and increment Last by one to reflect the stored character.
procedure Set_Int (N : Int);
-- Set given value in decimal in Statement_Buffer with no spaces
-- starting at the Last + 1 position, and updating Last past the value.
-- A minus sign is output for a negative value.
procedure Set_IS_Pragma_Table;
-- Initializes contents of IS_Pragma_Settings table from ALI table
procedure Set_Main_Program_Name;
-- Given the main program name in Name_Buffer (length in Name_Len)
-- generate the name of the routine to be used in the call. The name
-- is generated starting at Last + 1, and Last is updated past it.
procedure Set_Name_Buffer;
-- Set the value stored in positions 1 .. Name_Len of the Name_Buffer
procedure Set_String (S : String);
-- Sets characters of given string in Statement_Buffer, starting at the
-- Last + 1 position, and updating last past the string value.
procedure Set_Unit_Name;
-- Given a unit name in the Name_Buffer, copies it to Statement_Buffer,
-- starting at the Last + 1 position, and updating last past the value.
-- changing periods to double underscores, and updating Last appropriately.
procedure Set_Unit_Number (U : Unit_Id);
-- Sets unit number (first unit is 1, leading zeroes output to line
-- up all output unit numbers nicely as required by the value, and
-- by the total number of units.
procedure Tab_To (N : Natural);
-- If Last is greater than or equal to N, no effect, otherwise store
-- blanks in Statement_Buffer bumping Last, until Last = N.
procedure Write_Info_Ada_C (Ada : String; C : String; Common : String);
-- For C code case, write C & Common, for Ada case write Ada & Common
-- to current binder output file using Write_Binder_Info.
procedure Write_Statement_Buffer;
-- Write out contents of statement buffer up to Last, and reset Last to 0
procedure Write_Statement_Buffer (S : String);
-- First writes its argument (using Set_String (S)), then writes out the
-- contents of statement buffer up to Last, and reset Last to 0
----------------------
-- Gen_Adafinal_Ada --
----------------------
procedure Gen_Adafinal_Ada is
begin
WBI ("");
WBI (" procedure " & Ada_Final_Name.all & " is");
WBI (" begin");
-- If compiling for the JVM, we directly call Adafinal because
-- we don't import it via Do_Finalize (see Gen_Output_File_Ada).
if Hostparm.Java_VM then
WBI (" System.Standard_Library.Adafinal;");
-- If there is no finalization, there is nothing to do
elsif Cumulative_Restrictions.Set (No_Finalization) then
WBI (" null;");
else
WBI (" Do_Finalize;");
end if;
WBI (" end " & Ada_Final_Name.all & ";");
end Gen_Adafinal_Ada;
--------------------
-- Gen_Adafinal_C --
--------------------
procedure Gen_Adafinal_C is
begin
WBI ("void " & Ada_Final_Name.all & " (void) {");
WBI (" system__standard_library__adafinal ();");
WBI ("}");
WBI ("");
end Gen_Adafinal_C;
---------------------
-- Gen_Adainit_Ada --
---------------------
procedure Gen_Adainit_Ada is
Main_Priority : Int renames ALIs.Table (ALIs.First).Main_Priority;
begin
WBI (" procedure " & Ada_Init_Name.all & " is");
-- Generate externals for elaboration entities
for E in Elab_Order.First .. Elab_Order.Last loop
declare
Unum : constant Unit_Id := Elab_Order.Table (E);
U : Unit_Record renames Units.Table (Unum);
begin
-- Check for Elab_Entity to be set for this unit
if U.Set_Elab_Entity
-- Don't generate reference for stand alone library
and then not U.SAL_Interface
-- Don't generate reference for predefined file in No_Run_Time
-- mode, since we don't include the object files in this case
and then not
(No_Run_Time_Mode
and then Is_Predefined_File_Name (U.Sfile))
then
Set_String (" ");
Set_String ("E");
Set_Unit_Number (Unum);
Set_String (" : Boolean; pragma Import (Ada, ");
Set_String ("E");
Set_Unit_Number (Unum);
Set_String (", """);
Get_Name_String (U.Uname);
-- In the case of JGNAT we need to emit an Import name
-- that includes the class name (using '$' separators
-- in the case of a child unit name).
if Hostparm.Java_VM then
for J in 1 .. Name_Len - 2 loop
if Name_Buffer (J) /= '.' then
Set_Char (Name_Buffer (J));
else
Set_String ("$");
end if;
end loop;
Set_String (".");
-- If the unit name is very long, then split the
-- Import link name across lines using "&" (occurs
-- in some C2 tests).
if 2 * Name_Len + 60 > Hostparm.Max_Line_Length then
Set_String (""" &");
Write_Statement_Buffer;
Set_String (" """);
end if;
end if;
Set_Unit_Name;
Set_String ("_E"");");
Write_Statement_Buffer;
end if;
end;
end loop;
Write_Statement_Buffer;
-- If the standard library is suppressed, then the only global variable
-- that might be needed (by the Ravenscar profile) is the priority of
-- the environment. Also no exception tables are needed.
if Suppress_Standard_Library_On_Target then
if Main_Priority /= No_Main_Priority then
WBI (" Main_Priority : Integer;");
WBI (" pragma Import (C, Main_Priority," &
" ""__gl_main_priority"");");
WBI ("");
end if;
WBI (" begin");
if Main_Priority /= No_Main_Priority then
Set_String (" Main_Priority := ");
Set_Int (Main_Priority);
Set_Char (';');
Write_Statement_Buffer;
else
WBI (" null;");
end if;
-- Normal case (standard library not suppressed). Global values are
-- assigned using the runtime routine Set_Globals (we have to use
-- the routine call, rather than define the globals in the binder
-- file to deal with cross-library calls in some systems.
else
-- Generate restrictions string
Set_String (" Restrictions : constant String :=");
Write_Statement_Buffer;
Set_String (" """);
Gen_Restrictions_String_1;
Set_String (""" &");
Write_Statement_Buffer;
Set_String (" """);
Gen_Restrictions_String_2;
Set_String (""" & ASCII.Nul;");
Write_Statement_Buffer;
WBI ("");
-- Generate Interrupt_State pragma string
Set_String (" Interrupt_States : constant String :=");
Write_Statement_Buffer;
declare
Col : Natural;
begin
Set_String (" """);
Col := 9;
for J in 0 .. IS_Pragma_Settings.Last loop
if Col > 72 then
Set_String (""" &");
Write_Statement_Buffer;
Set_String (" """);
Col := 9;
else
Col := Col + 1;
end if;
Set_Char (IS_Pragma_Settings.Table (J));
end loop;
end;
Set_String (""";");
Write_Statement_Buffer;
WBI ("");
-- Generate spec for Set_Globals procedure
WBI (" procedure Set_Globals");
WBI (" (Main_Priority : Integer;");
WBI (" Time_Slice_Value : Integer;");
WBI (" WC_Encoding : Character;");
WBI (" Locking_Policy : Character;");
WBI (" Queuing_Policy : Character;");
WBI (" Task_Dispatching_Policy : Character;");
WBI (" Restrictions : System.Address;");
WBI (" Interrupt_States : System.Address;");
WBI (" Num_Interrupt_States : Integer;");
WBI (" Unreserve_All_Interrupts : Integer;");
WBI (" Exception_Tracebacks : Integer;");
WBI (" Zero_Cost_Exceptions : Integer;");
WBI (" Detect_Blocking : Integer;");
WBI (" Default_Stack_Size : Integer);");
WBI (" pragma Import (C, Set_Globals, ""__gnat_set_globals"");");
-- Import entry point for elaboration time signal handler
-- installation, and indication of if it's been called previously.
WBI ("");
WBI (" procedure Install_Handler;");
WBI (" pragma Import (C, Install_Handler, " &
"""__gnat_install_handler"");");
WBI ("");
WBI (" Handler_Installed : Integer;");
WBI (" pragma Import (C, Handler_Installed, " &
"""__gnat_handler_installed"");");
WBI (" begin");
-- Generate the call to Set_Globals
WBI (" Set_Globals");
Set_String (" (Main_Priority => ");
Set_Int (Main_Priority);
Set_Char (',');
Write_Statement_Buffer;
Set_String (" Time_Slice_Value => ");
if Task_Dispatching_Policy_Specified = 'F'
and then ALIs.Table (ALIs.First).Time_Slice_Value = -1
then
Set_Int (0);
else
Set_Int (ALIs.Table (ALIs.First).Time_Slice_Value);
end if;
Set_Char (',');
Write_Statement_Buffer;
Set_String (" WC_Encoding => '");
Set_Char (ALIs.Table (ALIs.First).WC_Encoding);
Set_String ("',");
Write_Statement_Buffer;
Set_String (" Locking_Policy => '");
Set_Char (Locking_Policy_Specified);
Set_String ("',");
Write_Statement_Buffer;
Set_String (" Queuing_Policy => '");
Set_Char (Queuing_Policy_Specified);
Set_String ("',");
Write_Statement_Buffer;
Set_String (" Task_Dispatching_Policy => '");
Set_Char (Task_Dispatching_Policy_Specified);
Set_String ("',");
Write_Statement_Buffer;
WBI (" Restrictions => Restrictions'Address,");
WBI (" Interrupt_States => " &
"Interrupt_States'Address,");
Set_String (" Num_Interrupt_States => ");
Set_Int (IS_Pragma_Settings.Last + 1);
Set_Char (',');
Write_Statement_Buffer;
Set_String (" Unreserve_All_Interrupts => ");
if Unreserve_All_Interrupts_Specified then
Set_String ("1");
else
Set_String ("0");
end if;
Set_Char (',');
Write_Statement_Buffer;
Set_String (" Exception_Tracebacks => ");
if Exception_Tracebacks then
Set_String ("1");
else
Set_String ("0");
end if;
Set_String (",");
Write_Statement_Buffer;
Set_String (" Zero_Cost_Exceptions => ");
if Zero_Cost_Exceptions_Specified then
Set_String ("1");
else
Set_String ("0");
end if;
Set_String (",");
Write_Statement_Buffer;
Set_String (" Detect_Blocking => ");
if Detect_Blocking then
Set_Int (1);
else
Set_Int (0);
end if;
Set_String (",");
Write_Statement_Buffer;
Set_String (" Default_Stack_Size => ");
Set_Int (Default_Stack_Size);
Set_String (");");
Write_Statement_Buffer;
-- Generate call to Install_Handler
WBI ("");
WBI (" if Handler_Installed = 0 then");
WBI (" Install_Handler;");
WBI (" end if;");
end if;
-- Generate call to set Initialize_Scalar values if active
if Initialize_Scalars_Used then
WBI ("");
Set_String (" System.Scalar_Values.Initialize ('");
Set_Char (Initialize_Scalars_Mode1);
Set_String ("', '");
Set_Char (Initialize_Scalars_Mode2);
Set_String ("');");
Write_Statement_Buffer;
end if;
-- Generate assignment of default secondary stack size if set
if Sec_Stack_Used and then Default_Sec_Stack_Size /= -1 then
WBI ("");
Set_String (" System.Secondary_Stack.");
Set_String ("Default_Secondary_Stack_Size := ");
Set_Int (Opt.Default_Sec_Stack_Size);
Set_Char (';');
Write_Statement_Buffer;
end if;
-- Generate elaboration calls
WBI ("");
Gen_Elab_Calls_Ada;
WBI (" end " & Ada_Init_Name.all & ";");
end Gen_Adainit_Ada;
-------------------
-- Gen_Adainit_C --
--------------------
procedure Gen_Adainit_C is
Main_Priority : Int renames ALIs.Table (ALIs.First).Main_Priority;
begin
WBI ("void " & Ada_Init_Name.all & " (void)");
WBI ("{");
-- Generate externals for elaboration entities
for E in Elab_Order.First .. Elab_Order.Last loop
declare
Unum : constant Unit_Id := Elab_Order.Table (E);
U : Unit_Record renames Units.Table (Unum);
begin
-- Check for Elab entity to be set for this unit
if U.Set_Elab_Entity
-- Don't generate reference for stand alone library
and then not U.SAL_Interface
-- Don't generate reference for predefined file in No_Run_Time
-- mode, since we don't include the object files in this case
and then not
(No_Run_Time_Mode
and then Is_Predefined_File_Name (U.Sfile))
then
Set_String (" extern char ");
Get_Name_String (U.Uname);
Set_Unit_Name;
Set_String ("_E;");
Write_Statement_Buffer;
end if;
end;
end loop;
Write_Statement_Buffer;
-- Standard library suppressed
if Suppress_Standard_Library_On_Target then
-- Case of High_Integrity_Mode mode. Set __gl_main_priority if needed
-- for the Ravenscar profile.
if Main_Priority /= No_Main_Priority then
Set_String (" extern int __gl_main_priority = ");
Set_Int (Main_Priority);
Set_Char (';');
Write_Statement_Buffer;
end if;
-- Normal case (standard library not suppressed)
else
-- Generate definition for restrictions string
Set_String (" const char *restrictions = """);
Gen_Restrictions_String_1;
Gen_Restrictions_String_2;
Set_String (""";");
Write_Statement_Buffer;
-- Generate definition for interrupt states string
Set_String (" const char *interrupt_states = """);
for J in 0 .. IS_Pragma_Settings.Last loop
Set_Char (IS_Pragma_Settings.Table (J));
end loop;
Set_String (""";");
Write_Statement_Buffer;
-- Generate declaration for secondary stack default if needed
if Sec_Stack_Used and then Default_Sec_Stack_Size /= -1 then
WBI (" extern int system__secondary_stack__" &
"default_secondary_stack_size;");
end if;
WBI ("");
-- Code for normal case (standard library not suppressed)
-- Generate call to set the runtime global variables defined in
-- init.c. We define the varables in init.c, rather than in
-- the binder generated file itself to avoid undefined externals
-- when the runtime is linked as a shareable image library.
-- We call the routine from inside adainit() because this works for
-- both programs with and without binder generated "main" functions.
WBI (" __gnat_set_globals (");
Set_String (" ");
Set_Int (Main_Priority);
Set_Char (',');
Tab_To (24);
Set_String ("/* Main_Priority */");
Write_Statement_Buffer;
Set_String (" ");
if Task_Dispatching_Policy = 'F'
and then ALIs.Table (ALIs.First).Time_Slice_Value = -1
then
Set_Int (0);
else
Set_Int (ALIs.Table (ALIs.First).Time_Slice_Value);
end if;
Set_Char (',');
Tab_To (24);
Set_String ("/* Time_Slice_Value */");
Write_Statement_Buffer;
Set_String (" '");
Set_Char (ALIs.Table (ALIs.First).WC_Encoding);
Set_String ("',");
Tab_To (24);
Set_String ("/* WC_Encoding */");
Write_Statement_Buffer;
Set_String (" '");
Set_Char (Locking_Policy_Specified);
Set_String ("',");
Tab_To (24);
Set_String ("/* Locking_Policy */");
Write_Statement_Buffer;
Set_String (" '");
Set_Char (Queuing_Policy_Specified);
Set_String ("',");
Tab_To (24);
Set_String ("/* Queuing_Policy */");
Write_Statement_Buffer;
Set_String (" '");
Set_Char (Task_Dispatching_Policy_Specified);
Set_String ("',");
Tab_To (24);
Set_String ("/* Tasking_Dispatching_Policy */");
Write_Statement_Buffer;
Set_String (" ");
Set_String ("restrictions");
Set_String (",");
Tab_To (24);
Set_String ("/* Restrictions */");
Write_Statement_Buffer;
Set_String (" ");
Set_String ("interrupt_states");
Set_String (",");
Tab_To (24);
Set_String ("/* Interrupt_States */");
Write_Statement_Buffer;
Set_String (" ");
Set_Int (IS_Pragma_Settings.Last + 1);
Set_String (",");
Tab_To (24);
Set_String ("/* Num_Interrupt_States */");
Write_Statement_Buffer;
Set_String (" ");
Set_Int (Boolean'Pos (Unreserve_All_Interrupts_Specified));
Set_String (",");
Tab_To (24);
Set_String ("/* Unreserve_All_Interrupts */");
Write_Statement_Buffer;
Set_String (" ");
Set_Int (Boolean'Pos (Exception_Tracebacks));
Set_String (",");
Tab_To (24);
Set_String ("/* Exception_Tracebacks */");
Write_Statement_Buffer;
Set_String (" ");
Set_Int (Boolean'Pos (Zero_Cost_Exceptions_Specified));
Set_String (",");
Tab_To (24);
Set_String ("/* Zero_Cost_Exceptions */");
Write_Statement_Buffer;
Set_String (" ");
if Detect_Blocking then
Set_Int (1);
else
Set_Int (0);
end if;
Set_String (",");
Tab_To (24);
Set_String ("/* Detect_Blocking */");
Write_Statement_Buffer;
Set_String (" ");
Set_Int (Default_Stack_Size);
Set_String (");");
Tab_To (24);
Set_String ("/* Default_Stack_Size */");
Write_Statement_Buffer;
WBI ("");
-- Install elaboration time signal handler
WBI (" if (__gnat_handler_installed == 0)");
WBI (" {");
WBI (" __gnat_install_handler ();");
WBI (" }");
end if;
-- Generate call to set Initialize_Scalar values if needed
if Initialize_Scalars_Used then
WBI ("");
Set_String (" system__scalar_values__initialize('");
Set_Char (Initialize_Scalars_Mode1);
Set_String ("', '");
Set_Char (Initialize_Scalars_Mode2);
Set_String ("');");
Write_Statement_Buffer;
end if;
-- Generate assignment of default secondary stack size if set
if Sec_Stack_Used and then Default_Sec_Stack_Size /= -1 then
WBI ("");
Set_String (" system__secondary_stack__");
Set_String ("default_secondary_stack_size = ");
Set_Int (Opt.Default_Sec_Stack_Size);
Set_Char (';');
Write_Statement_Buffer;
end if;
-- Generate elaboration calls
WBI ("");
Gen_Elab_Calls_C;
WBI ("}");
end Gen_Adainit_C;
------------------------
-- Gen_Elab_Calls_Ada --
------------------------
procedure Gen_Elab_Calls_Ada is
begin
for E in Elab_Order.First .. Elab_Order.Last loop
declare
Unum : constant Unit_Id := Elab_Order.Table (E);
U : Unit_Record renames Units.Table (Unum);
Unum_Spec : Unit_Id;
-- This is the unit number of the spec that corresponds to
-- this entry. It is the same as Unum except when the body
-- and spec are different and we are currently processing
-- the body, in which case it is the spec (Unum + 1).
begin
if U.Utype = Is_Body then
Unum_Spec := Unum + 1;
else
Unum_Spec := Unum;
end if;
-- Nothing to do if predefined unit in no run time mode
if No_Run_Time_Mode and then Is_Predefined_File_Name (U.Sfile) then
null;
-- Case of no elaboration code
elsif U.No_Elab then
-- The only case in which we have to do something is if
-- this is a body, with a separate spec, where the separate
-- spec has an elaboration entity defined.
-- In that case, this is where we set the elaboration entity
-- to True, we do not need to test if this has already been
-- done, since it is quicker to set the flag than to test it.
if not U.SAL_Interface and then U.Utype = Is_Body
and then Units.Table (Unum_Spec).Set_Elab_Entity
then
Set_String (" E");
Set_Unit_Number (Unum_Spec);
Set_String (" := True;");
Write_Statement_Buffer;
end if;
-- Here if elaboration code is present. If binding a library
-- or if there is a non-Ada main subprogram then we generate:
-- if not uname_E then
-- uname'elab_[spec|body];
-- uname_E := True;
-- end if;
-- Otherwise, elaboration routines are called unconditionally:
-- uname'elab_[spec|body];
-- uname_E := True;
-- The uname_E assignment is skipped if this is a separate spec,
-- since the assignment will be done when we process the body.
elsif not U.SAL_Interface then
if Force_Checking_Of_Elaboration_Flags or
Interface_Library_Unit or
(not Bind_Main_Program)
then
Set_String (" if not E");
Set_Unit_Number (Unum_Spec);
Set_String (" then");
Write_Statement_Buffer;
Set_String (" ");
end if;
Set_String (" ");
Get_Decoded_Name_String_With_Brackets (U.Uname);
if Name_Buffer (Name_Len) = 's' then
Name_Buffer (Name_Len - 1 .. Name_Len + 8) := "'elab_spec";
else
Name_Buffer (Name_Len - 1 .. Name_Len + 8) := "'elab_body";
end if;
Name_Len := Name_Len + 8;
Set_Casing (U.Icasing);
Set_Name_Buffer;
Set_Char (';');
Write_Statement_Buffer;
if U.Utype /= Is_Spec then
if Force_Checking_Of_Elaboration_Flags or
Interface_Library_Unit or
(not Bind_Main_Program)
then
Set_String (" ");
end if;
Set_String (" E");
Set_Unit_Number (Unum_Spec);
Set_String (" := True;");
Write_Statement_Buffer;
end if;
if Force_Checking_Of_Elaboration_Flags or
Interface_Library_Unit or
(not Bind_Main_Program)
then
WBI (" end if;");
end if;
end if;
end;
end loop;
end Gen_Elab_Calls_Ada;
----------------------
-- Gen_Elab_Calls_C --
----------------------
procedure Gen_Elab_Calls_C is
begin
for E in Elab_Order.First .. Elab_Order.Last loop
declare
Unum : constant Unit_Id := Elab_Order.Table (E);
U : Unit_Record renames Units.Table (Unum);
Unum_Spec : Unit_Id;
-- This is the unit number of the spec that corresponds to
-- this entry. It is the same as Unum except when the body
-- and spec are different and we are currently processing
-- the body, in which case it is the spec (Unum + 1).
begin
if U.Utype = Is_Body then
Unum_Spec := Unum + 1;
else
Unum_Spec := Unum;
end if;
-- Nothing to do if predefined unit in no run time mode
if No_Run_Time_Mode and then Is_Predefined_File_Name (U.Sfile) then
null;
-- Case of no elaboration code
elsif U.No_Elab then
-- The only case in which we have to do something is if
-- this is a body, with a separate spec, where the separate
-- spec has an elaboration entity defined.
-- In that case, this is where we set the elaboration entity
-- to True, we do not need to test if this has already been
-- done, since it is quicker to set the flag than to test it.
if not U.SAL_Interface and then U.Utype = Is_Body
and then Units.Table (Unum_Spec).Set_Elab_Entity
then
Set_String (" ");
Get_Name_String (U.Uname);
Set_Unit_Name;
Set_String ("_E = 1;");
Write_Statement_Buffer;
end if;
-- Here if elaboration code is present. If binding a library
-- or if there is a non-Ada main subprogram then we generate:
-- if (uname_E == 0) {
-- uname__elab[s|b] ();
-- uname_E++;
-- }
-- The uname_E assignment is skipped if this is a separate spec,
-- since the assignment will be done when we process the body.
elsif not U.SAL_Interface then
Get_Name_String (U.Uname);
if Force_Checking_Of_Elaboration_Flags or
Interface_Library_Unit or
(not Bind_Main_Program)
then
Set_String (" if (");
Set_Unit_Name;
Set_String ("_E == 0) {");
Write_Statement_Buffer;
Set_String (" ");
end if;
Set_String (" ");
Set_Unit_Name;
Set_String ("___elab");
Set_Char (Name_Buffer (Name_Len)); -- 's' or 'b' for spec/body
Set_String (" ();");
Write_Statement_Buffer;
if U.Utype /= Is_Spec then
if Force_Checking_Of_Elaboration_Flags or
Interface_Library_Unit or
(not Bind_Main_Program)
then
Set_String (" ");
end if;
Set_String (" ");
Set_Unit_Name;
Set_String ("_E++;");
Write_Statement_Buffer;
end if;
if Force_Checking_Of_Elaboration_Flags or
Interface_Library_Unit or
(not Bind_Main_Program)
then
WBI (" }");
end if;
end if;
end;
end loop;
end Gen_Elab_Calls_C;
----------------------
-- Gen_Elab_Defs_C --
----------------------
procedure Gen_Elab_Defs_C is
begin
for E in Elab_Order.First .. Elab_Order.Last loop
-- Generate declaration of elaboration procedure if elaboration
-- needed. Note that passive units are always excluded.
if not Units.Table (Elab_Order.Table (E)).No_Elab then
Get_Name_String (Units.Table (Elab_Order.Table (E)).Uname);
Set_String ("extern void ");
Set_Unit_Name;
Set_String ("___elab");
Set_Char (Name_Buffer (Name_Len)); -- 's' or 'b' for spec/body
Set_String (" (void);");
Write_Statement_Buffer;
end if;
end loop;
WBI ("");
end Gen_Elab_Defs_C;
------------------------
-- Gen_Elab_Order_Ada --
------------------------
procedure Gen_Elab_Order_Ada is
begin
WBI ("");
WBI (" -- BEGIN ELABORATION ORDER");
for J in Elab_Order.First .. Elab_Order.Last loop
Set_String (" -- ");
Get_Name_String (Units.Table (Elab_Order.Table (J)).Uname);
Set_Name_Buffer;
Write_Statement_Buffer;
end loop;
WBI (" -- END ELABORATION ORDER");
end Gen_Elab_Order_Ada;
----------------------
-- Gen_Elab_Order_C --
----------------------
procedure Gen_Elab_Order_C is
begin
WBI ("");
WBI ("/* BEGIN ELABORATION ORDER");
for J in Elab_Order.First .. Elab_Order.Last loop
Get_Name_String (Units.Table (Elab_Order.Table (J)).Uname);
Set_Name_Buffer;
Write_Statement_Buffer;
end loop;
WBI (" END ELABORATION ORDER */");
end Gen_Elab_Order_C;
------------------
-- Gen_Main_Ada --
------------------
procedure Gen_Main_Ada is
begin
WBI ("");
if Exit_Status_Supported_On_Target then
Set_String (" function ");
else
Set_String (" procedure ");
end if;
Set_String (Get_Main_Name);
if Command_Line_Args_On_Target then
Write_Statement_Buffer;
WBI (" (argc : Integer;");
WBI (" argv : System.Address;");
WBI (" envp : System.Address)");
if Exit_Status_Supported_On_Target then
WBI (" return Integer");
end if;
WBI (" is");
else
if Exit_Status_Supported_On_Target then
Set_String (" return Integer is");
else
Set_String (" is");
end if;
Write_Statement_Buffer;
end if;
if Opt.Default_Exit_Status /= 0
and then Bind_Main_Program
and then not Configurable_Run_Time_Mode
then
WBI (" procedure Set_Exit_Status (Status : Integer);");
WBI (" pragma Import (C, Set_Exit_Status, " &
"""__gnat_set_exit_status"");");
WBI ("");
end if;
-- Initialize and Finalize
if not Cumulative_Restrictions.Set (No_Finalization) then
WBI (" procedure initialize (Addr : System.Address);");
WBI (" pragma Import (C, initialize, ""__gnat_initialize"");");
WBI ("");
WBI (" procedure finalize;");
WBI (" pragma Import (C, finalize, ""__gnat_finalize"");");
end if;
-- If we want to analyze the stack, we have to import corresponding
-- symbols
if Dynamic_Stack_Measurement then
WBI ("");
WBI (" procedure Output_Results;");
WBI (" pragma Import (C, Output_Results, " &
"""__gnat_stack_usage_output_results"");");
WBI ("");
WBI (" " &
"procedure Initialize_Stack_Analysis (Buffer_Size : Natural);");
WBI (" pragma Import (C, Initialize_Stack_Analysis, " &
"""__gnat_stack_usage_initialize"");");
end if;
-- Deal with declarations for main program case
if not No_Main_Subprogram then
-- To call the main program, we declare it using a pragma Import
-- Ada with the right link name.
-- It might seem more obvious to "with" the main program, and call
-- it in the normal Ada manner. We do not do this for three reasons:
-- 1. It is more efficient not to recompile the main program
-- 2. We are not entitled to assume the source is accessible
-- 3. We don't know what options to use to compile it
-- It is really reason 3 that is most critical (indeed we used
-- to generate the "with", but several regression tests failed).
WBI ("");
if ALIs.Table (ALIs.First).Main_Program = Func then
WBI (" Result : Integer;");
WBI ("");
WBI (" function Ada_Main_Program return Integer;");
else
WBI (" procedure Ada_Main_Program;");
end if;
Set_String (" pragma Import (Ada, Ada_Main_Program, """);
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
Set_Main_Program_Name;
Set_String (""");");
Write_Statement_Buffer;
WBI ("");
if Bind_Main_Program
and then not Suppress_Standard_Library_On_Target
then
WBI (" SEH : aliased array (1 .. 2) of Integer;");
WBI ("");
end if;
end if;
-- Generate a reference to Ada_Main_Program_Name. This symbol is
-- not referenced elsewhere in the generated program, but is needed
-- by the debugger (that's why it is generated in the first place).
-- The reference stops Ada_Main_Program_Name from being optimized
-- away by smart linkers, such as the AiX linker.
-- Because this variable is unused, we make this variable "aliased"
-- with a pragma Volatile in order to tell the compiler to preserve
-- this variable at any level of optimization.
if Bind_Main_Program then
WBI
(" Ensure_Reference : aliased System.Address := " &
"Ada_Main_Program_Name'Address;");
WBI (" pragma Volatile (Ensure_Reference);");
WBI ("");
end if;
WBI (" begin");
-- Acquire command line arguments if present on target
if Command_Line_Args_On_Target then
WBI (" gnat_argc := argc;");
WBI (" gnat_argv := argv;");
WBI (" gnat_envp := envp;");
WBI ("");
-- If configurable run time and no command line args, then nothing
-- needs to be done since the gnat_argc/argv/envp variables are
-- suppressed in this case.
elsif Configurable_Run_Time_On_Target then
null;
-- Otherwise set dummy values (to be filled in by some other unit?)
else
WBI (" gnat_argc := 0;");
WBI (" gnat_argv := System.Null_Address;");
WBI (" gnat_envp := System.Null_Address;");
end if;
if Opt.Default_Exit_Status /= 0
and then Bind_Main_Program
and then not Configurable_Run_Time_Mode
then
Set_String (" Set_Exit_Status (");
Set_Int (Opt.Default_Exit_Status);
Set_String (");");
Write_Statement_Buffer;
end if;
if Dynamic_Stack_Measurement then
Set_String (" Initialize_Stack_Analysis (");
Set_Int (Dynamic_Stack_Measurement_Array_Size);
Set_String (");");
Write_Statement_Buffer;
end if;
if not Cumulative_Restrictions.Set (No_Finalization) then
if not No_Main_Subprogram
and then Bind_Main_Program
and then not Suppress_Standard_Library_On_Target
then
WBI (" Initialize (SEH'Address);");
else
WBI (" Initialize (System.Null_Address);");
end if;
end if;
WBI (" " & Ada_Init_Name.all & ";");
if not No_Main_Subprogram then
WBI (" Break_Start;");
if ALIs.Table (ALIs.First).Main_Program = Proc then
WBI (" Ada_Main_Program;");
else
WBI (" Result := Ada_Main_Program;");
end if;
end if;
-- Adafinal call is skipped if no finalization
if not Cumulative_Restrictions.Set (No_Finalization) then
-- If compiling for the JVM, we directly call Adafinal because
-- we don't import it via Do_Finalize (see Gen_Output_File_Ada).
if Hostparm.Java_VM then
WBI (" System.Standard_Library.Adafinal;");
else
WBI (" Do_Finalize;");
end if;
end if;
-- Prints the result of static stack analysis
if Dynamic_Stack_Measurement then
WBI (" Output_Results;");
end if;
-- Finalize is only called if we have a run time
if not Cumulative_Restrictions.Set (No_Finalization) then
WBI (" Finalize;");
end if;
-- Return result
if Exit_Status_Supported_On_Target then
if No_Main_Subprogram
or else ALIs.Table (ALIs.First).Main_Program = Proc
then
WBI (" return (gnat_exit_status);");
else
WBI (" return (Result);");
end if;
end if;
WBI (" end;");
end Gen_Main_Ada;
----------------
-- Gen_Main_C --
----------------
procedure Gen_Main_C is
begin
if Exit_Status_Supported_On_Target then
WBI ("#include <stdlib.h>");
Set_String ("int ");
else
Set_String ("void ");
end if;
Set_String (Get_Main_Name);
-- Generate command line args in prototype if present on target
if Command_Line_Args_On_Target then
Write_Statement_Buffer (" (int argc, char **argv, char **envp)");
-- Case of no command line arguments on target
else
Write_Statement_Buffer (" (void)");
end if;
WBI ("{");
-- Generate a reference to __gnat_ada_main_program_name. This symbol
-- is not referenced elsewhere in the generated program, but is
-- needed by the debugger (that's why it is generated in the first
-- place). The reference stops Ada_Main_Program_Name from being
-- optimized away by smart linkers, such as the AiX linker.
-- Because this variable is unused, we declare this variable as
-- volatile in order to tell the compiler to preserve it at any
-- level of optimization.
if Bind_Main_Program then
WBI (" char * volatile ensure_reference " &
"__attribute__ ((__unused__)) = " &
"__gnat_ada_main_program_name;");
WBI ("");
if not Suppress_Standard_Library_On_Target
and then not No_Main_Subprogram
then
WBI (" int SEH [2];");
WBI ("");
end if;
end if;
-- If main program is a function, generate result variable
if ALIs.Table (ALIs.First).Main_Program = Func then
WBI (" int result;");
end if;
-- Set command line argument values from parameters if command line
-- arguments are present on target
if Command_Line_Args_On_Target then
WBI (" gnat_argc = argc;");
WBI (" gnat_argv = argv;");
WBI (" gnat_envp = envp;");
WBI (" ");
-- If configurable run-time, then nothing to do, since in this case
-- the gnat_argc/argv/envp variables are entirely suppressed.
elsif Configurable_Run_Time_On_Target then
null;
-- if no command line arguments on target, set dummy values
else
WBI (" int result;");
WBI (" gnat_argc = 0;");
WBI (" gnat_argv = 0;");
WBI (" gnat_envp = 0;");
end if;
if Opt.Default_Exit_Status /= 0
and then Bind_Main_Program
and then not Configurable_Run_Time_Mode
then
Set_String (" __gnat_set_exit_status (");
Set_Int (Opt.Default_Exit_Status);
Set_String (");");
Write_Statement_Buffer;
end if;
-- Initializes dynamic stack measurement if needed
if Dynamic_Stack_Measurement then
Set_String (" __gnat_stack_usage_initialize (");
Set_Int (Dynamic_Stack_Measurement_Array_Size);
Set_String (");");
Write_Statement_Buffer;
end if;
-- The __gnat_initialize routine is used only if we have a run-time
if not Suppress_Standard_Library_On_Target then
if not No_Main_Subprogram and then Bind_Main_Program then
WBI (" __gnat_initialize ((void *)SEH);");
else
WBI (" __gnat_initialize ((void *)0);");
end if;
end if;
WBI (" " & Ada_Init_Name.all & " ();");
if not No_Main_Subprogram then
WBI (" __gnat_break_start ();");
WBI (" ");
-- Output main program name
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
-- Main program is procedure case
if ALIs.Table (ALIs.First).Main_Program = Proc then
Set_String (" ");
Set_Main_Program_Name;
Set_String (" ();");
Write_Statement_Buffer;
-- Main program is function case
else -- ALIs.Table (ALIs_First).Main_Program = Func
Set_String (" result = ");
Set_Main_Program_Name;
Set_String (" ();");
Write_Statement_Buffer;
end if;
end if;
-- Call adafinal if finalization active
if not Cumulative_Restrictions.Set (No_Finalization) then
WBI (" ");
WBI (" system__standard_library__adafinal ();");
end if;
-- Outputs the dynamic stack measurement if needed
if Dynamic_Stack_Measurement then
WBI (" __gnat_stack_usage_output_results ();");
end if;
-- The finalize routine is used only if we have a run-time
if not Suppress_Standard_Library_On_Target then
WBI (" __gnat_finalize ();");
end if;
-- Case of main program is a function, so the value it returns
-- is the exit status in this case.
if ALIs.Table (ALIs.First).Main_Program = Func then
if Exit_Status_Supported_On_Target then
-- VMS must use Posix exit routine in order to get the effect
-- of a Unix compatible setting of the program exit status.
-- For all other systems, we use the standard exit routine.
if OpenVMS_On_Target then
WBI (" decc$__posix_exit (result);");
else
WBI (" exit (result);");
end if;
end if;
-- Case of main program is a procedure, in which case the exit
-- status is whatever was set by a Set_Exit call most recently
else
if Exit_Status_Supported_On_Target then
-- VMS must use Posix exit routine in order to get the effect
-- of a Unix compatible setting of the program exit status.
-- For all other systems, we use the standard exit routine.
if OpenVMS_On_Target then
WBI (" decc$__posix_exit (gnat_exit_status);");
else
WBI (" exit (gnat_exit_status);");
end if;
end if;
end if;
WBI ("}");
end Gen_Main_C;
------------------------------
-- Gen_Object_Files_Options --
------------------------------
procedure Gen_Object_Files_Options is
Lgnat : Natural;
-- This keeps track of the position in the sorted set of entries
-- in the Linker_Options table of where the first entry from an
-- internal file appears.
procedure Write_Linker_Option;
-- Write binder info linker option
-------------------------
-- Write_Linker_Option --
-------------------------
procedure Write_Linker_Option is
Start : Natural;
Stop : Natural;
begin
-- Loop through string, breaking at null's
Start := 1;
while Start < Name_Len loop
-- Find null ending this section
Stop := Start + 1;
while Name_Buffer (Stop) /= ASCII.NUL
and then Stop <= Name_Len loop
Stop := Stop + 1;
end loop;
-- Process section if non-null
if Stop > Start then
if Output_Linker_Option_List then
Write_Str (Name_Buffer (Start .. Stop - 1));
Write_Eol;
end if;
Write_Info_Ada_C
(" -- ", "", Name_Buffer (Start .. Stop - 1));
end if;
Start := Stop + 1;
end loop;
end Write_Linker_Option;
-- Start of processing for Gen_Object_Files_Options
begin
WBI ("");
Write_Info_Ada_C ("-- ", "/* ", " BEGIN Object file/option list");
for E in Elab_Order.First .. Elab_Order.Last loop
-- If not spec that has an associated body, then generate a
-- comment giving the name of the corresponding object file.
if (not Units.Table (Elab_Order.Table (E)).SAL_Interface)
and then Units.Table (Elab_Order.Table (E)).Utype /= Is_Spec
then
Get_Name_String
(ALIs.Table
(Units.Table (Elab_Order.Table (E)).My_ALI).Ofile_Full_Name);
-- If the presence of an object file is necessary or if it
-- exists, then use it.
if not Hostparm.Exclude_Missing_Objects
or else GNAT.OS_Lib.Is_Regular_File (Name_Buffer (1 .. Name_Len))
then
Write_Info_Ada_C (" -- ", "", Name_Buffer (1 .. Name_Len));
if Output_Object_List then
Write_Str (Name_Buffer (1 .. Name_Len));
Write_Eol;
end if;
-- Don't link with the shared library on VMS if an internal
-- filename object is seen. Multiply defined symbols will
-- result.
if OpenVMS_On_Target
and then Is_Internal_File_Name
(ALIs.Table
(Units.Table (Elab_Order.Table (E)).My_ALI).Sfile)
then
-- Special case for g-trasym.obj, which is not included
-- in libgnat.
Get_Name_String (ALIs.Table
(Units.Table (Elab_Order.Table (E)).My_ALI).Sfile);
if Name_Buffer (1 .. 8) /= "g-trasym" then
Opt.Shared_Libgnat := False;
end if;
end if;
end if;
end if;
end loop;
-- Add a "-Ldir" for each directory in the object path
for J in 1 .. Nb_Dir_In_Obj_Search_Path loop
declare
Dir : constant String_Ptr := Dir_In_Obj_Search_Path (J);
begin
Name_Len := 0;
Add_Str_To_Name_Buffer ("-L");
Add_Str_To_Name_Buffer (Dir.all);
Write_Linker_Option;
end;
end loop;
-- Sort linker options
-- This sort accomplishes two important purposes:
-- a) All application files are sorted to the front, and all
-- GNAT internal files are sorted to the end. This results
-- in a well defined dividing line between the two sets of
-- files, for the purpose of inserting certain standard
-- library references into the linker arguments list.
-- b) Given two different units, we sort the linker options so
-- that those from a unit earlier in the elaboration order
-- comes later in the list. This is a heuristic designed
-- to create a more friendly order of linker options when
-- the operations appear in separate units. The idea is that
-- if unit A must be elaborated before unit B, then it is
-- more likely that B references libraries included by A,
-- than vice versa, so we want the libraries included by
-- A to come after the libraries included by B.
-- These two criteria are implemented by function Lt_Linker_Option.
-- Note that a special case of b) is that specs are elaborated before
-- bodies, so linker options from specs come after linker options
-- for bodies, and again, the assumption is that libraries used by
-- the body are more likely to reference libraries used by the spec,
-- than vice versa.
Sort
(Linker_Options.Last,
Move_Linker_Option'Access,
Lt_Linker_Option'Access);
-- Write user linker options, i.e. the set of linker options that
-- come from all files other than GNAT internal files, Lgnat is
-- left set to point to the first entry from a GNAT internal file,
-- or past the end of the entriers if there are no internal files.
Lgnat := Linker_Options.Last + 1;
for J in 1 .. Linker_Options.Last loop
if not Linker_Options.Table (J).Internal_File then
Get_Name_String (Linker_Options.Table (J).Name);
Write_Linker_Option;
else
Lgnat := J;
exit;
end if;
end loop;
-- Now we insert standard linker options that must appear after the
-- entries from user files, and before the entries from GNAT run-time
-- files. The reason for this decision is that libraries referenced
-- by internal routines may reference these standard library entries.
if not Opt.No_Stdlib then
Name_Len := 0;
if Opt.Shared_Libgnat then
Add_Str_To_Name_Buffer ("-shared");
else
Add_Str_To_Name_Buffer ("-static");
end if;
-- Write directly to avoid -K output (why???)
Write_Info_Ada_C (" -- ", "", Name_Buffer (1 .. Name_Len));
if With_DECGNAT then
Name_Len := 0;
if Opt.Shared_Libgnat then
Add_Str_To_Name_Buffer (Shared_Lib ("decgnat"));
else
Add_Str_To_Name_Buffer ("-ldecgnat");
end if;
Write_Linker_Option;
end if;
if With_GNARL then
Name_Len := 0;
if Opt.Shared_Libgnat then
Add_Str_To_Name_Buffer (Shared_Lib ("gnarl"));
else
Add_Str_To_Name_Buffer ("-lgnarl");
end if;
Write_Linker_Option;
end if;
Name_Len := 0;
if Opt.Shared_Libgnat then
Add_Str_To_Name_Buffer (Shared_Lib ("gnat"));
else
Add_Str_To_Name_Buffer ("-lgnat");
end if;
Write_Linker_Option;
end if;
-- Write linker options from all internal files
for J in Lgnat .. Linker_Options.Last loop
Get_Name_String (Linker_Options.Table (J).Name);
Write_Linker_Option;
end loop;
if Ada_Bind_File then
WBI ("-- END Object file/option list ");
else
WBI (" END Object file/option list */");
end if;
end Gen_Object_Files_Options;
---------------------
-- Gen_Output_File --
---------------------
procedure Gen_Output_File (Filename : String) is
Is_Public_Version : constant Boolean := Get_Gnat_Build_Type = Public;
Is_GAP_Version : constant Boolean := Get_Gnat_Build_Type = GAP;
begin
-- Acquire settings for Interrupt_State pragmas
Set_IS_Pragma_Table;
-- Override Ada_Bind_File and Bind_Main_Program for Java since
-- JGNAT only supports Ada code, and the main program is already
-- generated by the compiler.
if Hostparm.Java_VM then
Ada_Bind_File := True;
Bind_Main_Program := False;
end if;
-- Override time slice value if -T switch is set
if Time_Slice_Set then
ALIs.Table (ALIs.First).Time_Slice_Value := Opt.Time_Slice_Value;
end if;
-- Count number of elaboration calls
for E in Elab_Order.First .. Elab_Order.Last loop
if Units.Table (Elab_Order.Table (E)).No_Elab then
null;
else
Num_Elab_Calls := Num_Elab_Calls + 1;
end if;
end loop;
-- Get the time stamp of the former bind for public version warning
if Is_Public_Version or Is_GAP_Version then
Record_Time_From_Last_Bind;
end if;
-- Generate output file in appropriate language
if Ada_Bind_File then
Gen_Output_File_Ada (Filename);
else
Gen_Output_File_C (Filename);
end if;
-- Periodically issue a warning when the public version is used on
-- big projects
if Is_Public_Version then
Public_Version_Warning;
end if;
end Gen_Output_File;
-------------------------
-- Gen_Output_File_Ada --
-------------------------
procedure Gen_Output_File_Ada (Filename : String) is
Bfiles : Name_Id;
-- Name of generated bind file (spec)
Bfileb : Name_Id;
-- Name of generated bind file (body)
Ada_Main : constant String := Get_Ada_Main_Name;
-- Name to be used for generated Ada main program. See the body of
-- function Get_Ada_Main_Name for details on the form of the name.
begin
-- Create spec first
Create_Binder_Output (Filename, 's', Bfiles);
-- If we are operating in Restrictions (No_Exception_Handlers) mode,
-- then we need to make sure that the binder program is compiled with
-- the same restriction, so that no exception tables are generated.
if Cumulative_Restrictions.Set (No_Exception_Handlers) then
WBI ("pragma Restrictions (No_Exception_Handlers);");
end if;
-- Generate with of System so we can reference System.Address
WBI ("with System;");
-- Generate with of System.Initialize_Scalars if active
if Initialize_Scalars_Used then
WBI ("with System.Scalar_Values;");
end if;
-- Generate with of System.Secondary_Stack if active
if Sec_Stack_Used and then Default_Sec_Stack_Size /= -1 then
WBI ("with System.Secondary_Stack;");
end if;
Resolve_Binder_Options;
if not Suppress_Standard_Library_On_Target then
-- Usually, adafinal is called using a pragma Import C. Since
-- Import C doesn't have the same semantics for JGNAT, we use
-- standard Ada.
if Hostparm.Java_VM then
WBI ("with System.Standard_Library;");
end if;
end if;
WBI ("package " & Ada_Main & " is");
WBI (" pragma Warnings (Off);");
-- Main program case
if Bind_Main_Program then
-- Generate argc/argv stuff unless suppressed
if Command_Line_Args_On_Target
or not Configurable_Run_Time_On_Target
then
WBI ("");
WBI (" gnat_argc : Integer;");
WBI (" gnat_argv : System.Address;");
WBI (" gnat_envp : System.Address;");
-- If the standard library is not suppressed, these variables are
-- in the runtime data area for easy access from the runtime
if not Suppress_Standard_Library_On_Target then
WBI ("");
WBI (" pragma Import (C, gnat_argc);");
WBI (" pragma Import (C, gnat_argv);");
WBI (" pragma Import (C, gnat_envp);");
end if;
end if;
-- Define exit status. Again in normal mode, this is in the
-- run-time library, and is initialized there, but in the
-- configurable runtime case, the variable is declared and
-- initialized in this file.
WBI ("");
if Configurable_Run_Time_Mode then
if Exit_Status_Supported_On_Target then
WBI (" gnat_exit_status : Integer := 0;");
end if;
else
WBI (" gnat_exit_status : Integer;");
WBI (" pragma Import (C, gnat_exit_status);");
end if;
end if;
-- Generate the GNAT_Version and Ada_Main_Program_Name info only for
-- the main program. Otherwise, it can lead under some circumstances
-- to a symbol duplication during the link (for instance when a
-- C program uses 2 Ada libraries)
if Bind_Main_Program then
WBI ("");
WBI (" GNAT_Version : constant String :=");
WBI (" ""GNAT Version: " &
Gnat_Version_String & """;");
WBI (" pragma Export (C, GNAT_Version, ""__gnat_version"");");
WBI ("");
Set_String (" Ada_Main_Program_Name : constant String := """);
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
Set_Main_Program_Name;
Set_String (""" & Ascii.NUL;");
Write_Statement_Buffer;
WBI
(" pragma Export (C, Ada_Main_Program_Name, " &
"""__gnat_ada_main_program_name"");");
end if;
WBI ("");
WBI (" procedure " & Ada_Final_Name.all & ";");
WBI (" pragma Export (C, " & Ada_Final_Name.all & ", """ &
Ada_Final_Name.all & """);");
if Use_Pragma_Linker_Constructor then
WBI (" pragma Linker_Destructor (" & Ada_Final_Name.all & ");");
end if;
WBI ("");
WBI (" procedure " & Ada_Init_Name.all & ";");
WBI (" pragma Export (C, " & Ada_Init_Name.all & ", """ &
Ada_Init_Name.all & """);");
if Use_Pragma_Linker_Constructor then
WBI (" pragma Linker_Constructor (" & Ada_Init_Name.all & ");");
end if;
if Bind_Main_Program then
-- If we have the standard library, then Break_Start is defined
-- there, but when the standard library is suppressed, Break_Start
-- is defined here.
WBI ("");
WBI (" procedure Break_Start;");
if Suppress_Standard_Library_On_Target then
WBI (" pragma Export (C, Break_Start, ""__gnat_break_start"");");
else
WBI (" pragma Import (C, Break_Start, ""__gnat_break_start"");");
end if;
WBI ("");
if Exit_Status_Supported_On_Target then
Set_String (" function ");
else
Set_String (" procedure ");
end if;
Set_String (Get_Main_Name);
-- Generate argument list if present
if Command_Line_Args_On_Target then
Write_Statement_Buffer;
WBI (" (argc : Integer;");
WBI (" argv : System.Address;");
Set_String
(" envp : System.Address)");
if Exit_Status_Supported_On_Target then
Write_Statement_Buffer;
WBI (" return Integer;");
else
Write_Statement_Buffer (";");
end if;
else
if Exit_Status_Supported_On_Target then
Write_Statement_Buffer (" return Integer;");
else
Write_Statement_Buffer (";");
end if;
end if;
WBI (" pragma Export (C, " & Get_Main_Name & ", """ &
Get_Main_Name & """);");
end if;
Gen_Versions_Ada;
Gen_Elab_Order_Ada;
-- Spec is complete
WBI ("");
WBI ("end " & Ada_Main & ";");
Close_Binder_Output;
-- Prepare to write body
Create_Binder_Output (Filename, 'b', Bfileb);
-- Output Source_File_Name pragmas which look like
-- pragma Source_File_Name (Ada_Main, Spec_File_Name => "sss");
-- pragma Source_File_Name (Ada_Main, Body_File_Name => "bbb");
-- where sss/bbb are the spec/body file names respectively
Get_Name_String (Bfiles);
Name_Buffer (Name_Len + 1 .. Name_Len + 3) := """);";
WBI ("pragma Source_File_Name (" &
Ada_Main &
", Spec_File_Name => """ &
Name_Buffer (1 .. Name_Len + 3));
Get_Name_String (Bfileb);
Name_Buffer (Name_Len + 1 .. Name_Len + 3) := """);";
WBI ("pragma Source_File_Name (" &
Ada_Main &
", Body_File_Name => """ &
Name_Buffer (1 .. Name_Len + 3));
WBI ("");
WBI ("package body " & Ada_Main & " is");
WBI (" pragma Warnings (Off);");
-- Import the finalization procedure only if finalization active
if not Cumulative_Restrictions.Set (No_Finalization) then
-- In the Java case, pragma Import C cannot be used, so the
-- standard Ada constructs will be used instead.
if not Hostparm.Java_VM then
WBI ("");
WBI (" procedure Do_Finalize;");
WBI
(" pragma Import (C, Do_Finalize, " &
"""system__standard_library__adafinal"");");
WBI ("");
end if;
end if;
Gen_Adainit_Ada;
Gen_Adafinal_Ada;
if Bind_Main_Program then
-- When suppressing the standard library then generate dummy body
-- for Break_Start
if Suppress_Standard_Library_On_Target then
WBI ("");
WBI (" procedure Break_Start is");
WBI (" begin");
WBI (" null;");
WBI (" end;");
end if;
Gen_Main_Ada;
end if;
-- Output object file list and the Ada body is complete
Gen_Object_Files_Options;
WBI ("");
WBI ("end " & Ada_Main & ";");
Close_Binder_Output;
end Gen_Output_File_Ada;
-----------------------
-- Gen_Output_File_C --
-----------------------
procedure Gen_Output_File_C (Filename : String) is
Bfile : Name_Id;
-- Name of generated bind file
begin
Create_Binder_Output (Filename, 'c', Bfile);
Resolve_Binder_Options;
WBI ("extern void __gnat_set_globals");
WBI (" (int, int, char, char, char, char,");
WBI (" const char *, const char *,");
WBI (" int, int, int, int, int, int);");
if Use_Pragma_Linker_Constructor then
WBI ("extern void " & Ada_Final_Name.all &
" (void) __attribute__((destructor));");
WBI ("extern void " & Ada_Init_Name.all &
" (void) __attribute__((constructor));");
else
WBI ("extern void " & Ada_Final_Name.all & " (void);");
WBI ("extern void " & Ada_Init_Name.all & " (void);");
end if;
WBI ("extern void system__standard_library__adafinal (void);");
if not No_Main_Subprogram then
Set_String ("extern ");
if Exit_Status_Supported_On_Target then
Set_String ("int");
else
Set_String ("void");
end if;
Set_String (" main ");
if Command_Line_Args_On_Target then
Write_Statement_Buffer ("(int, char **, char **);");
else
Write_Statement_Buffer ("(void);");
end if;
if OpenVMS_On_Target then
WBI ("extern void decc$__posix_exit (int);");
else
WBI ("extern void exit (int);");
end if;
WBI ("extern void __gnat_break_start (void);");
Set_String ("extern ");
if ALIs.Table (ALIs.First).Main_Program = Proc then
Set_String ("void ");
else
Set_String ("int ");
end if;
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
Set_Main_Program_Name;
Set_String (" (void);");
Write_Statement_Buffer;
end if;
if not Suppress_Standard_Library_On_Target then
WBI ("extern void __gnat_initialize (void *);");
WBI ("extern void __gnat_finalize (void);");
WBI ("extern void __gnat_install_handler (void);");
end if;
if Dynamic_Stack_Measurement then
WBI ("");
WBI ("extern void __gnat_stack_usage_output_results (void);");
WBI ("extern void __gnat_stack_usage_initialize (int size);");
end if;
WBI ("");
Gen_Elab_Defs_C;
-- Imported variable used to track elaboration/finalization phase.
-- Used only when we have a runtime.
if not Suppress_Standard_Library_On_Target then
WBI ("extern int __gnat_handler_installed;");
WBI ("");
end if;
-- Write argv/argc exit status stuff if main program case
if Bind_Main_Program then
-- First deal with argc/argv/envp. In the normal case they
-- are in the run-time library.
if not Configurable_Run_Time_On_Target then
WBI ("extern int gnat_argc;");
WBI ("extern char **gnat_argv;");
WBI ("extern char **gnat_envp;");
-- If configurable run time and no command line args, then the
-- generation of these variables is entirely suppressed.
elsif not Command_Line_Args_On_Target then
null;
-- Otherwise, in the configurable run-time case they are right in
-- the binder file.
else
WBI ("int gnat_argc;");
WBI ("char **gnat_argv;");
WBI ("char **gnat_envp;");
end if;
-- Similarly deal with exit status
-- are in the run-time library.
if not Configurable_Run_Time_On_Target then
WBI ("extern int gnat_exit_status;");
-- If configurable run time and no exit status on target, then
-- the generation of this variables is entirely suppressed.
elsif not Exit_Status_Supported_On_Target then
null;
-- Otherwise, in the configurable run-time case this variable is
-- right in the binder file, and initialized to zero there.
else
WBI ("int gnat_exit_status = 0;");
end if;
WBI ("");
end if;
-- When suppressing the standard library, the __gnat_break_start
-- routine (for the debugger to get initial control) is defined in
-- this file.
if Suppress_Standard_Library_On_Target then
WBI ("");
WBI ("void __gnat_break_start (void) {}");
end if;
-- Generate the __gnat_version and __gnat_ada_main_program_name info
-- only for the main program. Otherwise, it can lead under some
-- circumstances to a symbol duplication during the link (for instance
-- when a C program uses 2 Ada libraries)
if Bind_Main_Program then
WBI ("");
WBI ("char __gnat_version[] = ""GNAT Version: " &
Gnat_Version_String & """;");
Set_String ("char __gnat_ada_main_program_name[] = """);
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
Set_Main_Program_Name;
Set_String (""";");
Write_Statement_Buffer;
end if;
-- Generate the adafinal routine. In no runtime mode, this is
-- not needed, since there is no finalization to do.
if not Cumulative_Restrictions.Set (No_Finalization) then
Gen_Adafinal_C;
end if;
Gen_Adainit_C;
-- Main is only present for Ada main case
if Bind_Main_Program then
Gen_Main_C;
end if;
-- Generate versions, elaboration order, list of object files
Gen_Versions_C;
Gen_Elab_Order_C;
Gen_Object_Files_Options;
-- C binder output is complete
Close_Binder_Output;
end Gen_Output_File_C;
-------------------------------
-- Gen_Restrictions_String_1 --
-------------------------------
procedure Gen_Restrictions_String_1 is
begin
for R in All_Boolean_Restrictions loop
if Cumulative_Restrictions.Set (R) then
Set_Char ('r');
elsif Cumulative_Restrictions.Violated (R) then
Set_Char ('v');
else
Set_Char ('n');
end if;
end loop;
end Gen_Restrictions_String_1;
-------------------------------
-- Gen_Restrictions_String_2 --
-------------------------------
procedure Gen_Restrictions_String_2 is
begin
for RP in All_Parameter_Restrictions loop
if Cumulative_Restrictions.Set (RP) then
Set_Char ('r');
Set_Int (Int (Cumulative_Restrictions.Value (RP)));
else
Set_Char ('n');
end if;
if not Cumulative_Restrictions.Violated (RP)
or else RP not in Checked_Parameter_Restrictions
then
Set_Char ('n');
else
Set_Char ('v');
Set_Int (Int (Cumulative_Restrictions.Count (RP)));
if Cumulative_Restrictions.Unknown (RP) then
Set_Char ('+');
end if;
end if;
end loop;
end Gen_Restrictions_String_2;
----------------------
-- Gen_Versions_Ada --
----------------------
-- This routine generates two sets of lines. The first set has the form:
-- unnnnn : constant Integer := 16#hhhhhhhh#;
-- The second set has the form
-- pragma Export (C, unnnnn, unam);
-- for each unit, where unam is the unit name suffixed by either B or
-- S for body or spec, with dots replaced by double underscores, and
-- hhhhhhhh is the version number, and nnnnn is a 5-digits serial number.
procedure Gen_Versions_Ada is
Ubuf : String (1 .. 6) := "u00000";
procedure Increment_Ubuf;
-- Little procedure to increment the serial number
procedure Increment_Ubuf is
begin
for J in reverse Ubuf'Range loop
Ubuf (J) := Character'Succ (Ubuf (J));
exit when Ubuf (J) <= '9';
Ubuf (J) := '0';
end loop;
end Increment_Ubuf;
-- Start of processing for Gen_Versions_Ada
begin
if Bind_For_Library then
-- When building libraries, the version number of each unit can
-- not be computed, since the binder does not know the full list
-- of units. Therefore, the 'Version and 'Body_Version
-- attributes cannot supported in this case.
return;
end if;
WBI ("");
WBI (" type Version_32 is mod 2 ** 32;");
for U in Units.First .. Units.Last loop
Increment_Ubuf;
WBI (" " & Ubuf & " : constant Version_32 := 16#" &
Units.Table (U).Version & "#;");
end loop;
WBI ("");
Ubuf := "u00000";
for U in Units.First .. Units.Last loop
Increment_Ubuf;
Set_String (" pragma Export (C, ");
Set_String (Ubuf);
Set_String (", """);
Get_Name_String (Units.Table (U).Uname);
for K in 1 .. Name_Len loop
if Name_Buffer (K) = '.' then
Set_Char ('_');
Set_Char ('_');
elsif Name_Buffer (K) = '%' then
exit;
else
Set_Char (Name_Buffer (K));
end if;
end loop;
if Name_Buffer (Name_Len) = 's' then
Set_Char ('S');
else
Set_Char ('B');
end if;
Set_String (""");");
Write_Statement_Buffer;
end loop;
end Gen_Versions_Ada;
--------------------
-- Gen_Versions_C --
--------------------
-- This routine generates a line of the form:
-- unsigned unam = 0xhhhhhhhh;
-- for each unit, where unam is the unit name suffixed by either B or
-- S for body or spec, with dots replaced by double underscores.
procedure Gen_Versions_C is
begin
if Bind_For_Library then
-- When building libraries, the version number of each unit can
-- not be computed, since the binder does not know the full list
-- of units. Therefore, the 'Version and 'Body_Version
-- attributes cannot supported.
return;
end if;
for U in Units.First .. Units.Last loop
Set_String ("unsigned ");
Get_Name_String (Units.Table (U).Uname);
for K in 1 .. Name_Len loop
if Name_Buffer (K) = '.' then
Set_String ("__");
elsif Name_Buffer (K) = '%' then
exit;
else
Set_Char (Name_Buffer (K));
end if;
end loop;
if Name_Buffer (Name_Len) = 's' then
Set_Char ('S');
else
Set_Char ('B');
end if;
Set_String (" = 0x");
Set_String (Units.Table (U).Version);
Set_Char (';');
Write_Statement_Buffer;
end loop;
end Gen_Versions_C;
-----------------------
-- Get_Ada_Main_Name --
-----------------------
function Get_Ada_Main_Name return String is
Suffix : constant String := "_00";
Name : String (1 .. Opt.Ada_Main_Name.all'Length + Suffix'Length) :=
Opt.Ada_Main_Name.all & Suffix;
Nlen : Natural;
begin
-- The main program generated by JGNAT expects a package called
-- ada_<main procedure>.
if Hostparm.Java_VM then
-- Get main program name
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
-- Remove the %b
return "ada_" & Name_Buffer (1 .. Name_Len - 2);
end if;
-- This loop tries the following possibilities in order
-- <Ada_Main>
-- <Ada_Main>_01
-- <Ada_Main>_02
-- ..
-- <Ada_Main>_99
-- where <Ada_Main> is equal to Opt.Ada_Main_Name. By default,
-- it is set to 'ada_main'.
for J in 0 .. 99 loop
if J = 0 then
Nlen := Name'Length - Suffix'Length;
else
Nlen := Name'Length;
Name (Name'Last) := Character'Val (J mod 10 + Character'Pos ('0'));
Name (Name'Last - 1) :=
Character'Val (J / 10 + Character'Pos ('0'));
end if;
for K in ALIs.First .. ALIs.Last loop
for L in ALIs.Table (K).First_Unit .. ALIs.Table (K).Last_Unit loop
-- Get unit name, removing %b or %e at end
Get_Name_String (Units.Table (L).Uname);
Name_Len := Name_Len - 2;
if Name_Buffer (1 .. Name_Len) = Name (1 .. Nlen) then
goto Continue;
end if;
end loop;
end loop;
return Name (1 .. Nlen);
<<Continue>>
null;
end loop;
-- If we fall through, just use a peculiar unlikely name
return ("Qwertyuiop");
end Get_Ada_Main_Name;
-------------------
-- Get_Main_Name --
-------------------
function Get_Main_Name return String is
begin
-- Explicit name given with -M switch
if Bind_Alternate_Main_Name then
return Alternate_Main_Name.all;
-- Case of main program name to be used directly
elsif Use_Ada_Main_Program_Name_On_Target then
-- Get main program name
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
-- If this is a child name, return only the name of the child,
-- since we can't have dots in a nested program name. Note that
-- we do not include the %b at the end of the unit name.
for J in reverse 1 .. Name_Len - 2 loop
if J = 1 or else Name_Buffer (J - 1) = '.' then
return Name_Buffer (J .. Name_Len - 2);
end if;
end loop;
raise Program_Error; -- impossible exit
-- Case where "main" is to be used as default
else
return "main";
end if;
end Get_Main_Name;
----------------------
-- Lt_Linker_Option --
----------------------
function Lt_Linker_Option (Op1, Op2 : Natural) return Boolean is
begin
-- Sort internal files last
if Linker_Options.Table (Op1).Internal_File
/=
Linker_Options.Table (Op2).Internal_File
then
-- Note: following test uses False < True
return Linker_Options.Table (Op1).Internal_File
<
Linker_Options.Table (Op2).Internal_File;
-- If both internal or both non-internal, sort according to the
-- elaboration position. A unit that is elaborated later should
-- come earlier in the linker options list.
else
return Units.Table (Linker_Options.Table (Op1).Unit).Elab_Position
>
Units.Table (Linker_Options.Table (Op2).Unit).Elab_Position;
end if;
end Lt_Linker_Option;
------------------------
-- Move_Linker_Option --
------------------------
procedure Move_Linker_Option (From : Natural; To : Natural) is
begin
Linker_Options.Table (To) := Linker_Options.Table (From);
end Move_Linker_Option;
----------------------------
-- Public_Version_Warning --
----------------------------
procedure Public_Version_Warning is
Time : constant Int := Time_From_Last_Bind;
-- Constants to help defining periods
Hour : constant := 60;
Day : constant := 24 * Hour;
Never : constant := Integer'Last;
-- Special value indicating no warnings should be given
-- Constants defining when the warning is issued. Programs with more
-- than Large Units will issue a warning every Period_Large amount of
-- time. Smaller programs will generate a warning every Period_Small
-- amount of time.
Large : constant := 20;
-- Threshold for considering a program small or large
Period_Large : constant := Day;
-- Periodic warning time for large programs
Period_Small : constant := Never;
-- Periodic warning time for small programs
Nb_Unit : Int;
begin
-- Compute the number of units that are not GNAT internal files
Nb_Unit := 0;
for A in ALIs.First .. ALIs.Last loop
if not Is_Internal_File_Name (ALIs.Table (A).Sfile) then
Nb_Unit := Nb_Unit + 1;
end if;
end loop;
-- Do not emit the message if the last message was emitted in the
-- specified period taking into account the number of units.
pragma Warnings (Off);
-- Turn off warning of constant condition, which may happen here
-- depending on the choice of constants in the above declarations.
if Nb_Unit < Large and then Time <= Period_Small then
return;
elsif Time <= Period_Large then
return;
end if;
pragma Warnings (On);
Write_Eol;
Write_Str ("IMPORTANT NOTICE:");
Write_Eol;
Write_Str (" This version of GNAT is unsupported"
& " and comes with absolutely no warranty.");
Write_Eol;
Write_Str (" If you intend to evaluate or use GNAT for building "
& "commercial applications,");
Write_Eol;
Write_Str (" please consult http://www.gnat.com/ for information");
Write_Eol;
Write_Str (" on the GNAT Professional product line.");
Write_Eol;
Write_Eol;
end Public_Version_Warning;
----------------------------
-- Resolve_Binder_Options --
----------------------------
procedure Resolve_Binder_Options is
begin
for E in Elab_Order.First .. Elab_Order.Last loop
Get_Name_String (Units.Table (Elab_Order.Table (E)).Uname);
-- The procedure of looking for specific packages and setting
-- flags is somewhat dubious, but there isn't a good alternative
-- at the current time ???
if Name_Buffer (1 .. 19) = "system.os_interface" then
With_GNARL := True;
end if;
if OpenVMS_On_Target and then Name_Buffer (1 .. 5) = "dec%s" then
With_DECGNAT := True;
end if;
end loop;
end Resolve_Binder_Options;
--------------
-- Set_Char --
--------------
procedure Set_Char (C : Character) is
begin
Last := Last + 1;
Statement_Buffer (Last) := C;
end Set_Char;
-------------
-- Set_Int --
-------------
procedure Set_Int (N : Int) is
begin
if N < 0 then
Set_String ("-");
Set_Int (-N);
else
if N > 9 then
Set_Int (N / 10);
end if;
Last := Last + 1;
Statement_Buffer (Last) :=
Character'Val (N mod 10 + Character'Pos ('0'));
end if;
end Set_Int;
-------------------------
-- Set_IS_Pragma_Table --
-------------------------
procedure Set_IS_Pragma_Table is
begin
for F in ALIs.First .. ALIs.Last loop
for K in ALIs.Table (F).First_Interrupt_State ..
ALIs.Table (F).Last_Interrupt_State
loop
declare
Inum : constant Int :=
Interrupt_States.Table (K).Interrupt_Id;
Stat : constant Character :=
Interrupt_States.Table (K).Interrupt_State;
begin
while IS_Pragma_Settings.Last < Inum loop
IS_Pragma_Settings.Append ('n');
end loop;
IS_Pragma_Settings.Table (Inum) := Stat;
end;
end loop;
end loop;
end Set_IS_Pragma_Table;
---------------------------
-- Set_Main_Program_Name --
---------------------------
procedure Set_Main_Program_Name is
begin
-- Note that name has %b on the end which we ignore
-- First we output the initial _ada_ since we know that the main
-- program is a library level subprogram.
Set_String ("_ada_");
-- Copy name, changing dots to double underscores
for J in 1 .. Name_Len - 2 loop
if Name_Buffer (J) = '.' then
Set_String ("__");
else
Set_Char (Name_Buffer (J));
end if;
end loop;
end Set_Main_Program_Name;
---------------------
-- Set_Name_Buffer --
---------------------
procedure Set_Name_Buffer is
begin
for J in 1 .. Name_Len loop
Set_Char (Name_Buffer (J));
end loop;
end Set_Name_Buffer;
----------------
-- Set_String --
----------------
procedure Set_String (S : String) is
begin
Statement_Buffer (Last + 1 .. Last + S'Length) := S;
Last := Last + S'Length;
end Set_String;
-------------------
-- Set_Unit_Name --
-------------------
procedure Set_Unit_Name is
begin
for J in 1 .. Name_Len - 2 loop
if Name_Buffer (J) /= '.' then
Set_Char (Name_Buffer (J));
else
Set_String ("__");
end if;
end loop;
end Set_Unit_Name;
---------------------
-- Set_Unit_Number --
---------------------
procedure Set_Unit_Number (U : Unit_Id) is
Num_Units : constant Nat := Nat (Units.Last) - Nat (Unit_Id'First);
Unum : constant Nat := Nat (U) - Nat (Unit_Id'First);
begin
if Num_Units >= 10 and then Unum < 10 then
Set_Char ('0');
end if;
if Num_Units >= 100 and then Unum < 100 then
Set_Char ('0');
end if;
Set_Int (Unum);
end Set_Unit_Number;
------------
-- Tab_To --
------------
procedure Tab_To (N : Natural) is
begin
while Last < N loop
Set_Char (' ');
end loop;
end Tab_To;
----------------------
-- Write_Info_Ada_C --
----------------------
procedure Write_Info_Ada_C (Ada : String; C : String; Common : String) is
begin
if Ada_Bind_File then
declare
S : String (1 .. Ada'Length + Common'Length);
begin
S (1 .. Ada'Length) := Ada;
S (Ada'Length + 1 .. S'Length) := Common;
WBI (S);
end;
else
declare
S : String (1 .. C'Length + Common'Length);
begin
S (1 .. C'Length) := C;
S (C'Length + 1 .. S'Length) := Common;
WBI (S);
end;
end if;
end Write_Info_Ada_C;
----------------------------
-- Write_Statement_Buffer --
----------------------------
procedure Write_Statement_Buffer is
begin
WBI (Statement_Buffer (1 .. Last));
Last := 0;
end Write_Statement_Buffer;
procedure Write_Statement_Buffer (S : String) is
begin
Set_String (S);
Write_Statement_Buffer;
end Write_Statement_Buffer;
end Bindgen;
| true |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- PI:NAME:<NAME>END_PI I N D G E N --
-- --
-- B o d y --
-- --
-- Copyright (C) 1992-2006, 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 2, 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 COPYING. If not, write --
-- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
-- Boston, MA 02110-1301, USA. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
with ALI; use ALI;
with Binde; use Binde;
with Casing; use Casing;
with Fname; use Fname;
with GNAT.OS_Lib; use GNAT.OS_Lib;
with Gnatvsn; use Gnatvsn;
with Hostparm;
with Namet; use Namet;
with Opt; use Opt;
with Osint; use Osint;
with Osint.B; use Osint.B;
with Output; use Output;
with Rident; use Rident;
with Table; use Table;
with Targparm; use Targparm;
with Types; use Types;
with GNAT.Heap_Sort_A; use GNAT.Heap_Sort_A;
package body Bindgen is
Statement_Buffer : String (1 .. 1000);
-- Buffer used for constructing output statements
Last : Natural := 0;
-- Last location in Statement_Buffer currently set
With_DECGNAT : Boolean := False;
-- Flag which indicates whether the program uses the DECGNAT library
-- (presence of the unit DEC).
With_GNARL : Boolean := False;
-- Flag which indicates whether the program uses the GNARL library
-- (presence of the unit System.OS_Interface)
Num_Elab_Calls : Nat := 0;
-- Number of generated calls to elaboration routines
----------------------------------
-- Interface_State Pragma Table --
----------------------------------
-- This table assembles the interface state pragma information from
-- all the units in the partition. Note that Bcheck has already checked
-- that the information is consistent across partitions. The entries
-- in this table are n/u/r/s for not set/user/runtime/system.
package IS_Pragma_Settings is new Table.Table (
Table_Component_Type => Character,
Table_Index_Type => Int,
Table_Low_Bound => 0,
Table_Initial => 100,
Table_Increment => 200,
Table_Name => "IS_Pragma_Settings");
----------------------
-- Run-Time Globals --
----------------------
-- This section documents the global variables that are passed to the
-- run time from the generated binder file. The call that is made is
-- to the routine Set_Globals, which has the following spec:
-- procedure Set_Globals
-- (Main_Priority : Integer;
-- Time_Slice_Value : Integer;
-- WC_Encoding : Character;
-- Locking_Policy : Character;
-- Queuing_Policy : Character;
-- Task_Dispatching_Policy : Character;
-- Restrictions : System.Address;
-- Interrupt_States : System.Address;
-- Num_Interrupt_States : Integer;
-- Unreserve_All_Interrupts : Integer;
-- Exception_Tracebacks : Integer;
-- Zero_Cost_Exceptions : Integer;
-- Detect_Blocking : Integer);
-- Main_Priority is the priority value set by pragma Priority in the
-- main program. If no such pragma is present, the value is -1.
-- Time_Slice_Value is the time slice value set by pragma Time_Slice
-- in the main program, or by the use of a -Tnnn parameter for the
-- binder (if both are present, the binder value overrides). The
-- value is in milliseconds. A value of zero indicates that time
-- slicing should be suppressed. If no pragma is present, and no
-- -T switch was used, the value is -1.
-- WC_Encoding shows the wide character encoding method used for
-- the main program. This is one of the encoding letters defined
-- in System.WCh_Con.WC_Encoding_Letters.
-- Locking_Policy is a space if no locking policy was specified
-- for the partition. If a locking policy was specified, the value
-- is the upper case first character of the locking policy name,
-- for example, 'C' for Ceiling_Locking.
-- Queuing_Policy is a space if no queuing policy was specified
-- for the partition. If a queuing policy was specified, the value
-- is the upper case first character of the queuing policy name
-- for example, 'F' for FIFO_Queuing.
-- Task_Dispatching_Policy is a space if no task dispatching policy
-- was specified for the partition. If a task dispatching policy
-- was specified, the value is the upper case first character of
-- the policy name, e.g. 'F' for FIFO_Within_Priorities.
-- Restrictions is the address of a null-terminated string specifying the
-- restrictions information for the partition. The format is identical to
-- that of the parameter string found on R lines in ali files (see Lib.Writ
-- spec in lib-writ.ads for full details). The difference is that in this
-- context the values are the cumulative ones for the entire partition.
-- Interrupt_States is the address of a string used to specify the
-- cumulative results of Interrupt_State pragmas used in the partition.
-- The length of this string is determined by the last interrupt for which
-- such a pragma is given (the string will be a null string if no pragmas
-- were used). If pragma were present the entries apply to the interrupts
-- in sequence from the first interrupt, and are set to one of four
-- possible settings: 'n' for not specified, 'u' for user, 'r' for
-- run time, 's' for system, see description of Interrupt_State pragma
-- for further details.
-- Num_Interrupt_States is the length of the Interrupt_States string.
-- It will be set to zero if no Interrupt_State pragmas are present.
-- Unreserve_All_Interrupts is set to one if at least one unit in the
-- partition had a pragma Unreserve_All_Interrupts, and zero otherwise.
-- Exception_Tracebacks is set to one if the -E parameter was present
-- in the bind and to zero otherwise. Note that on some targets exception
-- tracebacks are provided by default, so a value of zero for this
-- parameter does not necessarily mean no trace backs are available.
-- Zero_Cost_Exceptions is set to one if zero cost exceptions are used for
-- this partition, and to zero if longjmp/setjmp exceptions are used.
-- the use of zero
-- Detect_Blocking indicates whether pragma Detect_Blocking is
-- active or not. A value of zero indicates that the pragma is not
-- present, while a value of 1 signals its presence in the
-- partition.
-----------------------
-- Local Subprograms --
-----------------------
procedure WBI (Info : String) renames Osint.B.Write_Binder_Info;
-- Convenient shorthand used throughout
procedure Gen_Adainit_Ada;
-- Generates the Adainit procedure (Ada code case)
procedure Gen_Adainit_C;
-- Generates the Adainit procedure (C code case)
procedure Gen_Adafinal_Ada;
-- Generate the Adafinal procedure (Ada code case)
procedure Gen_Adafinal_C;
-- Generate the Adafinal procedure (C code case)
procedure Gen_Elab_Calls_Ada;
-- Generate sequence of elaboration calls (Ada code case)
procedure Gen_Elab_Calls_C;
-- Generate sequence of elaboration calls (C code case)
procedure Gen_Elab_Order_Ada;
-- Generate comments showing elaboration order chosen (Ada case)
procedure Gen_Elab_Order_C;
-- Generate comments showing elaboration order chosen (C case)
procedure Gen_Elab_Defs_C;
-- Generate sequence of definitions for elaboration routines (C code case)
procedure Gen_Main_Ada;
-- Generate procedure main (Ada code case)
procedure Gen_Main_C;
-- Generate main() procedure (C code case)
procedure Gen_Object_Files_Options;
-- Output comments containing a list of the full names of the object
-- files to be linked and the list of linker options supplied by
-- Linker_Options pragmas in the source. (C and Ada code case)
procedure Gen_Output_File_Ada (Filename : String);
-- Generate output file (Ada code case)
procedure Gen_Output_File_C (Filename : String);
-- Generate output file (C code case)
procedure Gen_Restrictions_String_1;
-- Generate first restrictions string, which consists of the parameters
-- the first R line, as described in lib-writ.ads, with the restrictions
-- being those for the entire partition (from Cumulative_Restrictions).
procedure Gen_Restrictions_String_2;
-- Generate first restrictions string, which consists of the parameters
-- the second R line, as described in lib-writ.ads, with the restrictions
-- being those for the entire partition (from Cumulative_Restrictions).
procedure Gen_Versions_Ada;
-- Output series of definitions for unit versions (Ada code case)
procedure Gen_Versions_C;
-- Output series of definitions for unit versions (C code case)
function Get_Ada_Main_Name return String;
-- This function is used in the Ada main output case to compute a usable
-- name for the generated main program. The normal main program name is
-- Ada_Main, but this won't work if the user has a unit with this name.
-- This function tries Ada_Main first, and if there is such a clash, then
-- it tries Ada_Name_01, Ada_Name_02 ... Ada_Name_99 in sequence.
function Get_Main_Name return String;
-- This function is used in the Ada main output case to compute the
-- correct external main program. It is "main" by default, unless the
-- flag Use_Ada_Main_Program_Name_On_Target is set, in which case it
-- is the name of the Ada main name without the "_ada". This default
-- can be overridden explicitly using the -Mname binder switch.
function Lt_Linker_Option (Op1, Op2 : Natural) return Boolean;
-- Compare linker options, when sorting, first according to
-- Is_Internal_File (internal files come later) and then by
-- elaboration order position (latest to earliest).
procedure Move_Linker_Option (From : Natural; To : Natural);
-- Move routine for sorting linker options
procedure Public_Version_Warning;
-- Emit a warning concerning the use of the Public version under
-- certain circumstances. See details in body.
procedure Resolve_Binder_Options;
-- Set the value of With_GNARL and With_DECGNAT. The latter only on VMS
-- since it tests for a package named "dec" which might cause a conflict
-- on non-VMS systems.
procedure Set_Char (C : Character);
-- Set given character in Statement_Buffer at the Last + 1 position
-- and increment Last by one to reflect the stored character.
procedure Set_Int (N : Int);
-- Set given value in decimal in Statement_Buffer with no spaces
-- starting at the Last + 1 position, and updating Last past the value.
-- A minus sign is output for a negative value.
procedure Set_IS_Pragma_Table;
-- Initializes contents of IS_Pragma_Settings table from ALI table
procedure Set_Main_Program_Name;
-- Given the main program name in Name_Buffer (length in Name_Len)
-- generate the name of the routine to be used in the call. The name
-- is generated starting at Last + 1, and Last is updated past it.
procedure Set_Name_Buffer;
-- Set the value stored in positions 1 .. Name_Len of the Name_Buffer
procedure Set_String (S : String);
-- Sets characters of given string in Statement_Buffer, starting at the
-- Last + 1 position, and updating last past the string value.
procedure Set_Unit_Name;
-- Given a unit name in the Name_Buffer, copies it to Statement_Buffer,
-- starting at the Last + 1 position, and updating last past the value.
-- changing periods to double underscores, and updating Last appropriately.
procedure Set_Unit_Number (U : Unit_Id);
-- Sets unit number (first unit is 1, leading zeroes output to line
-- up all output unit numbers nicely as required by the value, and
-- by the total number of units.
procedure Tab_To (N : Natural);
-- If Last is greater than or equal to N, no effect, otherwise store
-- blanks in Statement_Buffer bumping Last, until Last = N.
procedure Write_Info_Ada_C (Ada : String; C : String; Common : String);
-- For C code case, write C & Common, for Ada case write Ada & Common
-- to current binder output file using Write_Binder_Info.
procedure Write_Statement_Buffer;
-- Write out contents of statement buffer up to Last, and reset Last to 0
procedure Write_Statement_Buffer (S : String);
-- First writes its argument (using Set_String (S)), then writes out the
-- contents of statement buffer up to Last, and reset Last to 0
----------------------
-- Gen_Adafinal_Ada --
----------------------
procedure Gen_Adafinal_Ada is
begin
WBI ("");
WBI (" procedure " & Ada_Final_Name.all & " is");
WBI (" begin");
-- If compiling for the JVM, we directly call Adafinal because
-- we don't import it via Do_Finalize (see Gen_Output_File_Ada).
if Hostparm.Java_VM then
WBI (" System.Standard_Library.Adafinal;");
-- If there is no finalization, there is nothing to do
elsif Cumulative_Restrictions.Set (No_Finalization) then
WBI (" null;");
else
WBI (" Do_Finalize;");
end if;
WBI (" end " & Ada_Final_Name.all & ";");
end Gen_Adafinal_Ada;
--------------------
-- Gen_Adafinal_C --
--------------------
procedure Gen_Adafinal_C is
begin
WBI ("void " & Ada_Final_Name.all & " (void) {");
WBI (" system__standard_library__adafinal ();");
WBI ("}");
WBI ("");
end Gen_Adafinal_C;
---------------------
-- Gen_Adainit_Ada --
---------------------
procedure Gen_Adainit_Ada is
Main_Priority : Int renames ALIs.Table (ALIs.First).Main_Priority;
begin
WBI (" procedure " & Ada_Init_Name.all & " is");
-- Generate externals for elaboration entities
for E in Elab_Order.First .. Elab_Order.Last loop
declare
Unum : constant Unit_Id := Elab_Order.Table (E);
U : Unit_Record renames Units.Table (Unum);
begin
-- Check for Elab_Entity to be set for this unit
if U.Set_Elab_Entity
-- Don't generate reference for stand alone library
and then not U.SAL_Interface
-- Don't generate reference for predefined file in No_Run_Time
-- mode, since we don't include the object files in this case
and then not
(No_Run_Time_Mode
and then Is_Predefined_File_Name (U.Sfile))
then
Set_String (" ");
Set_String ("E");
Set_Unit_Number (Unum);
Set_String (" : Boolean; pragma Import (Ada, ");
Set_String ("E");
Set_Unit_Number (Unum);
Set_String (", """);
Get_Name_String (U.Uname);
-- In the case of JGNAT we need to emit an Import name
-- that includes the class name (using '$' separators
-- in the case of a child unit name).
if Hostparm.Java_VM then
for J in 1 .. Name_Len - 2 loop
if Name_Buffer (J) /= '.' then
Set_Char (Name_Buffer (J));
else
Set_String ("$");
end if;
end loop;
Set_String (".");
-- If the unit name is very long, then split the
-- Import link name across lines using "&" (occurs
-- in some C2 tests).
if 2 * Name_Len + 60 > Hostparm.Max_Line_Length then
Set_String (""" &");
Write_Statement_Buffer;
Set_String (" """);
end if;
end if;
Set_Unit_Name;
Set_String ("_E"");");
Write_Statement_Buffer;
end if;
end;
end loop;
Write_Statement_Buffer;
-- If the standard library is suppressed, then the only global variable
-- that might be needed (by the Ravenscar profile) is the priority of
-- the environment. Also no exception tables are needed.
if Suppress_Standard_Library_On_Target then
if Main_Priority /= No_Main_Priority then
WBI (" Main_Priority : Integer;");
WBI (" pragma Import (C, Main_Priority," &
" ""__gl_main_priority"");");
WBI ("");
end if;
WBI (" begin");
if Main_Priority /= No_Main_Priority then
Set_String (" Main_Priority := ");
Set_Int (Main_Priority);
Set_Char (';');
Write_Statement_Buffer;
else
WBI (" null;");
end if;
-- Normal case (standard library not suppressed). Global values are
-- assigned using the runtime routine Set_Globals (we have to use
-- the routine call, rather than define the globals in the binder
-- file to deal with cross-library calls in some systems.
else
-- Generate restrictions string
Set_String (" Restrictions : constant String :=");
Write_Statement_Buffer;
Set_String (" """);
Gen_Restrictions_String_1;
Set_String (""" &");
Write_Statement_Buffer;
Set_String (" """);
Gen_Restrictions_String_2;
Set_String (""" & ASCII.Nul;");
Write_Statement_Buffer;
WBI ("");
-- Generate Interrupt_State pragma string
Set_String (" Interrupt_States : constant String :=");
Write_Statement_Buffer;
declare
Col : Natural;
begin
Set_String (" """);
Col := 9;
for J in 0 .. IS_Pragma_Settings.Last loop
if Col > 72 then
Set_String (""" &");
Write_Statement_Buffer;
Set_String (" """);
Col := 9;
else
Col := Col + 1;
end if;
Set_Char (IS_Pragma_Settings.Table (J));
end loop;
end;
Set_String (""";");
Write_Statement_Buffer;
WBI ("");
-- Generate spec for Set_Globals procedure
WBI (" procedure Set_Globals");
WBI (" (Main_Priority : Integer;");
WBI (" Time_Slice_Value : Integer;");
WBI (" WC_Encoding : Character;");
WBI (" Locking_Policy : Character;");
WBI (" Queuing_Policy : Character;");
WBI (" Task_Dispatching_Policy : Character;");
WBI (" Restrictions : System.Address;");
WBI (" Interrupt_States : System.Address;");
WBI (" Num_Interrupt_States : Integer;");
WBI (" Unreserve_All_Interrupts : Integer;");
WBI (" Exception_Tracebacks : Integer;");
WBI (" Zero_Cost_Exceptions : Integer;");
WBI (" Detect_Blocking : Integer;");
WBI (" Default_Stack_Size : Integer);");
WBI (" pragma Import (C, Set_Globals, ""__gnat_set_globals"");");
-- Import entry point for elaboration time signal handler
-- installation, and indication of if it's been called previously.
WBI ("");
WBI (" procedure Install_Handler;");
WBI (" pragma Import (C, Install_Handler, " &
"""__gnat_install_handler"");");
WBI ("");
WBI (" Handler_Installed : Integer;");
WBI (" pragma Import (C, Handler_Installed, " &
"""__gnat_handler_installed"");");
WBI (" begin");
-- Generate the call to Set_Globals
WBI (" Set_Globals");
Set_String (" (Main_Priority => ");
Set_Int (Main_Priority);
Set_Char (',');
Write_Statement_Buffer;
Set_String (" Time_Slice_Value => ");
if Task_Dispatching_Policy_Specified = 'F'
and then ALIs.Table (ALIs.First).Time_Slice_Value = -1
then
Set_Int (0);
else
Set_Int (ALIs.Table (ALIs.First).Time_Slice_Value);
end if;
Set_Char (',');
Write_Statement_Buffer;
Set_String (" WC_Encoding => '");
Set_Char (ALIs.Table (ALIs.First).WC_Encoding);
Set_String ("',");
Write_Statement_Buffer;
Set_String (" Locking_Policy => '");
Set_Char (Locking_Policy_Specified);
Set_String ("',");
Write_Statement_Buffer;
Set_String (" Queuing_Policy => '");
Set_Char (Queuing_Policy_Specified);
Set_String ("',");
Write_Statement_Buffer;
Set_String (" Task_Dispatching_Policy => '");
Set_Char (Task_Dispatching_Policy_Specified);
Set_String ("',");
Write_Statement_Buffer;
WBI (" Restrictions => Restrictions'Address,");
WBI (" Interrupt_States => " &
"Interrupt_States'Address,");
Set_String (" Num_Interrupt_States => ");
Set_Int (IS_Pragma_Settings.Last + 1);
Set_Char (',');
Write_Statement_Buffer;
Set_String (" Unreserve_All_Interrupts => ");
if Unreserve_All_Interrupts_Specified then
Set_String ("1");
else
Set_String ("0");
end if;
Set_Char (',');
Write_Statement_Buffer;
Set_String (" Exception_Tracebacks => ");
if Exception_Tracebacks then
Set_String ("1");
else
Set_String ("0");
end if;
Set_String (",");
Write_Statement_Buffer;
Set_String (" Zero_Cost_Exceptions => ");
if Zero_Cost_Exceptions_Specified then
Set_String ("1");
else
Set_String ("0");
end if;
Set_String (",");
Write_Statement_Buffer;
Set_String (" Detect_Blocking => ");
if Detect_Blocking then
Set_Int (1);
else
Set_Int (0);
end if;
Set_String (",");
Write_Statement_Buffer;
Set_String (" Default_Stack_Size => ");
Set_Int (Default_Stack_Size);
Set_String (");");
Write_Statement_Buffer;
-- Generate call to Install_Handler
WBI ("");
WBI (" if Handler_Installed = 0 then");
WBI (" Install_Handler;");
WBI (" end if;");
end if;
-- Generate call to set Initialize_Scalar values if active
if Initialize_Scalars_Used then
WBI ("");
Set_String (" System.Scalar_Values.Initialize ('");
Set_Char (Initialize_Scalars_Mode1);
Set_String ("', '");
Set_Char (Initialize_Scalars_Mode2);
Set_String ("');");
Write_Statement_Buffer;
end if;
-- Generate assignment of default secondary stack size if set
if Sec_Stack_Used and then Default_Sec_Stack_Size /= -1 then
WBI ("");
Set_String (" System.Secondary_Stack.");
Set_String ("Default_Secondary_Stack_Size := ");
Set_Int (Opt.Default_Sec_Stack_Size);
Set_Char (';');
Write_Statement_Buffer;
end if;
-- Generate elaboration calls
WBI ("");
Gen_Elab_Calls_Ada;
WBI (" end " & Ada_Init_Name.all & ";");
end Gen_Adainit_Ada;
-------------------
-- Gen_Adainit_C --
--------------------
procedure Gen_Adainit_C is
Main_Priority : Int renames ALIs.Table (ALIs.First).Main_Priority;
begin
WBI ("void " & Ada_Init_Name.all & " (void)");
WBI ("{");
-- Generate externals for elaboration entities
for E in Elab_Order.First .. Elab_Order.Last loop
declare
Unum : constant Unit_Id := Elab_Order.Table (E);
U : Unit_Record renames Units.Table (Unum);
begin
-- Check for Elab entity to be set for this unit
if U.Set_Elab_Entity
-- Don't generate reference for stand alone library
and then not U.SAL_Interface
-- Don't generate reference for predefined file in No_Run_Time
-- mode, since we don't include the object files in this case
and then not
(No_Run_Time_Mode
and then Is_Predefined_File_Name (U.Sfile))
then
Set_String (" extern char ");
Get_Name_String (U.Uname);
Set_Unit_Name;
Set_String ("_E;");
Write_Statement_Buffer;
end if;
end;
end loop;
Write_Statement_Buffer;
-- Standard library suppressed
if Suppress_Standard_Library_On_Target then
-- Case of High_Integrity_Mode mode. Set __gl_main_priority if needed
-- for the Ravenscar profile.
if Main_Priority /= No_Main_Priority then
Set_String (" extern int __gl_main_priority = ");
Set_Int (Main_Priority);
Set_Char (';');
Write_Statement_Buffer;
end if;
-- Normal case (standard library not suppressed)
else
-- Generate definition for restrictions string
Set_String (" const char *restrictions = """);
Gen_Restrictions_String_1;
Gen_Restrictions_String_2;
Set_String (""";");
Write_Statement_Buffer;
-- Generate definition for interrupt states string
Set_String (" const char *interrupt_states = """);
for J in 0 .. IS_Pragma_Settings.Last loop
Set_Char (IS_Pragma_Settings.Table (J));
end loop;
Set_String (""";");
Write_Statement_Buffer;
-- Generate declaration for secondary stack default if needed
if Sec_Stack_Used and then Default_Sec_Stack_Size /= -1 then
WBI (" extern int system__secondary_stack__" &
"default_secondary_stack_size;");
end if;
WBI ("");
-- Code for normal case (standard library not suppressed)
-- Generate call to set the runtime global variables defined in
-- init.c. We define the varables in init.c, rather than in
-- the binder generated file itself to avoid undefined externals
-- when the runtime is linked as a shareable image library.
-- We call the routine from inside adainit() because this works for
-- both programs with and without binder generated "main" functions.
WBI (" __gnat_set_globals (");
Set_String (" ");
Set_Int (Main_Priority);
Set_Char (',');
Tab_To (24);
Set_String ("/* Main_Priority */");
Write_Statement_Buffer;
Set_String (" ");
if Task_Dispatching_Policy = 'F'
and then ALIs.Table (ALIs.First).Time_Slice_Value = -1
then
Set_Int (0);
else
Set_Int (ALIs.Table (ALIs.First).Time_Slice_Value);
end if;
Set_Char (',');
Tab_To (24);
Set_String ("/* Time_Slice_Value */");
Write_Statement_Buffer;
Set_String (" '");
Set_Char (ALIs.Table (ALIs.First).WC_Encoding);
Set_String ("',");
Tab_To (24);
Set_String ("/* WC_Encoding */");
Write_Statement_Buffer;
Set_String (" '");
Set_Char (Locking_Policy_Specified);
Set_String ("',");
Tab_To (24);
Set_String ("/* Locking_Policy */");
Write_Statement_Buffer;
Set_String (" '");
Set_Char (Queuing_Policy_Specified);
Set_String ("',");
Tab_To (24);
Set_String ("/* Queuing_Policy */");
Write_Statement_Buffer;
Set_String (" '");
Set_Char (Task_Dispatching_Policy_Specified);
Set_String ("',");
Tab_To (24);
Set_String ("/* Tasking_Dispatching_Policy */");
Write_Statement_Buffer;
Set_String (" ");
Set_String ("restrictions");
Set_String (",");
Tab_To (24);
Set_String ("/* Restrictions */");
Write_Statement_Buffer;
Set_String (" ");
Set_String ("interrupt_states");
Set_String (",");
Tab_To (24);
Set_String ("/* Interrupt_States */");
Write_Statement_Buffer;
Set_String (" ");
Set_Int (IS_Pragma_Settings.Last + 1);
Set_String (",");
Tab_To (24);
Set_String ("/* Num_Interrupt_States */");
Write_Statement_Buffer;
Set_String (" ");
Set_Int (Boolean'Pos (Unreserve_All_Interrupts_Specified));
Set_String (",");
Tab_To (24);
Set_String ("/* Unreserve_All_Interrupts */");
Write_Statement_Buffer;
Set_String (" ");
Set_Int (Boolean'Pos (Exception_Tracebacks));
Set_String (",");
Tab_To (24);
Set_String ("/* Exception_Tracebacks */");
Write_Statement_Buffer;
Set_String (" ");
Set_Int (Boolean'Pos (Zero_Cost_Exceptions_Specified));
Set_String (",");
Tab_To (24);
Set_String ("/* Zero_Cost_Exceptions */");
Write_Statement_Buffer;
Set_String (" ");
if Detect_Blocking then
Set_Int (1);
else
Set_Int (0);
end if;
Set_String (",");
Tab_To (24);
Set_String ("/* Detect_Blocking */");
Write_Statement_Buffer;
Set_String (" ");
Set_Int (Default_Stack_Size);
Set_String (");");
Tab_To (24);
Set_String ("/* Default_Stack_Size */");
Write_Statement_Buffer;
WBI ("");
-- Install elaboration time signal handler
WBI (" if (__gnat_handler_installed == 0)");
WBI (" {");
WBI (" __gnat_install_handler ();");
WBI (" }");
end if;
-- Generate call to set Initialize_Scalar values if needed
if Initialize_Scalars_Used then
WBI ("");
Set_String (" system__scalar_values__initialize('");
Set_Char (Initialize_Scalars_Mode1);
Set_String ("', '");
Set_Char (Initialize_Scalars_Mode2);
Set_String ("');");
Write_Statement_Buffer;
end if;
-- Generate assignment of default secondary stack size if set
if Sec_Stack_Used and then Default_Sec_Stack_Size /= -1 then
WBI ("");
Set_String (" system__secondary_stack__");
Set_String ("default_secondary_stack_size = ");
Set_Int (Opt.Default_Sec_Stack_Size);
Set_Char (';');
Write_Statement_Buffer;
end if;
-- Generate elaboration calls
WBI ("");
Gen_Elab_Calls_C;
WBI ("}");
end Gen_Adainit_C;
------------------------
-- Gen_Elab_Calls_Ada --
------------------------
procedure Gen_Elab_Calls_Ada is
begin
for E in Elab_Order.First .. Elab_Order.Last loop
declare
Unum : constant Unit_Id := Elab_Order.Table (E);
U : Unit_Record renames Units.Table (Unum);
Unum_Spec : Unit_Id;
-- This is the unit number of the spec that corresponds to
-- this entry. It is the same as Unum except when the body
-- and spec are different and we are currently processing
-- the body, in which case it is the spec (Unum + 1).
begin
if U.Utype = Is_Body then
Unum_Spec := Unum + 1;
else
Unum_Spec := Unum;
end if;
-- Nothing to do if predefined unit in no run time mode
if No_Run_Time_Mode and then Is_Predefined_File_Name (U.Sfile) then
null;
-- Case of no elaboration code
elsif U.No_Elab then
-- The only case in which we have to do something is if
-- this is a body, with a separate spec, where the separate
-- spec has an elaboration entity defined.
-- In that case, this is where we set the elaboration entity
-- to True, we do not need to test if this has already been
-- done, since it is quicker to set the flag than to test it.
if not U.SAL_Interface and then U.Utype = Is_Body
and then Units.Table (Unum_Spec).Set_Elab_Entity
then
Set_String (" E");
Set_Unit_Number (Unum_Spec);
Set_String (" := True;");
Write_Statement_Buffer;
end if;
-- Here if elaboration code is present. If binding a library
-- or if there is a non-Ada main subprogram then we generate:
-- if not uname_E then
-- uname'elab_[spec|body];
-- uname_E := True;
-- end if;
-- Otherwise, elaboration routines are called unconditionally:
-- uname'elab_[spec|body];
-- uname_E := True;
-- The uname_E assignment is skipped if this is a separate spec,
-- since the assignment will be done when we process the body.
elsif not U.SAL_Interface then
if Force_Checking_Of_Elaboration_Flags or
Interface_Library_Unit or
(not Bind_Main_Program)
then
Set_String (" if not E");
Set_Unit_Number (Unum_Spec);
Set_String (" then");
Write_Statement_Buffer;
Set_String (" ");
end if;
Set_String (" ");
Get_Decoded_Name_String_With_Brackets (U.Uname);
if Name_Buffer (Name_Len) = 's' then
Name_Buffer (Name_Len - 1 .. Name_Len + 8) := "'elab_spec";
else
Name_Buffer (Name_Len - 1 .. Name_Len + 8) := "'elab_body";
end if;
Name_Len := Name_Len + 8;
Set_Casing (U.Icasing);
Set_Name_Buffer;
Set_Char (';');
Write_Statement_Buffer;
if U.Utype /= Is_Spec then
if Force_Checking_Of_Elaboration_Flags or
Interface_Library_Unit or
(not Bind_Main_Program)
then
Set_String (" ");
end if;
Set_String (" E");
Set_Unit_Number (Unum_Spec);
Set_String (" := True;");
Write_Statement_Buffer;
end if;
if Force_Checking_Of_Elaboration_Flags or
Interface_Library_Unit or
(not Bind_Main_Program)
then
WBI (" end if;");
end if;
end if;
end;
end loop;
end Gen_Elab_Calls_Ada;
----------------------
-- Gen_Elab_Calls_C --
----------------------
procedure Gen_Elab_Calls_C is
begin
for E in Elab_Order.First .. Elab_Order.Last loop
declare
Unum : constant Unit_Id := Elab_Order.Table (E);
U : Unit_Record renames Units.Table (Unum);
Unum_Spec : Unit_Id;
-- This is the unit number of the spec that corresponds to
-- this entry. It is the same as Unum except when the body
-- and spec are different and we are currently processing
-- the body, in which case it is the spec (Unum + 1).
begin
if U.Utype = Is_Body then
Unum_Spec := Unum + 1;
else
Unum_Spec := Unum;
end if;
-- Nothing to do if predefined unit in no run time mode
if No_Run_Time_Mode and then Is_Predefined_File_Name (U.Sfile) then
null;
-- Case of no elaboration code
elsif U.No_Elab then
-- The only case in which we have to do something is if
-- this is a body, with a separate spec, where the separate
-- spec has an elaboration entity defined.
-- In that case, this is where we set the elaboration entity
-- to True, we do not need to test if this has already been
-- done, since it is quicker to set the flag than to test it.
if not U.SAL_Interface and then U.Utype = Is_Body
and then Units.Table (Unum_Spec).Set_Elab_Entity
then
Set_String (" ");
Get_Name_String (U.Uname);
Set_Unit_Name;
Set_String ("_E = 1;");
Write_Statement_Buffer;
end if;
-- Here if elaboration code is present. If binding a library
-- or if there is a non-Ada main subprogram then we generate:
-- if (uname_E == 0) {
-- uname__elab[s|b] ();
-- uname_E++;
-- }
-- The uname_E assignment is skipped if this is a separate spec,
-- since the assignment will be done when we process the body.
elsif not U.SAL_Interface then
Get_Name_String (U.Uname);
if Force_Checking_Of_Elaboration_Flags or
Interface_Library_Unit or
(not Bind_Main_Program)
then
Set_String (" if (");
Set_Unit_Name;
Set_String ("_E == 0) {");
Write_Statement_Buffer;
Set_String (" ");
end if;
Set_String (" ");
Set_Unit_Name;
Set_String ("___elab");
Set_Char (Name_Buffer (Name_Len)); -- 's' or 'b' for spec/body
Set_String (" ();");
Write_Statement_Buffer;
if U.Utype /= Is_Spec then
if Force_Checking_Of_Elaboration_Flags or
Interface_Library_Unit or
(not Bind_Main_Program)
then
Set_String (" ");
end if;
Set_String (" ");
Set_Unit_Name;
Set_String ("_E++;");
Write_Statement_Buffer;
end if;
if Force_Checking_Of_Elaboration_Flags or
Interface_Library_Unit or
(not Bind_Main_Program)
then
WBI (" }");
end if;
end if;
end;
end loop;
end Gen_Elab_Calls_C;
----------------------
-- Gen_Elab_Defs_C --
----------------------
procedure Gen_Elab_Defs_C is
begin
for E in Elab_Order.First .. Elab_Order.Last loop
-- Generate declaration of elaboration procedure if elaboration
-- needed. Note that passive units are always excluded.
if not Units.Table (Elab_Order.Table (E)).No_Elab then
Get_Name_String (Units.Table (Elab_Order.Table (E)).Uname);
Set_String ("extern void ");
Set_Unit_Name;
Set_String ("___elab");
Set_Char (Name_Buffer (Name_Len)); -- 's' or 'b' for spec/body
Set_String (" (void);");
Write_Statement_Buffer;
end if;
end loop;
WBI ("");
end Gen_Elab_Defs_C;
------------------------
-- Gen_Elab_Order_Ada --
------------------------
procedure Gen_Elab_Order_Ada is
begin
WBI ("");
WBI (" -- BEGIN ELABORATION ORDER");
for J in Elab_Order.First .. Elab_Order.Last loop
Set_String (" -- ");
Get_Name_String (Units.Table (Elab_Order.Table (J)).Uname);
Set_Name_Buffer;
Write_Statement_Buffer;
end loop;
WBI (" -- END ELABORATION ORDER");
end Gen_Elab_Order_Ada;
----------------------
-- Gen_Elab_Order_C --
----------------------
procedure Gen_Elab_Order_C is
begin
WBI ("");
WBI ("/* BEGIN ELABORATION ORDER");
for J in Elab_Order.First .. Elab_Order.Last loop
Get_Name_String (Units.Table (Elab_Order.Table (J)).Uname);
Set_Name_Buffer;
Write_Statement_Buffer;
end loop;
WBI (" END ELABORATION ORDER */");
end Gen_Elab_Order_C;
------------------
-- Gen_Main_Ada --
------------------
procedure Gen_Main_Ada is
begin
WBI ("");
if Exit_Status_Supported_On_Target then
Set_String (" function ");
else
Set_String (" procedure ");
end if;
Set_String (Get_Main_Name);
if Command_Line_Args_On_Target then
Write_Statement_Buffer;
WBI (" (argc : Integer;");
WBI (" argv : System.Address;");
WBI (" envp : System.Address)");
if Exit_Status_Supported_On_Target then
WBI (" return Integer");
end if;
WBI (" is");
else
if Exit_Status_Supported_On_Target then
Set_String (" return Integer is");
else
Set_String (" is");
end if;
Write_Statement_Buffer;
end if;
if Opt.Default_Exit_Status /= 0
and then Bind_Main_Program
and then not Configurable_Run_Time_Mode
then
WBI (" procedure Set_Exit_Status (Status : Integer);");
WBI (" pragma Import (C, Set_Exit_Status, " &
"""__gnat_set_exit_status"");");
WBI ("");
end if;
-- Initialize and Finalize
if not Cumulative_Restrictions.Set (No_Finalization) then
WBI (" procedure initialize (Addr : System.Address);");
WBI (" pragma Import (C, initialize, ""__gnat_initialize"");");
WBI ("");
WBI (" procedure finalize;");
WBI (" pragma Import (C, finalize, ""__gnat_finalize"");");
end if;
-- If we want to analyze the stack, we have to import corresponding
-- symbols
if Dynamic_Stack_Measurement then
WBI ("");
WBI (" procedure Output_Results;");
WBI (" pragma Import (C, Output_Results, " &
"""__gnat_stack_usage_output_results"");");
WBI ("");
WBI (" " &
"procedure Initialize_Stack_Analysis (Buffer_Size : Natural);");
WBI (" pragma Import (C, Initialize_Stack_Analysis, " &
"""__gnat_stack_usage_initialize"");");
end if;
-- Deal with declarations for main program case
if not No_Main_Subprogram then
-- To call the main program, we declare it using a pragma Import
-- Ada with the right link name.
-- It might seem more obvious to "with" the main program, and call
-- it in the normal Ada manner. We do not do this for three reasons:
-- 1. It is more efficient not to recompile the main program
-- 2. We are not entitled to assume the source is accessible
-- 3. We don't know what options to use to compile it
-- It is really reason 3 that is most critical (indeed we used
-- to generate the "with", but several regression tests failed).
WBI ("");
if ALIs.Table (ALIs.First).Main_Program = Func then
WBI (" Result : Integer;");
WBI ("");
WBI (" function Ada_Main_Program return Integer;");
else
WBI (" procedure Ada_Main_Program;");
end if;
Set_String (" pragma Import (Ada, Ada_Main_Program, """);
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
Set_Main_Program_Name;
Set_String (""");");
Write_Statement_Buffer;
WBI ("");
if Bind_Main_Program
and then not Suppress_Standard_Library_On_Target
then
WBI (" SEH : aliased array (1 .. 2) of Integer;");
WBI ("");
end if;
end if;
-- Generate a reference to Ada_Main_Program_Name. This symbol is
-- not referenced elsewhere in the generated program, but is needed
-- by the debugger (that's why it is generated in the first place).
-- The reference stops Ada_Main_Program_Name from being optimized
-- away by smart linkers, such as the AiX linker.
-- Because this variable is unused, we make this variable "aliased"
-- with a pragma Volatile in order to tell the compiler to preserve
-- this variable at any level of optimization.
if Bind_Main_Program then
WBI
(" Ensure_Reference : aliased System.Address := " &
"Ada_Main_Program_Name'Address;");
WBI (" pragma Volatile (Ensure_Reference);");
WBI ("");
end if;
WBI (" begin");
-- Acquire command line arguments if present on target
if Command_Line_Args_On_Target then
WBI (" gnat_argc := argc;");
WBI (" gnat_argv := argv;");
WBI (" gnat_envp := envp;");
WBI ("");
-- If configurable run time and no command line args, then nothing
-- needs to be done since the gnat_argc/argv/envp variables are
-- suppressed in this case.
elsif Configurable_Run_Time_On_Target then
null;
-- Otherwise set dummy values (to be filled in by some other unit?)
else
WBI (" gnat_argc := 0;");
WBI (" gnat_argv := System.Null_Address;");
WBI (" gnat_envp := System.Null_Address;");
end if;
if Opt.Default_Exit_Status /= 0
and then Bind_Main_Program
and then not Configurable_Run_Time_Mode
then
Set_String (" Set_Exit_Status (");
Set_Int (Opt.Default_Exit_Status);
Set_String (");");
Write_Statement_Buffer;
end if;
if Dynamic_Stack_Measurement then
Set_String (" Initialize_Stack_Analysis (");
Set_Int (Dynamic_Stack_Measurement_Array_Size);
Set_String (");");
Write_Statement_Buffer;
end if;
if not Cumulative_Restrictions.Set (No_Finalization) then
if not No_Main_Subprogram
and then Bind_Main_Program
and then not Suppress_Standard_Library_On_Target
then
WBI (" Initialize (SEH'Address);");
else
WBI (" Initialize (System.Null_Address);");
end if;
end if;
WBI (" " & Ada_Init_Name.all & ";");
if not No_Main_Subprogram then
WBI (" Break_Start;");
if ALIs.Table (ALIs.First).Main_Program = Proc then
WBI (" Ada_Main_Program;");
else
WBI (" Result := Ada_Main_Program;");
end if;
end if;
-- Adafinal call is skipped if no finalization
if not Cumulative_Restrictions.Set (No_Finalization) then
-- If compiling for the JVM, we directly call Adafinal because
-- we don't import it via Do_Finalize (see Gen_Output_File_Ada).
if Hostparm.Java_VM then
WBI (" System.Standard_Library.Adafinal;");
else
WBI (" Do_Finalize;");
end if;
end if;
-- Prints the result of static stack analysis
if Dynamic_Stack_Measurement then
WBI (" Output_Results;");
end if;
-- Finalize is only called if we have a run time
if not Cumulative_Restrictions.Set (No_Finalization) then
WBI (" Finalize;");
end if;
-- Return result
if Exit_Status_Supported_On_Target then
if No_Main_Subprogram
or else ALIs.Table (ALIs.First).Main_Program = Proc
then
WBI (" return (gnat_exit_status);");
else
WBI (" return (Result);");
end if;
end if;
WBI (" end;");
end Gen_Main_Ada;
----------------
-- Gen_Main_C --
----------------
procedure Gen_Main_C is
begin
if Exit_Status_Supported_On_Target then
WBI ("#include <stdlib.h>");
Set_String ("int ");
else
Set_String ("void ");
end if;
Set_String (Get_Main_Name);
-- Generate command line args in prototype if present on target
if Command_Line_Args_On_Target then
Write_Statement_Buffer (" (int argc, char **argv, char **envp)");
-- Case of no command line arguments on target
else
Write_Statement_Buffer (" (void)");
end if;
WBI ("{");
-- Generate a reference to __gnat_ada_main_program_name. This symbol
-- is not referenced elsewhere in the generated program, but is
-- needed by the debugger (that's why it is generated in the first
-- place). The reference stops Ada_Main_Program_Name from being
-- optimized away by smart linkers, such as the AiX linker.
-- Because this variable is unused, we declare this variable as
-- volatile in order to tell the compiler to preserve it at any
-- level of optimization.
if Bind_Main_Program then
WBI (" char * volatile ensure_reference " &
"__attribute__ ((__unused__)) = " &
"__gnat_ada_main_program_name;");
WBI ("");
if not Suppress_Standard_Library_On_Target
and then not No_Main_Subprogram
then
WBI (" int SEH [2];");
WBI ("");
end if;
end if;
-- If main program is a function, generate result variable
if ALIs.Table (ALIs.First).Main_Program = Func then
WBI (" int result;");
end if;
-- Set command line argument values from parameters if command line
-- arguments are present on target
if Command_Line_Args_On_Target then
WBI (" gnat_argc = argc;");
WBI (" gnat_argv = argv;");
WBI (" gnat_envp = envp;");
WBI (" ");
-- If configurable run-time, then nothing to do, since in this case
-- the gnat_argc/argv/envp variables are entirely suppressed.
elsif Configurable_Run_Time_On_Target then
null;
-- if no command line arguments on target, set dummy values
else
WBI (" int result;");
WBI (" gnat_argc = 0;");
WBI (" gnat_argv = 0;");
WBI (" gnat_envp = 0;");
end if;
if Opt.Default_Exit_Status /= 0
and then Bind_Main_Program
and then not Configurable_Run_Time_Mode
then
Set_String (" __gnat_set_exit_status (");
Set_Int (Opt.Default_Exit_Status);
Set_String (");");
Write_Statement_Buffer;
end if;
-- Initializes dynamic stack measurement if needed
if Dynamic_Stack_Measurement then
Set_String (" __gnat_stack_usage_initialize (");
Set_Int (Dynamic_Stack_Measurement_Array_Size);
Set_String (");");
Write_Statement_Buffer;
end if;
-- The __gnat_initialize routine is used only if we have a run-time
if not Suppress_Standard_Library_On_Target then
if not No_Main_Subprogram and then Bind_Main_Program then
WBI (" __gnat_initialize ((void *)SEH);");
else
WBI (" __gnat_initialize ((void *)0);");
end if;
end if;
WBI (" " & Ada_Init_Name.all & " ();");
if not No_Main_Subprogram then
WBI (" __gnat_break_start ();");
WBI (" ");
-- Output main program name
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
-- Main program is procedure case
if ALIs.Table (ALIs.First).Main_Program = Proc then
Set_String (" ");
Set_Main_Program_Name;
Set_String (" ();");
Write_Statement_Buffer;
-- Main program is function case
else -- ALIs.Table (ALIs_First).Main_Program = Func
Set_String (" result = ");
Set_Main_Program_Name;
Set_String (" ();");
Write_Statement_Buffer;
end if;
end if;
-- Call adafinal if finalization active
if not Cumulative_Restrictions.Set (No_Finalization) then
WBI (" ");
WBI (" system__standard_library__adafinal ();");
end if;
-- Outputs the dynamic stack measurement if needed
if Dynamic_Stack_Measurement then
WBI (" __gnat_stack_usage_output_results ();");
end if;
-- The finalize routine is used only if we have a run-time
if not Suppress_Standard_Library_On_Target then
WBI (" __gnat_finalize ();");
end if;
-- Case of main program is a function, so the value it returns
-- is the exit status in this case.
if ALIs.Table (ALIs.First).Main_Program = Func then
if Exit_Status_Supported_On_Target then
-- VMS must use Posix exit routine in order to get the effect
-- of a Unix compatible setting of the program exit status.
-- For all other systems, we use the standard exit routine.
if OpenVMS_On_Target then
WBI (" decc$__posix_exit (result);");
else
WBI (" exit (result);");
end if;
end if;
-- Case of main program is a procedure, in which case the exit
-- status is whatever was set by a Set_Exit call most recently
else
if Exit_Status_Supported_On_Target then
-- VMS must use Posix exit routine in order to get the effect
-- of a Unix compatible setting of the program exit status.
-- For all other systems, we use the standard exit routine.
if OpenVMS_On_Target then
WBI (" decc$__posix_exit (gnat_exit_status);");
else
WBI (" exit (gnat_exit_status);");
end if;
end if;
end if;
WBI ("}");
end Gen_Main_C;
------------------------------
-- Gen_Object_Files_Options --
------------------------------
procedure Gen_Object_Files_Options is
Lgnat : Natural;
-- This keeps track of the position in the sorted set of entries
-- in the Linker_Options table of where the first entry from an
-- internal file appears.
procedure Write_Linker_Option;
-- Write binder info linker option
-------------------------
-- Write_Linker_Option --
-------------------------
procedure Write_Linker_Option is
Start : Natural;
Stop : Natural;
begin
-- Loop through string, breaking at null's
Start := 1;
while Start < Name_Len loop
-- Find null ending this section
Stop := Start + 1;
while Name_Buffer (Stop) /= ASCII.NUL
and then Stop <= Name_Len loop
Stop := Stop + 1;
end loop;
-- Process section if non-null
if Stop > Start then
if Output_Linker_Option_List then
Write_Str (Name_Buffer (Start .. Stop - 1));
Write_Eol;
end if;
Write_Info_Ada_C
(" -- ", "", Name_Buffer (Start .. Stop - 1));
end if;
Start := Stop + 1;
end loop;
end Write_Linker_Option;
-- Start of processing for Gen_Object_Files_Options
begin
WBI ("");
Write_Info_Ada_C ("-- ", "/* ", " BEGIN Object file/option list");
for E in Elab_Order.First .. Elab_Order.Last loop
-- If not spec that has an associated body, then generate a
-- comment giving the name of the corresponding object file.
if (not Units.Table (Elab_Order.Table (E)).SAL_Interface)
and then Units.Table (Elab_Order.Table (E)).Utype /= Is_Spec
then
Get_Name_String
(ALIs.Table
(Units.Table (Elab_Order.Table (E)).My_ALI).Ofile_Full_Name);
-- If the presence of an object file is necessary or if it
-- exists, then use it.
if not Hostparm.Exclude_Missing_Objects
or else GNAT.OS_Lib.Is_Regular_File (Name_Buffer (1 .. Name_Len))
then
Write_Info_Ada_C (" -- ", "", Name_Buffer (1 .. Name_Len));
if Output_Object_List then
Write_Str (Name_Buffer (1 .. Name_Len));
Write_Eol;
end if;
-- Don't link with the shared library on VMS if an internal
-- filename object is seen. Multiply defined symbols will
-- result.
if OpenVMS_On_Target
and then Is_Internal_File_Name
(ALIs.Table
(Units.Table (Elab_Order.Table (E)).My_ALI).Sfile)
then
-- Special case for g-trasym.obj, which is not included
-- in libgnat.
Get_Name_String (ALIs.Table
(Units.Table (Elab_Order.Table (E)).My_ALI).Sfile);
if Name_Buffer (1 .. 8) /= "g-trasym" then
Opt.Shared_Libgnat := False;
end if;
end if;
end if;
end if;
end loop;
-- Add a "-Ldir" for each directory in the object path
for J in 1 .. Nb_Dir_In_Obj_Search_Path loop
declare
Dir : constant String_Ptr := Dir_In_Obj_Search_Path (J);
begin
Name_Len := 0;
Add_Str_To_Name_Buffer ("-L");
Add_Str_To_Name_Buffer (Dir.all);
Write_Linker_Option;
end;
end loop;
-- Sort linker options
-- This sort accomplishes two important purposes:
-- a) All application files are sorted to the front, and all
-- GNAT internal files are sorted to the end. This results
-- in a well defined dividing line between the two sets of
-- files, for the purpose of inserting certain standard
-- library references into the linker arguments list.
-- b) Given two different units, we sort the linker options so
-- that those from a unit earlier in the elaboration order
-- comes later in the list. This is a heuristic designed
-- to create a more friendly order of linker options when
-- the operations appear in separate units. The idea is that
-- if unit A must be elaborated before unit B, then it is
-- more likely that B references libraries included by A,
-- than vice versa, so we want the libraries included by
-- A to come after the libraries included by B.
-- These two criteria are implemented by function Lt_Linker_Option.
-- Note that a special case of b) is that specs are elaborated before
-- bodies, so linker options from specs come after linker options
-- for bodies, and again, the assumption is that libraries used by
-- the body are more likely to reference libraries used by the spec,
-- than vice versa.
Sort
(Linker_Options.Last,
Move_Linker_Option'Access,
Lt_Linker_Option'Access);
-- Write user linker options, i.e. the set of linker options that
-- come from all files other than GNAT internal files, Lgnat is
-- left set to point to the first entry from a GNAT internal file,
-- or past the end of the entriers if there are no internal files.
Lgnat := Linker_Options.Last + 1;
for J in 1 .. Linker_Options.Last loop
if not Linker_Options.Table (J).Internal_File then
Get_Name_String (Linker_Options.Table (J).Name);
Write_Linker_Option;
else
Lgnat := J;
exit;
end if;
end loop;
-- Now we insert standard linker options that must appear after the
-- entries from user files, and before the entries from GNAT run-time
-- files. The reason for this decision is that libraries referenced
-- by internal routines may reference these standard library entries.
if not Opt.No_Stdlib then
Name_Len := 0;
if Opt.Shared_Libgnat then
Add_Str_To_Name_Buffer ("-shared");
else
Add_Str_To_Name_Buffer ("-static");
end if;
-- Write directly to avoid -K output (why???)
Write_Info_Ada_C (" -- ", "", Name_Buffer (1 .. Name_Len));
if With_DECGNAT then
Name_Len := 0;
if Opt.Shared_Libgnat then
Add_Str_To_Name_Buffer (Shared_Lib ("decgnat"));
else
Add_Str_To_Name_Buffer ("-ldecgnat");
end if;
Write_Linker_Option;
end if;
if With_GNARL then
Name_Len := 0;
if Opt.Shared_Libgnat then
Add_Str_To_Name_Buffer (Shared_Lib ("gnarl"));
else
Add_Str_To_Name_Buffer ("-lgnarl");
end if;
Write_Linker_Option;
end if;
Name_Len := 0;
if Opt.Shared_Libgnat then
Add_Str_To_Name_Buffer (Shared_Lib ("gnat"));
else
Add_Str_To_Name_Buffer ("-lgnat");
end if;
Write_Linker_Option;
end if;
-- Write linker options from all internal files
for J in Lgnat .. Linker_Options.Last loop
Get_Name_String (Linker_Options.Table (J).Name);
Write_Linker_Option;
end loop;
if Ada_Bind_File then
WBI ("-- END Object file/option list ");
else
WBI (" END Object file/option list */");
end if;
end Gen_Object_Files_Options;
---------------------
-- Gen_Output_File --
---------------------
procedure Gen_Output_File (Filename : String) is
Is_Public_Version : constant Boolean := Get_Gnat_Build_Type = Public;
Is_GAP_Version : constant Boolean := Get_Gnat_Build_Type = GAP;
begin
-- Acquire settings for Interrupt_State pragmas
Set_IS_Pragma_Table;
-- Override Ada_Bind_File and Bind_Main_Program for Java since
-- JGNAT only supports Ada code, and the main program is already
-- generated by the compiler.
if Hostparm.Java_VM then
Ada_Bind_File := True;
Bind_Main_Program := False;
end if;
-- Override time slice value if -T switch is set
if Time_Slice_Set then
ALIs.Table (ALIs.First).Time_Slice_Value := Opt.Time_Slice_Value;
end if;
-- Count number of elaboration calls
for E in Elab_Order.First .. Elab_Order.Last loop
if Units.Table (Elab_Order.Table (E)).No_Elab then
null;
else
Num_Elab_Calls := Num_Elab_Calls + 1;
end if;
end loop;
-- Get the time stamp of the former bind for public version warning
if Is_Public_Version or Is_GAP_Version then
Record_Time_From_Last_Bind;
end if;
-- Generate output file in appropriate language
if Ada_Bind_File then
Gen_Output_File_Ada (Filename);
else
Gen_Output_File_C (Filename);
end if;
-- Periodically issue a warning when the public version is used on
-- big projects
if Is_Public_Version then
Public_Version_Warning;
end if;
end Gen_Output_File;
-------------------------
-- Gen_Output_File_Ada --
-------------------------
procedure Gen_Output_File_Ada (Filename : String) is
Bfiles : Name_Id;
-- Name of generated bind file (spec)
Bfileb : Name_Id;
-- Name of generated bind file (body)
Ada_Main : constant String := Get_Ada_Main_Name;
-- Name to be used for generated Ada main program. See the body of
-- function Get_Ada_Main_Name for details on the form of the name.
begin
-- Create spec first
Create_Binder_Output (Filename, 's', Bfiles);
-- If we are operating in Restrictions (No_Exception_Handlers) mode,
-- then we need to make sure that the binder program is compiled with
-- the same restriction, so that no exception tables are generated.
if Cumulative_Restrictions.Set (No_Exception_Handlers) then
WBI ("pragma Restrictions (No_Exception_Handlers);");
end if;
-- Generate with of System so we can reference System.Address
WBI ("with System;");
-- Generate with of System.Initialize_Scalars if active
if Initialize_Scalars_Used then
WBI ("with System.Scalar_Values;");
end if;
-- Generate with of System.Secondary_Stack if active
if Sec_Stack_Used and then Default_Sec_Stack_Size /= -1 then
WBI ("with System.Secondary_Stack;");
end if;
Resolve_Binder_Options;
if not Suppress_Standard_Library_On_Target then
-- Usually, adafinal is called using a pragma Import C. Since
-- Import C doesn't have the same semantics for JGNAT, we use
-- standard Ada.
if Hostparm.Java_VM then
WBI ("with System.Standard_Library;");
end if;
end if;
WBI ("package " & Ada_Main & " is");
WBI (" pragma Warnings (Off);");
-- Main program case
if Bind_Main_Program then
-- Generate argc/argv stuff unless suppressed
if Command_Line_Args_On_Target
or not Configurable_Run_Time_On_Target
then
WBI ("");
WBI (" gnat_argc : Integer;");
WBI (" gnat_argv : System.Address;");
WBI (" gnat_envp : System.Address;");
-- If the standard library is not suppressed, these variables are
-- in the runtime data area for easy access from the runtime
if not Suppress_Standard_Library_On_Target then
WBI ("");
WBI (" pragma Import (C, gnat_argc);");
WBI (" pragma Import (C, gnat_argv);");
WBI (" pragma Import (C, gnat_envp);");
end if;
end if;
-- Define exit status. Again in normal mode, this is in the
-- run-time library, and is initialized there, but in the
-- configurable runtime case, the variable is declared and
-- initialized in this file.
WBI ("");
if Configurable_Run_Time_Mode then
if Exit_Status_Supported_On_Target then
WBI (" gnat_exit_status : Integer := 0;");
end if;
else
WBI (" gnat_exit_status : Integer;");
WBI (" pragma Import (C, gnat_exit_status);");
end if;
end if;
-- Generate the GNAT_Version and Ada_Main_Program_Name info only for
-- the main program. Otherwise, it can lead under some circumstances
-- to a symbol duplication during the link (for instance when a
-- C program uses 2 Ada libraries)
if Bind_Main_Program then
WBI ("");
WBI (" GNAT_Version : constant String :=");
WBI (" ""GNAT Version: " &
Gnat_Version_String & """;");
WBI (" pragma Export (C, GNAT_Version, ""__gnat_version"");");
WBI ("");
Set_String (" Ada_Main_Program_Name : constant String := """);
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
Set_Main_Program_Name;
Set_String (""" & Ascii.NUL;");
Write_Statement_Buffer;
WBI
(" pragma Export (C, Ada_Main_Program_Name, " &
"""__gnat_ada_main_program_name"");");
end if;
WBI ("");
WBI (" procedure " & Ada_Final_Name.all & ";");
WBI (" pragma Export (C, " & Ada_Final_Name.all & ", """ &
Ada_Final_Name.all & """);");
if Use_Pragma_Linker_Constructor then
WBI (" pragma Linker_Destructor (" & Ada_Final_Name.all & ");");
end if;
WBI ("");
WBI (" procedure " & Ada_Init_Name.all & ";");
WBI (" pragma Export (C, " & Ada_Init_Name.all & ", """ &
Ada_Init_Name.all & """);");
if Use_Pragma_Linker_Constructor then
WBI (" pragma Linker_Constructor (" & Ada_Init_Name.all & ");");
end if;
if Bind_Main_Program then
-- If we have the standard library, then Break_Start is defined
-- there, but when the standard library is suppressed, Break_Start
-- is defined here.
WBI ("");
WBI (" procedure Break_Start;");
if Suppress_Standard_Library_On_Target then
WBI (" pragma Export (C, Break_Start, ""__gnat_break_start"");");
else
WBI (" pragma Import (C, Break_Start, ""__gnat_break_start"");");
end if;
WBI ("");
if Exit_Status_Supported_On_Target then
Set_String (" function ");
else
Set_String (" procedure ");
end if;
Set_String (Get_Main_Name);
-- Generate argument list if present
if Command_Line_Args_On_Target then
Write_Statement_Buffer;
WBI (" (argc : Integer;");
WBI (" argv : System.Address;");
Set_String
(" envp : System.Address)");
if Exit_Status_Supported_On_Target then
Write_Statement_Buffer;
WBI (" return Integer;");
else
Write_Statement_Buffer (";");
end if;
else
if Exit_Status_Supported_On_Target then
Write_Statement_Buffer (" return Integer;");
else
Write_Statement_Buffer (";");
end if;
end if;
WBI (" pragma Export (C, " & Get_Main_Name & ", """ &
Get_Main_Name & """);");
end if;
Gen_Versions_Ada;
Gen_Elab_Order_Ada;
-- Spec is complete
WBI ("");
WBI ("end " & Ada_Main & ";");
Close_Binder_Output;
-- Prepare to write body
Create_Binder_Output (Filename, 'b', Bfileb);
-- Output Source_File_Name pragmas which look like
-- pragma Source_File_Name (Ada_Main, Spec_File_Name => "sss");
-- pragma Source_File_Name (Ada_Main, Body_File_Name => "bbb");
-- where sss/bbb are the spec/body file names respectively
Get_Name_String (Bfiles);
Name_Buffer (Name_Len + 1 .. Name_Len + 3) := """);";
WBI ("pragma Source_File_Name (" &
Ada_Main &
", Spec_File_Name => """ &
Name_Buffer (1 .. Name_Len + 3));
Get_Name_String (Bfileb);
Name_Buffer (Name_Len + 1 .. Name_Len + 3) := """);";
WBI ("pragma Source_File_Name (" &
Ada_Main &
", Body_File_Name => """ &
Name_Buffer (1 .. Name_Len + 3));
WBI ("");
WBI ("package body " & Ada_Main & " is");
WBI (" pragma Warnings (Off);");
-- Import the finalization procedure only if finalization active
if not Cumulative_Restrictions.Set (No_Finalization) then
-- In the Java case, pragma Import C cannot be used, so the
-- standard Ada constructs will be used instead.
if not Hostparm.Java_VM then
WBI ("");
WBI (" procedure Do_Finalize;");
WBI
(" pragma Import (C, Do_Finalize, " &
"""system__standard_library__adafinal"");");
WBI ("");
end if;
end if;
Gen_Adainit_Ada;
Gen_Adafinal_Ada;
if Bind_Main_Program then
-- When suppressing the standard library then generate dummy body
-- for Break_Start
if Suppress_Standard_Library_On_Target then
WBI ("");
WBI (" procedure Break_Start is");
WBI (" begin");
WBI (" null;");
WBI (" end;");
end if;
Gen_Main_Ada;
end if;
-- Output object file list and the Ada body is complete
Gen_Object_Files_Options;
WBI ("");
WBI ("end " & Ada_Main & ";");
Close_Binder_Output;
end Gen_Output_File_Ada;
-----------------------
-- Gen_Output_File_C --
-----------------------
procedure Gen_Output_File_C (Filename : String) is
Bfile : Name_Id;
-- Name of generated bind file
begin
Create_Binder_Output (Filename, 'c', Bfile);
Resolve_Binder_Options;
WBI ("extern void __gnat_set_globals");
WBI (" (int, int, char, char, char, char,");
WBI (" const char *, const char *,");
WBI (" int, int, int, int, int, int);");
if Use_Pragma_Linker_Constructor then
WBI ("extern void " & Ada_Final_Name.all &
" (void) __attribute__((destructor));");
WBI ("extern void " & Ada_Init_Name.all &
" (void) __attribute__((constructor));");
else
WBI ("extern void " & Ada_Final_Name.all & " (void);");
WBI ("extern void " & Ada_Init_Name.all & " (void);");
end if;
WBI ("extern void system__standard_library__adafinal (void);");
if not No_Main_Subprogram then
Set_String ("extern ");
if Exit_Status_Supported_On_Target then
Set_String ("int");
else
Set_String ("void");
end if;
Set_String (" main ");
if Command_Line_Args_On_Target then
Write_Statement_Buffer ("(int, char **, char **);");
else
Write_Statement_Buffer ("(void);");
end if;
if OpenVMS_On_Target then
WBI ("extern void decc$__posix_exit (int);");
else
WBI ("extern void exit (int);");
end if;
WBI ("extern void __gnat_break_start (void);");
Set_String ("extern ");
if ALIs.Table (ALIs.First).Main_Program = Proc then
Set_String ("void ");
else
Set_String ("int ");
end if;
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
Set_Main_Program_Name;
Set_String (" (void);");
Write_Statement_Buffer;
end if;
if not Suppress_Standard_Library_On_Target then
WBI ("extern void __gnat_initialize (void *);");
WBI ("extern void __gnat_finalize (void);");
WBI ("extern void __gnat_install_handler (void);");
end if;
if Dynamic_Stack_Measurement then
WBI ("");
WBI ("extern void __gnat_stack_usage_output_results (void);");
WBI ("extern void __gnat_stack_usage_initialize (int size);");
end if;
WBI ("");
Gen_Elab_Defs_C;
-- Imported variable used to track elaboration/finalization phase.
-- Used only when we have a runtime.
if not Suppress_Standard_Library_On_Target then
WBI ("extern int __gnat_handler_installed;");
WBI ("");
end if;
-- Write argv/argc exit status stuff if main program case
if Bind_Main_Program then
-- First deal with argc/argv/envp. In the normal case they
-- are in the run-time library.
if not Configurable_Run_Time_On_Target then
WBI ("extern int gnat_argc;");
WBI ("extern char **gnat_argv;");
WBI ("extern char **gnat_envp;");
-- If configurable run time and no command line args, then the
-- generation of these variables is entirely suppressed.
elsif not Command_Line_Args_On_Target then
null;
-- Otherwise, in the configurable run-time case they are right in
-- the binder file.
else
WBI ("int gnat_argc;");
WBI ("char **gnat_argv;");
WBI ("char **gnat_envp;");
end if;
-- Similarly deal with exit status
-- are in the run-time library.
if not Configurable_Run_Time_On_Target then
WBI ("extern int gnat_exit_status;");
-- If configurable run time and no exit status on target, then
-- the generation of this variables is entirely suppressed.
elsif not Exit_Status_Supported_On_Target then
null;
-- Otherwise, in the configurable run-time case this variable is
-- right in the binder file, and initialized to zero there.
else
WBI ("int gnat_exit_status = 0;");
end if;
WBI ("");
end if;
-- When suppressing the standard library, the __gnat_break_start
-- routine (for the debugger to get initial control) is defined in
-- this file.
if Suppress_Standard_Library_On_Target then
WBI ("");
WBI ("void __gnat_break_start (void) {}");
end if;
-- Generate the __gnat_version and __gnat_ada_main_program_name info
-- only for the main program. Otherwise, it can lead under some
-- circumstances to a symbol duplication during the link (for instance
-- when a C program uses 2 Ada libraries)
if Bind_Main_Program then
WBI ("");
WBI ("char __gnat_version[] = ""GNAT Version: " &
Gnat_Version_String & """;");
Set_String ("char __gnat_ada_main_program_name[] = """);
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
Set_Main_Program_Name;
Set_String (""";");
Write_Statement_Buffer;
end if;
-- Generate the adafinal routine. In no runtime mode, this is
-- not needed, since there is no finalization to do.
if not Cumulative_Restrictions.Set (No_Finalization) then
Gen_Adafinal_C;
end if;
Gen_Adainit_C;
-- Main is only present for Ada main case
if Bind_Main_Program then
Gen_Main_C;
end if;
-- Generate versions, elaboration order, list of object files
Gen_Versions_C;
Gen_Elab_Order_C;
Gen_Object_Files_Options;
-- C binder output is complete
Close_Binder_Output;
end Gen_Output_File_C;
-------------------------------
-- Gen_Restrictions_String_1 --
-------------------------------
procedure Gen_Restrictions_String_1 is
begin
for R in All_Boolean_Restrictions loop
if Cumulative_Restrictions.Set (R) then
Set_Char ('r');
elsif Cumulative_Restrictions.Violated (R) then
Set_Char ('v');
else
Set_Char ('n');
end if;
end loop;
end Gen_Restrictions_String_1;
-------------------------------
-- Gen_Restrictions_String_2 --
-------------------------------
procedure Gen_Restrictions_String_2 is
begin
for RP in All_Parameter_Restrictions loop
if Cumulative_Restrictions.Set (RP) then
Set_Char ('r');
Set_Int (Int (Cumulative_Restrictions.Value (RP)));
else
Set_Char ('n');
end if;
if not Cumulative_Restrictions.Violated (RP)
or else RP not in Checked_Parameter_Restrictions
then
Set_Char ('n');
else
Set_Char ('v');
Set_Int (Int (Cumulative_Restrictions.Count (RP)));
if Cumulative_Restrictions.Unknown (RP) then
Set_Char ('+');
end if;
end if;
end loop;
end Gen_Restrictions_String_2;
----------------------
-- Gen_Versions_Ada --
----------------------
-- This routine generates two sets of lines. The first set has the form:
-- unnnnn : constant Integer := 16#hhhhhhhh#;
-- The second set has the form
-- pragma Export (C, unnnnn, unam);
-- for each unit, where unam is the unit name suffixed by either B or
-- S for body or spec, with dots replaced by double underscores, and
-- hhhhhhhh is the version number, and nnnnn is a 5-digits serial number.
procedure Gen_Versions_Ada is
Ubuf : String (1 .. 6) := "u00000";
procedure Increment_Ubuf;
-- Little procedure to increment the serial number
procedure Increment_Ubuf is
begin
for J in reverse Ubuf'Range loop
Ubuf (J) := Character'Succ (Ubuf (J));
exit when Ubuf (J) <= '9';
Ubuf (J) := '0';
end loop;
end Increment_Ubuf;
-- Start of processing for Gen_Versions_Ada
begin
if Bind_For_Library then
-- When building libraries, the version number of each unit can
-- not be computed, since the binder does not know the full list
-- of units. Therefore, the 'Version and 'Body_Version
-- attributes cannot supported in this case.
return;
end if;
WBI ("");
WBI (" type Version_32 is mod 2 ** 32;");
for U in Units.First .. Units.Last loop
Increment_Ubuf;
WBI (" " & Ubuf & " : constant Version_32 := 16#" &
Units.Table (U).Version & "#;");
end loop;
WBI ("");
Ubuf := "u00000";
for U in Units.First .. Units.Last loop
Increment_Ubuf;
Set_String (" pragma Export (C, ");
Set_String (Ubuf);
Set_String (", """);
Get_Name_String (Units.Table (U).Uname);
for K in 1 .. Name_Len loop
if Name_Buffer (K) = '.' then
Set_Char ('_');
Set_Char ('_');
elsif Name_Buffer (K) = '%' then
exit;
else
Set_Char (Name_Buffer (K));
end if;
end loop;
if Name_Buffer (Name_Len) = 's' then
Set_Char ('S');
else
Set_Char ('B');
end if;
Set_String (""");");
Write_Statement_Buffer;
end loop;
end Gen_Versions_Ada;
--------------------
-- Gen_Versions_C --
--------------------
-- This routine generates a line of the form:
-- unsigned unam = 0xhhhhhhhh;
-- for each unit, where unam is the unit name suffixed by either B or
-- S for body or spec, with dots replaced by double underscores.
procedure Gen_Versions_C is
begin
if Bind_For_Library then
-- When building libraries, the version number of each unit can
-- not be computed, since the binder does not know the full list
-- of units. Therefore, the 'Version and 'Body_Version
-- attributes cannot supported.
return;
end if;
for U in Units.First .. Units.Last loop
Set_String ("unsigned ");
Get_Name_String (Units.Table (U).Uname);
for K in 1 .. Name_Len loop
if Name_Buffer (K) = '.' then
Set_String ("__");
elsif Name_Buffer (K) = '%' then
exit;
else
Set_Char (Name_Buffer (K));
end if;
end loop;
if Name_Buffer (Name_Len) = 's' then
Set_Char ('S');
else
Set_Char ('B');
end if;
Set_String (" = 0x");
Set_String (Units.Table (U).Version);
Set_Char (';');
Write_Statement_Buffer;
end loop;
end Gen_Versions_C;
-----------------------
-- Get_Ada_Main_Name --
-----------------------
function Get_Ada_Main_Name return String is
Suffix : constant String := "_00";
Name : String (1 .. Opt.Ada_Main_Name.all'Length + Suffix'Length) :=
Opt.Ada_Main_Name.all & Suffix;
Nlen : Natural;
begin
-- The main program generated by JGNAT expects a package called
-- ada_<main procedure>.
if Hostparm.Java_VM then
-- Get main program name
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
-- Remove the %b
return "ada_" & Name_Buffer (1 .. Name_Len - 2);
end if;
-- This loop tries the following possibilities in order
-- <Ada_Main>
-- <Ada_Main>_01
-- <Ada_Main>_02
-- ..
-- <Ada_Main>_99
-- where <Ada_Main> is equal to Opt.Ada_Main_Name. By default,
-- it is set to 'ada_main'.
for J in 0 .. 99 loop
if J = 0 then
Nlen := Name'Length - Suffix'Length;
else
Nlen := Name'Length;
Name (Name'Last) := Character'Val (J mod 10 + Character'Pos ('0'));
Name (Name'Last - 1) :=
Character'Val (J / 10 + Character'Pos ('0'));
end if;
for K in ALIs.First .. ALIs.Last loop
for L in ALIs.Table (K).First_Unit .. ALIs.Table (K).Last_Unit loop
-- Get unit name, removing %b or %e at end
Get_Name_String (Units.Table (L).Uname);
Name_Len := Name_Len - 2;
if Name_Buffer (1 .. Name_Len) = Name (1 .. Nlen) then
goto Continue;
end if;
end loop;
end loop;
return Name (1 .. Nlen);
<<Continue>>
null;
end loop;
-- If we fall through, just use a peculiar unlikely name
return ("Qwertyuiop");
end Get_Ada_Main_Name;
-------------------
-- Get_Main_Name --
-------------------
function Get_Main_Name return String is
begin
-- Explicit name given with -M switch
if Bind_Alternate_Main_Name then
return Alternate_Main_Name.all;
-- Case of main program name to be used directly
elsif Use_Ada_Main_Program_Name_On_Target then
-- Get main program name
Get_Name_String (Units.Table (First_Unit_Entry).Uname);
-- If this is a child name, return only the name of the child,
-- since we can't have dots in a nested program name. Note that
-- we do not include the %b at the end of the unit name.
for J in reverse 1 .. Name_Len - 2 loop
if J = 1 or else Name_Buffer (J - 1) = '.' then
return Name_Buffer (J .. Name_Len - 2);
end if;
end loop;
raise Program_Error; -- impossible exit
-- Case where "main" is to be used as default
else
return "main";
end if;
end Get_Main_Name;
----------------------
-- Lt_Linker_Option --
----------------------
function Lt_Linker_Option (Op1, Op2 : Natural) return Boolean is
begin
-- Sort internal files last
if Linker_Options.Table (Op1).Internal_File
/=
Linker_Options.Table (Op2).Internal_File
then
-- Note: following test uses False < True
return Linker_Options.Table (Op1).Internal_File
<
Linker_Options.Table (Op2).Internal_File;
-- If both internal or both non-internal, sort according to the
-- elaboration position. A unit that is elaborated later should
-- come earlier in the linker options list.
else
return Units.Table (Linker_Options.Table (Op1).Unit).Elab_Position
>
Units.Table (Linker_Options.Table (Op2).Unit).Elab_Position;
end if;
end Lt_Linker_Option;
------------------------
-- Move_Linker_Option --
------------------------
procedure Move_Linker_Option (From : Natural; To : Natural) is
begin
Linker_Options.Table (To) := Linker_Options.Table (From);
end Move_Linker_Option;
----------------------------
-- Public_Version_Warning --
----------------------------
procedure Public_Version_Warning is
Time : constant Int := Time_From_Last_Bind;
-- Constants to help defining periods
Hour : constant := 60;
Day : constant := 24 * Hour;
Never : constant := Integer'Last;
-- Special value indicating no warnings should be given
-- Constants defining when the warning is issued. Programs with more
-- than Large Units will issue a warning every Period_Large amount of
-- time. Smaller programs will generate a warning every Period_Small
-- amount of time.
Large : constant := 20;
-- Threshold for considering a program small or large
Period_Large : constant := Day;
-- Periodic warning time for large programs
Period_Small : constant := Never;
-- Periodic warning time for small programs
Nb_Unit : Int;
begin
-- Compute the number of units that are not GNAT internal files
Nb_Unit := 0;
for A in ALIs.First .. ALIs.Last loop
if not Is_Internal_File_Name (ALIs.Table (A).Sfile) then
Nb_Unit := Nb_Unit + 1;
end if;
end loop;
-- Do not emit the message if the last message was emitted in the
-- specified period taking into account the number of units.
pragma Warnings (Off);
-- Turn off warning of constant condition, which may happen here
-- depending on the choice of constants in the above declarations.
if Nb_Unit < Large and then Time <= Period_Small then
return;
elsif Time <= Period_Large then
return;
end if;
pragma Warnings (On);
Write_Eol;
Write_Str ("IMPORTANT NOTICE:");
Write_Eol;
Write_Str (" This version of GNAT is unsupported"
& " and comes with absolutely no warranty.");
Write_Eol;
Write_Str (" If you intend to evaluate or use GNAT for building "
& "commercial applications,");
Write_Eol;
Write_Str (" please consult http://www.gnat.com/ for information");
Write_Eol;
Write_Str (" on the GNAT Professional product line.");
Write_Eol;
Write_Eol;
end Public_Version_Warning;
----------------------------
-- Resolve_Binder_Options --
----------------------------
procedure Resolve_Binder_Options is
begin
for E in Elab_Order.First .. Elab_Order.Last loop
Get_Name_String (Units.Table (Elab_Order.Table (E)).Uname);
-- The procedure of looking for specific packages and setting
-- flags is somewhat dubious, but there isn't a good alternative
-- at the current time ???
if Name_Buffer (1 .. 19) = "system.os_interface" then
With_GNARL := True;
end if;
if OpenVMS_On_Target and then Name_Buffer (1 .. 5) = "dec%s" then
With_DECGNAT := True;
end if;
end loop;
end Resolve_Binder_Options;
--------------
-- Set_Char --
--------------
procedure Set_Char (C : Character) is
begin
Last := Last + 1;
Statement_Buffer (Last) := C;
end Set_Char;
-------------
-- Set_Int --
-------------
procedure Set_Int (N : Int) is
begin
if N < 0 then
Set_String ("-");
Set_Int (-N);
else
if N > 9 then
Set_Int (N / 10);
end if;
Last := Last + 1;
Statement_Buffer (Last) :=
Character'Val (N mod 10 + Character'Pos ('0'));
end if;
end Set_Int;
-------------------------
-- Set_IS_Pragma_Table --
-------------------------
procedure Set_IS_Pragma_Table is
begin
for F in ALIs.First .. ALIs.Last loop
for K in ALIs.Table (F).First_Interrupt_State ..
ALIs.Table (F).Last_Interrupt_State
loop
declare
Inum : constant Int :=
Interrupt_States.Table (K).Interrupt_Id;
Stat : constant Character :=
Interrupt_States.Table (K).Interrupt_State;
begin
while IS_Pragma_Settings.Last < Inum loop
IS_Pragma_Settings.Append ('n');
end loop;
IS_Pragma_Settings.Table (Inum) := Stat;
end;
end loop;
end loop;
end Set_IS_Pragma_Table;
---------------------------
-- Set_Main_Program_Name --
---------------------------
procedure Set_Main_Program_Name is
begin
-- Note that name has %b on the end which we ignore
-- First we output the initial _ada_ since we know that the main
-- program is a library level subprogram.
Set_String ("_ada_");
-- Copy name, changing dots to double underscores
for J in 1 .. Name_Len - 2 loop
if Name_Buffer (J) = '.' then
Set_String ("__");
else
Set_Char (Name_Buffer (J));
end if;
end loop;
end Set_Main_Program_Name;
---------------------
-- Set_Name_Buffer --
---------------------
procedure Set_Name_Buffer is
begin
for J in 1 .. Name_Len loop
Set_Char (Name_Buffer (J));
end loop;
end Set_Name_Buffer;
----------------
-- Set_String --
----------------
procedure Set_String (S : String) is
begin
Statement_Buffer (Last + 1 .. Last + S'Length) := S;
Last := Last + S'Length;
end Set_String;
-------------------
-- Set_Unit_Name --
-------------------
procedure Set_Unit_Name is
begin
for J in 1 .. Name_Len - 2 loop
if Name_Buffer (J) /= '.' then
Set_Char (Name_Buffer (J));
else
Set_String ("__");
end if;
end loop;
end Set_Unit_Name;
---------------------
-- Set_Unit_Number --
---------------------
procedure Set_Unit_Number (U : Unit_Id) is
Num_Units : constant Nat := Nat (Units.Last) - Nat (Unit_Id'First);
Unum : constant Nat := Nat (U) - Nat (Unit_Id'First);
begin
if Num_Units >= 10 and then Unum < 10 then
Set_Char ('0');
end if;
if Num_Units >= 100 and then Unum < 100 then
Set_Char ('0');
end if;
Set_Int (Unum);
end Set_Unit_Number;
------------
-- Tab_To --
------------
procedure Tab_To (N : Natural) is
begin
while Last < N loop
Set_Char (' ');
end loop;
end Tab_To;
----------------------
-- Write_Info_Ada_C --
----------------------
procedure Write_Info_Ada_C (Ada : String; C : String; Common : String) is
begin
if Ada_Bind_File then
declare
S : String (1 .. Ada'Length + Common'Length);
begin
S (1 .. Ada'Length) := Ada;
S (Ada'Length + 1 .. S'Length) := Common;
WBI (S);
end;
else
declare
S : String (1 .. C'Length + Common'Length);
begin
S (1 .. C'Length) := C;
S (C'Length + 1 .. S'Length) := Common;
WBI (S);
end;
end if;
end Write_Info_Ada_C;
----------------------------
-- Write_Statement_Buffer --
----------------------------
procedure Write_Statement_Buffer is
begin
WBI (Statement_Buffer (1 .. Last));
Last := 0;
end Write_Statement_Buffer;
procedure Write_Statement_Buffer (S : String) is
begin
Set_String (S);
Write_Statement_Buffer;
end Write_Statement_Buffer;
end Bindgen;
|
[
{
"context": "apping for city CSV records\n-- Copyright (C) 2011 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@g",
"end": 184,
"score": 0.9998737573623657,
"start": 169,
"tag": "NAME",
"value": "Stephane Carrez"
},
{
"context": " Copyright (C) 2011 Stephane Carrez\n-- Written by Stephane Carrez ([email protected])\n--\n-- Licensed under",
"end": 215,
"score": 0.9998791813850403,
"start": 200,
"tag": "NAME",
"value": "Stephane Carrez"
},
{
"context": "1 Stephane Carrez\n-- Written by Stephane Carrez ([email protected])\n--\n-- Licensed under the Apache License, Versio",
"end": 242,
"score": 0.9999279975891113,
"start": 217,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
samples/city_mapping.ads
|
Letractively/ada-util
| 60 |
-----------------------------------------------------------------------
-- city_mapping -- Example of serialization mapping for city CSV records
-- Copyright (C) 2011 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.Unbounded;
with Util.Beans.Objects;
with Util.Serialize.Mappers.Record_Mapper;
with Util.Serialize.Mappers.Vector_Mapper;
with Util.Serialize.Mappers;
with Ada.Containers.Vectors;
package City_Mapping is
use Ada.Strings.Unbounded;
type City is record
Country : Unbounded_String;
City : Unbounded_String;
Name : Unbounded_String;
Region : Unbounded_String;
Latitude : Float;
Longitude : Float;
end record;
type City_Access is access all City;
type City_Fields is (FIELD_COUNTRY, FIELD_CITY, FIELD_NAME,
FIELD_REGION, FIELD_LATITUDE, FIELD_LONGITUDE);
-- Set the name/value pair on the current object.
procedure Set_Member (P : in out City;
Field : in City_Fields;
Value : in Util.Beans.Objects.Object);
package City_Mapper is
new Util.Serialize.Mappers.Record_Mapper (Element_Type => City,
Element_Type_Access => City_Access,
Fields => City_Fields,
Set_Member => Set_Member);
subtype City_Context is City_Mapper.Element_Data;
package City_Vector is
new Ada.Containers.Vectors (Element_Type => City,
Index_Type => Positive);
package City_Vector_Mapper is
new Util.Serialize.Mappers.Vector_Mapper (Vectors => City_Vector,
Element_Mapper => City_Mapper);
subtype City_Vector_Context is City_Vector_Mapper.Vector_Data;
-- Get the address mapper which describes how to load an Address.
function Get_City_Mapper return Util.Serialize.Mappers.Mapper_Access;
-- Get the person vector mapper which describes how to load a list of Person.
function Get_City_Vector_Mapper return City_Vector_Mapper.Mapper_Access;
end City_Mapping;
|
11979
|
-----------------------------------------------------------------------
-- city_mapping -- Example of serialization mapping for city CSV records
-- Copyright (C) 2011 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- 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.Unbounded;
with Util.Beans.Objects;
with Util.Serialize.Mappers.Record_Mapper;
with Util.Serialize.Mappers.Vector_Mapper;
with Util.Serialize.Mappers;
with Ada.Containers.Vectors;
package City_Mapping is
use Ada.Strings.Unbounded;
type City is record
Country : Unbounded_String;
City : Unbounded_String;
Name : Unbounded_String;
Region : Unbounded_String;
Latitude : Float;
Longitude : Float;
end record;
type City_Access is access all City;
type City_Fields is (FIELD_COUNTRY, FIELD_CITY, FIELD_NAME,
FIELD_REGION, FIELD_LATITUDE, FIELD_LONGITUDE);
-- Set the name/value pair on the current object.
procedure Set_Member (P : in out City;
Field : in City_Fields;
Value : in Util.Beans.Objects.Object);
package City_Mapper is
new Util.Serialize.Mappers.Record_Mapper (Element_Type => City,
Element_Type_Access => City_Access,
Fields => City_Fields,
Set_Member => Set_Member);
subtype City_Context is City_Mapper.Element_Data;
package City_Vector is
new Ada.Containers.Vectors (Element_Type => City,
Index_Type => Positive);
package City_Vector_Mapper is
new Util.Serialize.Mappers.Vector_Mapper (Vectors => City_Vector,
Element_Mapper => City_Mapper);
subtype City_Vector_Context is City_Vector_Mapper.Vector_Data;
-- Get the address mapper which describes how to load an Address.
function Get_City_Mapper return Util.Serialize.Mappers.Mapper_Access;
-- Get the person vector mapper which describes how to load a list of Person.
function Get_City_Vector_Mapper return City_Vector_Mapper.Mapper_Access;
end City_Mapping;
| true |
-----------------------------------------------------------------------
-- city_mapping -- Example of serialization mapping for city CSV records
-- Copyright (C) 2011 PI:NAME:<NAME>END_PI
-- Written by PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
--
-- 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.Unbounded;
with Util.Beans.Objects;
with Util.Serialize.Mappers.Record_Mapper;
with Util.Serialize.Mappers.Vector_Mapper;
with Util.Serialize.Mappers;
with Ada.Containers.Vectors;
package City_Mapping is
use Ada.Strings.Unbounded;
type City is record
Country : Unbounded_String;
City : Unbounded_String;
Name : Unbounded_String;
Region : Unbounded_String;
Latitude : Float;
Longitude : Float;
end record;
type City_Access is access all City;
type City_Fields is (FIELD_COUNTRY, FIELD_CITY, FIELD_NAME,
FIELD_REGION, FIELD_LATITUDE, FIELD_LONGITUDE);
-- Set the name/value pair on the current object.
procedure Set_Member (P : in out City;
Field : in City_Fields;
Value : in Util.Beans.Objects.Object);
package City_Mapper is
new Util.Serialize.Mappers.Record_Mapper (Element_Type => City,
Element_Type_Access => City_Access,
Fields => City_Fields,
Set_Member => Set_Member);
subtype City_Context is City_Mapper.Element_Data;
package City_Vector is
new Ada.Containers.Vectors (Element_Type => City,
Index_Type => Positive);
package City_Vector_Mapper is
new Util.Serialize.Mappers.Vector_Mapper (Vectors => City_Vector,
Element_Mapper => City_Mapper);
subtype City_Vector_Context is City_Vector_Mapper.Vector_Data;
-- Get the address mapper which describes how to load an Address.
function Get_City_Mapper return Util.Serialize.Mappers.Mapper_Access;
-- Get the person vector mapper which describes how to load a list of Person.
function Get_City_Vector_Mapper return City_Vector_Mapper.Mapper_Access;
end City_Mapping;
|
[
{
"context": " --\n-- Copyright © 2012-2013, Vadim Godunko <[email protected]> --\n-- All rig",
"end": 829,
"score": 0.9998877644538879,
"start": 816,
"tag": "NAME",
"value": "Vadim Godunko"
},
{
"context": " --\n-- Copyright © 2012-2013, Vadim Godunko <[email protected]> --\n-- All rights reserved. ",
"end": 849,
"score": 0.9999324083328247,
"start": 831,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
source/amf/mofext/amf-internals-tables-mofext_constructors.adb
|
svn2github/matreshka
| 24 |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library 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$
------------------------------------------------------------------------------
-- This file is generated, don't edit it.
------------------------------------------------------------------------------
with AMF.Internals.Element_Collections;
with AMF.Internals.MOF_Tags;
with AMF.Internals.Tables.MOFEXT_Element_Table;
with AMF.Internals.Tables.MOFEXT_Types;
with AMF.Internals.Tables.MOF_Metamodel;
with AMF.Internals.Tables.UML_Metamodel;
with Matreshka.Internals.Strings;
package body AMF.Internals.Tables.MOFEXT_Constructors is
use AMF.Internals.Tables;
use type AMF.Internals.AMF_Collection_Of_Element;
--------------------
-- Create_MOF_Tag --
--------------------
function Create_MOF_Tag return AMF.Internals.AMF_Element is
Self : AMF.Internals.AMF_Element;
begin
MOFEXT_Element_Table.Increment_Last;
Self := MOFEXT_Element_Table.Last;
MOFEXT_Element_Table.Table (Self).all :=
(Kind => AMF.Internals.Tables.MOFEXT_Types.E_MOF_Tag,
Extent => 0,
Proxy =>
new AMF.Internals.MOF_Tags.MOF_Tag_Proxy'(Element => Self),
Member =>
(0 => (Kind => AMF.Internals.Tables.MOFEXT_Types.M_None),
2 => (AMF.Internals.Tables.MOFEXT_Types.M_String, Matreshka.Internals.Strings.Shared_Empty'Access),
-- name
1 => (AMF.Internals.Tables.MOFEXT_Types.M_Element, No_AMF_Link),
-- owner
4 => (AMF.Internals.Tables.MOFEXT_Types.M_Element, No_AMF_Link),
-- tagOwner
3 => (AMF.Internals.Tables.MOFEXT_Types.M_String, Matreshka.Internals.Strings.Shared_Empty'Access),
-- value
others => (Kind => AMF.Internals.Tables.MOFEXT_Types.M_None)));
MOFEXT_Element_Table.Table (Self).Member (0) :=
(AMF.Internals.Tables.MOFEXT_Types.M_Collection_Of_Element,
AMF.Internals.Element_Collections.Allocate_Collections (3));
-- element
AMF.Internals.Element_Collections.Initialize_Set_Collection
(Self,
AMF.Internals.Tables.MOF_Metamodel.MP_MOF_Tag_Element_A_Tag,
MOFEXT_Element_Table.Table (Self).Member (0).Collection + 3);
-- ownedComment
AMF.Internals.Element_Collections.Initialize_Set_Collection
(Self,
AMF.Internals.Tables.UML_Metamodel.MP_UML_Element_Owned_Comment_A_Owning_Element,
MOFEXT_Element_Table.Table (Self).Member (0).Collection + 1);
-- ownedElement
AMF.Internals.Element_Collections.Initialize_Set_Collection
(Self,
AMF.Internals.Tables.UML_Metamodel.MP_UML_Element_Owned_Element_Element_Owner,
MOFEXT_Element_Table.Table (Self).Member (0).Collection + 2);
return Self;
end Create_MOF_Tag;
end AMF.Internals.Tables.MOFEXT_Constructors;
|
21072
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2012-2013, <NAME> <<EMAIL>> --
-- 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.Internals.Element_Collections;
with AMF.Internals.MOF_Tags;
with AMF.Internals.Tables.MOFEXT_Element_Table;
with AMF.Internals.Tables.MOFEXT_Types;
with AMF.Internals.Tables.MOF_Metamodel;
with AMF.Internals.Tables.UML_Metamodel;
with Matreshka.Internals.Strings;
package body AMF.Internals.Tables.MOFEXT_Constructors is
use AMF.Internals.Tables;
use type AMF.Internals.AMF_Collection_Of_Element;
--------------------
-- Create_MOF_Tag --
--------------------
function Create_MOF_Tag return AMF.Internals.AMF_Element is
Self : AMF.Internals.AMF_Element;
begin
MOFEXT_Element_Table.Increment_Last;
Self := MOFEXT_Element_Table.Last;
MOFEXT_Element_Table.Table (Self).all :=
(Kind => AMF.Internals.Tables.MOFEXT_Types.E_MOF_Tag,
Extent => 0,
Proxy =>
new AMF.Internals.MOF_Tags.MOF_Tag_Proxy'(Element => Self),
Member =>
(0 => (Kind => AMF.Internals.Tables.MOFEXT_Types.M_None),
2 => (AMF.Internals.Tables.MOFEXT_Types.M_String, Matreshka.Internals.Strings.Shared_Empty'Access),
-- name
1 => (AMF.Internals.Tables.MOFEXT_Types.M_Element, No_AMF_Link),
-- owner
4 => (AMF.Internals.Tables.MOFEXT_Types.M_Element, No_AMF_Link),
-- tagOwner
3 => (AMF.Internals.Tables.MOFEXT_Types.M_String, Matreshka.Internals.Strings.Shared_Empty'Access),
-- value
others => (Kind => AMF.Internals.Tables.MOFEXT_Types.M_None)));
MOFEXT_Element_Table.Table (Self).Member (0) :=
(AMF.Internals.Tables.MOFEXT_Types.M_Collection_Of_Element,
AMF.Internals.Element_Collections.Allocate_Collections (3));
-- element
AMF.Internals.Element_Collections.Initialize_Set_Collection
(Self,
AMF.Internals.Tables.MOF_Metamodel.MP_MOF_Tag_Element_A_Tag,
MOFEXT_Element_Table.Table (Self).Member (0).Collection + 3);
-- ownedComment
AMF.Internals.Element_Collections.Initialize_Set_Collection
(Self,
AMF.Internals.Tables.UML_Metamodel.MP_UML_Element_Owned_Comment_A_Owning_Element,
MOFEXT_Element_Table.Table (Self).Member (0).Collection + 1);
-- ownedElement
AMF.Internals.Element_Collections.Initialize_Set_Collection
(Self,
AMF.Internals.Tables.UML_Metamodel.MP_UML_Element_Owned_Element_Element_Owner,
MOFEXT_Element_Table.Table (Self).Member (0).Collection + 2);
return Self;
end Create_MOF_Tag;
end AMF.Internals.Tables.MOFEXT_Constructors;
| true |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2012-2013, PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI> --
-- 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.Internals.Element_Collections;
with AMF.Internals.MOF_Tags;
with AMF.Internals.Tables.MOFEXT_Element_Table;
with AMF.Internals.Tables.MOFEXT_Types;
with AMF.Internals.Tables.MOF_Metamodel;
with AMF.Internals.Tables.UML_Metamodel;
with Matreshka.Internals.Strings;
package body AMF.Internals.Tables.MOFEXT_Constructors is
use AMF.Internals.Tables;
use type AMF.Internals.AMF_Collection_Of_Element;
--------------------
-- Create_MOF_Tag --
--------------------
function Create_MOF_Tag return AMF.Internals.AMF_Element is
Self : AMF.Internals.AMF_Element;
begin
MOFEXT_Element_Table.Increment_Last;
Self := MOFEXT_Element_Table.Last;
MOFEXT_Element_Table.Table (Self).all :=
(Kind => AMF.Internals.Tables.MOFEXT_Types.E_MOF_Tag,
Extent => 0,
Proxy =>
new AMF.Internals.MOF_Tags.MOF_Tag_Proxy'(Element => Self),
Member =>
(0 => (Kind => AMF.Internals.Tables.MOFEXT_Types.M_None),
2 => (AMF.Internals.Tables.MOFEXT_Types.M_String, Matreshka.Internals.Strings.Shared_Empty'Access),
-- name
1 => (AMF.Internals.Tables.MOFEXT_Types.M_Element, No_AMF_Link),
-- owner
4 => (AMF.Internals.Tables.MOFEXT_Types.M_Element, No_AMF_Link),
-- tagOwner
3 => (AMF.Internals.Tables.MOFEXT_Types.M_String, Matreshka.Internals.Strings.Shared_Empty'Access),
-- value
others => (Kind => AMF.Internals.Tables.MOFEXT_Types.M_None)));
MOFEXT_Element_Table.Table (Self).Member (0) :=
(AMF.Internals.Tables.MOFEXT_Types.M_Collection_Of_Element,
AMF.Internals.Element_Collections.Allocate_Collections (3));
-- element
AMF.Internals.Element_Collections.Initialize_Set_Collection
(Self,
AMF.Internals.Tables.MOF_Metamodel.MP_MOF_Tag_Element_A_Tag,
MOFEXT_Element_Table.Table (Self).Member (0).Collection + 3);
-- ownedComment
AMF.Internals.Element_Collections.Initialize_Set_Collection
(Self,
AMF.Internals.Tables.UML_Metamodel.MP_UML_Element_Owned_Comment_A_Owning_Element,
MOFEXT_Element_Table.Table (Self).Member (0).Collection + 1);
-- ownedElement
AMF.Internals.Element_Collections.Initialize_Set_Collection
(Self,
AMF.Internals.Tables.UML_Metamodel.MP_UML_Element_Owned_Element_Element_Owner,
MOFEXT_Element_Table.Table (Self).Member (0).Collection + 2);
return Self;
end Create_MOF_Tag;
end AMF.Internals.Tables.MOFEXT_Constructors;
|
[
{
"context": "-- SPDX-FileCopyrightText: 2021 Max Reznik <[email protected]>\n--\n-- SPDX-License-Identifi",
"end": 43,
"score": 0.9998452663421631,
"start": 33,
"tag": "NAME",
"value": "Max Reznik"
},
{
"context": "-- SPDX-FileCopyrightText: 2021 Max Reznik <[email protected]>\n--\n-- SPDX-License-Identifier: MIT\n------------",
"end": 63,
"score": 0.9999285936355591,
"start": 45,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
source/lexer/webidl-token_handlers.adb
|
reznikmm/webidl
| 0 |
-- SPDX-FileCopyrightText: 2021 Max Reznik <[email protected]>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with League.Strings;
package body WebIDL.Token_Handlers is
-------------
-- Integer --
-------------
overriding procedure Integer
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
begin
Token := WebIDL.Tokens.Integer_Token;
Skip := False;
end Integer;
overriding procedure Decimal
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
pragma Unreferenced (Skip);
begin
Token := WebIDL.Tokens.Decimal_Token;
Skip := False;
end Decimal;
overriding procedure Delimiter
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
Text : constant League.Strings.Universal_String := Scanner.Get_Text;
begin
case Text (1).To_Wide_Wide_Character is
when '(' =>
Token := '(';
when ')' =>
Token := ')';
when ',' =>
Token := ',';
when '-' =>
Token := '-';
when '.' =>
Token := '.';
when ':' =>
Token := ':';
when ';' =>
Token := ';';
when '<' =>
Token := '<';
when '=' =>
Token := '=';
when '>' =>
Token := '>';
when '?' =>
Token := '?';
when '[' =>
Token := '[';
when ']' =>
Token := ']';
when '{' =>
Token := '{';
when '}' =>
Token := '}';
when others =>
raise Program_Error;
end case;
Skip := False;
end Delimiter;
overriding procedure Ellipsis
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
pragma Unreferenced (Skip);
begin
Token := WebIDL.Tokens.Ellipsis_Token;
Skip := False;
end Ellipsis;
overriding procedure Identifier
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
pragma Unreferenced (Skip);
Text : constant League.Strings.Universal_String := Scanner.Get_Text;
Found : constant Keyword_Maps.Cursor := Self.Map.Find (Text);
begin
if Keyword_Maps.Has_Element (Found) then
Token := Keyword_Maps.Element (Found);
else
Token := WebIDL.Tokens.Identifier_Token;
end if;
Skip := False;
end Identifier;
procedure Initialize (Self : in out Handler'Class) is
use all type WebIDL.Tokens.Token_Kind;
function "+" (Text : Wide_Wide_String)
return League.Strings.Universal_String
renames League.Strings.To_Universal_String;
Map : Keyword_Maps.Map renames Self.Map;
begin
Map.Insert (+"any", Any_Token);
Map.Insert (+"async", Async_Token);
Map.Insert (+"attribute", Attribute_Token);
Map.Insert (+"bigint", Bigint_Token);
Map.Insert (+"boolean", Boolean_Token);
Map.Insert (+"byte", Byte_Token);
Map.Insert (+"callback", Callback_Token);
Map.Insert (+"const", Const_Token);
Map.Insert (+"constructor", Constructor_Token);
Map.Insert (+"deleter", Deleter_Token);
Map.Insert (+"dictionary", Dictionary_Token);
Map.Insert (+"double", Double_Token);
Map.Insert (+"enum", Enum_Token);
Map.Insert (+"false", False_Token);
Map.Insert (+"float", Float_Token);
Map.Insert (+"getter", Getter_Token);
Map.Insert (+"includes", Includes_Token);
Map.Insert (+"inherit", Inherit_Token);
Map.Insert (+"interface", Interface_Token);
Map.Insert (+"iterable", Iterable_Token);
Map.Insert (+"long", Long_Token);
Map.Insert (+"maplike", Maplike_Token);
Map.Insert (+"mixin", Mixin_Token);
Map.Insert (+"namespace", Namespace_Token);
Map.Insert (+"null", Null_Token);
Map.Insert (+"object", Object_Token);
Map.Insert (+"octet", Octet_Token);
Map.Insert (+"optional", Optional_Token);
Map.Insert (+"or", Or_Token);
Map.Insert (+"other", Other_Token);
Map.Insert (+"partial", Partial_Token);
Map.Insert (+"readonly", Readonly_Token);
Map.Insert (+"record", Record_Token);
Map.Insert (+"required", Required_Token);
Map.Insert (+"sequence", Sequence_Token);
Map.Insert (+"setlike", Setlike_Token);
Map.Insert (+"setter", Setter_Token);
Map.Insert (+"short", Short_Token);
Map.Insert (+"static", Static_Token);
Map.Insert (+"stringifier", Stringifier_Token);
Map.Insert (+"symbol", Symbol_Token);
Map.Insert (+"true", True_Token);
Map.Insert (+"typedef", Typedef_Token);
Map.Insert (+"undefined", Undefined_Token);
Map.Insert (+"unrestricted", Unrestricted_Token);
Map.Insert (+"unsigned", Unsigned_Token);
Map.Insert (+"ArrayBuffer", ArrayBuffer_Token);
Map.Insert (+"ByteString", ByteString_Token);
Map.Insert (+"DataView", DataView_Token);
Map.Insert (+"DOMString", DOMString_Token);
Map.Insert (+"Float32Array", Float32Array_Token);
Map.Insert (+"Float64Array", Float64Array_Token);
Map.Insert (+"FrozenArray", FrozenArray_Token);
Map.Insert (+"Infinity", Infinity_Token);
Map.Insert (+"Int16Array", Int16Array_Token);
Map.Insert (+"Int32Array", Int32Array_Token);
Map.Insert (+"Int8Array", Int8Array_Token);
Map.Insert (+"NaN", NaN_Token);
Map.Insert (+"ObservableArray", ObservableArray_Token);
Map.Insert (+"Promise", Promise_Token);
Map.Insert (+"Uint16Array", Uint16Array_Token);
Map.Insert (+"Uint32Array", Uint32Array_Token);
Map.Insert (+"Uint8Array", Uint8Array_Token);
Map.Insert (+"Uint8ClampedArray", Uint8ClampedArray_Token);
Map.Insert (+"USVString", USVString_Token);
null;
end Initialize;
overriding procedure String
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
pragma Unreferenced (Skip);
begin
Token := WebIDL.Tokens.String_Token;
Skip := False;
end String;
overriding procedure Whitespace
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
pragma Unreferenced (Token);
begin
Skip := True;
end Whitespace;
overriding procedure Line_Comment
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
pragma Unreferenced (Token);
begin
Skip := True;
end Line_Comment;
overriding procedure Comment_Start
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
pragma Unreferenced (Token);
begin
Scanner.Set_Start_Condition (WebIDL.Scanner_Types.In_Comment);
Skip := True;
end Comment_Start;
overriding procedure Comment_End
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
pragma Unreferenced (Token);
begin
Scanner.Set_Start_Condition (WebIDL.Scanner_Types.INITIAL);
Skip := True;
end Comment_End;
overriding procedure Comment_Text
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
pragma Unreferenced (Token);
begin
Skip := True;
end Comment_Text;
end WebIDL.Token_Handlers;
|
21372
|
-- SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with League.Strings;
package body WebIDL.Token_Handlers is
-------------
-- Integer --
-------------
overriding procedure Integer
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
begin
Token := WebIDL.Tokens.Integer_Token;
Skip := False;
end Integer;
overriding procedure Decimal
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
pragma Unreferenced (Skip);
begin
Token := WebIDL.Tokens.Decimal_Token;
Skip := False;
end Decimal;
overriding procedure Delimiter
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
Text : constant League.Strings.Universal_String := Scanner.Get_Text;
begin
case Text (1).To_Wide_Wide_Character is
when '(' =>
Token := '(';
when ')' =>
Token := ')';
when ',' =>
Token := ',';
when '-' =>
Token := '-';
when '.' =>
Token := '.';
when ':' =>
Token := ':';
when ';' =>
Token := ';';
when '<' =>
Token := '<';
when '=' =>
Token := '=';
when '>' =>
Token := '>';
when '?' =>
Token := '?';
when '[' =>
Token := '[';
when ']' =>
Token := ']';
when '{' =>
Token := '{';
when '}' =>
Token := '}';
when others =>
raise Program_Error;
end case;
Skip := False;
end Delimiter;
overriding procedure Ellipsis
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
pragma Unreferenced (Skip);
begin
Token := WebIDL.Tokens.Ellipsis_Token;
Skip := False;
end Ellipsis;
overriding procedure Identifier
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
pragma Unreferenced (Skip);
Text : constant League.Strings.Universal_String := Scanner.Get_Text;
Found : constant Keyword_Maps.Cursor := Self.Map.Find (Text);
begin
if Keyword_Maps.Has_Element (Found) then
Token := Keyword_Maps.Element (Found);
else
Token := WebIDL.Tokens.Identifier_Token;
end if;
Skip := False;
end Identifier;
procedure Initialize (Self : in out Handler'Class) is
use all type WebIDL.Tokens.Token_Kind;
function "+" (Text : Wide_Wide_String)
return League.Strings.Universal_String
renames League.Strings.To_Universal_String;
Map : Keyword_Maps.Map renames Self.Map;
begin
Map.Insert (+"any", Any_Token);
Map.Insert (+"async", Async_Token);
Map.Insert (+"attribute", Attribute_Token);
Map.Insert (+"bigint", Bigint_Token);
Map.Insert (+"boolean", Boolean_Token);
Map.Insert (+"byte", Byte_Token);
Map.Insert (+"callback", Callback_Token);
Map.Insert (+"const", Const_Token);
Map.Insert (+"constructor", Constructor_Token);
Map.Insert (+"deleter", Deleter_Token);
Map.Insert (+"dictionary", Dictionary_Token);
Map.Insert (+"double", Double_Token);
Map.Insert (+"enum", Enum_Token);
Map.Insert (+"false", False_Token);
Map.Insert (+"float", Float_Token);
Map.Insert (+"getter", Getter_Token);
Map.Insert (+"includes", Includes_Token);
Map.Insert (+"inherit", Inherit_Token);
Map.Insert (+"interface", Interface_Token);
Map.Insert (+"iterable", Iterable_Token);
Map.Insert (+"long", Long_Token);
Map.Insert (+"maplike", Maplike_Token);
Map.Insert (+"mixin", Mixin_Token);
Map.Insert (+"namespace", Namespace_Token);
Map.Insert (+"null", Null_Token);
Map.Insert (+"object", Object_Token);
Map.Insert (+"octet", Octet_Token);
Map.Insert (+"optional", Optional_Token);
Map.Insert (+"or", Or_Token);
Map.Insert (+"other", Other_Token);
Map.Insert (+"partial", Partial_Token);
Map.Insert (+"readonly", Readonly_Token);
Map.Insert (+"record", Record_Token);
Map.Insert (+"required", Required_Token);
Map.Insert (+"sequence", Sequence_Token);
Map.Insert (+"setlike", Setlike_Token);
Map.Insert (+"setter", Setter_Token);
Map.Insert (+"short", Short_Token);
Map.Insert (+"static", Static_Token);
Map.Insert (+"stringifier", Stringifier_Token);
Map.Insert (+"symbol", Symbol_Token);
Map.Insert (+"true", True_Token);
Map.Insert (+"typedef", Typedef_Token);
Map.Insert (+"undefined", Undefined_Token);
Map.Insert (+"unrestricted", Unrestricted_Token);
Map.Insert (+"unsigned", Unsigned_Token);
Map.Insert (+"ArrayBuffer", ArrayBuffer_Token);
Map.Insert (+"ByteString", ByteString_Token);
Map.Insert (+"DataView", DataView_Token);
Map.Insert (+"DOMString", DOMString_Token);
Map.Insert (+"Float32Array", Float32Array_Token);
Map.Insert (+"Float64Array", Float64Array_Token);
Map.Insert (+"FrozenArray", FrozenArray_Token);
Map.Insert (+"Infinity", Infinity_Token);
Map.Insert (+"Int16Array", Int16Array_Token);
Map.Insert (+"Int32Array", Int32Array_Token);
Map.Insert (+"Int8Array", Int8Array_Token);
Map.Insert (+"NaN", NaN_Token);
Map.Insert (+"ObservableArray", ObservableArray_Token);
Map.Insert (+"Promise", Promise_Token);
Map.Insert (+"Uint16Array", Uint16Array_Token);
Map.Insert (+"Uint32Array", Uint32Array_Token);
Map.Insert (+"Uint8Array", Uint8Array_Token);
Map.Insert (+"Uint8ClampedArray", Uint8ClampedArray_Token);
Map.Insert (+"USVString", USVString_Token);
null;
end Initialize;
overriding procedure String
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
pragma Unreferenced (Skip);
begin
Token := WebIDL.Tokens.String_Token;
Skip := False;
end String;
overriding procedure Whitespace
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
pragma Unreferenced (Token);
begin
Skip := True;
end Whitespace;
overriding procedure Line_Comment
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
pragma Unreferenced (Token);
begin
Skip := True;
end Line_Comment;
overriding procedure Comment_Start
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
pragma Unreferenced (Token);
begin
Scanner.Set_Start_Condition (WebIDL.Scanner_Types.In_Comment);
Skip := True;
end Comment_Start;
overriding procedure Comment_End
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
pragma Unreferenced (Token);
begin
Scanner.Set_Start_Condition (WebIDL.Scanner_Types.INITIAL);
Skip := True;
end Comment_End;
overriding procedure Comment_Text
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
pragma Unreferenced (Token);
begin
Skip := True;
end Comment_Text;
end WebIDL.Token_Handlers;
| true |
-- SPDX-FileCopyrightText: 2021 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with League.Strings;
package body WebIDL.Token_Handlers is
-------------
-- Integer --
-------------
overriding procedure Integer
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
begin
Token := WebIDL.Tokens.Integer_Token;
Skip := False;
end Integer;
overriding procedure Decimal
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
pragma Unreferenced (Skip);
begin
Token := WebIDL.Tokens.Decimal_Token;
Skip := False;
end Decimal;
overriding procedure Delimiter
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
Text : constant League.Strings.Universal_String := Scanner.Get_Text;
begin
case Text (1).To_Wide_Wide_Character is
when '(' =>
Token := '(';
when ')' =>
Token := ')';
when ',' =>
Token := ',';
when '-' =>
Token := '-';
when '.' =>
Token := '.';
when ':' =>
Token := ':';
when ';' =>
Token := ';';
when '<' =>
Token := '<';
when '=' =>
Token := '=';
when '>' =>
Token := '>';
when '?' =>
Token := '?';
when '[' =>
Token := '[';
when ']' =>
Token := ']';
when '{' =>
Token := '{';
when '}' =>
Token := '}';
when others =>
raise Program_Error;
end case;
Skip := False;
end Delimiter;
overriding procedure Ellipsis
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
pragma Unreferenced (Skip);
begin
Token := WebIDL.Tokens.Ellipsis_Token;
Skip := False;
end Ellipsis;
overriding procedure Identifier
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
pragma Unreferenced (Skip);
Text : constant League.Strings.Universal_String := Scanner.Get_Text;
Found : constant Keyword_Maps.Cursor := Self.Map.Find (Text);
begin
if Keyword_Maps.Has_Element (Found) then
Token := Keyword_Maps.Element (Found);
else
Token := WebIDL.Tokens.Identifier_Token;
end if;
Skip := False;
end Identifier;
procedure Initialize (Self : in out Handler'Class) is
use all type WebIDL.Tokens.Token_Kind;
function "+" (Text : Wide_Wide_String)
return League.Strings.Universal_String
renames League.Strings.To_Universal_String;
Map : Keyword_Maps.Map renames Self.Map;
begin
Map.Insert (+"any", Any_Token);
Map.Insert (+"async", Async_Token);
Map.Insert (+"attribute", Attribute_Token);
Map.Insert (+"bigint", Bigint_Token);
Map.Insert (+"boolean", Boolean_Token);
Map.Insert (+"byte", Byte_Token);
Map.Insert (+"callback", Callback_Token);
Map.Insert (+"const", Const_Token);
Map.Insert (+"constructor", Constructor_Token);
Map.Insert (+"deleter", Deleter_Token);
Map.Insert (+"dictionary", Dictionary_Token);
Map.Insert (+"double", Double_Token);
Map.Insert (+"enum", Enum_Token);
Map.Insert (+"false", False_Token);
Map.Insert (+"float", Float_Token);
Map.Insert (+"getter", Getter_Token);
Map.Insert (+"includes", Includes_Token);
Map.Insert (+"inherit", Inherit_Token);
Map.Insert (+"interface", Interface_Token);
Map.Insert (+"iterable", Iterable_Token);
Map.Insert (+"long", Long_Token);
Map.Insert (+"maplike", Maplike_Token);
Map.Insert (+"mixin", Mixin_Token);
Map.Insert (+"namespace", Namespace_Token);
Map.Insert (+"null", Null_Token);
Map.Insert (+"object", Object_Token);
Map.Insert (+"octet", Octet_Token);
Map.Insert (+"optional", Optional_Token);
Map.Insert (+"or", Or_Token);
Map.Insert (+"other", Other_Token);
Map.Insert (+"partial", Partial_Token);
Map.Insert (+"readonly", Readonly_Token);
Map.Insert (+"record", Record_Token);
Map.Insert (+"required", Required_Token);
Map.Insert (+"sequence", Sequence_Token);
Map.Insert (+"setlike", Setlike_Token);
Map.Insert (+"setter", Setter_Token);
Map.Insert (+"short", Short_Token);
Map.Insert (+"static", Static_Token);
Map.Insert (+"stringifier", Stringifier_Token);
Map.Insert (+"symbol", Symbol_Token);
Map.Insert (+"true", True_Token);
Map.Insert (+"typedef", Typedef_Token);
Map.Insert (+"undefined", Undefined_Token);
Map.Insert (+"unrestricted", Unrestricted_Token);
Map.Insert (+"unsigned", Unsigned_Token);
Map.Insert (+"ArrayBuffer", ArrayBuffer_Token);
Map.Insert (+"ByteString", ByteString_Token);
Map.Insert (+"DataView", DataView_Token);
Map.Insert (+"DOMString", DOMString_Token);
Map.Insert (+"Float32Array", Float32Array_Token);
Map.Insert (+"Float64Array", Float64Array_Token);
Map.Insert (+"FrozenArray", FrozenArray_Token);
Map.Insert (+"Infinity", Infinity_Token);
Map.Insert (+"Int16Array", Int16Array_Token);
Map.Insert (+"Int32Array", Int32Array_Token);
Map.Insert (+"Int8Array", Int8Array_Token);
Map.Insert (+"NaN", NaN_Token);
Map.Insert (+"ObservableArray", ObservableArray_Token);
Map.Insert (+"Promise", Promise_Token);
Map.Insert (+"Uint16Array", Uint16Array_Token);
Map.Insert (+"Uint32Array", Uint32Array_Token);
Map.Insert (+"Uint8Array", Uint8Array_Token);
Map.Insert (+"Uint8ClampedArray", Uint8ClampedArray_Token);
Map.Insert (+"USVString", USVString_Token);
null;
end Initialize;
overriding procedure String
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
pragma Unreferenced (Skip);
begin
Token := WebIDL.Tokens.String_Token;
Skip := False;
end String;
overriding procedure Whitespace
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
pragma Unreferenced (Token);
begin
Skip := True;
end Whitespace;
overriding procedure Line_Comment
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
pragma Unreferenced (Token);
begin
Skip := True;
end Line_Comment;
overriding procedure Comment_Start
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
pragma Unreferenced (Token);
begin
Scanner.Set_Start_Condition (WebIDL.Scanner_Types.In_Comment);
Skip := True;
end Comment_Start;
overriding procedure Comment_End
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
pragma Unreferenced (Token);
begin
Scanner.Set_Start_Condition (WebIDL.Scanner_Types.INITIAL);
Skip := True;
end Comment_End;
overriding procedure Comment_Text
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class;
Rule : WebIDL.Scanner_Types.Rule_Index;
Token : out WebIDL.Tokens.Token_Kind;
Skip : in out Boolean)
is
pragma Unreferenced (Token);
begin
Skip := True;
end Comment_Text;
end WebIDL.Token_Handlers;
|
[
{
"context": "-- SPDX-FileCopyrightText: 2019 Max Reznik <[email protected]>\n--\n-- SPDX-License-Identifi",
"end": 43,
"score": 0.9998596906661987,
"start": 33,
"tag": "NAME",
"value": "Max Reznik"
},
{
"context": "-- SPDX-FileCopyrightText: 2019 Max Reznik <[email protected]>\n--\n-- SPDX-License-Identifier: MIT\n------------",
"end": 63,
"score": 0.999930739402771,
"start": 45,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
source/nodes/program-nodes-simple_return_statements.ads
|
reznikmm/gela
| 0 |
-- SPDX-FileCopyrightText: 2019 Max Reznik <[email protected]>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Expressions;
with Program.Elements.Simple_Return_Statements;
with Program.Element_Visitors;
package Program.Nodes.Simple_Return_Statements is
pragma Preelaborate;
type Simple_Return_Statement is
new Program.Nodes.Node
and Program.Elements.Simple_Return_Statements.Simple_Return_Statement
and Program.Elements.Simple_Return_Statements
.Simple_Return_Statement_Text
with private;
function Create
(Return_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Expression : Program.Elements.Expressions.Expression_Access;
Semicolon_Token : not null Program.Lexical_Elements
.Lexical_Element_Access)
return Simple_Return_Statement;
type Implicit_Simple_Return_Statement is
new Program.Nodes.Node
and Program.Elements.Simple_Return_Statements.Simple_Return_Statement
with private;
function Create
(Expression : Program.Elements.Expressions.Expression_Access;
Is_Part_Of_Implicit : Boolean := False;
Is_Part_Of_Inherited : Boolean := False;
Is_Part_Of_Instance : Boolean := False)
return Implicit_Simple_Return_Statement
with Pre =>
Is_Part_Of_Implicit or Is_Part_Of_Inherited or Is_Part_Of_Instance;
private
type Base_Simple_Return_Statement is
abstract new Program.Nodes.Node
and Program.Elements.Simple_Return_Statements.Simple_Return_Statement
with record
Expression : Program.Elements.Expressions.Expression_Access;
end record;
procedure Initialize (Self : in out Base_Simple_Return_Statement'Class);
overriding procedure Visit
(Self : not null access Base_Simple_Return_Statement;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class);
overriding function Expression
(Self : Base_Simple_Return_Statement)
return Program.Elements.Expressions.Expression_Access;
overriding function Is_Simple_Return_Statement
(Self : Base_Simple_Return_Statement)
return Boolean;
overriding function Is_Statement
(Self : Base_Simple_Return_Statement)
return Boolean;
type Simple_Return_Statement is
new Base_Simple_Return_Statement
and Program.Elements.Simple_Return_Statements
.Simple_Return_Statement_Text
with record
Return_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Semicolon_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
end record;
overriding function To_Simple_Return_Statement_Text
(Self : in out Simple_Return_Statement)
return Program.Elements.Simple_Return_Statements
.Simple_Return_Statement_Text_Access;
overriding function Return_Token
(Self : Simple_Return_Statement)
return not null Program.Lexical_Elements.Lexical_Element_Access;
overriding function Semicolon_Token
(Self : Simple_Return_Statement)
return not null Program.Lexical_Elements.Lexical_Element_Access;
type Implicit_Simple_Return_Statement is
new Base_Simple_Return_Statement
with record
Is_Part_Of_Implicit : Boolean;
Is_Part_Of_Inherited : Boolean;
Is_Part_Of_Instance : Boolean;
end record;
overriding function To_Simple_Return_Statement_Text
(Self : in out Implicit_Simple_Return_Statement)
return Program.Elements.Simple_Return_Statements
.Simple_Return_Statement_Text_Access;
overriding function Is_Part_Of_Implicit
(Self : Implicit_Simple_Return_Statement)
return Boolean;
overriding function Is_Part_Of_Inherited
(Self : Implicit_Simple_Return_Statement)
return Boolean;
overriding function Is_Part_Of_Instance
(Self : Implicit_Simple_Return_Statement)
return Boolean;
end Program.Nodes.Simple_Return_Statements;
|
12317
|
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Expressions;
with Program.Elements.Simple_Return_Statements;
with Program.Element_Visitors;
package Program.Nodes.Simple_Return_Statements is
pragma Preelaborate;
type Simple_Return_Statement is
new Program.Nodes.Node
and Program.Elements.Simple_Return_Statements.Simple_Return_Statement
and Program.Elements.Simple_Return_Statements
.Simple_Return_Statement_Text
with private;
function Create
(Return_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Expression : Program.Elements.Expressions.Expression_Access;
Semicolon_Token : not null Program.Lexical_Elements
.Lexical_Element_Access)
return Simple_Return_Statement;
type Implicit_Simple_Return_Statement is
new Program.Nodes.Node
and Program.Elements.Simple_Return_Statements.Simple_Return_Statement
with private;
function Create
(Expression : Program.Elements.Expressions.Expression_Access;
Is_Part_Of_Implicit : Boolean := False;
Is_Part_Of_Inherited : Boolean := False;
Is_Part_Of_Instance : Boolean := False)
return Implicit_Simple_Return_Statement
with Pre =>
Is_Part_Of_Implicit or Is_Part_Of_Inherited or Is_Part_Of_Instance;
private
type Base_Simple_Return_Statement is
abstract new Program.Nodes.Node
and Program.Elements.Simple_Return_Statements.Simple_Return_Statement
with record
Expression : Program.Elements.Expressions.Expression_Access;
end record;
procedure Initialize (Self : in out Base_Simple_Return_Statement'Class);
overriding procedure Visit
(Self : not null access Base_Simple_Return_Statement;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class);
overriding function Expression
(Self : Base_Simple_Return_Statement)
return Program.Elements.Expressions.Expression_Access;
overriding function Is_Simple_Return_Statement
(Self : Base_Simple_Return_Statement)
return Boolean;
overriding function Is_Statement
(Self : Base_Simple_Return_Statement)
return Boolean;
type Simple_Return_Statement is
new Base_Simple_Return_Statement
and Program.Elements.Simple_Return_Statements
.Simple_Return_Statement_Text
with record
Return_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Semicolon_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
end record;
overriding function To_Simple_Return_Statement_Text
(Self : in out Simple_Return_Statement)
return Program.Elements.Simple_Return_Statements
.Simple_Return_Statement_Text_Access;
overriding function Return_Token
(Self : Simple_Return_Statement)
return not null Program.Lexical_Elements.Lexical_Element_Access;
overriding function Semicolon_Token
(Self : Simple_Return_Statement)
return not null Program.Lexical_Elements.Lexical_Element_Access;
type Implicit_Simple_Return_Statement is
new Base_Simple_Return_Statement
with record
Is_Part_Of_Implicit : Boolean;
Is_Part_Of_Inherited : Boolean;
Is_Part_Of_Instance : Boolean;
end record;
overriding function To_Simple_Return_Statement_Text
(Self : in out Implicit_Simple_Return_Statement)
return Program.Elements.Simple_Return_Statements
.Simple_Return_Statement_Text_Access;
overriding function Is_Part_Of_Implicit
(Self : Implicit_Simple_Return_Statement)
return Boolean;
overriding function Is_Part_Of_Inherited
(Self : Implicit_Simple_Return_Statement)
return Boolean;
overriding function Is_Part_Of_Instance
(Self : Implicit_Simple_Return_Statement)
return Boolean;
end Program.Nodes.Simple_Return_Statements;
| true |
-- SPDX-FileCopyrightText: 2019 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Expressions;
with Program.Elements.Simple_Return_Statements;
with Program.Element_Visitors;
package Program.Nodes.Simple_Return_Statements is
pragma Preelaborate;
type Simple_Return_Statement is
new Program.Nodes.Node
and Program.Elements.Simple_Return_Statements.Simple_Return_Statement
and Program.Elements.Simple_Return_Statements
.Simple_Return_Statement_Text
with private;
function Create
(Return_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Expression : Program.Elements.Expressions.Expression_Access;
Semicolon_Token : not null Program.Lexical_Elements
.Lexical_Element_Access)
return Simple_Return_Statement;
type Implicit_Simple_Return_Statement is
new Program.Nodes.Node
and Program.Elements.Simple_Return_Statements.Simple_Return_Statement
with private;
function Create
(Expression : Program.Elements.Expressions.Expression_Access;
Is_Part_Of_Implicit : Boolean := False;
Is_Part_Of_Inherited : Boolean := False;
Is_Part_Of_Instance : Boolean := False)
return Implicit_Simple_Return_Statement
with Pre =>
Is_Part_Of_Implicit or Is_Part_Of_Inherited or Is_Part_Of_Instance;
private
type Base_Simple_Return_Statement is
abstract new Program.Nodes.Node
and Program.Elements.Simple_Return_Statements.Simple_Return_Statement
with record
Expression : Program.Elements.Expressions.Expression_Access;
end record;
procedure Initialize (Self : in out Base_Simple_Return_Statement'Class);
overriding procedure Visit
(Self : not null access Base_Simple_Return_Statement;
Visitor : in out Program.Element_Visitors.Element_Visitor'Class);
overriding function Expression
(Self : Base_Simple_Return_Statement)
return Program.Elements.Expressions.Expression_Access;
overriding function Is_Simple_Return_Statement
(Self : Base_Simple_Return_Statement)
return Boolean;
overriding function Is_Statement
(Self : Base_Simple_Return_Statement)
return Boolean;
type Simple_Return_Statement is
new Base_Simple_Return_Statement
and Program.Elements.Simple_Return_Statements
.Simple_Return_Statement_Text
with record
Return_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Semicolon_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
end record;
overriding function To_Simple_Return_Statement_Text
(Self : in out Simple_Return_Statement)
return Program.Elements.Simple_Return_Statements
.Simple_Return_Statement_Text_Access;
overriding function Return_Token
(Self : Simple_Return_Statement)
return not null Program.Lexical_Elements.Lexical_Element_Access;
overriding function Semicolon_Token
(Self : Simple_Return_Statement)
return not null Program.Lexical_Elements.Lexical_Element_Access;
type Implicit_Simple_Return_Statement is
new Base_Simple_Return_Statement
with record
Is_Part_Of_Implicit : Boolean;
Is_Part_Of_Inherited : Boolean;
Is_Part_Of_Instance : Boolean;
end record;
overriding function To_Simple_Return_Statement_Text
(Self : in out Implicit_Simple_Return_Statement)
return Program.Elements.Simple_Return_Statements
.Simple_Return_Statement_Text_Access;
overriding function Is_Part_Of_Implicit
(Self : Implicit_Simple_Return_Statement)
return Boolean;
overriding function Is_Part_Of_Inherited
(Self : Implicit_Simple_Return_Statement)
return Boolean;
overriding function Is_Part_Of_Instance
(Self : Implicit_Simple_Return_Statement)
return Boolean;
end Program.Nodes.Simple_Return_Statements;
|
[
{
"context": "-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired)\n--\n-- Copyright William A. Whitak",
"end": 57,
"score": 0.9998482465744019,
"start": 33,
"tag": "NAME",
"value": "Colonel William Whitaker"
},
{
"context": "l William Whitaker (USAF, Retired)\n--\n-- Copyright William A. Whitaker (1936–2010)\n--\n-- This is a free program, which m",
"end": 109,
"score": 0.9998353719711304,
"start": 90,
"tag": "NAME",
"value": "William A. Whitaker"
}
] |
src/words_engine/words_engine-english_support_package.ads
|
spr93/whitakers-words
| 204 |
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired)
--
-- Copyright William A. Whitaker (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, just for form, it is Copyrighted
-- (c). Permission is hereby freely given for any and all use of program
-- and data. You can sell it as your own, but at least tell me.
--
-- This version is distributed without obligation, but the developer
-- would appreciate comments and suggestions.
--
-- All parts of the WORDS system, source code and data files, are made freely
-- available to anyone who wishes to use them, for whatever purpose.
with Ada.Text_IO;
with Ada.Direct_IO;
with Latin_Utils.Inflections_Package; use Latin_Utils.Inflections_Package;
with Latin_Utils.Dictionary_Package; use Latin_Utils.Dictionary_Package;
package Words_Engine.English_Support_Package is
Eword_Size : constant := 24;
Aux_Word_Size : constant := 12;
Line_Number_Width : constant := 10;
Priority_Width : constant := 3;
subtype Eword is String (1 .. Eword_Size);
Null_Eword : constant Eword := (others => ' ');
subtype Auxword is String (1 .. Aux_Word_Size);
Null_Auxword : constant Auxword := (others => ' ');
subtype Priority_Type is Integer range 0 .. 99;
Number_Of_Ewords : Integer := 0;
type Ewds_Record is
record
W : Eword := Null_Eword;
Aux : Auxword := Null_Auxword;
N : Integer := 0;
Pofs : Part_Of_Speech_Type := X;
Freq : Frequency_Type := X;
Semi : Integer := 0;
Kind : Integer := 0;
Rank : Integer := 0;
end record;
Null_Ewds_Record : constant Ewds_Record := ((others => ' '),
(others => ' '), 0, X, X, 0, 0, 0);
type Ewds_Array is array (Positive range <>) of Ewds_Record;
package Ewds_Direct_Io is new Ada.Direct_IO (Ewds_Record);
package Ewds_Record_Io is
Default_Width : Natural;
procedure Get (F : in Ada.Text_IO.File_Type; P : out Ewds_Record);
procedure Get (P : out Ewds_Record);
procedure Put (F : in Ada.Text_IO.File_Type; P : in Ewds_Record);
procedure Put (P : in Ewds_Record);
procedure Get (S : in String; P : out Ewds_Record;
Last : out Integer);
procedure Put (S : out String; P : in Ewds_Record);
end Ewds_Record_Io;
English_Dictionary_Available : array (Dictionary_Kind) of Boolean := (False,
False, False, False, False, False, False, -- don't SEARCH
False, False, False, False);
Ewds_File : Ewds_Direct_Io.File_Type;
end Words_Engine.English_Support_Package;
|
18150
|
-- WORDS, a Latin dictionary, by <NAME> (USAF, Retired)
--
-- Copyright <NAME> (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, just for form, it is Copyrighted
-- (c). Permission is hereby freely given for any and all use of program
-- and data. You can sell it as your own, but at least tell me.
--
-- This version is distributed without obligation, but the developer
-- would appreciate comments and suggestions.
--
-- All parts of the WORDS system, source code and data files, are made freely
-- available to anyone who wishes to use them, for whatever purpose.
with Ada.Text_IO;
with Ada.Direct_IO;
with Latin_Utils.Inflections_Package; use Latin_Utils.Inflections_Package;
with Latin_Utils.Dictionary_Package; use Latin_Utils.Dictionary_Package;
package Words_Engine.English_Support_Package is
Eword_Size : constant := 24;
Aux_Word_Size : constant := 12;
Line_Number_Width : constant := 10;
Priority_Width : constant := 3;
subtype Eword is String (1 .. Eword_Size);
Null_Eword : constant Eword := (others => ' ');
subtype Auxword is String (1 .. Aux_Word_Size);
Null_Auxword : constant Auxword := (others => ' ');
subtype Priority_Type is Integer range 0 .. 99;
Number_Of_Ewords : Integer := 0;
type Ewds_Record is
record
W : Eword := Null_Eword;
Aux : Auxword := Null_Auxword;
N : Integer := 0;
Pofs : Part_Of_Speech_Type := X;
Freq : Frequency_Type := X;
Semi : Integer := 0;
Kind : Integer := 0;
Rank : Integer := 0;
end record;
Null_Ewds_Record : constant Ewds_Record := ((others => ' '),
(others => ' '), 0, X, X, 0, 0, 0);
type Ewds_Array is array (Positive range <>) of Ewds_Record;
package Ewds_Direct_Io is new Ada.Direct_IO (Ewds_Record);
package Ewds_Record_Io is
Default_Width : Natural;
procedure Get (F : in Ada.Text_IO.File_Type; P : out Ewds_Record);
procedure Get (P : out Ewds_Record);
procedure Put (F : in Ada.Text_IO.File_Type; P : in Ewds_Record);
procedure Put (P : in Ewds_Record);
procedure Get (S : in String; P : out Ewds_Record;
Last : out Integer);
procedure Put (S : out String; P : in Ewds_Record);
end Ewds_Record_Io;
English_Dictionary_Available : array (Dictionary_Kind) of Boolean := (False,
False, False, False, False, False, False, -- don't SEARCH
False, False, False, False);
Ewds_File : Ewds_Direct_Io.File_Type;
end Words_Engine.English_Support_Package;
| true |
-- WORDS, a Latin dictionary, by PI:NAME:<NAME>END_PI (USAF, Retired)
--
-- Copyright PI:NAME:<NAME>END_PI (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, just for form, it is Copyrighted
-- (c). Permission is hereby freely given for any and all use of program
-- and data. You can sell it as your own, but at least tell me.
--
-- This version is distributed without obligation, but the developer
-- would appreciate comments and suggestions.
--
-- All parts of the WORDS system, source code and data files, are made freely
-- available to anyone who wishes to use them, for whatever purpose.
with Ada.Text_IO;
with Ada.Direct_IO;
with Latin_Utils.Inflections_Package; use Latin_Utils.Inflections_Package;
with Latin_Utils.Dictionary_Package; use Latin_Utils.Dictionary_Package;
package Words_Engine.English_Support_Package is
Eword_Size : constant := 24;
Aux_Word_Size : constant := 12;
Line_Number_Width : constant := 10;
Priority_Width : constant := 3;
subtype Eword is String (1 .. Eword_Size);
Null_Eword : constant Eword := (others => ' ');
subtype Auxword is String (1 .. Aux_Word_Size);
Null_Auxword : constant Auxword := (others => ' ');
subtype Priority_Type is Integer range 0 .. 99;
Number_Of_Ewords : Integer := 0;
type Ewds_Record is
record
W : Eword := Null_Eword;
Aux : Auxword := Null_Auxword;
N : Integer := 0;
Pofs : Part_Of_Speech_Type := X;
Freq : Frequency_Type := X;
Semi : Integer := 0;
Kind : Integer := 0;
Rank : Integer := 0;
end record;
Null_Ewds_Record : constant Ewds_Record := ((others => ' '),
(others => ' '), 0, X, X, 0, 0, 0);
type Ewds_Array is array (Positive range <>) of Ewds_Record;
package Ewds_Direct_Io is new Ada.Direct_IO (Ewds_Record);
package Ewds_Record_Io is
Default_Width : Natural;
procedure Get (F : in Ada.Text_IO.File_Type; P : out Ewds_Record);
procedure Get (P : out Ewds_Record);
procedure Put (F : in Ada.Text_IO.File_Type; P : in Ewds_Record);
procedure Put (P : in Ewds_Record);
procedure Get (S : in String; P : out Ewds_Record;
Last : out Integer);
procedure Put (S : out String; P : in Ewds_Record);
end Ewds_Record_Io;
English_Dictionary_Available : array (Dictionary_Kind) of Boolean := (False,
False, False, False, False, False, False, -- don't SEARCH
False, False, False, False);
Ewds_File : Ewds_Direct_Io.File_Type;
end Words_Engine.English_Support_Package;
|
[
{
"context": " --\n-- Copyright (C) 2002-2003 Dmitriy Anisimkov --\n-- ",
"end": 240,
"score": 0.9998636245727539,
"start": 223,
"tag": "NAME",
"value": "Dmitriy Anisimkov"
}
] |
contrib/gnu/gdb/dist/zlib/contrib/ada/test.adb
|
TheSledgeHammer/2.11BSD
| 3 |
----------------------------------------------------------------
-- ZLib for Ada thick binding. --
-- --
-- Copyright (C) 2002-2003 Dmitriy Anisimkov --
-- --
-- Open source license information is in the zlib.ads file. --
----------------------------------------------------------------
-- $Id: test.adb,v 1.2 2020/09/15 02:05:31 christos Exp $
-- The program has a few aims.
-- 1. Test ZLib.Ada95 thick binding functionality.
-- 2. Show the example of use main functionality of the ZLib.Ada95 binding.
-- 3. Build this program automatically compile all ZLib.Ada95 packages under
-- GNAT Ada95 compiler.
with ZLib.Streams;
with Ada.Streams.Stream_IO;
with Ada.Numerics.Discrete_Random;
with Ada.Text_IO;
with Ada.Calendar;
procedure Test is
use Ada.Streams;
use Stream_IO;
------------------------------------
-- Test configuration parameters --
------------------------------------
File_Size : Count := 100_000;
Continuous : constant Boolean := False;
Header : constant ZLib.Header_Type := ZLib.Default;
-- ZLib.None;
-- ZLib.Auto;
-- ZLib.GZip;
-- Do not use Header other then Default in ZLib versions 1.1.4
-- and older.
Strategy : constant ZLib.Strategy_Type := ZLib.Default_Strategy;
Init_Random : constant := 10;
-- End --
In_File_Name : constant String := "testzlib.in";
-- Name of the input file
Z_File_Name : constant String := "testzlib.zlb";
-- Name of the compressed file.
Out_File_Name : constant String := "testzlib.out";
-- Name of the decompressed file.
File_In : File_Type;
File_Out : File_Type;
File_Back : File_Type;
File_Z : ZLib.Streams.Stream_Type;
Filter : ZLib.Filter_Type;
Time_Stamp : Ada.Calendar.Time;
procedure Generate_File;
-- Generate file of spetsified size with some random data.
-- The random data is repeatable, for the good compression.
procedure Compare_Streams
(Left, Right : in out Root_Stream_Type'Class);
-- The procedure compearing data in 2 streams.
-- It is for compare data before and after compression/decompression.
procedure Compare_Files (Left, Right : String);
-- Compare files. Based on the Compare_Streams.
procedure Copy_Streams
(Source, Target : in out Root_Stream_Type'Class;
Buffer_Size : in Stream_Element_Offset := 1024);
-- Copying data from one stream to another. It is for test stream
-- interface of the library.
procedure Data_In
(Item : out Stream_Element_Array;
Last : out Stream_Element_Offset);
-- this procedure is for generic instantiation of
-- ZLib.Generic_Translate.
-- reading data from the File_In.
procedure Data_Out (Item : in Stream_Element_Array);
-- this procedure is for generic instantiation of
-- ZLib.Generic_Translate.
-- writing data to the File_Out.
procedure Stamp;
-- Store the timestamp to the local variable.
procedure Print_Statistic (Msg : String; Data_Size : ZLib.Count);
-- Print the time statistic with the message.
procedure Translate is new ZLib.Generic_Translate
(Data_In => Data_In,
Data_Out => Data_Out);
-- This procedure is moving data from File_In to File_Out
-- with compression or decompression, depend on initialization of
-- Filter parameter.
-------------------
-- Compare_Files --
-------------------
procedure Compare_Files (Left, Right : String) is
Left_File, Right_File : File_Type;
begin
Open (Left_File, In_File, Left);
Open (Right_File, In_File, Right);
Compare_Streams (Stream (Left_File).all, Stream (Right_File).all);
Close (Left_File);
Close (Right_File);
end Compare_Files;
---------------------
-- Compare_Streams --
---------------------
procedure Compare_Streams
(Left, Right : in out Ada.Streams.Root_Stream_Type'Class)
is
Left_Buffer, Right_Buffer : Stream_Element_Array (0 .. 16#FFF#);
Left_Last, Right_Last : Stream_Element_Offset;
begin
loop
Read (Left, Left_Buffer, Left_Last);
Read (Right, Right_Buffer, Right_Last);
if Left_Last /= Right_Last then
Ada.Text_IO.Put_Line ("Compare error :"
& Stream_Element_Offset'Image (Left_Last)
& " /= "
& Stream_Element_Offset'Image (Right_Last));
raise Constraint_Error;
elsif Left_Buffer (0 .. Left_Last)
/= Right_Buffer (0 .. Right_Last)
then
Ada.Text_IO.Put_Line ("ERROR: IN and OUT files is not equal.");
raise Constraint_Error;
end if;
exit when Left_Last < Left_Buffer'Last;
end loop;
end Compare_Streams;
------------------
-- Copy_Streams --
------------------
procedure Copy_Streams
(Source, Target : in out Ada.Streams.Root_Stream_Type'Class;
Buffer_Size : in Stream_Element_Offset := 1024)
is
Buffer : Stream_Element_Array (1 .. Buffer_Size);
Last : Stream_Element_Offset;
begin
loop
Read (Source, Buffer, Last);
Write (Target, Buffer (1 .. Last));
exit when Last < Buffer'Last;
end loop;
end Copy_Streams;
-------------
-- Data_In --
-------------
procedure Data_In
(Item : out Stream_Element_Array;
Last : out Stream_Element_Offset) is
begin
Read (File_In, Item, Last);
end Data_In;
--------------
-- Data_Out --
--------------
procedure Data_Out (Item : in Stream_Element_Array) is
begin
Write (File_Out, Item);
end Data_Out;
-------------------
-- Generate_File --
-------------------
procedure Generate_File is
subtype Visible_Symbols is Stream_Element range 16#20# .. 16#7E#;
package Random_Elements is
new Ada.Numerics.Discrete_Random (Visible_Symbols);
Gen : Random_Elements.Generator;
Buffer : Stream_Element_Array := (1 .. 77 => 16#20#) & 10;
Buffer_Count : constant Count := File_Size / Buffer'Length;
-- Number of same buffers in the packet.
Density : constant Count := 30; -- from 0 to Buffer'Length - 2;
procedure Fill_Buffer (J, D : in Count);
-- Change the part of the buffer.
-----------------
-- Fill_Buffer --
-----------------
procedure Fill_Buffer (J, D : in Count) is
begin
for K in 0 .. D loop
Buffer
(Stream_Element_Offset ((J + K) mod (Buffer'Length - 1) + 1))
:= Random_Elements.Random (Gen);
end loop;
end Fill_Buffer;
begin
Random_Elements.Reset (Gen, Init_Random);
Create (File_In, Out_File, In_File_Name);
Fill_Buffer (1, Buffer'Length - 2);
for J in 1 .. Buffer_Count loop
Write (File_In, Buffer);
Fill_Buffer (J, Density);
end loop;
-- fill remain size.
Write
(File_In,
Buffer
(1 .. Stream_Element_Offset
(File_Size - Buffer'Length * Buffer_Count)));
Flush (File_In);
Close (File_In);
end Generate_File;
---------------------
-- Print_Statistic --
---------------------
procedure Print_Statistic (Msg : String; Data_Size : ZLib.Count) is
use Ada.Calendar;
use Ada.Text_IO;
package Count_IO is new Integer_IO (ZLib.Count);
Curr_Dur : Duration := Clock - Time_Stamp;
begin
Put (Msg);
Set_Col (20);
Ada.Text_IO.Put ("size =");
Count_IO.Put
(Data_Size,
Width => Stream_IO.Count'Image (File_Size)'Length);
Put_Line (" duration =" & Duration'Image (Curr_Dur));
end Print_Statistic;
-----------
-- Stamp --
-----------
procedure Stamp is
begin
Time_Stamp := Ada.Calendar.Clock;
end Stamp;
begin
Ada.Text_IO.Put_Line ("ZLib " & ZLib.Version);
loop
Generate_File;
for Level in ZLib.Compression_Level'Range loop
Ada.Text_IO.Put_Line ("Level ="
& ZLib.Compression_Level'Image (Level));
-- Test generic interface.
Open (File_In, In_File, In_File_Name);
Create (File_Out, Out_File, Z_File_Name);
Stamp;
-- Deflate using generic instantiation.
ZLib.Deflate_Init
(Filter => Filter,
Level => Level,
Strategy => Strategy,
Header => Header);
Translate (Filter);
Print_Statistic ("Generic compress", ZLib.Total_Out (Filter));
ZLib.Close (Filter);
Close (File_In);
Close (File_Out);
Open (File_In, In_File, Z_File_Name);
Create (File_Out, Out_File, Out_File_Name);
Stamp;
-- Inflate using generic instantiation.
ZLib.Inflate_Init (Filter, Header => Header);
Translate (Filter);
Print_Statistic ("Generic decompress", ZLib.Total_Out (Filter));
ZLib.Close (Filter);
Close (File_In);
Close (File_Out);
Compare_Files (In_File_Name, Out_File_Name);
-- Test stream interface.
-- Compress to the back stream.
Open (File_In, In_File, In_File_Name);
Create (File_Back, Out_File, Z_File_Name);
Stamp;
ZLib.Streams.Create
(Stream => File_Z,
Mode => ZLib.Streams.Out_Stream,
Back => ZLib.Streams.Stream_Access
(Stream (File_Back)),
Back_Compressed => True,
Level => Level,
Strategy => Strategy,
Header => Header);
Copy_Streams
(Source => Stream (File_In).all,
Target => File_Z);
-- Flushing internal buffers to the back stream.
ZLib.Streams.Flush (File_Z, ZLib.Finish);
Print_Statistic ("Write compress",
ZLib.Streams.Write_Total_Out (File_Z));
ZLib.Streams.Close (File_Z);
Close (File_In);
Close (File_Back);
-- Compare reading from original file and from
-- decompression stream.
Open (File_In, In_File, In_File_Name);
Open (File_Back, In_File, Z_File_Name);
ZLib.Streams.Create
(Stream => File_Z,
Mode => ZLib.Streams.In_Stream,
Back => ZLib.Streams.Stream_Access
(Stream (File_Back)),
Back_Compressed => True,
Header => Header);
Stamp;
Compare_Streams (Stream (File_In).all, File_Z);
Print_Statistic ("Read decompress",
ZLib.Streams.Read_Total_Out (File_Z));
ZLib.Streams.Close (File_Z);
Close (File_In);
Close (File_Back);
-- Compress by reading from compression stream.
Open (File_Back, In_File, In_File_Name);
Create (File_Out, Out_File, Z_File_Name);
ZLib.Streams.Create
(Stream => File_Z,
Mode => ZLib.Streams.In_Stream,
Back => ZLib.Streams.Stream_Access
(Stream (File_Back)),
Back_Compressed => False,
Level => Level,
Strategy => Strategy,
Header => Header);
Stamp;
Copy_Streams
(Source => File_Z,
Target => Stream (File_Out).all);
Print_Statistic ("Read compress",
ZLib.Streams.Read_Total_Out (File_Z));
ZLib.Streams.Close (File_Z);
Close (File_Out);
Close (File_Back);
-- Decompress to decompression stream.
Open (File_In, In_File, Z_File_Name);
Create (File_Back, Out_File, Out_File_Name);
ZLib.Streams.Create
(Stream => File_Z,
Mode => ZLib.Streams.Out_Stream,
Back => ZLib.Streams.Stream_Access
(Stream (File_Back)),
Back_Compressed => False,
Header => Header);
Stamp;
Copy_Streams
(Source => Stream (File_In).all,
Target => File_Z);
Print_Statistic ("Write decompress",
ZLib.Streams.Write_Total_Out (File_Z));
ZLib.Streams.Close (File_Z);
Close (File_In);
Close (File_Back);
Compare_Files (In_File_Name, Out_File_Name);
end loop;
Ada.Text_IO.Put_Line (Count'Image (File_Size) & " Ok.");
exit when not Continuous;
File_Size := File_Size + 1;
end loop;
end Test;
|
12625
|
----------------------------------------------------------------
-- ZLib for Ada thick binding. --
-- --
-- Copyright (C) 2002-2003 <NAME> --
-- --
-- Open source license information is in the zlib.ads file. --
----------------------------------------------------------------
-- $Id: test.adb,v 1.2 2020/09/15 02:05:31 christos Exp $
-- The program has a few aims.
-- 1. Test ZLib.Ada95 thick binding functionality.
-- 2. Show the example of use main functionality of the ZLib.Ada95 binding.
-- 3. Build this program automatically compile all ZLib.Ada95 packages under
-- GNAT Ada95 compiler.
with ZLib.Streams;
with Ada.Streams.Stream_IO;
with Ada.Numerics.Discrete_Random;
with Ada.Text_IO;
with Ada.Calendar;
procedure Test is
use Ada.Streams;
use Stream_IO;
------------------------------------
-- Test configuration parameters --
------------------------------------
File_Size : Count := 100_000;
Continuous : constant Boolean := False;
Header : constant ZLib.Header_Type := ZLib.Default;
-- ZLib.None;
-- ZLib.Auto;
-- ZLib.GZip;
-- Do not use Header other then Default in ZLib versions 1.1.4
-- and older.
Strategy : constant ZLib.Strategy_Type := ZLib.Default_Strategy;
Init_Random : constant := 10;
-- End --
In_File_Name : constant String := "testzlib.in";
-- Name of the input file
Z_File_Name : constant String := "testzlib.zlb";
-- Name of the compressed file.
Out_File_Name : constant String := "testzlib.out";
-- Name of the decompressed file.
File_In : File_Type;
File_Out : File_Type;
File_Back : File_Type;
File_Z : ZLib.Streams.Stream_Type;
Filter : ZLib.Filter_Type;
Time_Stamp : Ada.Calendar.Time;
procedure Generate_File;
-- Generate file of spetsified size with some random data.
-- The random data is repeatable, for the good compression.
procedure Compare_Streams
(Left, Right : in out Root_Stream_Type'Class);
-- The procedure compearing data in 2 streams.
-- It is for compare data before and after compression/decompression.
procedure Compare_Files (Left, Right : String);
-- Compare files. Based on the Compare_Streams.
procedure Copy_Streams
(Source, Target : in out Root_Stream_Type'Class;
Buffer_Size : in Stream_Element_Offset := 1024);
-- Copying data from one stream to another. It is for test stream
-- interface of the library.
procedure Data_In
(Item : out Stream_Element_Array;
Last : out Stream_Element_Offset);
-- this procedure is for generic instantiation of
-- ZLib.Generic_Translate.
-- reading data from the File_In.
procedure Data_Out (Item : in Stream_Element_Array);
-- this procedure is for generic instantiation of
-- ZLib.Generic_Translate.
-- writing data to the File_Out.
procedure Stamp;
-- Store the timestamp to the local variable.
procedure Print_Statistic (Msg : String; Data_Size : ZLib.Count);
-- Print the time statistic with the message.
procedure Translate is new ZLib.Generic_Translate
(Data_In => Data_In,
Data_Out => Data_Out);
-- This procedure is moving data from File_In to File_Out
-- with compression or decompression, depend on initialization of
-- Filter parameter.
-------------------
-- Compare_Files --
-------------------
procedure Compare_Files (Left, Right : String) is
Left_File, Right_File : File_Type;
begin
Open (Left_File, In_File, Left);
Open (Right_File, In_File, Right);
Compare_Streams (Stream (Left_File).all, Stream (Right_File).all);
Close (Left_File);
Close (Right_File);
end Compare_Files;
---------------------
-- Compare_Streams --
---------------------
procedure Compare_Streams
(Left, Right : in out Ada.Streams.Root_Stream_Type'Class)
is
Left_Buffer, Right_Buffer : Stream_Element_Array (0 .. 16#FFF#);
Left_Last, Right_Last : Stream_Element_Offset;
begin
loop
Read (Left, Left_Buffer, Left_Last);
Read (Right, Right_Buffer, Right_Last);
if Left_Last /= Right_Last then
Ada.Text_IO.Put_Line ("Compare error :"
& Stream_Element_Offset'Image (Left_Last)
& " /= "
& Stream_Element_Offset'Image (Right_Last));
raise Constraint_Error;
elsif Left_Buffer (0 .. Left_Last)
/= Right_Buffer (0 .. Right_Last)
then
Ada.Text_IO.Put_Line ("ERROR: IN and OUT files is not equal.");
raise Constraint_Error;
end if;
exit when Left_Last < Left_Buffer'Last;
end loop;
end Compare_Streams;
------------------
-- Copy_Streams --
------------------
procedure Copy_Streams
(Source, Target : in out Ada.Streams.Root_Stream_Type'Class;
Buffer_Size : in Stream_Element_Offset := 1024)
is
Buffer : Stream_Element_Array (1 .. Buffer_Size);
Last : Stream_Element_Offset;
begin
loop
Read (Source, Buffer, Last);
Write (Target, Buffer (1 .. Last));
exit when Last < Buffer'Last;
end loop;
end Copy_Streams;
-------------
-- Data_In --
-------------
procedure Data_In
(Item : out Stream_Element_Array;
Last : out Stream_Element_Offset) is
begin
Read (File_In, Item, Last);
end Data_In;
--------------
-- Data_Out --
--------------
procedure Data_Out (Item : in Stream_Element_Array) is
begin
Write (File_Out, Item);
end Data_Out;
-------------------
-- Generate_File --
-------------------
procedure Generate_File is
subtype Visible_Symbols is Stream_Element range 16#20# .. 16#7E#;
package Random_Elements is
new Ada.Numerics.Discrete_Random (Visible_Symbols);
Gen : Random_Elements.Generator;
Buffer : Stream_Element_Array := (1 .. 77 => 16#20#) & 10;
Buffer_Count : constant Count := File_Size / Buffer'Length;
-- Number of same buffers in the packet.
Density : constant Count := 30; -- from 0 to Buffer'Length - 2;
procedure Fill_Buffer (J, D : in Count);
-- Change the part of the buffer.
-----------------
-- Fill_Buffer --
-----------------
procedure Fill_Buffer (J, D : in Count) is
begin
for K in 0 .. D loop
Buffer
(Stream_Element_Offset ((J + K) mod (Buffer'Length - 1) + 1))
:= Random_Elements.Random (Gen);
end loop;
end Fill_Buffer;
begin
Random_Elements.Reset (Gen, Init_Random);
Create (File_In, Out_File, In_File_Name);
Fill_Buffer (1, Buffer'Length - 2);
for J in 1 .. Buffer_Count loop
Write (File_In, Buffer);
Fill_Buffer (J, Density);
end loop;
-- fill remain size.
Write
(File_In,
Buffer
(1 .. Stream_Element_Offset
(File_Size - Buffer'Length * Buffer_Count)));
Flush (File_In);
Close (File_In);
end Generate_File;
---------------------
-- Print_Statistic --
---------------------
procedure Print_Statistic (Msg : String; Data_Size : ZLib.Count) is
use Ada.Calendar;
use Ada.Text_IO;
package Count_IO is new Integer_IO (ZLib.Count);
Curr_Dur : Duration := Clock - Time_Stamp;
begin
Put (Msg);
Set_Col (20);
Ada.Text_IO.Put ("size =");
Count_IO.Put
(Data_Size,
Width => Stream_IO.Count'Image (File_Size)'Length);
Put_Line (" duration =" & Duration'Image (Curr_Dur));
end Print_Statistic;
-----------
-- Stamp --
-----------
procedure Stamp is
begin
Time_Stamp := Ada.Calendar.Clock;
end Stamp;
begin
Ada.Text_IO.Put_Line ("ZLib " & ZLib.Version);
loop
Generate_File;
for Level in ZLib.Compression_Level'Range loop
Ada.Text_IO.Put_Line ("Level ="
& ZLib.Compression_Level'Image (Level));
-- Test generic interface.
Open (File_In, In_File, In_File_Name);
Create (File_Out, Out_File, Z_File_Name);
Stamp;
-- Deflate using generic instantiation.
ZLib.Deflate_Init
(Filter => Filter,
Level => Level,
Strategy => Strategy,
Header => Header);
Translate (Filter);
Print_Statistic ("Generic compress", ZLib.Total_Out (Filter));
ZLib.Close (Filter);
Close (File_In);
Close (File_Out);
Open (File_In, In_File, Z_File_Name);
Create (File_Out, Out_File, Out_File_Name);
Stamp;
-- Inflate using generic instantiation.
ZLib.Inflate_Init (Filter, Header => Header);
Translate (Filter);
Print_Statistic ("Generic decompress", ZLib.Total_Out (Filter));
ZLib.Close (Filter);
Close (File_In);
Close (File_Out);
Compare_Files (In_File_Name, Out_File_Name);
-- Test stream interface.
-- Compress to the back stream.
Open (File_In, In_File, In_File_Name);
Create (File_Back, Out_File, Z_File_Name);
Stamp;
ZLib.Streams.Create
(Stream => File_Z,
Mode => ZLib.Streams.Out_Stream,
Back => ZLib.Streams.Stream_Access
(Stream (File_Back)),
Back_Compressed => True,
Level => Level,
Strategy => Strategy,
Header => Header);
Copy_Streams
(Source => Stream (File_In).all,
Target => File_Z);
-- Flushing internal buffers to the back stream.
ZLib.Streams.Flush (File_Z, ZLib.Finish);
Print_Statistic ("Write compress",
ZLib.Streams.Write_Total_Out (File_Z));
ZLib.Streams.Close (File_Z);
Close (File_In);
Close (File_Back);
-- Compare reading from original file and from
-- decompression stream.
Open (File_In, In_File, In_File_Name);
Open (File_Back, In_File, Z_File_Name);
ZLib.Streams.Create
(Stream => File_Z,
Mode => ZLib.Streams.In_Stream,
Back => ZLib.Streams.Stream_Access
(Stream (File_Back)),
Back_Compressed => True,
Header => Header);
Stamp;
Compare_Streams (Stream (File_In).all, File_Z);
Print_Statistic ("Read decompress",
ZLib.Streams.Read_Total_Out (File_Z));
ZLib.Streams.Close (File_Z);
Close (File_In);
Close (File_Back);
-- Compress by reading from compression stream.
Open (File_Back, In_File, In_File_Name);
Create (File_Out, Out_File, Z_File_Name);
ZLib.Streams.Create
(Stream => File_Z,
Mode => ZLib.Streams.In_Stream,
Back => ZLib.Streams.Stream_Access
(Stream (File_Back)),
Back_Compressed => False,
Level => Level,
Strategy => Strategy,
Header => Header);
Stamp;
Copy_Streams
(Source => File_Z,
Target => Stream (File_Out).all);
Print_Statistic ("Read compress",
ZLib.Streams.Read_Total_Out (File_Z));
ZLib.Streams.Close (File_Z);
Close (File_Out);
Close (File_Back);
-- Decompress to decompression stream.
Open (File_In, In_File, Z_File_Name);
Create (File_Back, Out_File, Out_File_Name);
ZLib.Streams.Create
(Stream => File_Z,
Mode => ZLib.Streams.Out_Stream,
Back => ZLib.Streams.Stream_Access
(Stream (File_Back)),
Back_Compressed => False,
Header => Header);
Stamp;
Copy_Streams
(Source => Stream (File_In).all,
Target => File_Z);
Print_Statistic ("Write decompress",
ZLib.Streams.Write_Total_Out (File_Z));
ZLib.Streams.Close (File_Z);
Close (File_In);
Close (File_Back);
Compare_Files (In_File_Name, Out_File_Name);
end loop;
Ada.Text_IO.Put_Line (Count'Image (File_Size) & " Ok.");
exit when not Continuous;
File_Size := File_Size + 1;
end loop;
end Test;
| true |
----------------------------------------------------------------
-- ZLib for Ada thick binding. --
-- --
-- Copyright (C) 2002-2003 PI:NAME:<NAME>END_PI --
-- --
-- Open source license information is in the zlib.ads file. --
----------------------------------------------------------------
-- $Id: test.adb,v 1.2 2020/09/15 02:05:31 christos Exp $
-- The program has a few aims.
-- 1. Test ZLib.Ada95 thick binding functionality.
-- 2. Show the example of use main functionality of the ZLib.Ada95 binding.
-- 3. Build this program automatically compile all ZLib.Ada95 packages under
-- GNAT Ada95 compiler.
with ZLib.Streams;
with Ada.Streams.Stream_IO;
with Ada.Numerics.Discrete_Random;
with Ada.Text_IO;
with Ada.Calendar;
procedure Test is
use Ada.Streams;
use Stream_IO;
------------------------------------
-- Test configuration parameters --
------------------------------------
File_Size : Count := 100_000;
Continuous : constant Boolean := False;
Header : constant ZLib.Header_Type := ZLib.Default;
-- ZLib.None;
-- ZLib.Auto;
-- ZLib.GZip;
-- Do not use Header other then Default in ZLib versions 1.1.4
-- and older.
Strategy : constant ZLib.Strategy_Type := ZLib.Default_Strategy;
Init_Random : constant := 10;
-- End --
In_File_Name : constant String := "testzlib.in";
-- Name of the input file
Z_File_Name : constant String := "testzlib.zlb";
-- Name of the compressed file.
Out_File_Name : constant String := "testzlib.out";
-- Name of the decompressed file.
File_In : File_Type;
File_Out : File_Type;
File_Back : File_Type;
File_Z : ZLib.Streams.Stream_Type;
Filter : ZLib.Filter_Type;
Time_Stamp : Ada.Calendar.Time;
procedure Generate_File;
-- Generate file of spetsified size with some random data.
-- The random data is repeatable, for the good compression.
procedure Compare_Streams
(Left, Right : in out Root_Stream_Type'Class);
-- The procedure compearing data in 2 streams.
-- It is for compare data before and after compression/decompression.
procedure Compare_Files (Left, Right : String);
-- Compare files. Based on the Compare_Streams.
procedure Copy_Streams
(Source, Target : in out Root_Stream_Type'Class;
Buffer_Size : in Stream_Element_Offset := 1024);
-- Copying data from one stream to another. It is for test stream
-- interface of the library.
procedure Data_In
(Item : out Stream_Element_Array;
Last : out Stream_Element_Offset);
-- this procedure is for generic instantiation of
-- ZLib.Generic_Translate.
-- reading data from the File_In.
procedure Data_Out (Item : in Stream_Element_Array);
-- this procedure is for generic instantiation of
-- ZLib.Generic_Translate.
-- writing data to the File_Out.
procedure Stamp;
-- Store the timestamp to the local variable.
procedure Print_Statistic (Msg : String; Data_Size : ZLib.Count);
-- Print the time statistic with the message.
procedure Translate is new ZLib.Generic_Translate
(Data_In => Data_In,
Data_Out => Data_Out);
-- This procedure is moving data from File_In to File_Out
-- with compression or decompression, depend on initialization of
-- Filter parameter.
-------------------
-- Compare_Files --
-------------------
procedure Compare_Files (Left, Right : String) is
Left_File, Right_File : File_Type;
begin
Open (Left_File, In_File, Left);
Open (Right_File, In_File, Right);
Compare_Streams (Stream (Left_File).all, Stream (Right_File).all);
Close (Left_File);
Close (Right_File);
end Compare_Files;
---------------------
-- Compare_Streams --
---------------------
procedure Compare_Streams
(Left, Right : in out Ada.Streams.Root_Stream_Type'Class)
is
Left_Buffer, Right_Buffer : Stream_Element_Array (0 .. 16#FFF#);
Left_Last, Right_Last : Stream_Element_Offset;
begin
loop
Read (Left, Left_Buffer, Left_Last);
Read (Right, Right_Buffer, Right_Last);
if Left_Last /= Right_Last then
Ada.Text_IO.Put_Line ("Compare error :"
& Stream_Element_Offset'Image (Left_Last)
& " /= "
& Stream_Element_Offset'Image (Right_Last));
raise Constraint_Error;
elsif Left_Buffer (0 .. Left_Last)
/= Right_Buffer (0 .. Right_Last)
then
Ada.Text_IO.Put_Line ("ERROR: IN and OUT files is not equal.");
raise Constraint_Error;
end if;
exit when Left_Last < Left_Buffer'Last;
end loop;
end Compare_Streams;
------------------
-- Copy_Streams --
------------------
procedure Copy_Streams
(Source, Target : in out Ada.Streams.Root_Stream_Type'Class;
Buffer_Size : in Stream_Element_Offset := 1024)
is
Buffer : Stream_Element_Array (1 .. Buffer_Size);
Last : Stream_Element_Offset;
begin
loop
Read (Source, Buffer, Last);
Write (Target, Buffer (1 .. Last));
exit when Last < Buffer'Last;
end loop;
end Copy_Streams;
-------------
-- Data_In --
-------------
procedure Data_In
(Item : out Stream_Element_Array;
Last : out Stream_Element_Offset) is
begin
Read (File_In, Item, Last);
end Data_In;
--------------
-- Data_Out --
--------------
procedure Data_Out (Item : in Stream_Element_Array) is
begin
Write (File_Out, Item);
end Data_Out;
-------------------
-- Generate_File --
-------------------
procedure Generate_File is
subtype Visible_Symbols is Stream_Element range 16#20# .. 16#7E#;
package Random_Elements is
new Ada.Numerics.Discrete_Random (Visible_Symbols);
Gen : Random_Elements.Generator;
Buffer : Stream_Element_Array := (1 .. 77 => 16#20#) & 10;
Buffer_Count : constant Count := File_Size / Buffer'Length;
-- Number of same buffers in the packet.
Density : constant Count := 30; -- from 0 to Buffer'Length - 2;
procedure Fill_Buffer (J, D : in Count);
-- Change the part of the buffer.
-----------------
-- Fill_Buffer --
-----------------
procedure Fill_Buffer (J, D : in Count) is
begin
for K in 0 .. D loop
Buffer
(Stream_Element_Offset ((J + K) mod (Buffer'Length - 1) + 1))
:= Random_Elements.Random (Gen);
end loop;
end Fill_Buffer;
begin
Random_Elements.Reset (Gen, Init_Random);
Create (File_In, Out_File, In_File_Name);
Fill_Buffer (1, Buffer'Length - 2);
for J in 1 .. Buffer_Count loop
Write (File_In, Buffer);
Fill_Buffer (J, Density);
end loop;
-- fill remain size.
Write
(File_In,
Buffer
(1 .. Stream_Element_Offset
(File_Size - Buffer'Length * Buffer_Count)));
Flush (File_In);
Close (File_In);
end Generate_File;
---------------------
-- Print_Statistic --
---------------------
procedure Print_Statistic (Msg : String; Data_Size : ZLib.Count) is
use Ada.Calendar;
use Ada.Text_IO;
package Count_IO is new Integer_IO (ZLib.Count);
Curr_Dur : Duration := Clock - Time_Stamp;
begin
Put (Msg);
Set_Col (20);
Ada.Text_IO.Put ("size =");
Count_IO.Put
(Data_Size,
Width => Stream_IO.Count'Image (File_Size)'Length);
Put_Line (" duration =" & Duration'Image (Curr_Dur));
end Print_Statistic;
-----------
-- Stamp --
-----------
procedure Stamp is
begin
Time_Stamp := Ada.Calendar.Clock;
end Stamp;
begin
Ada.Text_IO.Put_Line ("ZLib " & ZLib.Version);
loop
Generate_File;
for Level in ZLib.Compression_Level'Range loop
Ada.Text_IO.Put_Line ("Level ="
& ZLib.Compression_Level'Image (Level));
-- Test generic interface.
Open (File_In, In_File, In_File_Name);
Create (File_Out, Out_File, Z_File_Name);
Stamp;
-- Deflate using generic instantiation.
ZLib.Deflate_Init
(Filter => Filter,
Level => Level,
Strategy => Strategy,
Header => Header);
Translate (Filter);
Print_Statistic ("Generic compress", ZLib.Total_Out (Filter));
ZLib.Close (Filter);
Close (File_In);
Close (File_Out);
Open (File_In, In_File, Z_File_Name);
Create (File_Out, Out_File, Out_File_Name);
Stamp;
-- Inflate using generic instantiation.
ZLib.Inflate_Init (Filter, Header => Header);
Translate (Filter);
Print_Statistic ("Generic decompress", ZLib.Total_Out (Filter));
ZLib.Close (Filter);
Close (File_In);
Close (File_Out);
Compare_Files (In_File_Name, Out_File_Name);
-- Test stream interface.
-- Compress to the back stream.
Open (File_In, In_File, In_File_Name);
Create (File_Back, Out_File, Z_File_Name);
Stamp;
ZLib.Streams.Create
(Stream => File_Z,
Mode => ZLib.Streams.Out_Stream,
Back => ZLib.Streams.Stream_Access
(Stream (File_Back)),
Back_Compressed => True,
Level => Level,
Strategy => Strategy,
Header => Header);
Copy_Streams
(Source => Stream (File_In).all,
Target => File_Z);
-- Flushing internal buffers to the back stream.
ZLib.Streams.Flush (File_Z, ZLib.Finish);
Print_Statistic ("Write compress",
ZLib.Streams.Write_Total_Out (File_Z));
ZLib.Streams.Close (File_Z);
Close (File_In);
Close (File_Back);
-- Compare reading from original file and from
-- decompression stream.
Open (File_In, In_File, In_File_Name);
Open (File_Back, In_File, Z_File_Name);
ZLib.Streams.Create
(Stream => File_Z,
Mode => ZLib.Streams.In_Stream,
Back => ZLib.Streams.Stream_Access
(Stream (File_Back)),
Back_Compressed => True,
Header => Header);
Stamp;
Compare_Streams (Stream (File_In).all, File_Z);
Print_Statistic ("Read decompress",
ZLib.Streams.Read_Total_Out (File_Z));
ZLib.Streams.Close (File_Z);
Close (File_In);
Close (File_Back);
-- Compress by reading from compression stream.
Open (File_Back, In_File, In_File_Name);
Create (File_Out, Out_File, Z_File_Name);
ZLib.Streams.Create
(Stream => File_Z,
Mode => ZLib.Streams.In_Stream,
Back => ZLib.Streams.Stream_Access
(Stream (File_Back)),
Back_Compressed => False,
Level => Level,
Strategy => Strategy,
Header => Header);
Stamp;
Copy_Streams
(Source => File_Z,
Target => Stream (File_Out).all);
Print_Statistic ("Read compress",
ZLib.Streams.Read_Total_Out (File_Z));
ZLib.Streams.Close (File_Z);
Close (File_Out);
Close (File_Back);
-- Decompress to decompression stream.
Open (File_In, In_File, Z_File_Name);
Create (File_Back, Out_File, Out_File_Name);
ZLib.Streams.Create
(Stream => File_Z,
Mode => ZLib.Streams.Out_Stream,
Back => ZLib.Streams.Stream_Access
(Stream (File_Back)),
Back_Compressed => False,
Header => Header);
Stamp;
Copy_Streams
(Source => Stream (File_In).all,
Target => File_Z);
Print_Statistic ("Write decompress",
ZLib.Streams.Write_Total_Out (File_Z));
ZLib.Streams.Close (File_Z);
Close (File_In);
Close (File_Back);
Compare_Files (In_File_Name, Out_File_Name);
end loop;
Ada.Text_IO.Put_Line (Count'Image (File_Size) & " Ok.");
exit when not Continuous;
File_Size := File_Size + 1;
end loop;
end Test;
|
[
{
"context": "-------------------------------------\n-- Copyright Miletus 2015\n-- Permission is hereby granted, free of cha",
"end": 440,
"score": 0.9992513060569763,
"start": 433,
"tag": "NAME",
"value": "Miletus"
}
] |
Scaliger-Ada_conversion.ads
|
Louis-Aime/Milesian_calendar_Ada
| 0 |
-- Julian.Ada_conversion, a sub-package of Julian.
-- This package focuses on conversion between the Julian time
-- i.e. duration and time expressed in fractional Julian days,
-- and Ada.Calendar duration and time data.
-- These routines are only usefull for implementations
-- where conversions to and from the Ada time system are necessary.
----------------------------------------------------------------------------
-- Copyright Miletus 2015
-- 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:
-- 1. The above copyright notice and this permission notice shall be included
-- in all copies or substantial portions of the Software.
-- 2. Changes with respect to any former version shall be documented.
--
-- The software is provided "as is", without warranty of any kind,
-- express of implied, including but not limited to the warranties of
-- merchantability, fitness for a particular purpose and noninfringement.
-- In no event shall the authors of 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.
-- Inquiries: www.calendriermilesien.org
-------------------------------------------------------------------------------
with Calendar; use Calendar;
package Scaliger.Ada_conversion is
function Julian_Time_Of (Ada_Timestamp : Time)
return Historical_Time;
-- return Julian time following the classical convention i.e.:
-- Julian time takes integer values at noon GMT.
function Time_Of (Julian_Timestamp : Historical_Time) return Time;
-- convert Julian time into Ada time.
function Julian_Duration_Of (Ada_Offset : Duration) return Historical_Duration;
-- convert Ada duration (seconds)
-- to Julian duration (fractional days stored in seconds)
function Julian_Duration_Of (Day : Julian_Day_Duration) return Historical_Duration;
-- convert a Julian day (an integer) into a julian duration
-- which is expressed in seconds to the 1/8s.
function Duration_Of (Julian_Offset : Historical_Duration) return Duration;
function Day_Julian_Offset (Ada_Daytime : Day_Duration)
return Day_Historical_Duration;
-- Time of the day expressed in UTC time (0..86_400.0 s)
-- to Julian duration expressed in (-0.5..+0.5)
function Day_Offset (Julian_Offset : Day_Historical_Duration)
return Day_Duration;
-- Julian day duration -0.5..+0.5 to time of day 0..86_400.0 s
function Julian_Day_Of (Julian_Timestamp : Historical_Time)
return Julian_Day;
-- gives the nearest integer of a Julian time
function Julian_Day_Of (Ada_Timestamp : Time)
return Julian_Day;
-- the day corresponding to the UTC day of Ada_Timestamp
function Time_Of_At_Noon (Julian_Date : Julian_Day) return Time;
-- By convention, the "seconds" field is set to 12.00 UTC in this routine.
end Scaliger.Ada_conversion;
|
10013
|
-- Julian.Ada_conversion, a sub-package of Julian.
-- This package focuses on conversion between the Julian time
-- i.e. duration and time expressed in fractional Julian days,
-- and Ada.Calendar duration and time data.
-- These routines are only usefull for implementations
-- where conversions to and from the Ada time system are necessary.
----------------------------------------------------------------------------
-- Copyright <NAME> 2015
-- 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:
-- 1. The above copyright notice and this permission notice shall be included
-- in all copies or substantial portions of the Software.
-- 2. Changes with respect to any former version shall be documented.
--
-- The software is provided "as is", without warranty of any kind,
-- express of implied, including but not limited to the warranties of
-- merchantability, fitness for a particular purpose and noninfringement.
-- In no event shall the authors of 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.
-- Inquiries: www.calendriermilesien.org
-------------------------------------------------------------------------------
with Calendar; use Calendar;
package Scaliger.Ada_conversion is
function Julian_Time_Of (Ada_Timestamp : Time)
return Historical_Time;
-- return Julian time following the classical convention i.e.:
-- Julian time takes integer values at noon GMT.
function Time_Of (Julian_Timestamp : Historical_Time) return Time;
-- convert Julian time into Ada time.
function Julian_Duration_Of (Ada_Offset : Duration) return Historical_Duration;
-- convert Ada duration (seconds)
-- to Julian duration (fractional days stored in seconds)
function Julian_Duration_Of (Day : Julian_Day_Duration) return Historical_Duration;
-- convert a Julian day (an integer) into a julian duration
-- which is expressed in seconds to the 1/8s.
function Duration_Of (Julian_Offset : Historical_Duration) return Duration;
function Day_Julian_Offset (Ada_Daytime : Day_Duration)
return Day_Historical_Duration;
-- Time of the day expressed in UTC time (0..86_400.0 s)
-- to Julian duration expressed in (-0.5..+0.5)
function Day_Offset (Julian_Offset : Day_Historical_Duration)
return Day_Duration;
-- Julian day duration -0.5..+0.5 to time of day 0..86_400.0 s
function Julian_Day_Of (Julian_Timestamp : Historical_Time)
return Julian_Day;
-- gives the nearest integer of a Julian time
function Julian_Day_Of (Ada_Timestamp : Time)
return Julian_Day;
-- the day corresponding to the UTC day of Ada_Timestamp
function Time_Of_At_Noon (Julian_Date : Julian_Day) return Time;
-- By convention, the "seconds" field is set to 12.00 UTC in this routine.
end Scaliger.Ada_conversion;
| true |
-- Julian.Ada_conversion, a sub-package of Julian.
-- This package focuses on conversion between the Julian time
-- i.e. duration and time expressed in fractional Julian days,
-- and Ada.Calendar duration and time data.
-- These routines are only usefull for implementations
-- where conversions to and from the Ada time system are necessary.
----------------------------------------------------------------------------
-- Copyright PI:NAME:<NAME>END_PI 2015
-- 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:
-- 1. The above copyright notice and this permission notice shall be included
-- in all copies or substantial portions of the Software.
-- 2. Changes with respect to any former version shall be documented.
--
-- The software is provided "as is", without warranty of any kind,
-- express of implied, including but not limited to the warranties of
-- merchantability, fitness for a particular purpose and noninfringement.
-- In no event shall the authors of 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.
-- Inquiries: www.calendriermilesien.org
-------------------------------------------------------------------------------
with Calendar; use Calendar;
package Scaliger.Ada_conversion is
function Julian_Time_Of (Ada_Timestamp : Time)
return Historical_Time;
-- return Julian time following the classical convention i.e.:
-- Julian time takes integer values at noon GMT.
function Time_Of (Julian_Timestamp : Historical_Time) return Time;
-- convert Julian time into Ada time.
function Julian_Duration_Of (Ada_Offset : Duration) return Historical_Duration;
-- convert Ada duration (seconds)
-- to Julian duration (fractional days stored in seconds)
function Julian_Duration_Of (Day : Julian_Day_Duration) return Historical_Duration;
-- convert a Julian day (an integer) into a julian duration
-- which is expressed in seconds to the 1/8s.
function Duration_Of (Julian_Offset : Historical_Duration) return Duration;
function Day_Julian_Offset (Ada_Daytime : Day_Duration)
return Day_Historical_Duration;
-- Time of the day expressed in UTC time (0..86_400.0 s)
-- to Julian duration expressed in (-0.5..+0.5)
function Day_Offset (Julian_Offset : Day_Historical_Duration)
return Day_Duration;
-- Julian day duration -0.5..+0.5 to time of day 0..86_400.0 s
function Julian_Day_Of (Julian_Timestamp : Historical_Time)
return Julian_Day;
-- gives the nearest integer of a Julian time
function Julian_Day_Of (Ada_Timestamp : Time)
return Julian_Day;
-- the day corresponding to the UTC day of Ada_Timestamp
function Time_Of_At_Noon (Julian_Date : Julian_Day) return Time;
-- By convention, the "seconds" field is set to 12.00 UTC in this routine.
end Scaliger.Ada_conversion;
|
[
{
"context": " --\n-- Copyright © 2012, Vadim Godunko <[email protected]> --\n-- Al",
"end": 824,
"score": 0.9998865127563477,
"start": 811,
"tag": "NAME",
"value": "Vadim Godunko"
},
{
"context": " --\n-- Copyright © 2012, Vadim Godunko <[email protected]> --\n-- All rights reserved. ",
"end": 844,
"score": 0.9999319314956665,
"start": 826,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
source/amf/uml/amf-internals-factories-standard_profile_l2_factories.adb
|
svn2github/matreshka
| 24 |
------------------------------------------------------------------------------
-- --
-- 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.Internals.Elements;
with AMF.Internals.Extents;
with AMF.Internals.Helpers;
with AMF.Internals.Links;
with AMF.Internals.Listener_Registry;
with AMF.Internals.Tables.Standard_Profile_L2_Metamodel;
with AMF.Internals.Tables.UML_Constructors;
package body AMF.Internals.Factories.Standard_Profile_L2_Factories is
-----------------
-- Constructor --
-----------------
function Constructor
(Extent : AMF.Internals.AMF_Extent)
return not null AMF.Factories.Factory_Access is
begin
return new Standard_Profile_L2_Factory'(Extent => Extent);
end Constructor;
-----------------------
-- Convert_To_String --
-----------------------
overriding function Convert_To_String
(Self : not null access Standard_Profile_L2_Factory;
Data_Type : not null access AMF.CMOF.Data_Types.CMOF_Data_Type'Class;
Value : League.Holders.Holder) return League.Strings.Universal_String is
begin
raise Program_Error;
return League.Strings.Empty_Universal_String;
end Convert_To_String;
------------
-- Create --
------------
overriding function Create
(Self : not null access Standard_Profile_L2_Factory;
Meta_Class : not null access AMF.CMOF.Classes.CMOF_Class'Class)
return not null AMF.Elements.Element_Access
is
MC : constant AMF.Internals.CMOF_Element
:= AMF.Internals.Elements.Element_Base'Class (Meta_Class.all).Element;
Element : AMF.Internals.AMF_Element;
begin
if MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Auxiliary then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Auxiliary;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Call then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Call;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Create then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Create;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Derive then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Derive;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Destroy then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Destroy;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Document then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Document;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Entity then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Entity;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Executable then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Executable;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Focus then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Focus;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Framework then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Framework;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Implement then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Implement;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Implementation_Class then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Implementation_Class;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Instantiate then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Instantiate;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Library then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Library;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Metaclass then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Metaclass;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Model_Library then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Model_Library;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Process then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Process;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Realization then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Realization;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Refine then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Refine;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Responsibility then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Responsibility;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Script then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Script;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Send then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Send;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Service then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Service;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Source then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Source;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Specification then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Specification;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Subsystem then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Subsystem;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Trace then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Trace;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Type then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Type;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Utility then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Utility;
else
raise Program_Error;
end if;
AMF.Internals.Extents.Internal_Append (Self.Extent, Element);
AMF.Internals.Listener_Registry.Notify_Instance_Create
(AMF.Internals.Helpers.To_Element (Element));
return AMF.Internals.Helpers.To_Element (Element);
end Create;
------------------------
-- Create_From_String --
------------------------
overriding function Create_From_String
(Self : not null access Standard_Profile_L2_Factory;
Data_Type : not null access AMF.CMOF.Data_Types.CMOF_Data_Type'Class;
Image : League.Strings.Universal_String) return League.Holders.Holder is
begin
raise Program_Error;
return League.Holders.Empty_Holder;
end Create_From_String;
-----------------
-- Create_Link --
-----------------
overriding function Create_Link
(Self : not null access Standard_Profile_L2_Factory;
Association :
not null access AMF.CMOF.Associations.CMOF_Association'Class;
First_Element : not null AMF.Elements.Element_Access;
Second_Element : not null AMF.Elements.Element_Access)
return not null AMF.Links.Link_Access
is
pragma Unreferenced (Self);
begin
return
AMF.Internals.Links.Proxy
(AMF.Internals.Links.Create_Link
(AMF.Internals.Elements.Element_Base'Class
(Association.all).Element,
AMF.Internals.Helpers.To_Element (First_Element),
AMF.Internals.Helpers.To_Element (Second_Element)));
end Create_Link;
-----------------
-- Get_Package --
-----------------
overriding function Get_Package
(Self : not null access constant Standard_Profile_L2_Factory)
return AMF.CMOF.Packages.Collections.Set_Of_CMOF_Package
is
pragma Unreferenced (Self);
begin
return Result : AMF.CMOF.Packages.Collections.Set_Of_CMOF_Package do
Result.Add (Get_Package);
end return;
end Get_Package;
-----------------
-- Get_Package --
-----------------
function Get_Package return not null AMF.CMOF.Packages.CMOF_Package_Access is
begin
return
AMF.CMOF.Packages.CMOF_Package_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MM_Standard_Profile_L2_Standard_Profile_L2));
end Get_Package;
----------------------
-- Create_Auxiliary --
----------------------
overriding function Create_Auxiliary
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Auxiliaries.Standard_Profile_L2_Auxiliary_Access is
begin
return
AMF.Standard_Profile_L2.Auxiliaries.Standard_Profile_L2_Auxiliary_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Auxiliary))));
end Create_Auxiliary;
-----------------
-- Create_Call --
-----------------
overriding function Create_Call
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Calls.Standard_Profile_L2_Call_Access is
begin
return
AMF.Standard_Profile_L2.Calls.Standard_Profile_L2_Call_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Call))));
end Create_Call;
-------------------
-- Create_Create --
-------------------
overriding function Create_Create
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Creates.Standard_Profile_L2_Create_Access is
begin
return
AMF.Standard_Profile_L2.Creates.Standard_Profile_L2_Create_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Create))));
end Create_Create;
-------------------
-- Create_Derive --
-------------------
overriding function Create_Derive
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Derives.Standard_Profile_L2_Derive_Access is
begin
return
AMF.Standard_Profile_L2.Derives.Standard_Profile_L2_Derive_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Derive))));
end Create_Derive;
--------------------
-- Create_Destroy --
--------------------
overriding function Create_Destroy
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Destroies.Standard_Profile_L2_Destroy_Access is
begin
return
AMF.Standard_Profile_L2.Destroies.Standard_Profile_L2_Destroy_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Destroy))));
end Create_Destroy;
---------------------
-- Create_Document --
---------------------
overriding function Create_Document
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Documents.Standard_Profile_L2_Document_Access is
begin
return
AMF.Standard_Profile_L2.Documents.Standard_Profile_L2_Document_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Document))));
end Create_Document;
-------------------
-- Create_Entity --
-------------------
overriding function Create_Entity
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Entities.Standard_Profile_L2_Entity_Access is
begin
return
AMF.Standard_Profile_L2.Entities.Standard_Profile_L2_Entity_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Entity))));
end Create_Entity;
-----------------------
-- Create_Executable --
-----------------------
overriding function Create_Executable
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Executables.Standard_Profile_L2_Executable_Access is
begin
return
AMF.Standard_Profile_L2.Executables.Standard_Profile_L2_Executable_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Executable))));
end Create_Executable;
------------------
-- Create_Focus --
------------------
overriding function Create_Focus
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Focuses.Standard_Profile_L2_Focus_Access is
begin
return
AMF.Standard_Profile_L2.Focuses.Standard_Profile_L2_Focus_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Focus))));
end Create_Focus;
----------------------
-- Create_Framework --
----------------------
overriding function Create_Framework
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Frameworks.Standard_Profile_L2_Framework_Access is
begin
return
AMF.Standard_Profile_L2.Frameworks.Standard_Profile_L2_Framework_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Framework))));
end Create_Framework;
----------------------
-- Create_Implement --
----------------------
overriding function Create_Implement
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Implements.Standard_Profile_L2_Implement_Access is
begin
return
AMF.Standard_Profile_L2.Implements.Standard_Profile_L2_Implement_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Implement))));
end Create_Implement;
---------------------------------
-- Create_Implementation_Class --
---------------------------------
overriding function Create_Implementation_Class
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Implementation_Classes.Standard_Profile_L2_Implementation_Class_Access is
begin
return
AMF.Standard_Profile_L2.Implementation_Classes.Standard_Profile_L2_Implementation_Class_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Implementation_Class))));
end Create_Implementation_Class;
------------------------
-- Create_Instantiate --
------------------------
overriding function Create_Instantiate
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Instantiates.Standard_Profile_L2_Instantiate_Access is
begin
return
AMF.Standard_Profile_L2.Instantiates.Standard_Profile_L2_Instantiate_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Instantiate))));
end Create_Instantiate;
--------------------
-- Create_Library --
--------------------
overriding function Create_Library
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Libraries.Standard_Profile_L2_Library_Access is
begin
return
AMF.Standard_Profile_L2.Libraries.Standard_Profile_L2_Library_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Library))));
end Create_Library;
----------------------
-- Create_Metaclass --
----------------------
overriding function Create_Metaclass
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Metaclasses.Standard_Profile_L2_Metaclass_Access is
begin
return
AMF.Standard_Profile_L2.Metaclasses.Standard_Profile_L2_Metaclass_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Metaclass))));
end Create_Metaclass;
--------------------------
-- Create_Model_Library --
--------------------------
overriding function Create_Model_Library
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Model_Libraries.Standard_Profile_L2_Model_Library_Access is
begin
return
AMF.Standard_Profile_L2.Model_Libraries.Standard_Profile_L2_Model_Library_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Model_Library))));
end Create_Model_Library;
--------------------
-- Create_Process --
--------------------
overriding function Create_Process
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Processes.Standard_Profile_L2_Process_Access is
begin
return
AMF.Standard_Profile_L2.Processes.Standard_Profile_L2_Process_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Process))));
end Create_Process;
------------------------
-- Create_Realization --
------------------------
overriding function Create_Realization
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Realizations.Standard_Profile_L2_Realization_Access is
begin
return
AMF.Standard_Profile_L2.Realizations.Standard_Profile_L2_Realization_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Realization))));
end Create_Realization;
-------------------
-- Create_Refine --
-------------------
overriding function Create_Refine
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Refines.Standard_Profile_L2_Refine_Access is
begin
return
AMF.Standard_Profile_L2.Refines.Standard_Profile_L2_Refine_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Refine))));
end Create_Refine;
---------------------------
-- Create_Responsibility --
---------------------------
overriding function Create_Responsibility
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Responsibilities.Standard_Profile_L2_Responsibility_Access is
begin
return
AMF.Standard_Profile_L2.Responsibilities.Standard_Profile_L2_Responsibility_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Responsibility))));
end Create_Responsibility;
-------------------
-- Create_Script --
-------------------
overriding function Create_Script
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Scripts.Standard_Profile_L2_Script_Access is
begin
return
AMF.Standard_Profile_L2.Scripts.Standard_Profile_L2_Script_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Script))));
end Create_Script;
-----------------
-- Create_Send --
-----------------
overriding function Create_Send
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Sends.Standard_Profile_L2_Send_Access is
begin
return
AMF.Standard_Profile_L2.Sends.Standard_Profile_L2_Send_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Send))));
end Create_Send;
--------------------
-- Create_Service --
--------------------
overriding function Create_Service
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Services.Standard_Profile_L2_Service_Access is
begin
return
AMF.Standard_Profile_L2.Services.Standard_Profile_L2_Service_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Service))));
end Create_Service;
-------------------
-- Create_Source --
-------------------
overriding function Create_Source
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Sources.Standard_Profile_L2_Source_Access is
begin
return
AMF.Standard_Profile_L2.Sources.Standard_Profile_L2_Source_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Source))));
end Create_Source;
--------------------------
-- Create_Specification --
--------------------------
overriding function Create_Specification
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Specifications.Standard_Profile_L2_Specification_Access is
begin
return
AMF.Standard_Profile_L2.Specifications.Standard_Profile_L2_Specification_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Specification))));
end Create_Specification;
----------------------
-- Create_Subsystem --
----------------------
overriding function Create_Subsystem
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Subsystems.Standard_Profile_L2_Subsystem_Access is
begin
return
AMF.Standard_Profile_L2.Subsystems.Standard_Profile_L2_Subsystem_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Subsystem))));
end Create_Subsystem;
------------------
-- Create_Trace --
------------------
overriding function Create_Trace
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Traces.Standard_Profile_L2_Trace_Access is
begin
return
AMF.Standard_Profile_L2.Traces.Standard_Profile_L2_Trace_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Trace))));
end Create_Trace;
-----------------
-- Create_Type --
-----------------
overriding function Create_Type
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Types.Standard_Profile_L2_Type_Access is
begin
return
AMF.Standard_Profile_L2.Types.Standard_Profile_L2_Type_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Type))));
end Create_Type;
--------------------
-- Create_Utility --
--------------------
overriding function Create_Utility
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Utilities.Standard_Profile_L2_Utility_Access is
begin
return
AMF.Standard_Profile_L2.Utilities.Standard_Profile_L2_Utility_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Utility))));
end Create_Utility;
end AMF.Internals.Factories.Standard_Profile_L2_Factories;
|
23196
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2012, <NAME> <<EMAIL>> --
-- 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.Internals.Elements;
with AMF.Internals.Extents;
with AMF.Internals.Helpers;
with AMF.Internals.Links;
with AMF.Internals.Listener_Registry;
with AMF.Internals.Tables.Standard_Profile_L2_Metamodel;
with AMF.Internals.Tables.UML_Constructors;
package body AMF.Internals.Factories.Standard_Profile_L2_Factories is
-----------------
-- Constructor --
-----------------
function Constructor
(Extent : AMF.Internals.AMF_Extent)
return not null AMF.Factories.Factory_Access is
begin
return new Standard_Profile_L2_Factory'(Extent => Extent);
end Constructor;
-----------------------
-- Convert_To_String --
-----------------------
overriding function Convert_To_String
(Self : not null access Standard_Profile_L2_Factory;
Data_Type : not null access AMF.CMOF.Data_Types.CMOF_Data_Type'Class;
Value : League.Holders.Holder) return League.Strings.Universal_String is
begin
raise Program_Error;
return League.Strings.Empty_Universal_String;
end Convert_To_String;
------------
-- Create --
------------
overriding function Create
(Self : not null access Standard_Profile_L2_Factory;
Meta_Class : not null access AMF.CMOF.Classes.CMOF_Class'Class)
return not null AMF.Elements.Element_Access
is
MC : constant AMF.Internals.CMOF_Element
:= AMF.Internals.Elements.Element_Base'Class (Meta_Class.all).Element;
Element : AMF.Internals.AMF_Element;
begin
if MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Auxiliary then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Auxiliary;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Call then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Call;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Create then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Create;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Derive then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Derive;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Destroy then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Destroy;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Document then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Document;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Entity then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Entity;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Executable then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Executable;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Focus then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Focus;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Framework then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Framework;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Implement then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Implement;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Implementation_Class then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Implementation_Class;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Instantiate then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Instantiate;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Library then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Library;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Metaclass then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Metaclass;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Model_Library then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Model_Library;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Process then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Process;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Realization then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Realization;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Refine then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Refine;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Responsibility then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Responsibility;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Script then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Script;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Send then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Send;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Service then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Service;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Source then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Source;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Specification then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Specification;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Subsystem then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Subsystem;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Trace then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Trace;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Type then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Type;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Utility then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Utility;
else
raise Program_Error;
end if;
AMF.Internals.Extents.Internal_Append (Self.Extent, Element);
AMF.Internals.Listener_Registry.Notify_Instance_Create
(AMF.Internals.Helpers.To_Element (Element));
return AMF.Internals.Helpers.To_Element (Element);
end Create;
------------------------
-- Create_From_String --
------------------------
overriding function Create_From_String
(Self : not null access Standard_Profile_L2_Factory;
Data_Type : not null access AMF.CMOF.Data_Types.CMOF_Data_Type'Class;
Image : League.Strings.Universal_String) return League.Holders.Holder is
begin
raise Program_Error;
return League.Holders.Empty_Holder;
end Create_From_String;
-----------------
-- Create_Link --
-----------------
overriding function Create_Link
(Self : not null access Standard_Profile_L2_Factory;
Association :
not null access AMF.CMOF.Associations.CMOF_Association'Class;
First_Element : not null AMF.Elements.Element_Access;
Second_Element : not null AMF.Elements.Element_Access)
return not null AMF.Links.Link_Access
is
pragma Unreferenced (Self);
begin
return
AMF.Internals.Links.Proxy
(AMF.Internals.Links.Create_Link
(AMF.Internals.Elements.Element_Base'Class
(Association.all).Element,
AMF.Internals.Helpers.To_Element (First_Element),
AMF.Internals.Helpers.To_Element (Second_Element)));
end Create_Link;
-----------------
-- Get_Package --
-----------------
overriding function Get_Package
(Self : not null access constant Standard_Profile_L2_Factory)
return AMF.CMOF.Packages.Collections.Set_Of_CMOF_Package
is
pragma Unreferenced (Self);
begin
return Result : AMF.CMOF.Packages.Collections.Set_Of_CMOF_Package do
Result.Add (Get_Package);
end return;
end Get_Package;
-----------------
-- Get_Package --
-----------------
function Get_Package return not null AMF.CMOF.Packages.CMOF_Package_Access is
begin
return
AMF.CMOF.Packages.CMOF_Package_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MM_Standard_Profile_L2_Standard_Profile_L2));
end Get_Package;
----------------------
-- Create_Auxiliary --
----------------------
overriding function Create_Auxiliary
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Auxiliaries.Standard_Profile_L2_Auxiliary_Access is
begin
return
AMF.Standard_Profile_L2.Auxiliaries.Standard_Profile_L2_Auxiliary_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Auxiliary))));
end Create_Auxiliary;
-----------------
-- Create_Call --
-----------------
overriding function Create_Call
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Calls.Standard_Profile_L2_Call_Access is
begin
return
AMF.Standard_Profile_L2.Calls.Standard_Profile_L2_Call_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Call))));
end Create_Call;
-------------------
-- Create_Create --
-------------------
overriding function Create_Create
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Creates.Standard_Profile_L2_Create_Access is
begin
return
AMF.Standard_Profile_L2.Creates.Standard_Profile_L2_Create_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Create))));
end Create_Create;
-------------------
-- Create_Derive --
-------------------
overriding function Create_Derive
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Derives.Standard_Profile_L2_Derive_Access is
begin
return
AMF.Standard_Profile_L2.Derives.Standard_Profile_L2_Derive_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Derive))));
end Create_Derive;
--------------------
-- Create_Destroy --
--------------------
overriding function Create_Destroy
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Destroies.Standard_Profile_L2_Destroy_Access is
begin
return
AMF.Standard_Profile_L2.Destroies.Standard_Profile_L2_Destroy_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Destroy))));
end Create_Destroy;
---------------------
-- Create_Document --
---------------------
overriding function Create_Document
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Documents.Standard_Profile_L2_Document_Access is
begin
return
AMF.Standard_Profile_L2.Documents.Standard_Profile_L2_Document_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Document))));
end Create_Document;
-------------------
-- Create_Entity --
-------------------
overriding function Create_Entity
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Entities.Standard_Profile_L2_Entity_Access is
begin
return
AMF.Standard_Profile_L2.Entities.Standard_Profile_L2_Entity_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Entity))));
end Create_Entity;
-----------------------
-- Create_Executable --
-----------------------
overriding function Create_Executable
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Executables.Standard_Profile_L2_Executable_Access is
begin
return
AMF.Standard_Profile_L2.Executables.Standard_Profile_L2_Executable_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Executable))));
end Create_Executable;
------------------
-- Create_Focus --
------------------
overriding function Create_Focus
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Focuses.Standard_Profile_L2_Focus_Access is
begin
return
AMF.Standard_Profile_L2.Focuses.Standard_Profile_L2_Focus_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Focus))));
end Create_Focus;
----------------------
-- Create_Framework --
----------------------
overriding function Create_Framework
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Frameworks.Standard_Profile_L2_Framework_Access is
begin
return
AMF.Standard_Profile_L2.Frameworks.Standard_Profile_L2_Framework_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Framework))));
end Create_Framework;
----------------------
-- Create_Implement --
----------------------
overriding function Create_Implement
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Implements.Standard_Profile_L2_Implement_Access is
begin
return
AMF.Standard_Profile_L2.Implements.Standard_Profile_L2_Implement_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Implement))));
end Create_Implement;
---------------------------------
-- Create_Implementation_Class --
---------------------------------
overriding function Create_Implementation_Class
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Implementation_Classes.Standard_Profile_L2_Implementation_Class_Access is
begin
return
AMF.Standard_Profile_L2.Implementation_Classes.Standard_Profile_L2_Implementation_Class_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Implementation_Class))));
end Create_Implementation_Class;
------------------------
-- Create_Instantiate --
------------------------
overriding function Create_Instantiate
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Instantiates.Standard_Profile_L2_Instantiate_Access is
begin
return
AMF.Standard_Profile_L2.Instantiates.Standard_Profile_L2_Instantiate_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Instantiate))));
end Create_Instantiate;
--------------------
-- Create_Library --
--------------------
overriding function Create_Library
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Libraries.Standard_Profile_L2_Library_Access is
begin
return
AMF.Standard_Profile_L2.Libraries.Standard_Profile_L2_Library_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Library))));
end Create_Library;
----------------------
-- Create_Metaclass --
----------------------
overriding function Create_Metaclass
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Metaclasses.Standard_Profile_L2_Metaclass_Access is
begin
return
AMF.Standard_Profile_L2.Metaclasses.Standard_Profile_L2_Metaclass_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Metaclass))));
end Create_Metaclass;
--------------------------
-- Create_Model_Library --
--------------------------
overriding function Create_Model_Library
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Model_Libraries.Standard_Profile_L2_Model_Library_Access is
begin
return
AMF.Standard_Profile_L2.Model_Libraries.Standard_Profile_L2_Model_Library_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Model_Library))));
end Create_Model_Library;
--------------------
-- Create_Process --
--------------------
overriding function Create_Process
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Processes.Standard_Profile_L2_Process_Access is
begin
return
AMF.Standard_Profile_L2.Processes.Standard_Profile_L2_Process_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Process))));
end Create_Process;
------------------------
-- Create_Realization --
------------------------
overriding function Create_Realization
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Realizations.Standard_Profile_L2_Realization_Access is
begin
return
AMF.Standard_Profile_L2.Realizations.Standard_Profile_L2_Realization_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Realization))));
end Create_Realization;
-------------------
-- Create_Refine --
-------------------
overriding function Create_Refine
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Refines.Standard_Profile_L2_Refine_Access is
begin
return
AMF.Standard_Profile_L2.Refines.Standard_Profile_L2_Refine_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Refine))));
end Create_Refine;
---------------------------
-- Create_Responsibility --
---------------------------
overriding function Create_Responsibility
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Responsibilities.Standard_Profile_L2_Responsibility_Access is
begin
return
AMF.Standard_Profile_L2.Responsibilities.Standard_Profile_L2_Responsibility_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Responsibility))));
end Create_Responsibility;
-------------------
-- Create_Script --
-------------------
overriding function Create_Script
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Scripts.Standard_Profile_L2_Script_Access is
begin
return
AMF.Standard_Profile_L2.Scripts.Standard_Profile_L2_Script_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Script))));
end Create_Script;
-----------------
-- Create_Send --
-----------------
overriding function Create_Send
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Sends.Standard_Profile_L2_Send_Access is
begin
return
AMF.Standard_Profile_L2.Sends.Standard_Profile_L2_Send_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Send))));
end Create_Send;
--------------------
-- Create_Service --
--------------------
overriding function Create_Service
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Services.Standard_Profile_L2_Service_Access is
begin
return
AMF.Standard_Profile_L2.Services.Standard_Profile_L2_Service_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Service))));
end Create_Service;
-------------------
-- Create_Source --
-------------------
overriding function Create_Source
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Sources.Standard_Profile_L2_Source_Access is
begin
return
AMF.Standard_Profile_L2.Sources.Standard_Profile_L2_Source_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Source))));
end Create_Source;
--------------------------
-- Create_Specification --
--------------------------
overriding function Create_Specification
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Specifications.Standard_Profile_L2_Specification_Access is
begin
return
AMF.Standard_Profile_L2.Specifications.Standard_Profile_L2_Specification_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Specification))));
end Create_Specification;
----------------------
-- Create_Subsystem --
----------------------
overriding function Create_Subsystem
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Subsystems.Standard_Profile_L2_Subsystem_Access is
begin
return
AMF.Standard_Profile_L2.Subsystems.Standard_Profile_L2_Subsystem_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Subsystem))));
end Create_Subsystem;
------------------
-- Create_Trace --
------------------
overriding function Create_Trace
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Traces.Standard_Profile_L2_Trace_Access is
begin
return
AMF.Standard_Profile_L2.Traces.Standard_Profile_L2_Trace_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Trace))));
end Create_Trace;
-----------------
-- Create_Type --
-----------------
overriding function Create_Type
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Types.Standard_Profile_L2_Type_Access is
begin
return
AMF.Standard_Profile_L2.Types.Standard_Profile_L2_Type_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Type))));
end Create_Type;
--------------------
-- Create_Utility --
--------------------
overriding function Create_Utility
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Utilities.Standard_Profile_L2_Utility_Access is
begin
return
AMF.Standard_Profile_L2.Utilities.Standard_Profile_L2_Utility_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Utility))));
end Create_Utility;
end AMF.Internals.Factories.Standard_Profile_L2_Factories;
| true |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- Ada Modeling Framework --
-- --
-- Runtime Library Component --
-- --
------------------------------------------------------------------------------
-- --
-- Copyright © 2012, PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI> --
-- 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.Internals.Elements;
with AMF.Internals.Extents;
with AMF.Internals.Helpers;
with AMF.Internals.Links;
with AMF.Internals.Listener_Registry;
with AMF.Internals.Tables.Standard_Profile_L2_Metamodel;
with AMF.Internals.Tables.UML_Constructors;
package body AMF.Internals.Factories.Standard_Profile_L2_Factories is
-----------------
-- Constructor --
-----------------
function Constructor
(Extent : AMF.Internals.AMF_Extent)
return not null AMF.Factories.Factory_Access is
begin
return new Standard_Profile_L2_Factory'(Extent => Extent);
end Constructor;
-----------------------
-- Convert_To_String --
-----------------------
overriding function Convert_To_String
(Self : not null access Standard_Profile_L2_Factory;
Data_Type : not null access AMF.CMOF.Data_Types.CMOF_Data_Type'Class;
Value : League.Holders.Holder) return League.Strings.Universal_String is
begin
raise Program_Error;
return League.Strings.Empty_Universal_String;
end Convert_To_String;
------------
-- Create --
------------
overriding function Create
(Self : not null access Standard_Profile_L2_Factory;
Meta_Class : not null access AMF.CMOF.Classes.CMOF_Class'Class)
return not null AMF.Elements.Element_Access
is
MC : constant AMF.Internals.CMOF_Element
:= AMF.Internals.Elements.Element_Base'Class (Meta_Class.all).Element;
Element : AMF.Internals.AMF_Element;
begin
if MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Auxiliary then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Auxiliary;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Call then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Call;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Create then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Create;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Derive then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Derive;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Destroy then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Destroy;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Document then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Document;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Entity then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Entity;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Executable then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Executable;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Focus then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Focus;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Framework then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Framework;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Implement then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Implement;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Implementation_Class then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Implementation_Class;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Instantiate then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Instantiate;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Library then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Library;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Metaclass then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Metaclass;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Model_Library then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Model_Library;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Process then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Process;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Realization then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Realization;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Refine then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Refine;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Responsibility then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Responsibility;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Script then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Script;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Send then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Send;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Service then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Service;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Source then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Source;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Specification then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Specification;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Subsystem then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Subsystem;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Trace then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Trace;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Type then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Type;
elsif MC = AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Utility then
Element := AMF.Internals.Tables.UML_Constructors.Create_Standard_Profile_L2_Utility;
else
raise Program_Error;
end if;
AMF.Internals.Extents.Internal_Append (Self.Extent, Element);
AMF.Internals.Listener_Registry.Notify_Instance_Create
(AMF.Internals.Helpers.To_Element (Element));
return AMF.Internals.Helpers.To_Element (Element);
end Create;
------------------------
-- Create_From_String --
------------------------
overriding function Create_From_String
(Self : not null access Standard_Profile_L2_Factory;
Data_Type : not null access AMF.CMOF.Data_Types.CMOF_Data_Type'Class;
Image : League.Strings.Universal_String) return League.Holders.Holder is
begin
raise Program_Error;
return League.Holders.Empty_Holder;
end Create_From_String;
-----------------
-- Create_Link --
-----------------
overriding function Create_Link
(Self : not null access Standard_Profile_L2_Factory;
Association :
not null access AMF.CMOF.Associations.CMOF_Association'Class;
First_Element : not null AMF.Elements.Element_Access;
Second_Element : not null AMF.Elements.Element_Access)
return not null AMF.Links.Link_Access
is
pragma Unreferenced (Self);
begin
return
AMF.Internals.Links.Proxy
(AMF.Internals.Links.Create_Link
(AMF.Internals.Elements.Element_Base'Class
(Association.all).Element,
AMF.Internals.Helpers.To_Element (First_Element),
AMF.Internals.Helpers.To_Element (Second_Element)));
end Create_Link;
-----------------
-- Get_Package --
-----------------
overriding function Get_Package
(Self : not null access constant Standard_Profile_L2_Factory)
return AMF.CMOF.Packages.Collections.Set_Of_CMOF_Package
is
pragma Unreferenced (Self);
begin
return Result : AMF.CMOF.Packages.Collections.Set_Of_CMOF_Package do
Result.Add (Get_Package);
end return;
end Get_Package;
-----------------
-- Get_Package --
-----------------
function Get_Package return not null AMF.CMOF.Packages.CMOF_Package_Access is
begin
return
AMF.CMOF.Packages.CMOF_Package_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MM_Standard_Profile_L2_Standard_Profile_L2));
end Get_Package;
----------------------
-- Create_Auxiliary --
----------------------
overriding function Create_Auxiliary
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Auxiliaries.Standard_Profile_L2_Auxiliary_Access is
begin
return
AMF.Standard_Profile_L2.Auxiliaries.Standard_Profile_L2_Auxiliary_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Auxiliary))));
end Create_Auxiliary;
-----------------
-- Create_Call --
-----------------
overriding function Create_Call
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Calls.Standard_Profile_L2_Call_Access is
begin
return
AMF.Standard_Profile_L2.Calls.Standard_Profile_L2_Call_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Call))));
end Create_Call;
-------------------
-- Create_Create --
-------------------
overriding function Create_Create
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Creates.Standard_Profile_L2_Create_Access is
begin
return
AMF.Standard_Profile_L2.Creates.Standard_Profile_L2_Create_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Create))));
end Create_Create;
-------------------
-- Create_Derive --
-------------------
overriding function Create_Derive
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Derives.Standard_Profile_L2_Derive_Access is
begin
return
AMF.Standard_Profile_L2.Derives.Standard_Profile_L2_Derive_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Derive))));
end Create_Derive;
--------------------
-- Create_Destroy --
--------------------
overriding function Create_Destroy
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Destroies.Standard_Profile_L2_Destroy_Access is
begin
return
AMF.Standard_Profile_L2.Destroies.Standard_Profile_L2_Destroy_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Destroy))));
end Create_Destroy;
---------------------
-- Create_Document --
---------------------
overriding function Create_Document
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Documents.Standard_Profile_L2_Document_Access is
begin
return
AMF.Standard_Profile_L2.Documents.Standard_Profile_L2_Document_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Document))));
end Create_Document;
-------------------
-- Create_Entity --
-------------------
overriding function Create_Entity
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Entities.Standard_Profile_L2_Entity_Access is
begin
return
AMF.Standard_Profile_L2.Entities.Standard_Profile_L2_Entity_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Entity))));
end Create_Entity;
-----------------------
-- Create_Executable --
-----------------------
overriding function Create_Executable
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Executables.Standard_Profile_L2_Executable_Access is
begin
return
AMF.Standard_Profile_L2.Executables.Standard_Profile_L2_Executable_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Executable))));
end Create_Executable;
------------------
-- Create_Focus --
------------------
overriding function Create_Focus
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Focuses.Standard_Profile_L2_Focus_Access is
begin
return
AMF.Standard_Profile_L2.Focuses.Standard_Profile_L2_Focus_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Focus))));
end Create_Focus;
----------------------
-- Create_Framework --
----------------------
overriding function Create_Framework
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Frameworks.Standard_Profile_L2_Framework_Access is
begin
return
AMF.Standard_Profile_L2.Frameworks.Standard_Profile_L2_Framework_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Framework))));
end Create_Framework;
----------------------
-- Create_Implement --
----------------------
overriding function Create_Implement
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Implements.Standard_Profile_L2_Implement_Access is
begin
return
AMF.Standard_Profile_L2.Implements.Standard_Profile_L2_Implement_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Implement))));
end Create_Implement;
---------------------------------
-- Create_Implementation_Class --
---------------------------------
overriding function Create_Implementation_Class
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Implementation_Classes.Standard_Profile_L2_Implementation_Class_Access is
begin
return
AMF.Standard_Profile_L2.Implementation_Classes.Standard_Profile_L2_Implementation_Class_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Implementation_Class))));
end Create_Implementation_Class;
------------------------
-- Create_Instantiate --
------------------------
overriding function Create_Instantiate
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Instantiates.Standard_Profile_L2_Instantiate_Access is
begin
return
AMF.Standard_Profile_L2.Instantiates.Standard_Profile_L2_Instantiate_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Instantiate))));
end Create_Instantiate;
--------------------
-- Create_Library --
--------------------
overriding function Create_Library
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Libraries.Standard_Profile_L2_Library_Access is
begin
return
AMF.Standard_Profile_L2.Libraries.Standard_Profile_L2_Library_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Library))));
end Create_Library;
----------------------
-- Create_Metaclass --
----------------------
overriding function Create_Metaclass
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Metaclasses.Standard_Profile_L2_Metaclass_Access is
begin
return
AMF.Standard_Profile_L2.Metaclasses.Standard_Profile_L2_Metaclass_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Metaclass))));
end Create_Metaclass;
--------------------------
-- Create_Model_Library --
--------------------------
overriding function Create_Model_Library
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Model_Libraries.Standard_Profile_L2_Model_Library_Access is
begin
return
AMF.Standard_Profile_L2.Model_Libraries.Standard_Profile_L2_Model_Library_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Model_Library))));
end Create_Model_Library;
--------------------
-- Create_Process --
--------------------
overriding function Create_Process
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Processes.Standard_Profile_L2_Process_Access is
begin
return
AMF.Standard_Profile_L2.Processes.Standard_Profile_L2_Process_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Process))));
end Create_Process;
------------------------
-- Create_Realization --
------------------------
overriding function Create_Realization
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Realizations.Standard_Profile_L2_Realization_Access is
begin
return
AMF.Standard_Profile_L2.Realizations.Standard_Profile_L2_Realization_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Realization))));
end Create_Realization;
-------------------
-- Create_Refine --
-------------------
overriding function Create_Refine
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Refines.Standard_Profile_L2_Refine_Access is
begin
return
AMF.Standard_Profile_L2.Refines.Standard_Profile_L2_Refine_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Refine))));
end Create_Refine;
---------------------------
-- Create_Responsibility --
---------------------------
overriding function Create_Responsibility
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Responsibilities.Standard_Profile_L2_Responsibility_Access is
begin
return
AMF.Standard_Profile_L2.Responsibilities.Standard_Profile_L2_Responsibility_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Responsibility))));
end Create_Responsibility;
-------------------
-- Create_Script --
-------------------
overriding function Create_Script
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Scripts.Standard_Profile_L2_Script_Access is
begin
return
AMF.Standard_Profile_L2.Scripts.Standard_Profile_L2_Script_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Script))));
end Create_Script;
-----------------
-- Create_Send --
-----------------
overriding function Create_Send
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Sends.Standard_Profile_L2_Send_Access is
begin
return
AMF.Standard_Profile_L2.Sends.Standard_Profile_L2_Send_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Send))));
end Create_Send;
--------------------
-- Create_Service --
--------------------
overriding function Create_Service
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Services.Standard_Profile_L2_Service_Access is
begin
return
AMF.Standard_Profile_L2.Services.Standard_Profile_L2_Service_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Service))));
end Create_Service;
-------------------
-- Create_Source --
-------------------
overriding function Create_Source
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Sources.Standard_Profile_L2_Source_Access is
begin
return
AMF.Standard_Profile_L2.Sources.Standard_Profile_L2_Source_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Source))));
end Create_Source;
--------------------------
-- Create_Specification --
--------------------------
overriding function Create_Specification
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Specifications.Standard_Profile_L2_Specification_Access is
begin
return
AMF.Standard_Profile_L2.Specifications.Standard_Profile_L2_Specification_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Specification))));
end Create_Specification;
----------------------
-- Create_Subsystem --
----------------------
overriding function Create_Subsystem
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Subsystems.Standard_Profile_L2_Subsystem_Access is
begin
return
AMF.Standard_Profile_L2.Subsystems.Standard_Profile_L2_Subsystem_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Subsystem))));
end Create_Subsystem;
------------------
-- Create_Trace --
------------------
overriding function Create_Trace
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Traces.Standard_Profile_L2_Trace_Access is
begin
return
AMF.Standard_Profile_L2.Traces.Standard_Profile_L2_Trace_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Trace))));
end Create_Trace;
-----------------
-- Create_Type --
-----------------
overriding function Create_Type
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Types.Standard_Profile_L2_Type_Access is
begin
return
AMF.Standard_Profile_L2.Types.Standard_Profile_L2_Type_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Type))));
end Create_Type;
--------------------
-- Create_Utility --
--------------------
overriding function Create_Utility
(Self : not null access Standard_Profile_L2_Factory)
return AMF.Standard_Profile_L2.Utilities.Standard_Profile_L2_Utility_Access is
begin
return
AMF.Standard_Profile_L2.Utilities.Standard_Profile_L2_Utility_Access
(Self.Create
(AMF.CMOF.Classes.CMOF_Class_Access
(AMF.Internals.Helpers.To_Element
(AMF.Internals.Tables.Standard_Profile_L2_Metamodel.MC_Standard_Profile_L2_Utility))));
end Create_Utility;
end AMF.Internals.Factories.Standard_Profile_L2_Factories;
|
[
{
"context": "--\n-- Copyright 2018 The wookey project team <[email protected]>\n-- - Ryad Benadjila\n-- - Arnauld Michel",
"end": 64,
"score": 0.9999328851699829,
"start": 46,
"tag": "EMAIL",
"value": "[email protected]"
},
{
"context": "he wookey project team <[email protected]>\n-- - Ryad Benadjila\n-- - Arnauld Michelizza\n-- - Mathieu Renard",
"end": 91,
"score": 0.9965656995773315,
"start": 73,
"tag": "NAME",
"value": "Ryad Benadjila"
},
{
"context": "[email protected]>\n-- - Ryad Benadjila\n-- - Arnauld Michelizza\n-- - Mathieu Renard\n-- - Philippe Thierry\n--",
"end": 118,
"score": 0.9770797491073608,
"start": 99,
"tag": "NAME",
"value": "Arnauld Michelizza"
},
{
"context": "ad Benadjila\n-- - Arnauld Michelizza\n-- - Mathieu Renard\n-- - Philippe Thierry\n-- - Philippe Trebuchet",
"end": 141,
"score": 0.8971492648124695,
"start": 126,
"tag": "NAME",
"value": "Mathieu Renard"
},
{
"context": " Arnauld Michelizza\n-- - Mathieu Renard\n-- - Philippe Thierry\n-- - Philippe Trebuchet\n--\n-- Licensed under th",
"end": 165,
"score": 0.9998294711112976,
"start": 149,
"tag": "NAME",
"value": "Philippe Thierry"
},
{
"context": " - Mathieu Renard\n-- - Philippe Thierry\n-- - Philippe Trebuchet\n--\n-- Licensed under the Apache License, Version ",
"end": 191,
"score": 0.9998639225959778,
"start": 173,
"tag": "NAME",
"value": "Philippe Trebuchet"
},
{
"context": "FB0#);\n\n LAR_ENABLE_WRITE_KEY : constant := 16#C5AC_CE55#;\n\n -------------------------------------------",
"end": 5875,
"score": 0.8465232253074646,
"start": 5867,
"tag": "KEY",
"value": "5AC_CE55"
}
] |
src/arch/socs/stm32f429/soc-dwt.ads
|
PThierry/ewok-kernel
| 65 |
--
-- Copyright 2018 The wookey project team <[email protected]>
-- - Ryad Benadjila
-- - Arnauld Michelizza
-- - Mathieu Renard
-- - Philippe Thierry
-- - Philippe Trebuchet
--
-- 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 system;
package soc.dwt
with spark_mode => on
is
pragma assertion_policy (pre => IGNORE, post => IGNORE, assert => IGNORE);
-----------------------------------------------------
-- SPARK ghost functions and procedures
-----------------------------------------------------
function init_is_done return boolean;
function check_32bits_overflow return boolean
with ghost;
--------------------------------------------------
-- The Data Watchpoint and Trace unit (DWT) --
-- (Cf. ARMv7-M Arch. Ref. Manual, C1.8, p.779) --
--------------------------------------------------
-- Reset the DWT-based timer
procedure reset_timer
with
pre => not init_is_done;
-- Start the DWT timer. The register is counting the number of CPU cycles
procedure start_timer
with
pre => not init_is_done;
-- Stop the DWT timer
procedure stop_timer
with
pre => init_is_done;
-- Periodically check the DWT CYCCNT register for overflow. This permit
-- to detect each time an overflow happends and increment the
-- overflow counter to keep a valid 64 bit time value
-- precondition check that the package has been initialized and that
-- dwt_loop doesn't overflow
procedure ovf_manage
with
--pre => check_32bits_overflow,
inline_always;
-- Initialize the DWT module
procedure init
with
pre => not init_is_done;
-- Get the DWT timer (without overflow support, keep a 32bit value)
procedure get_cycles_32(cycles : out unsigned_32)
with
inline,
pre => init_is_done;
-- Get the DWT timer with overflow support. permits linear measurement
-- on 64 bits cycles time window (approx. 1270857 days)
procedure get_cycles (cycles : out unsigned_64)
with
pre => init_is_done;
procedure get_microseconds (micros : out unsigned_64)
with
inline,
pre => init_is_done;
procedure get_milliseconds (milli : out unsigned_64)
with
inline,
pre => init_is_done;
private
--
-- Control register
--
type t_DWT_CTRL is record
CYCCNTENA : boolean; -- Enables CYCCNT
POSTPRESET : bits_4;
POSTINIT : bits_4;
CYCTAP : bit;
SYNCTAP : bits_2;
PCSAMPLENA : bit;
reserved_13_15 : bits_3;
EXCTRCENA : bit;
CPIEVTENA : bit;
EXCEVTENA : bit;
SLEEPEVTENA : bit;
LSUEVTENA : bit;
FOLDEVTENA : bit;
CYCEVTENA : bit;
reserved_23 : bit;
NOPRFCNT : bit;
NOCYCCNT : bit;
NOEXTTRIG : bit;
NOTRCPKT : bit;
NUMCOMP : bits_4;
end record
with size => 32;
for t_DWT_CTRL use record
CYCCNTENA at 0 range 0 .. 0;
POSTPRESET at 0 range 1 .. 4;
POSTINIT at 0 range 5 .. 8;
CYCTAP at 0 range 9 .. 9;
SYNCTAP at 0 range 10 .. 11;
PCSAMPLENA at 0 range 12 .. 12;
reserved_13_15 at 0 range 13 .. 15;
EXCTRCENA at 0 range 16 .. 16;
CPIEVTENA at 0 range 17 .. 17;
EXCEVTENA at 0 range 18 .. 18;
SLEEPEVTENA at 0 range 19 .. 19;
LSUEVTENA at 0 range 20 .. 20;
FOLDEVTENA at 0 range 21 .. 21;
CYCEVTENA at 0 range 22 .. 22;
reserved_23 at 0 range 23 .. 23;
NOPRFCNT at 0 range 24 .. 24;
NOCYCCNT at 0 range 25 .. 25;
NOEXTTRIG at 0 range 26 .. 26;
NOTRCPKT at 0 range 27 .. 27;
NUMCOMP at 0 range 28 .. 31;
end record;
DWT_CONTROL : t_DWT_CTRL
with
import,
volatile,
address => system'to_address (16#E000_1000#);
--
-- CYCCNT register
--
subtype t_DWT_CYCCNT is unsigned_32;
DWT_CYCCNT : t_DWT_CYCCNT
with
import,
volatile,
address => system'to_address (16#E000_1004#);
-- Specify the package state. Set to true by init().
init_done : boolean := false;
--
-- DWT CYCCNT register overflow counting
-- This permit to support incremental getcycle
-- with a time window of 64bits length (instead of 32bits)
--
dwt_loops : unsigned_64;
--
-- Last measured DWT CYCCNT. Compared with current measurement,
-- we can detect if the register has generated an overflow or not
--
last_dwt : unsigned_32;
--------------------------------------------------
-- CoreSight Software Lock registers --
-- Ref.: --
-- - ARMv7-M Arch. Ref. Manual, D1.1, p.826) --
-- - CoreSight Arch. Spec. B2.5.9, p.48 --
--------------------------------------------------
--
-- Lock Access Register (LAR)
--
LAR : unsigned_32
with
import,
volatile,
address => system'to_address (16#E000_1FB0#);
LAR_ENABLE_WRITE_KEY : constant := 16#C5AC_CE55#;
---------------------------------------------------------
-- Debug Exception and Monitor Control Register, DEMCR --
-- (Cf. ARMv7-M Arch. Ref. Manual, C1.6.5, p.765) --
---------------------------------------------------------
type t_DEMCR is record
VC_CORERESET : boolean; -- Reset Vector Catch enabled
reserved_1_3 : bits_3;
VC_MMERR : boolean; -- Debug trap on a MemManage exception
VC_NOCPERR : boolean;
-- Debug trap on a UsageFault exception caused by an access to a
-- Coprocessor
VC_CHKERR : boolean;
-- Debug trap on a UsageFault exception caused by a checking error
VC_STATERR : boolean;
-- Debug trap on a UsageFault exception caused by a state information
-- error
VC_BUSERR : boolean; -- Debug trap on a BusFault exception
VC_INTERR : boolean;
-- Debug trap on a fault occurring during exception entry or exception
-- return
VC_HARDERR : boolean; -- Debug trap on a HardFault exception
reserved_11_15 : bits_5;
MON_EN : boolean; -- DebugMonitor exception enabled
MON_PEND : boolean; -- Sets or clears the pending state of the
-- DebugMonitor exception
MON_STEP : boolean; -- Step the processor
MON_REQ : boolean; -- DebugMonitor semaphore bit
reserved_20_23 : bits_4;
TRCENA : boolean; -- DWT and ITM units enabled
end record
with size => 32;
for t_DEMCR use record
VC_CORERESET at 0 range 0 .. 0;
reserved_1_3 at 0 range 1 .. 3;
VC_MMERR at 0 range 4 .. 4;
VC_NOCPERR at 0 range 5 .. 5;
VC_CHKERR at 0 range 6 .. 6;
VC_STATERR at 0 range 7 .. 7;
VC_BUSERR at 0 range 8 .. 8;
VC_INTERR at 0 range 9 .. 9;
VC_HARDERR at 0 range 10 .. 10;
reserved_11_15 at 0 range 11 .. 15;
MON_EN at 0 range 16 .. 16;
MON_PEND at 0 range 17 .. 17;
MON_STEP at 0 range 18 .. 18;
MON_REQ at 0 range 19 .. 19;
reserved_20_23 at 0 range 20 .. 23;
TRCENA at 0 range 24 .. 24;
end record;
DEMCR : t_DEMCR
with import,
volatile,
address => system'to_address (16#E000_EDFC#);
end soc.dwt;
|
25957
|
--
-- Copyright 2018 The wookey project team <<EMAIL>>
-- - <NAME>
-- - <NAME>
-- - <NAME>
-- - <NAME>
-- - <NAME>
--
-- 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 system;
package soc.dwt
with spark_mode => on
is
pragma assertion_policy (pre => IGNORE, post => IGNORE, assert => IGNORE);
-----------------------------------------------------
-- SPARK ghost functions and procedures
-----------------------------------------------------
function init_is_done return boolean;
function check_32bits_overflow return boolean
with ghost;
--------------------------------------------------
-- The Data Watchpoint and Trace unit (DWT) --
-- (Cf. ARMv7-M Arch. Ref. Manual, C1.8, p.779) --
--------------------------------------------------
-- Reset the DWT-based timer
procedure reset_timer
with
pre => not init_is_done;
-- Start the DWT timer. The register is counting the number of CPU cycles
procedure start_timer
with
pre => not init_is_done;
-- Stop the DWT timer
procedure stop_timer
with
pre => init_is_done;
-- Periodically check the DWT CYCCNT register for overflow. This permit
-- to detect each time an overflow happends and increment the
-- overflow counter to keep a valid 64 bit time value
-- precondition check that the package has been initialized and that
-- dwt_loop doesn't overflow
procedure ovf_manage
with
--pre => check_32bits_overflow,
inline_always;
-- Initialize the DWT module
procedure init
with
pre => not init_is_done;
-- Get the DWT timer (without overflow support, keep a 32bit value)
procedure get_cycles_32(cycles : out unsigned_32)
with
inline,
pre => init_is_done;
-- Get the DWT timer with overflow support. permits linear measurement
-- on 64 bits cycles time window (approx. 1270857 days)
procedure get_cycles (cycles : out unsigned_64)
with
pre => init_is_done;
procedure get_microseconds (micros : out unsigned_64)
with
inline,
pre => init_is_done;
procedure get_milliseconds (milli : out unsigned_64)
with
inline,
pre => init_is_done;
private
--
-- Control register
--
type t_DWT_CTRL is record
CYCCNTENA : boolean; -- Enables CYCCNT
POSTPRESET : bits_4;
POSTINIT : bits_4;
CYCTAP : bit;
SYNCTAP : bits_2;
PCSAMPLENA : bit;
reserved_13_15 : bits_3;
EXCTRCENA : bit;
CPIEVTENA : bit;
EXCEVTENA : bit;
SLEEPEVTENA : bit;
LSUEVTENA : bit;
FOLDEVTENA : bit;
CYCEVTENA : bit;
reserved_23 : bit;
NOPRFCNT : bit;
NOCYCCNT : bit;
NOEXTTRIG : bit;
NOTRCPKT : bit;
NUMCOMP : bits_4;
end record
with size => 32;
for t_DWT_CTRL use record
CYCCNTENA at 0 range 0 .. 0;
POSTPRESET at 0 range 1 .. 4;
POSTINIT at 0 range 5 .. 8;
CYCTAP at 0 range 9 .. 9;
SYNCTAP at 0 range 10 .. 11;
PCSAMPLENA at 0 range 12 .. 12;
reserved_13_15 at 0 range 13 .. 15;
EXCTRCENA at 0 range 16 .. 16;
CPIEVTENA at 0 range 17 .. 17;
EXCEVTENA at 0 range 18 .. 18;
SLEEPEVTENA at 0 range 19 .. 19;
LSUEVTENA at 0 range 20 .. 20;
FOLDEVTENA at 0 range 21 .. 21;
CYCEVTENA at 0 range 22 .. 22;
reserved_23 at 0 range 23 .. 23;
NOPRFCNT at 0 range 24 .. 24;
NOCYCCNT at 0 range 25 .. 25;
NOEXTTRIG at 0 range 26 .. 26;
NOTRCPKT at 0 range 27 .. 27;
NUMCOMP at 0 range 28 .. 31;
end record;
DWT_CONTROL : t_DWT_CTRL
with
import,
volatile,
address => system'to_address (16#E000_1000#);
--
-- CYCCNT register
--
subtype t_DWT_CYCCNT is unsigned_32;
DWT_CYCCNT : t_DWT_CYCCNT
with
import,
volatile,
address => system'to_address (16#E000_1004#);
-- Specify the package state. Set to true by init().
init_done : boolean := false;
--
-- DWT CYCCNT register overflow counting
-- This permit to support incremental getcycle
-- with a time window of 64bits length (instead of 32bits)
--
dwt_loops : unsigned_64;
--
-- Last measured DWT CYCCNT. Compared with current measurement,
-- we can detect if the register has generated an overflow or not
--
last_dwt : unsigned_32;
--------------------------------------------------
-- CoreSight Software Lock registers --
-- Ref.: --
-- - ARMv7-M Arch. Ref. Manual, D1.1, p.826) --
-- - CoreSight Arch. Spec. B2.5.9, p.48 --
--------------------------------------------------
--
-- Lock Access Register (LAR)
--
LAR : unsigned_32
with
import,
volatile,
address => system'to_address (16#E000_1FB0#);
LAR_ENABLE_WRITE_KEY : constant := 16#C<KEY>#;
---------------------------------------------------------
-- Debug Exception and Monitor Control Register, DEMCR --
-- (Cf. ARMv7-M Arch. Ref. Manual, C1.6.5, p.765) --
---------------------------------------------------------
type t_DEMCR is record
VC_CORERESET : boolean; -- Reset Vector Catch enabled
reserved_1_3 : bits_3;
VC_MMERR : boolean; -- Debug trap on a MemManage exception
VC_NOCPERR : boolean;
-- Debug trap on a UsageFault exception caused by an access to a
-- Coprocessor
VC_CHKERR : boolean;
-- Debug trap on a UsageFault exception caused by a checking error
VC_STATERR : boolean;
-- Debug trap on a UsageFault exception caused by a state information
-- error
VC_BUSERR : boolean; -- Debug trap on a BusFault exception
VC_INTERR : boolean;
-- Debug trap on a fault occurring during exception entry or exception
-- return
VC_HARDERR : boolean; -- Debug trap on a HardFault exception
reserved_11_15 : bits_5;
MON_EN : boolean; -- DebugMonitor exception enabled
MON_PEND : boolean; -- Sets or clears the pending state of the
-- DebugMonitor exception
MON_STEP : boolean; -- Step the processor
MON_REQ : boolean; -- DebugMonitor semaphore bit
reserved_20_23 : bits_4;
TRCENA : boolean; -- DWT and ITM units enabled
end record
with size => 32;
for t_DEMCR use record
VC_CORERESET at 0 range 0 .. 0;
reserved_1_3 at 0 range 1 .. 3;
VC_MMERR at 0 range 4 .. 4;
VC_NOCPERR at 0 range 5 .. 5;
VC_CHKERR at 0 range 6 .. 6;
VC_STATERR at 0 range 7 .. 7;
VC_BUSERR at 0 range 8 .. 8;
VC_INTERR at 0 range 9 .. 9;
VC_HARDERR at 0 range 10 .. 10;
reserved_11_15 at 0 range 11 .. 15;
MON_EN at 0 range 16 .. 16;
MON_PEND at 0 range 17 .. 17;
MON_STEP at 0 range 18 .. 18;
MON_REQ at 0 range 19 .. 19;
reserved_20_23 at 0 range 20 .. 23;
TRCENA at 0 range 24 .. 24;
end record;
DEMCR : t_DEMCR
with import,
volatile,
address => system'to_address (16#E000_EDFC#);
end soc.dwt;
| true |
--
-- Copyright 2018 The wookey project team <PI:EMAIL:<EMAIL>END_PI>
-- - PI:NAME:<NAME>END_PI
-- - PI:NAME:<NAME>END_PI
-- - PI:NAME:<NAME>END_PI
-- - PI:NAME:<NAME>END_PI
-- - PI:NAME:<NAME>END_PI
--
-- 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 system;
package soc.dwt
with spark_mode => on
is
pragma assertion_policy (pre => IGNORE, post => IGNORE, assert => IGNORE);
-----------------------------------------------------
-- SPARK ghost functions and procedures
-----------------------------------------------------
function init_is_done return boolean;
function check_32bits_overflow return boolean
with ghost;
--------------------------------------------------
-- The Data Watchpoint and Trace unit (DWT) --
-- (Cf. ARMv7-M Arch. Ref. Manual, C1.8, p.779) --
--------------------------------------------------
-- Reset the DWT-based timer
procedure reset_timer
with
pre => not init_is_done;
-- Start the DWT timer. The register is counting the number of CPU cycles
procedure start_timer
with
pre => not init_is_done;
-- Stop the DWT timer
procedure stop_timer
with
pre => init_is_done;
-- Periodically check the DWT CYCCNT register for overflow. This permit
-- to detect each time an overflow happends and increment the
-- overflow counter to keep a valid 64 bit time value
-- precondition check that the package has been initialized and that
-- dwt_loop doesn't overflow
procedure ovf_manage
with
--pre => check_32bits_overflow,
inline_always;
-- Initialize the DWT module
procedure init
with
pre => not init_is_done;
-- Get the DWT timer (without overflow support, keep a 32bit value)
procedure get_cycles_32(cycles : out unsigned_32)
with
inline,
pre => init_is_done;
-- Get the DWT timer with overflow support. permits linear measurement
-- on 64 bits cycles time window (approx. 1270857 days)
procedure get_cycles (cycles : out unsigned_64)
with
pre => init_is_done;
procedure get_microseconds (micros : out unsigned_64)
with
inline,
pre => init_is_done;
procedure get_milliseconds (milli : out unsigned_64)
with
inline,
pre => init_is_done;
private
--
-- Control register
--
type t_DWT_CTRL is record
CYCCNTENA : boolean; -- Enables CYCCNT
POSTPRESET : bits_4;
POSTINIT : bits_4;
CYCTAP : bit;
SYNCTAP : bits_2;
PCSAMPLENA : bit;
reserved_13_15 : bits_3;
EXCTRCENA : bit;
CPIEVTENA : bit;
EXCEVTENA : bit;
SLEEPEVTENA : bit;
LSUEVTENA : bit;
FOLDEVTENA : bit;
CYCEVTENA : bit;
reserved_23 : bit;
NOPRFCNT : bit;
NOCYCCNT : bit;
NOEXTTRIG : bit;
NOTRCPKT : bit;
NUMCOMP : bits_4;
end record
with size => 32;
for t_DWT_CTRL use record
CYCCNTENA at 0 range 0 .. 0;
POSTPRESET at 0 range 1 .. 4;
POSTINIT at 0 range 5 .. 8;
CYCTAP at 0 range 9 .. 9;
SYNCTAP at 0 range 10 .. 11;
PCSAMPLENA at 0 range 12 .. 12;
reserved_13_15 at 0 range 13 .. 15;
EXCTRCENA at 0 range 16 .. 16;
CPIEVTENA at 0 range 17 .. 17;
EXCEVTENA at 0 range 18 .. 18;
SLEEPEVTENA at 0 range 19 .. 19;
LSUEVTENA at 0 range 20 .. 20;
FOLDEVTENA at 0 range 21 .. 21;
CYCEVTENA at 0 range 22 .. 22;
reserved_23 at 0 range 23 .. 23;
NOPRFCNT at 0 range 24 .. 24;
NOCYCCNT at 0 range 25 .. 25;
NOEXTTRIG at 0 range 26 .. 26;
NOTRCPKT at 0 range 27 .. 27;
NUMCOMP at 0 range 28 .. 31;
end record;
DWT_CONTROL : t_DWT_CTRL
with
import,
volatile,
address => system'to_address (16#E000_1000#);
--
-- CYCCNT register
--
subtype t_DWT_CYCCNT is unsigned_32;
DWT_CYCCNT : t_DWT_CYCCNT
with
import,
volatile,
address => system'to_address (16#E000_1004#);
-- Specify the package state. Set to true by init().
init_done : boolean := false;
--
-- DWT CYCCNT register overflow counting
-- This permit to support incremental getcycle
-- with a time window of 64bits length (instead of 32bits)
--
dwt_loops : unsigned_64;
--
-- Last measured DWT CYCCNT. Compared with current measurement,
-- we can detect if the register has generated an overflow or not
--
last_dwt : unsigned_32;
--------------------------------------------------
-- CoreSight Software Lock registers --
-- Ref.: --
-- - ARMv7-M Arch. Ref. Manual, D1.1, p.826) --
-- - CoreSight Arch. Spec. B2.5.9, p.48 --
--------------------------------------------------
--
-- Lock Access Register (LAR)
--
LAR : unsigned_32
with
import,
volatile,
address => system'to_address (16#E000_1FB0#);
LAR_ENABLE_WRITE_KEY : constant := 16#CPI:KEY:<KEY>END_PI#;
---------------------------------------------------------
-- Debug Exception and Monitor Control Register, DEMCR --
-- (Cf. ARMv7-M Arch. Ref. Manual, C1.6.5, p.765) --
---------------------------------------------------------
type t_DEMCR is record
VC_CORERESET : boolean; -- Reset Vector Catch enabled
reserved_1_3 : bits_3;
VC_MMERR : boolean; -- Debug trap on a MemManage exception
VC_NOCPERR : boolean;
-- Debug trap on a UsageFault exception caused by an access to a
-- Coprocessor
VC_CHKERR : boolean;
-- Debug trap on a UsageFault exception caused by a checking error
VC_STATERR : boolean;
-- Debug trap on a UsageFault exception caused by a state information
-- error
VC_BUSERR : boolean; -- Debug trap on a BusFault exception
VC_INTERR : boolean;
-- Debug trap on a fault occurring during exception entry or exception
-- return
VC_HARDERR : boolean; -- Debug trap on a HardFault exception
reserved_11_15 : bits_5;
MON_EN : boolean; -- DebugMonitor exception enabled
MON_PEND : boolean; -- Sets or clears the pending state of the
-- DebugMonitor exception
MON_STEP : boolean; -- Step the processor
MON_REQ : boolean; -- DebugMonitor semaphore bit
reserved_20_23 : bits_4;
TRCENA : boolean; -- DWT and ITM units enabled
end record
with size => 32;
for t_DEMCR use record
VC_CORERESET at 0 range 0 .. 0;
reserved_1_3 at 0 range 1 .. 3;
VC_MMERR at 0 range 4 .. 4;
VC_NOCPERR at 0 range 5 .. 5;
VC_CHKERR at 0 range 6 .. 6;
VC_STATERR at 0 range 7 .. 7;
VC_BUSERR at 0 range 8 .. 8;
VC_INTERR at 0 range 9 .. 9;
VC_HARDERR at 0 range 10 .. 10;
reserved_11_15 at 0 range 11 .. 15;
MON_EN at 0 range 16 .. 16;
MON_PEND at 0 range 17 .. 17;
MON_STEP at 0 range 18 .. 18;
MON_REQ at 0 range 19 .. 19;
reserved_20_23 at 0 range 20 .. 23;
TRCENA at 0 range 24 .. 24;
end record;
DEMCR : t_DEMCR
with import,
volatile,
address => system'to_address (16#E000_EDFC#);
end soc.dwt;
|
[
{
"context": " --\n-- Copyright (C) 2016-2017 Fabien Chouteau --\n-- ",
"end": 379,
"score": 0.9998598694801331,
"start": 364,
"tag": "NAME",
"value": "Fabien Chouteau"
}
] |
src/GUI/dialog_window.ads
|
Fabien-Chouteau/coffee-clock
| 7 |
-------------------------------------------------------------------------------
-- --
-- Coffee Clock --
-- --
-- Copyright (C) 2016-2017 Fabien Chouteau --
-- --
-- Coffee Clock 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. --
-- --
-- Coffee Clock 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 We Noise Maker. If not, see <http://www.gnu.org/licenses/>. --
-- --
-------------------------------------------------------------------------------
with Giza.Window;
with Giza.Widget.Button;
with Giza.Widget.Tiles;
with Giza.Widget.Frame;
use Giza.Widget;
with Giza.Image;
with Giza.Events; use Giza.Events;
with Giza.Types; use Giza.Types;
package Dialog_Window is
type Answer_T is (Unknown_Answer, Answer_Top, Answer_Bottom);
subtype Parent is Giza.Window.Instance;
type Instance (Panel_Size : Natural) is
abstract new Parent with private;
subtype Class is Instance'Class;
type Ref is access all Class;
overriding
procedure On_Init (This : in out Instance);
overriding
function On_Position_Event
(This : in out Instance;
Evt : Position_Event_Ref;
Pos : Point_T) return Boolean;
overriding
function Get_Size (This : Instance) return Size_T;
function Get_Answer (This : Instance) return Answer_T;
procedure Clear_Answer (This : in out Instance);
procedure Set_Top_Image (This : in out Instance;
Img : Giza.Image.Ref);
procedure Set_Icon_Image (This : in out Instance;
Img : Giza.Image.Ref);
procedure Set_Bottom_Image (This : in out Instance;
Img : Giza.Image.Ref);
private
type Instance (Panel_Size : Natural) is
abstract new Parent with record
Top_Btn, Bottom_Btn : aliased Button.Instance;
Icon : aliased Frame.Instance;
Tile : aliased Tiles.Instance (3, Tiles.Top_Down);
Answer : Answer_T := Unknown_Answer;
end record;
end Dialog_Window;
|
23415
|
-------------------------------------------------------------------------------
-- --
-- Coffee Clock --
-- --
-- Copyright (C) 2016-2017 <NAME> --
-- --
-- Coffee Clock 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. --
-- --
-- Coffee Clock 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 We Noise Maker. If not, see <http://www.gnu.org/licenses/>. --
-- --
-------------------------------------------------------------------------------
with Giza.Window;
with Giza.Widget.Button;
with Giza.Widget.Tiles;
with Giza.Widget.Frame;
use Giza.Widget;
with Giza.Image;
with Giza.Events; use Giza.Events;
with Giza.Types; use Giza.Types;
package Dialog_Window is
type Answer_T is (Unknown_Answer, Answer_Top, Answer_Bottom);
subtype Parent is Giza.Window.Instance;
type Instance (Panel_Size : Natural) is
abstract new Parent with private;
subtype Class is Instance'Class;
type Ref is access all Class;
overriding
procedure On_Init (This : in out Instance);
overriding
function On_Position_Event
(This : in out Instance;
Evt : Position_Event_Ref;
Pos : Point_T) return Boolean;
overriding
function Get_Size (This : Instance) return Size_T;
function Get_Answer (This : Instance) return Answer_T;
procedure Clear_Answer (This : in out Instance);
procedure Set_Top_Image (This : in out Instance;
Img : Giza.Image.Ref);
procedure Set_Icon_Image (This : in out Instance;
Img : Giza.Image.Ref);
procedure Set_Bottom_Image (This : in out Instance;
Img : Giza.Image.Ref);
private
type Instance (Panel_Size : Natural) is
abstract new Parent with record
Top_Btn, Bottom_Btn : aliased Button.Instance;
Icon : aliased Frame.Instance;
Tile : aliased Tiles.Instance (3, Tiles.Top_Down);
Answer : Answer_T := Unknown_Answer;
end record;
end Dialog_Window;
| true |
-------------------------------------------------------------------------------
-- --
-- Coffee Clock --
-- --
-- Copyright (C) 2016-2017 PI:NAME:<NAME>END_PI --
-- --
-- Coffee Clock 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. --
-- --
-- Coffee Clock 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 We Noise Maker. If not, see <http://www.gnu.org/licenses/>. --
-- --
-------------------------------------------------------------------------------
with Giza.Window;
with Giza.Widget.Button;
with Giza.Widget.Tiles;
with Giza.Widget.Frame;
use Giza.Widget;
with Giza.Image;
with Giza.Events; use Giza.Events;
with Giza.Types; use Giza.Types;
package Dialog_Window is
type Answer_T is (Unknown_Answer, Answer_Top, Answer_Bottom);
subtype Parent is Giza.Window.Instance;
type Instance (Panel_Size : Natural) is
abstract new Parent with private;
subtype Class is Instance'Class;
type Ref is access all Class;
overriding
procedure On_Init (This : in out Instance);
overriding
function On_Position_Event
(This : in out Instance;
Evt : Position_Event_Ref;
Pos : Point_T) return Boolean;
overriding
function Get_Size (This : Instance) return Size_T;
function Get_Answer (This : Instance) return Answer_T;
procedure Clear_Answer (This : in out Instance);
procedure Set_Top_Image (This : in out Instance;
Img : Giza.Image.Ref);
procedure Set_Icon_Image (This : in out Instance;
Img : Giza.Image.Ref);
procedure Set_Bottom_Image (This : in out Instance;
Img : Giza.Image.Ref);
private
type Instance (Panel_Size : Natural) is
abstract new Parent with record
Top_Btn, Bottom_Btn : aliased Button.Instance;
Icon : aliased Frame.Instance;
Tile : aliased Tiles.Instance (3, Tiles.Top_Down);
Answer : Answer_T := Unknown_Answer;
end record;
end Dialog_Window;
|
[
{
"context": "-- MIT License\n--\n-- Copyright (c) 2021 Glen Cornell <[email protected]>\n--\n-- Permission is he",
"end": 52,
"score": 0.9998818635940552,
"start": 40,
"tag": "NAME",
"value": "Glen Cornell"
},
{
"context": "IT License\n--\n-- Copyright (c) 2021 Glen Cornell <[email protected]>\n--\n-- Permission is hereby granted, free of char",
"end": 78,
"score": 0.9999343752861023,
"start": 54,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
examples/bcm_filtered_reader/bcm_filtered_reader.adb
|
glencornell/ada-socketcan
| 2 |
-- MIT License
--
-- Copyright (c) 2021 Glen Cornell <[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 Sockets.Can.Broadcast_Manager;
with Sockets.Can_Frame;
with Create_Can_Frame;
with Print_Can_Frame;
procedure Bcm_Filtered_Reader is
If_Name : constant String := "vcan0";
Unused_C : Character;
Bcm : Sockets.Can.Broadcast_Manager.Broadcast_Manager_Type;
task type T is
entry Start;
entry Stop;
end T;
task body T is
Terminated : Boolean := False;
Frame : Sockets.Can_Frame.Can_Frame;
begin
accept Start;
while not Terminated loop
Bcm.Receive_Can_Frame (Frame);
Print_Can_Frame (Frame);
select
accept Stop do
Terminated := True;
end Stop;
or
delay 0.1;
end select;
end loop;
end T;
Updater : T;
begin
Bcm.Create (If_Name);
Bcm.Add_Receive_Filter (Item => Create_Can_Frame(Can_Id => 16#20#, Data => (1 => 16#FF#)),
Interval => 1.0);
Bcm.Add_Receive_Filter (Item => Create_Can_Frame(Can_Id => 16#30#, Data => (1 => 16#FF#)),
Interval => 1.0);
Ada.Text_Io.Put_Line ("Press any key to stop");
Updater.Start;
Ada.Text_Io.Get (Unused_C);
Updater.Stop;
end Bcm_Filtered_Reader;
|
6489
|
-- MIT License
--
-- Copyright (c) 2021 <NAME> <<EMAIL>>
--
-- 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 Sockets.Can.Broadcast_Manager;
with Sockets.Can_Frame;
with Create_Can_Frame;
with Print_Can_Frame;
procedure Bcm_Filtered_Reader is
If_Name : constant String := "vcan0";
Unused_C : Character;
Bcm : Sockets.Can.Broadcast_Manager.Broadcast_Manager_Type;
task type T is
entry Start;
entry Stop;
end T;
task body T is
Terminated : Boolean := False;
Frame : Sockets.Can_Frame.Can_Frame;
begin
accept Start;
while not Terminated loop
Bcm.Receive_Can_Frame (Frame);
Print_Can_Frame (Frame);
select
accept Stop do
Terminated := True;
end Stop;
or
delay 0.1;
end select;
end loop;
end T;
Updater : T;
begin
Bcm.Create (If_Name);
Bcm.Add_Receive_Filter (Item => Create_Can_Frame(Can_Id => 16#20#, Data => (1 => 16#FF#)),
Interval => 1.0);
Bcm.Add_Receive_Filter (Item => Create_Can_Frame(Can_Id => 16#30#, Data => (1 => 16#FF#)),
Interval => 1.0);
Ada.Text_Io.Put_Line ("Press any key to stop");
Updater.Start;
Ada.Text_Io.Get (Unused_C);
Updater.Stop;
end Bcm_Filtered_Reader;
| true |
-- MIT License
--
-- Copyright (c) 2021 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
--
-- 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 Sockets.Can.Broadcast_Manager;
with Sockets.Can_Frame;
with Create_Can_Frame;
with Print_Can_Frame;
procedure Bcm_Filtered_Reader is
If_Name : constant String := "vcan0";
Unused_C : Character;
Bcm : Sockets.Can.Broadcast_Manager.Broadcast_Manager_Type;
task type T is
entry Start;
entry Stop;
end T;
task body T is
Terminated : Boolean := False;
Frame : Sockets.Can_Frame.Can_Frame;
begin
accept Start;
while not Terminated loop
Bcm.Receive_Can_Frame (Frame);
Print_Can_Frame (Frame);
select
accept Stop do
Terminated := True;
end Stop;
or
delay 0.1;
end select;
end loop;
end T;
Updater : T;
begin
Bcm.Create (If_Name);
Bcm.Add_Receive_Filter (Item => Create_Can_Frame(Can_Id => 16#20#, Data => (1 => 16#FF#)),
Interval => 1.0);
Bcm.Add_Receive_Filter (Item => Create_Can_Frame(Can_Id => 16#30#, Data => (1 => 16#FF#)),
Interval => 1.0);
Ada.Text_Io.Put_Line ("Press any key to stop");
Updater.Start;
Ada.Text_Io.Get (Unused_C);
Updater.Stop;
end Bcm_Filtered_Reader;
|
[
{
"context": "-- Copyright (C) 2019 Thierry Rascle <[email protected]>\n-- MIT license. Please refer t",
"end": 36,
"score": 0.9998739361763,
"start": 22,
"tag": "NAME",
"value": "Thierry Rascle"
},
{
"context": "-- Copyright (C) 2019 Thierry Rascle <[email protected]>\n-- MIT license. Please refer to the LICENSE file",
"end": 54,
"score": 0.9999337792396545,
"start": 38,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
src/apsepp-generic_shared_instance-creator.adb
|
thierr26/ada-apsepp
| 0 |
-- Copyright (C) 2019 Thierry Rascle <[email protected]>
-- MIT license. Please refer to the LICENSE file.
package body Apsepp.Generic_Shared_Instance.Creator is
----------------------------------------------------------------------------
Locker : SB_L_Locker (Lock'Access);
----------------------------------------------------------------------------
function Has_Actually_Created return Boolean
is (Locker.Has_Actually_Locked);
----------------------------------------------------------------------------
begin
if not Just_Pretend and then Locker.Has_Actually_Locked then
Deallocation_Needed := True;
Instance_Access := Allocate;
CB;
end if;
end Apsepp.Generic_Shared_Instance.Creator;
|
28515
|
-- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
package body Apsepp.Generic_Shared_Instance.Creator is
----------------------------------------------------------------------------
Locker : SB_L_Locker (Lock'Access);
----------------------------------------------------------------------------
function Has_Actually_Created return Boolean
is (Locker.Has_Actually_Locked);
----------------------------------------------------------------------------
begin
if not Just_Pretend and then Locker.Has_Actually_Locked then
Deallocation_Needed := True;
Instance_Access := Allocate;
CB;
end if;
end Apsepp.Generic_Shared_Instance.Creator;
| true |
-- Copyright (C) 2019 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
-- MIT license. Please refer to the LICENSE file.
package body Apsepp.Generic_Shared_Instance.Creator is
----------------------------------------------------------------------------
Locker : SB_L_Locker (Lock'Access);
----------------------------------------------------------------------------
function Has_Actually_Created return Boolean
is (Locker.Has_Actually_Locked);
----------------------------------------------------------------------------
begin
if not Just_Pretend and then Locker.Has_Actually_Locked then
Deallocation_Needed := True;
Instance_Access := Allocate;
CB;
end if;
end Apsepp.Generic_Shared_Instance.Creator;
|
[
{
"context": "--\n-- Copyright 2018 The wookey project team <[email protected]>\n-- - Ryad Benadjila\n-- - Arnauld Michel",
"end": 64,
"score": 0.9999322891235352,
"start": 46,
"tag": "EMAIL",
"value": "[email protected]"
},
{
"context": "he wookey project team <[email protected]>\n-- - Ryad Benadjila\n-- - Arnauld Michelizza\n-- - Mathieu Renard",
"end": 91,
"score": 0.9991245269775391,
"start": 73,
"tag": "NAME",
"value": "Ryad Benadjila"
},
{
"context": "[email protected]>\n-- - Ryad Benadjila\n-- - Arnauld Michelizza\n-- - Mathieu Renard\n-- - Philippe Thierry\n--",
"end": 118,
"score": 0.9897581934928894,
"start": 99,
"tag": "NAME",
"value": "Arnauld Michelizza"
},
{
"context": "ad Benadjila\n-- - Arnauld Michelizza\n-- - Mathieu Renard\n-- - Philippe Thierry\n-- - Philippe Trebuchet",
"end": 141,
"score": 0.9258750677108765,
"start": 126,
"tag": "NAME",
"value": "Mathieu Renard"
},
{
"context": " Arnauld Michelizza\n-- - Mathieu Renard\n-- - Philippe Thierry\n-- - Philippe Trebuchet\n--\n-- Licensed under th",
"end": 165,
"score": 0.9998461008071899,
"start": 149,
"tag": "NAME",
"value": "Philippe Thierry"
},
{
"context": " - Mathieu Renard\n-- - Philippe Thierry\n-- - Philippe Trebuchet\n--\n-- Licensed under the Apache License, Version ",
"end": 191,
"score": 0.9998713731765747,
"start": 173,
"tag": "NAME",
"value": "Philippe Trebuchet"
}
] |
src/arch/socs/stm32f439/soc-rng.adb
|
PThierry/ewok-kernel
| 65 |
--
-- Copyright 2018 The wookey project team <[email protected]>
-- - Ryad Benadjila
-- - Arnauld Michelizza
-- - Mathieu Renard
-- - Philippe Thierry
-- - Philippe Trebuchet
--
-- 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 soc.devmap;
with soc.rcc;
package body soc.rng
with spark_mode => off
is
last_random : unsigned_32;
procedure init
(success : out boolean)
is
begin
soc.rcc.enable_clock (soc.devmap.RNG);
RNG.CR.RNGEN := true;
loop
exit when RNG.SR.DRDY;
end loop;
if RNG.SR.SECS or RNG.SR.CECS then
success := false;
else
success := true;
end if;
last_random := RNG.DR.RNDATA;
end init;
procedure random
(rand : out unsigned_32;
success : out boolean)
is
begin
loop
exit when RNG.SR.DRDY;
end loop;
rand := RNG.DR.RNDATA;
if rand = last_random or RNG.SR.SECS then
success := false;
else
success := true;
end if;
end random;
end soc.rng;
|
25353
|
--
-- Copyright 2018 The wookey project team <<EMAIL>>
-- - <NAME>
-- - <NAME>
-- - <NAME>
-- - <NAME>
-- - <NAME>
--
-- 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 soc.devmap;
with soc.rcc;
package body soc.rng
with spark_mode => off
is
last_random : unsigned_32;
procedure init
(success : out boolean)
is
begin
soc.rcc.enable_clock (soc.devmap.RNG);
RNG.CR.RNGEN := true;
loop
exit when RNG.SR.DRDY;
end loop;
if RNG.SR.SECS or RNG.SR.CECS then
success := false;
else
success := true;
end if;
last_random := RNG.DR.RNDATA;
end init;
procedure random
(rand : out unsigned_32;
success : out boolean)
is
begin
loop
exit when RNG.SR.DRDY;
end loop;
rand := RNG.DR.RNDATA;
if rand = last_random or RNG.SR.SECS then
success := false;
else
success := true;
end if;
end random;
end soc.rng;
| true |
--
-- Copyright 2018 The wookey project team <PI:EMAIL:<EMAIL>END_PI>
-- - PI:NAME:<NAME>END_PI
-- - PI:NAME:<NAME>END_PI
-- - PI:NAME:<NAME>END_PI
-- - PI:NAME:<NAME>END_PI
-- - PI:NAME:<NAME>END_PI
--
-- 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 soc.devmap;
with soc.rcc;
package body soc.rng
with spark_mode => off
is
last_random : unsigned_32;
procedure init
(success : out boolean)
is
begin
soc.rcc.enable_clock (soc.devmap.RNG);
RNG.CR.RNGEN := true;
loop
exit when RNG.SR.DRDY;
end loop;
if RNG.SR.SECS or RNG.SR.CECS then
success := false;
else
success := true;
end if;
last_random := RNG.DR.RNDATA;
end init;
procedure random
(rand : out unsigned_32;
success : out boolean)
is
begin
loop
exit when RNG.SR.DRDY;
end loop;
rand := RNG.DR.RNDATA;
if rand = last_random or RNG.SR.SECS then
success := false;
else
success := true;
end if;
end random;
end soc.rng;
|
[
{
"context": "-- Copyright (C) 2019 Thierry Rascle <[email protected]>\n-- MIT license. Please refer t",
"end": 36,
"score": 0.9998738169670105,
"start": 22,
"tag": "NAME",
"value": "Thierry Rascle"
},
{
"context": "-- Copyright (C) 2019 Thierry Rascle <[email protected]>\n-- MIT license. Please refer to the LICENSE file",
"end": 54,
"score": 0.9999340772628784,
"start": 38,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
src/_test/helpers/apsepp-test_node_class-runner_sequential-w_slave_nodes-create.adb
|
thierr26/ada-apsepp
| 0 |
-- Copyright (C) 2019 Thierry Rascle <[email protected]>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Test_Node_Class.Runner_Sequential.Create;
function Apsepp.Test_Node_Class.Runner_Sequential.W_Slave_Nodes.Create
(Root_Node_Access : Test_Node_Access;
Test_Reporter_Instance_Access : Test_Reporter_Access := null;
Reporter_Access_Set_CB : Scope_Bound_Locks.SB_Lock_CB := null;
Slaves : Test_Node_Array)
return Test_Runner_Sequential_W_Slave_Tasks is
use Ada.Finalization;
Sla : constant Test_Node_Array_Access := new Test_Node_Array'(Slaves);
begin
return (Apsepp.Test_Node_Class.Runner_Sequential.Create (Root_Node_Access,
Test_Reporter_Instance_Access,
Reporter_Access_Set_CB)
with Slaves => (Limited_Controlled with A => Sla));
end Apsepp.Test_Node_Class.Runner_Sequential.W_Slave_Nodes.Create;
|
26084
|
-- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Test_Node_Class.Runner_Sequential.Create;
function Apsepp.Test_Node_Class.Runner_Sequential.W_Slave_Nodes.Create
(Root_Node_Access : Test_Node_Access;
Test_Reporter_Instance_Access : Test_Reporter_Access := null;
Reporter_Access_Set_CB : Scope_Bound_Locks.SB_Lock_CB := null;
Slaves : Test_Node_Array)
return Test_Runner_Sequential_W_Slave_Tasks is
use Ada.Finalization;
Sla : constant Test_Node_Array_Access := new Test_Node_Array'(Slaves);
begin
return (Apsepp.Test_Node_Class.Runner_Sequential.Create (Root_Node_Access,
Test_Reporter_Instance_Access,
Reporter_Access_Set_CB)
with Slaves => (Limited_Controlled with A => Sla));
end Apsepp.Test_Node_Class.Runner_Sequential.W_Slave_Nodes.Create;
| true |
-- Copyright (C) 2019 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Test_Node_Class.Runner_Sequential.Create;
function Apsepp.Test_Node_Class.Runner_Sequential.W_Slave_Nodes.Create
(Root_Node_Access : Test_Node_Access;
Test_Reporter_Instance_Access : Test_Reporter_Access := null;
Reporter_Access_Set_CB : Scope_Bound_Locks.SB_Lock_CB := null;
Slaves : Test_Node_Array)
return Test_Runner_Sequential_W_Slave_Tasks is
use Ada.Finalization;
Sla : constant Test_Node_Array_Access := new Test_Node_Array'(Slaves);
begin
return (Apsepp.Test_Node_Class.Runner_Sequential.Create (Root_Node_Access,
Test_Reporter_Instance_Access,
Reporter_Access_Set_CB)
with Slaves => (Limited_Controlled with A => Sla));
end Apsepp.Test_Node_Class.Runner_Sequential.W_Slave_Nodes.Create;
|
[
{
"context": "\n\n\t\t-- Práctica 4: César Borao Moratinos (Hash_Maps_G_Chaining, Test Program)\n\n\n with A",
"end": 40,
"score": 0.9998607635498047,
"start": 19,
"tag": "NAME",
"value": "César Borao Moratinos"
},
{
"context": ", 50);\n Do_Put (A_Map, ASU.To_Unbounded_String(\"aceituna\"), 17);\n Do_Put (A_Map, ASU.To_Unbounded_String",
"end": 3266,
"score": 0.9655386805534363,
"start": 3258,
"tag": "NAME",
"value": "aceituna"
},
{
"context": ", 17);\n Do_Put (A_Map, ASU.To_Unbounded_String(\"maiz\"), 16);\n Do_Put (A_Map, ASU.To_Unbounded_String",
"end": 3322,
"score": 0.9689562320709229,
"start": 3318,
"tag": "NAME",
"value": "maiz"
},
{
"context": ", 16);\n Do_Put (A_Map, ASU.To_Unbounded_String(\"aceite\"), 40);\n Do_Put (A_Map, ASU.To_Unbounded_String",
"end": 3380,
"score": 0.9102311134338379,
"start": 3374,
"tag": "NAME",
"value": "aceite"
},
{
"context": ", 40);\n Do_Put (A_Map, ASU.To_Unbounded_String(\"esparrago\"), 25);\n Do_Put (A_Map, ASU.To_Unbounded_String",
"end": 3441,
"score": 0.9843348264694214,
"start": 3432,
"tag": "NAME",
"value": "esparrago"
},
{
"context": ", 25);\n Do_Put (A_Map, ASU.To_Unbounded_String(\"vinagre\"), 60);\n\n -- Now deletes\n Do_Delete (A_Map, A",
"end": 3500,
"score": 0.9924686551094055,
"start": 3493,
"tag": "NAME",
"value": "vinagre"
},
{
"context": "tes\n Do_Delete (A_Map, ASU.To_Unbounded_String(\"cebolla\"));\n Do_Delete (A_Map, ASU.To_Unbounded_String(",
"end": 3581,
"score": 0.9759383201599121,
"start": 3574,
"tag": "NAME",
"value": "cebolla"
},
{
"context": "));\n Do_Delete (A_Map, ASU.To_Unbounded_String(\"carne\"));\n Do_Delete (A_Map, ASU.To_Unbounded_String(",
"end": 3637,
"score": 0.988101601600647,
"start": 3632,
"tag": "NAME",
"value": "carne"
},
{
"context": "));\n Do_Delete (A_Map, ASU.To_Unbounded_String(\"pescado\"));\n Do_Delete (A_Map, ASU.To_Unbounded_String(",
"end": 3695,
"score": 0.96910160779953,
"start": 3688,
"tag": "NAME",
"value": "pescado"
},
{
"context": "));\n Do_Delete (A_Map, ASU.To_Unbounded_String(\"aceituna\"));\n Do_Delete (A_Map, ASU.To_Unbounded_String(",
"end": 3754,
"score": 0.8836855888366699,
"start": 3746,
"tag": "NAME",
"value": "aceituna"
},
{
"context": "));\n Do_Delete (A_Map, ASU.To_Unbounded_String(\"bacon\"));\n Do_Delete (A_Map, ASU.To_Unbounded_String(",
"end": 3810,
"score": 0.9545282125473022,
"start": 3805,
"tag": "NAME",
"value": "bacon"
},
{
"context": "));\n Do_Delete (A_Map, ASU.To_Unbounded_String(\"macarron\"));\n\n -- Now gets\n Do_Get (A_Map, ASU.To_Unbo",
"end": 3869,
"score": 0.9872910380363464,
"start": 3861,
"tag": "NAME",
"value": "macarron"
},
{
"context": "w gets\n Do_Get (A_Map, ASU.To_Unbounded_String(\"arroz\"));\n Do_Get (A_Map, ASU.To_Unbounded_String(\"ce",
"end": 3938,
"score": 0.9881847500801086,
"start": 3933,
"tag": "NAME",
"value": "arroz"
},
{
"context": "oz\"));\n Do_Get (A_Map, ASU.To_Unbounded_String(\"cebolla\"));\n Do_Get (A_Map, ASU.To_Unbounded_String(\"vi",
"end": 3993,
"score": 0.9730660319328308,
"start": 3986,
"tag": "NAME",
"value": "cebolla"
},
{
"context": "la\"));\n Do_Get (A_Map, ASU.To_Unbounded_String(\"vinagre\"));\n\nend Hash_Maps_Test;\n",
"end": 4048,
"score": 0.9854342341423035,
"start": 4041,
"tag": "NAME",
"value": "vinagre"
}
] |
hash_maps_g_chaining/hash_maps_test.adb
|
cborao/Ada-P4-chat
| 0 |
-- Práctica 4: César Borao Moratinos (Hash_Maps_G_Chaining, Test Program)
with Ada.Text_IO;
With Ada.Strings.Unbounded;
with Ada.Numerics.Discrete_Random;
with Hash_Maps_G;
procedure Hash_Maps_Test is
package ASU renames Ada.Strings.Unbounded;
package ATIO renames Ada.Text_IO;
HASH_SIZE: constant := 10;
type Hash_Range is mod HASH_SIZE;
function Natural_Hash (N: Natural) return Hash_Range is
begin
return Hash_Range'Mod(N);
end Natural_Hash;
function Nick_to_Integer (Nick: ASU.Unbounded_String) return Integer is
C: character;
Result: Integer := 0;
Counter: Integer := 1;
begin
loop
C := ASU.Element(Nick, Counter);
Result := Result + Character'Pos(C);
exit when Counter = ASU.Length(Nick);
Counter := Counter + 1;
end loop;
return Result;
end Nick_to_Integer;
function Nick_Hash (Nick: ASU.Unbounded_String) return Hash_Range is
begin
return Hash_Range'Mod(Nick_to_Integer(Nick));
end Nick_Hash;
package Maps is new Hash_Maps_G (Key_Type => ASU.Unbounded_String,
Value_Type => Natural,
"=" => ASU."=",
Hash_Range => Hash_Range,
Hash => Nick_Hash,
Max => 10);
procedure Print_Map (M : Maps.Map) is
C: Maps.Cursor := Maps.First(M);
begin
Ada.Text_IO.Put_Line ("Map");
Ada.Text_IO.Put_Line ("===");
while Maps.Has_Element(C) loop
Ada.Text_IO.Put_Line (ASU.To_String(Maps.Element(C).Key) & " " &
Natural'Image(Maps.Element(C).Value));
Maps.Next(C);
end loop;
end Print_Map;
procedure Do_Put (M: in out Maps.Map; K: ASU.Unbounded_String; V: Natural) is
begin
Ada.Text_IO.New_Line;
ATIO.Put_Line("Putting " & ASU.To_String(K));
Maps.Put (M, K, V);
Print_Map(M);
exception
when Maps.Full_Map =>
Ada.Text_IO.Put_Line("Full_Map");
end Do_Put;
procedure Do_Get (M: in out Maps.Map; K: ASU.Unbounded_String) is
V: Natural;
Success: Boolean;
begin
Ada.Text_IO.New_Line;
ATIO.Put_Line("Getting " & ASU.To_String(K));
Maps.Get (M, K, V, Success);
if Success then
Ada.Text_IO.Put_Line("Value: " & Natural'Image(V));
Print_Map(M);
else
Ada.Text_IO.Put_Line("Element not found!");
end if;
end Do_Get;
procedure Do_Delete (M: in out Maps.Map; K: ASU.Unbounded_String) is
Success: Boolean;
begin
Ada.Text_IO.New_Line;
ATIO.Put_Line("Deleting " & ASU.To_String(K));
Maps.Delete (M, K, Success);
if Success then
Print_Map(M);
else
Ada.Text_IO.Put_Line("Element not found!");
end if;
end Do_Delete;
A_Map : Maps.Map;
begin
-- First puts
Do_Put (A_Map, ASU.To_Unbounded_String("lechuga"), 10);
Do_Put (A_Map, ASU.To_Unbounded_String("tomate"), 11);
Do_Put (A_Map, ASU.To_Unbounded_String("cebolla"), 30);
Do_Put (A_Map, ASU.To_Unbounded_String("pimiento"), 15);
Do_Put (A_Map, ASU.To_Unbounded_String("atun"), 50);
Do_Put (A_Map, ASU.To_Unbounded_String("aceituna"), 17);
Do_Put (A_Map, ASU.To_Unbounded_String("maiz"), 16);
Do_Put (A_Map, ASU.To_Unbounded_String("aceite"), 40);
Do_Put (A_Map, ASU.To_Unbounded_String("esparrago"), 25);
Do_Put (A_Map, ASU.To_Unbounded_String("vinagre"), 60);
-- Now deletes
Do_Delete (A_Map, ASU.To_Unbounded_String("cebolla"));
Do_Delete (A_Map, ASU.To_Unbounded_String("carne"));
Do_Delete (A_Map, ASU.To_Unbounded_String("pescado"));
Do_Delete (A_Map, ASU.To_Unbounded_String("aceituna"));
Do_Delete (A_Map, ASU.To_Unbounded_String("bacon"));
Do_Delete (A_Map, ASU.To_Unbounded_String("macarron"));
-- Now gets
Do_Get (A_Map, ASU.To_Unbounded_String("arroz"));
Do_Get (A_Map, ASU.To_Unbounded_String("cebolla"));
Do_Get (A_Map, ASU.To_Unbounded_String("vinagre"));
end Hash_Maps_Test;
|
10297
|
-- Práctica 4: <NAME> (Hash_Maps_G_Chaining, Test Program)
with Ada.Text_IO;
With Ada.Strings.Unbounded;
with Ada.Numerics.Discrete_Random;
with Hash_Maps_G;
procedure Hash_Maps_Test is
package ASU renames Ada.Strings.Unbounded;
package ATIO renames Ada.Text_IO;
HASH_SIZE: constant := 10;
type Hash_Range is mod HASH_SIZE;
function Natural_Hash (N: Natural) return Hash_Range is
begin
return Hash_Range'Mod(N);
end Natural_Hash;
function Nick_to_Integer (Nick: ASU.Unbounded_String) return Integer is
C: character;
Result: Integer := 0;
Counter: Integer := 1;
begin
loop
C := ASU.Element(Nick, Counter);
Result := Result + Character'Pos(C);
exit when Counter = ASU.Length(Nick);
Counter := Counter + 1;
end loop;
return Result;
end Nick_to_Integer;
function Nick_Hash (Nick: ASU.Unbounded_String) return Hash_Range is
begin
return Hash_Range'Mod(Nick_to_Integer(Nick));
end Nick_Hash;
package Maps is new Hash_Maps_G (Key_Type => ASU.Unbounded_String,
Value_Type => Natural,
"=" => ASU."=",
Hash_Range => Hash_Range,
Hash => Nick_Hash,
Max => 10);
procedure Print_Map (M : Maps.Map) is
C: Maps.Cursor := Maps.First(M);
begin
Ada.Text_IO.Put_Line ("Map");
Ada.Text_IO.Put_Line ("===");
while Maps.Has_Element(C) loop
Ada.Text_IO.Put_Line (ASU.To_String(Maps.Element(C).Key) & " " &
Natural'Image(Maps.Element(C).Value));
Maps.Next(C);
end loop;
end Print_Map;
procedure Do_Put (M: in out Maps.Map; K: ASU.Unbounded_String; V: Natural) is
begin
Ada.Text_IO.New_Line;
ATIO.Put_Line("Putting " & ASU.To_String(K));
Maps.Put (M, K, V);
Print_Map(M);
exception
when Maps.Full_Map =>
Ada.Text_IO.Put_Line("Full_Map");
end Do_Put;
procedure Do_Get (M: in out Maps.Map; K: ASU.Unbounded_String) is
V: Natural;
Success: Boolean;
begin
Ada.Text_IO.New_Line;
ATIO.Put_Line("Getting " & ASU.To_String(K));
Maps.Get (M, K, V, Success);
if Success then
Ada.Text_IO.Put_Line("Value: " & Natural'Image(V));
Print_Map(M);
else
Ada.Text_IO.Put_Line("Element not found!");
end if;
end Do_Get;
procedure Do_Delete (M: in out Maps.Map; K: ASU.Unbounded_String) is
Success: Boolean;
begin
Ada.Text_IO.New_Line;
ATIO.Put_Line("Deleting " & ASU.To_String(K));
Maps.Delete (M, K, Success);
if Success then
Print_Map(M);
else
Ada.Text_IO.Put_Line("Element not found!");
end if;
end Do_Delete;
A_Map : Maps.Map;
begin
-- First puts
Do_Put (A_Map, ASU.To_Unbounded_String("lechuga"), 10);
Do_Put (A_Map, ASU.To_Unbounded_String("tomate"), 11);
Do_Put (A_Map, ASU.To_Unbounded_String("cebolla"), 30);
Do_Put (A_Map, ASU.To_Unbounded_String("pimiento"), 15);
Do_Put (A_Map, ASU.To_Unbounded_String("atun"), 50);
Do_Put (A_Map, ASU.To_Unbounded_String("<NAME>"), 17);
Do_Put (A_Map, ASU.To_Unbounded_String("<NAME>"), 16);
Do_Put (A_Map, ASU.To_Unbounded_String("<NAME>"), 40);
Do_Put (A_Map, ASU.To_Unbounded_String("<NAME>"), 25);
Do_Put (A_Map, ASU.To_Unbounded_String("<NAME>"), 60);
-- Now deletes
Do_Delete (A_Map, ASU.To_Unbounded_String("<NAME>"));
Do_Delete (A_Map, ASU.To_Unbounded_String("<NAME>"));
Do_Delete (A_Map, ASU.To_Unbounded_String("<NAME>"));
Do_Delete (A_Map, ASU.To_Unbounded_String("<NAME>"));
Do_Delete (A_Map, ASU.To_Unbounded_String("<NAME>"));
Do_Delete (A_Map, ASU.To_Unbounded_String("<NAME>"));
-- Now gets
Do_Get (A_Map, ASU.To_Unbounded_String("<NAME>"));
Do_Get (A_Map, ASU.To_Unbounded_String("<NAME>"));
Do_Get (A_Map, ASU.To_Unbounded_String("<NAME>"));
end Hash_Maps_Test;
| true |
-- Práctica 4: PI:NAME:<NAME>END_PI (Hash_Maps_G_Chaining, Test Program)
with Ada.Text_IO;
With Ada.Strings.Unbounded;
with Ada.Numerics.Discrete_Random;
with Hash_Maps_G;
procedure Hash_Maps_Test is
package ASU renames Ada.Strings.Unbounded;
package ATIO renames Ada.Text_IO;
HASH_SIZE: constant := 10;
type Hash_Range is mod HASH_SIZE;
function Natural_Hash (N: Natural) return Hash_Range is
begin
return Hash_Range'Mod(N);
end Natural_Hash;
function Nick_to_Integer (Nick: ASU.Unbounded_String) return Integer is
C: character;
Result: Integer := 0;
Counter: Integer := 1;
begin
loop
C := ASU.Element(Nick, Counter);
Result := Result + Character'Pos(C);
exit when Counter = ASU.Length(Nick);
Counter := Counter + 1;
end loop;
return Result;
end Nick_to_Integer;
function Nick_Hash (Nick: ASU.Unbounded_String) return Hash_Range is
begin
return Hash_Range'Mod(Nick_to_Integer(Nick));
end Nick_Hash;
package Maps is new Hash_Maps_G (Key_Type => ASU.Unbounded_String,
Value_Type => Natural,
"=" => ASU."=",
Hash_Range => Hash_Range,
Hash => Nick_Hash,
Max => 10);
procedure Print_Map (M : Maps.Map) is
C: Maps.Cursor := Maps.First(M);
begin
Ada.Text_IO.Put_Line ("Map");
Ada.Text_IO.Put_Line ("===");
while Maps.Has_Element(C) loop
Ada.Text_IO.Put_Line (ASU.To_String(Maps.Element(C).Key) & " " &
Natural'Image(Maps.Element(C).Value));
Maps.Next(C);
end loop;
end Print_Map;
procedure Do_Put (M: in out Maps.Map; K: ASU.Unbounded_String; V: Natural) is
begin
Ada.Text_IO.New_Line;
ATIO.Put_Line("Putting " & ASU.To_String(K));
Maps.Put (M, K, V);
Print_Map(M);
exception
when Maps.Full_Map =>
Ada.Text_IO.Put_Line("Full_Map");
end Do_Put;
procedure Do_Get (M: in out Maps.Map; K: ASU.Unbounded_String) is
V: Natural;
Success: Boolean;
begin
Ada.Text_IO.New_Line;
ATIO.Put_Line("Getting " & ASU.To_String(K));
Maps.Get (M, K, V, Success);
if Success then
Ada.Text_IO.Put_Line("Value: " & Natural'Image(V));
Print_Map(M);
else
Ada.Text_IO.Put_Line("Element not found!");
end if;
end Do_Get;
procedure Do_Delete (M: in out Maps.Map; K: ASU.Unbounded_String) is
Success: Boolean;
begin
Ada.Text_IO.New_Line;
ATIO.Put_Line("Deleting " & ASU.To_String(K));
Maps.Delete (M, K, Success);
if Success then
Print_Map(M);
else
Ada.Text_IO.Put_Line("Element not found!");
end if;
end Do_Delete;
A_Map : Maps.Map;
begin
-- First puts
Do_Put (A_Map, ASU.To_Unbounded_String("lechuga"), 10);
Do_Put (A_Map, ASU.To_Unbounded_String("tomate"), 11);
Do_Put (A_Map, ASU.To_Unbounded_String("cebolla"), 30);
Do_Put (A_Map, ASU.To_Unbounded_String("pimiento"), 15);
Do_Put (A_Map, ASU.To_Unbounded_String("atun"), 50);
Do_Put (A_Map, ASU.To_Unbounded_String("PI:NAME:<NAME>END_PI"), 17);
Do_Put (A_Map, ASU.To_Unbounded_String("PI:NAME:<NAME>END_PI"), 16);
Do_Put (A_Map, ASU.To_Unbounded_String("PI:NAME:<NAME>END_PI"), 40);
Do_Put (A_Map, ASU.To_Unbounded_String("PI:NAME:<NAME>END_PI"), 25);
Do_Put (A_Map, ASU.To_Unbounded_String("PI:NAME:<NAME>END_PI"), 60);
-- Now deletes
Do_Delete (A_Map, ASU.To_Unbounded_String("PI:NAME:<NAME>END_PI"));
Do_Delete (A_Map, ASU.To_Unbounded_String("PI:NAME:<NAME>END_PI"));
Do_Delete (A_Map, ASU.To_Unbounded_String("PI:NAME:<NAME>END_PI"));
Do_Delete (A_Map, ASU.To_Unbounded_String("PI:NAME:<NAME>END_PI"));
Do_Delete (A_Map, ASU.To_Unbounded_String("PI:NAME:<NAME>END_PI"));
Do_Delete (A_Map, ASU.To_Unbounded_String("PI:NAME:<NAME>END_PI"));
-- Now gets
Do_Get (A_Map, ASU.To_Unbounded_String("PI:NAME:<NAME>END_PI"));
Do_Get (A_Map, ASU.To_Unbounded_String("PI:NAME:<NAME>END_PI"));
Do_Get (A_Map, ASU.To_Unbounded_String("PI:NAME:<NAME>END_PI"));
end Hash_Maps_Test;
|
[
{
"context": "--\n -- Jan & Uwe R. Zimmer, Australia, July 2011\n --\n\nwith G",
"end": 10,
"score": 0.9998616576194763,
"start": 7,
"tag": "NAME",
"value": "Jan"
},
{
"context": "--\n -- Jan & Uwe R. Zimmer, Australia, July 2011\n --\n\nwith GL, GL.Materials,",
"end": 26,
"score": 0.9998421669006348,
"start": 13,
"tag": "NAME",
"value": "Uwe R. Zimmer"
},
{
"context": "loop;\n\n end Create;\nend Cube_P;\n -- Converted by Wrl2Ada\n",
"end": 3672,
"score": 0.9963364601135254,
"start": 3665,
"tag": "USERNAME",
"value": "Wrl2Ada"
}
] |
Sources/Model/cube_p.adb
|
ForYouEyesOnly/Space-Convoy
| 1 |
--
-- Jan & Uwe R. Zimmer, Australia, July 2011
--
with GL, GL.Materials, GLOBE_3D.Math;
package body Cube_P is
-- Pretty output: FALSE
use GL, GL.Materials, GLOBE_3D, GLOBE_3D.Math;
-- begin Separator # 1
-- VRML: [# triangle mesh
-- ]
matos_1 : constant Material_type := (ambient => (0.0, 0.0, 0.0, 1.0),
specular => (0.0, 0.0, 0.0, 1.0),
diffuse => (1.0, 1.0, 1.0, 1.0),
emission => (0.0, 0.0, 0.0, 1.0),
shininess => 128.0);
matos_red : constant Material_type := (ambient => (0.0, 0.0, 0.0, 1.0),
specular => (0.0, 0.0, 0.0, 1.0),
diffuse => (1.0, 0.0, 0.0, 1.0),
emission => (0.0, 0.0, 0.0, 1.0),
shininess => 128.0);
matos_blue : constant Material_type := (ambient => (0.0, 0.0, 0.0, 1.0),
specular => (0.0, 0.0, 0.0, 1.0),
diffuse => (0.0, 0.0, 1.0, 1.0),
emission => (0.0, 0.0, 0.0, 1.0),
shininess => 128.0);
coord_1 : constant Point_3D_array :=
((0.0, 0.0, 0.0), -- VRML: [# coord point 0
-- ]
(0.0, 0.0, 1.0), (1.0, 0.0, 0.0), (1.0, 0.0, 1.0), (1.0, 0.0, 0.0),
(1.0, 0.0, 1.0), (1.0, 1.0, 0.0), (1.0, 1.0, 1.0), (1.0, 1.0, 0.0), (1.0, 1.0, 1.0),
(0.0, 1.0, 0.0), (0.0, 1.0, 1.0), (0.0, 1.0, 0.0), (0.0, 1.0, 1.0), (0.0, 0.0, 0.0),
(0.0, 0.0, 1.0), (0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, 1.0, 0.0), (0.0, 1.0, 0.0),
(0.0, 0.0, 1.0), (1.0, 0.0, 1.0), (1.0, 1.0, 1.0), (0.0, 1.0, 1.0) -- 24
);
-- VRML: [# 24 vertices
-- ]
-- begin Separator # 2
-- VRML: [#triangle mesh
-- ]
idx_2 : constant Idx_4_array_array :=
((1, 3, 4, 0), -- VRML: [# triangle 0
-- ]
(1, 4, 2, 0), (5, 7, 8, 0), (5, 8, 6, 0), (9, 11, 12, 0), (9, 12, 10, 0), (13, 15, 16, 0), (13, 16, 14, 0),
(18, 17, 20, 0), (20, 19, 18, 0), (22, 24, 21, 0), (24, 22, 23, 0) -- 12
);
-- VRML: [# 12 triangles
-- ]
-- last index now: 0
-- end Separator # 2
-- VRML: [#triangle mesh
-- ]
-- last index now: 0
-- end Separator # 2
-- VRML: [# triangle mesh
-- ]
procedure Create (object : in out GLOBE_3D.p_Object_3D;
object_scale : GLOBE_3D.Real;
centre : GLOBE_3D.Point_3D)
is
face_0 : Face_type; -- takes defaults values
begin
object :=
new Object_3D (Max_points => 24, Max_faces => 12);
object.all.Centre := centre;
Set_name (object.all, "insect_body");
face_0.skin := material_only;
face_0.material := VRML_Defaults;
-- Creating separator # 1
if Almost_zero (object_scale - 1.0) then
object.all.Point (1 .. 24) := coord_1;
else
for p in 1 .. 24 loop
object.all.Point (0 + p) := object_scale * coord_1 (p);
end loop;
end if;
face_0.material := matos_1;
-- Creating separator # 2
for f in 1 .. 12 loop
face_0.P := idx_2 (f);
object.all.face (0 + f) := face_0;
end loop;
for f in 9 .. 10 loop
object.all.face (f).material := matos_red;
end loop;
for f in 11 .. 12 loop
object.all.face (f).material := matos_blue;
end loop;
end Create;
end Cube_P;
-- Converted by Wrl2Ada
|
19288
|
--
-- <NAME> & <NAME>, Australia, July 2011
--
with GL, GL.Materials, GLOBE_3D.Math;
package body Cube_P is
-- Pretty output: FALSE
use GL, GL.Materials, GLOBE_3D, GLOBE_3D.Math;
-- begin Separator # 1
-- VRML: [# triangle mesh
-- ]
matos_1 : constant Material_type := (ambient => (0.0, 0.0, 0.0, 1.0),
specular => (0.0, 0.0, 0.0, 1.0),
diffuse => (1.0, 1.0, 1.0, 1.0),
emission => (0.0, 0.0, 0.0, 1.0),
shininess => 128.0);
matos_red : constant Material_type := (ambient => (0.0, 0.0, 0.0, 1.0),
specular => (0.0, 0.0, 0.0, 1.0),
diffuse => (1.0, 0.0, 0.0, 1.0),
emission => (0.0, 0.0, 0.0, 1.0),
shininess => 128.0);
matos_blue : constant Material_type := (ambient => (0.0, 0.0, 0.0, 1.0),
specular => (0.0, 0.0, 0.0, 1.0),
diffuse => (0.0, 0.0, 1.0, 1.0),
emission => (0.0, 0.0, 0.0, 1.0),
shininess => 128.0);
coord_1 : constant Point_3D_array :=
((0.0, 0.0, 0.0), -- VRML: [# coord point 0
-- ]
(0.0, 0.0, 1.0), (1.0, 0.0, 0.0), (1.0, 0.0, 1.0), (1.0, 0.0, 0.0),
(1.0, 0.0, 1.0), (1.0, 1.0, 0.0), (1.0, 1.0, 1.0), (1.0, 1.0, 0.0), (1.0, 1.0, 1.0),
(0.0, 1.0, 0.0), (0.0, 1.0, 1.0), (0.0, 1.0, 0.0), (0.0, 1.0, 1.0), (0.0, 0.0, 0.0),
(0.0, 0.0, 1.0), (0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, 1.0, 0.0), (0.0, 1.0, 0.0),
(0.0, 0.0, 1.0), (1.0, 0.0, 1.0), (1.0, 1.0, 1.0), (0.0, 1.0, 1.0) -- 24
);
-- VRML: [# 24 vertices
-- ]
-- begin Separator # 2
-- VRML: [#triangle mesh
-- ]
idx_2 : constant Idx_4_array_array :=
((1, 3, 4, 0), -- VRML: [# triangle 0
-- ]
(1, 4, 2, 0), (5, 7, 8, 0), (5, 8, 6, 0), (9, 11, 12, 0), (9, 12, 10, 0), (13, 15, 16, 0), (13, 16, 14, 0),
(18, 17, 20, 0), (20, 19, 18, 0), (22, 24, 21, 0), (24, 22, 23, 0) -- 12
);
-- VRML: [# 12 triangles
-- ]
-- last index now: 0
-- end Separator # 2
-- VRML: [#triangle mesh
-- ]
-- last index now: 0
-- end Separator # 2
-- VRML: [# triangle mesh
-- ]
procedure Create (object : in out GLOBE_3D.p_Object_3D;
object_scale : GLOBE_3D.Real;
centre : GLOBE_3D.Point_3D)
is
face_0 : Face_type; -- takes defaults values
begin
object :=
new Object_3D (Max_points => 24, Max_faces => 12);
object.all.Centre := centre;
Set_name (object.all, "insect_body");
face_0.skin := material_only;
face_0.material := VRML_Defaults;
-- Creating separator # 1
if Almost_zero (object_scale - 1.0) then
object.all.Point (1 .. 24) := coord_1;
else
for p in 1 .. 24 loop
object.all.Point (0 + p) := object_scale * coord_1 (p);
end loop;
end if;
face_0.material := matos_1;
-- Creating separator # 2
for f in 1 .. 12 loop
face_0.P := idx_2 (f);
object.all.face (0 + f) := face_0;
end loop;
for f in 9 .. 10 loop
object.all.face (f).material := matos_red;
end loop;
for f in 11 .. 12 loop
object.all.face (f).material := matos_blue;
end loop;
end Create;
end Cube_P;
-- Converted by Wrl2Ada
| true |
--
-- PI:NAME:<NAME>END_PI & PI:NAME:<NAME>END_PI, Australia, July 2011
--
with GL, GL.Materials, GLOBE_3D.Math;
package body Cube_P is
-- Pretty output: FALSE
use GL, GL.Materials, GLOBE_3D, GLOBE_3D.Math;
-- begin Separator # 1
-- VRML: [# triangle mesh
-- ]
matos_1 : constant Material_type := (ambient => (0.0, 0.0, 0.0, 1.0),
specular => (0.0, 0.0, 0.0, 1.0),
diffuse => (1.0, 1.0, 1.0, 1.0),
emission => (0.0, 0.0, 0.0, 1.0),
shininess => 128.0);
matos_red : constant Material_type := (ambient => (0.0, 0.0, 0.0, 1.0),
specular => (0.0, 0.0, 0.0, 1.0),
diffuse => (1.0, 0.0, 0.0, 1.0),
emission => (0.0, 0.0, 0.0, 1.0),
shininess => 128.0);
matos_blue : constant Material_type := (ambient => (0.0, 0.0, 0.0, 1.0),
specular => (0.0, 0.0, 0.0, 1.0),
diffuse => (0.0, 0.0, 1.0, 1.0),
emission => (0.0, 0.0, 0.0, 1.0),
shininess => 128.0);
coord_1 : constant Point_3D_array :=
((0.0, 0.0, 0.0), -- VRML: [# coord point 0
-- ]
(0.0, 0.0, 1.0), (1.0, 0.0, 0.0), (1.0, 0.0, 1.0), (1.0, 0.0, 0.0),
(1.0, 0.0, 1.0), (1.0, 1.0, 0.0), (1.0, 1.0, 1.0), (1.0, 1.0, 0.0), (1.0, 1.0, 1.0),
(0.0, 1.0, 0.0), (0.0, 1.0, 1.0), (0.0, 1.0, 0.0), (0.0, 1.0, 1.0), (0.0, 0.0, 0.0),
(0.0, 0.0, 1.0), (0.0, 0.0, 0.0), (1.0, 0.0, 0.0), (1.0, 1.0, 0.0), (0.0, 1.0, 0.0),
(0.0, 0.0, 1.0), (1.0, 0.0, 1.0), (1.0, 1.0, 1.0), (0.0, 1.0, 1.0) -- 24
);
-- VRML: [# 24 vertices
-- ]
-- begin Separator # 2
-- VRML: [#triangle mesh
-- ]
idx_2 : constant Idx_4_array_array :=
((1, 3, 4, 0), -- VRML: [# triangle 0
-- ]
(1, 4, 2, 0), (5, 7, 8, 0), (5, 8, 6, 0), (9, 11, 12, 0), (9, 12, 10, 0), (13, 15, 16, 0), (13, 16, 14, 0),
(18, 17, 20, 0), (20, 19, 18, 0), (22, 24, 21, 0), (24, 22, 23, 0) -- 12
);
-- VRML: [# 12 triangles
-- ]
-- last index now: 0
-- end Separator # 2
-- VRML: [#triangle mesh
-- ]
-- last index now: 0
-- end Separator # 2
-- VRML: [# triangle mesh
-- ]
procedure Create (object : in out GLOBE_3D.p_Object_3D;
object_scale : GLOBE_3D.Real;
centre : GLOBE_3D.Point_3D)
is
face_0 : Face_type; -- takes defaults values
begin
object :=
new Object_3D (Max_points => 24, Max_faces => 12);
object.all.Centre := centre;
Set_name (object.all, "insect_body");
face_0.skin := material_only;
face_0.material := VRML_Defaults;
-- Creating separator # 1
if Almost_zero (object_scale - 1.0) then
object.all.Point (1 .. 24) := coord_1;
else
for p in 1 .. 24 loop
object.all.Point (0 + p) := object_scale * coord_1 (p);
end loop;
end if;
face_0.material := matos_1;
-- Creating separator # 2
for f in 1 .. 12 loop
face_0.P := idx_2 (f);
object.all.face (0 + f) := face_0;
end loop;
for f in 9 .. 10 loop
object.all.face (f).material := matos_red;
end loop;
for f in 11 .. 12 loop
object.all.face (f).material := matos_blue;
end loop;
end Create;
end Cube_P;
-- Converted by Wrl2Ada
|
[
{
"context": "ing\n-- Copyright (C) 2015, 2016, 2017, 2019, 2021 Stephane Carrez\n-- Written by Stephane Carrez (Stephane.Carrez@g",
"end": 172,
"score": 0.9998798370361328,
"start": 157,
"tag": "NAME",
"value": "Stephane Carrez"
},
{
"context": "6, 2017, 2019, 2021 Stephane Carrez\n-- Written by Stephane Carrez ([email protected])\n--\n-- Licensed under",
"end": 203,
"score": 0.9998839497566223,
"start": 188,
"tag": "NAME",
"value": "Stephane Carrez"
},
{
"context": "1 Stephane Carrez\n-- Written by Stephane Carrez ([email protected])\n--\n-- Licensed under the Apache License, Versio",
"end": 230,
"score": 0.9999296069145203,
"start": 205,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
src/servlet-routes.ads
|
jquorning/ada-servlet
| 6 |
-----------------------------------------------------------------------
-- servlet-routes -- Request routing
-- Copyright (C) 2015, 2016, 2017, 2019, 2021 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.Finalization;
with Util.Beans.Basic;
with Util.Refs;
with EL.Expressions;
with EL.Contexts;
package Servlet.Routes is
type Route_Type is abstract new Util.Refs.Ref_Entity with null record;
type Route_Type_Access is access all Route_Type'Class;
package Route_Type_Refs is
new Util.Refs.Indefinite_References (Element_Type => Route_Type'Class,
Element_Access => Route_Type_Access);
subtype Route_Type_Ref is Route_Type_Refs.Ref;
subtype Route_Type_Accessor is Route_Type_Refs.Element_Accessor;
No_Parameter : exception;
type Path_Mode is (FULL, PREFIX, SUFFIX);
-- The <tt>Route_Context_Type</tt> defines the context information after a path
-- has been routed.
type Route_Context_Type is tagged limited private;
-- Get path information after the routing.
function Get_Path (Context : in Route_Context_Type;
Mode : in Path_Mode := FULL) return String;
-- Get the path parameter value for the given parameter index.
-- The <tt>No_Parameter</tt> exception is raised if the parameter does not exist.
function Get_Parameter (Context : in Route_Context_Type;
Index : in Positive) return String;
-- Get the number of path parameters that were extracted for the route.
function Get_Parameter_Count (Context : in Route_Context_Type) return Natural;
-- Return the position of the variable part of the path.
-- If the URI matches a wildcard pattern, the position of the last '/' in the wildcard pattern
-- is returned.
function Get_Path_Pos (Context : in Route_Context_Type) return Natural;
-- Return the route associated with the resolved route context.
function Get_Route (Context : in Route_Context_Type) return Route_Type_Accessor;
function Get_Route (Context : in Route_Context_Type) return Route_Type_Ref;
-- Return True if there is no route.
function Is_Null (Context : in Route_Context_Type) return Boolean;
-- Change the context to use a new route.
procedure Change_Route (Context : in out Route_Context_Type;
To : in Route_Type_Ref);
-- Inject the parameters that have been extracted from the path according
-- to the selected route.
procedure Inject_Parameters (Context : in Route_Context_Type;
Into : in out Util.Beans.Basic.Bean'Class;
ELContext : in EL.Contexts.ELContext'Class);
-- The <tt>Router_Type</tt> registers the different routes with their rules and
-- resolves a path into a route context information.
type Router_Type is new Ada.Finalization.Limited_Controlled with private;
type Router_Type_Access is access all Router_Type'Class;
-- Add a route associated with the given path pattern. The pattern is split into components.
-- Some path components can be a fixed string (/home) and others can be variable.
-- When a path component is variable, the value can be retrieved from the route context.
-- Once the route path is created, the <tt>Process</tt> procedure is called with the route
-- reference.
procedure Add_Route (Router : in out Router_Type;
Pattern : in String;
ELContext : in EL.Contexts.ELContext'Class;
Process : not null access procedure (Route : in out Route_Type_Ref));
-- Build the route context from the given path by looking at the different routes registered
-- in the router with <tt>Add_Route</tt>.
procedure Find_Route (Router : in Router_Type;
Path : in String;
Context : in out Route_Context_Type'Class);
-- Walk the routes that have been added by <tt>Add_Route</tt> and call the <tt>Process</tt>
-- procedure with each path pattern and route object.
procedure Iterate (Router : in Router_Type;
Process : not null access procedure (Pattern : in String;
Route : in Route_Type_Accessor));
private
type String_Access is access all String;
type Route_Node_Type is tagged;
type Route_Node_Access is access all Route_Node_Type'Class;
-- Describes a variable path component whose value must be injected in an Ada bean.
type Route_Param_Type is limited record
Route : Route_Node_Access;
First : Natural := 0;
Last : Natural := 0;
end record;
type Route_Param_Array is array (Positive range <>) of Route_Param_Type;
type Route_Match_Type is (NO_MATCH, MAYBE_MATCH, WILDCARD_MATCH, EXT_MATCH, YES_MATCH);
type Route_Node_Type is abstract tagged limited record
Next_Route : Route_Node_Access;
Children : Route_Node_Access;
Route : Route_Type_Ref;
end record;
-- Inject the parameter that was extracted from the path.
procedure Inject_Parameter (Node : in Route_Node_Type;
Param : in String;
Into : in out Util.Beans.Basic.Bean'Class;
ELContext : in EL.Contexts.ELContext'Class) is null;
-- Check if the route node accepts the given path component.
function Matches (Node : in Route_Node_Type;
Name : in String;
Is_Last : in Boolean) return Route_Match_Type is abstract;
-- Return the component path pattern that this route node represents.
-- Example: 'index.html', '#{user.id}', ':id'
function Get_Pattern (Node : in Route_Node_Type) return String is abstract;
-- Return the position of the variable part of the path.
-- If the URI matches a wildcard pattern, the position of the last '/' in the wildcard pattern
-- is returned.
function Get_Path_Pos (Node : in Route_Node_Type;
Param : in Route_Param_Type) return Natural;
-- Find recursively a match on the given route sub-tree. The match must start at the position
-- <tt>First</tt> in the path up to the last path position. While the path components are
-- checked, the route context is populated with variable components. When the full path
-- matches, <tt>YES_MATCH</tt> is returned in the context gets the route instance.
procedure Find_Match (Node : in Route_Node_Type;
Path : in String;
First : in Natural;
Match : out Route_Match_Type;
Context : in out Route_Context_Type'Class);
-- Walk the routes that have been added by <tt>Add_Route</tt> and call the <tt>Process</tt>
-- procedure with each path pattern and route object.
procedure Iterate (Node : in Route_Node_Type;
Path : in String;
Process : not null access procedure (Pattern : in String;
Route : in Route_Type_Accessor));
-- A fixed path component identification.
type Path_Node_Type (Len : Natural) is new Route_Node_Type with record
Name : aliased String (1 .. Len);
end record;
type Path_Node_Access is access all Path_Node_Type'Class;
-- Check if the route node accepts the given path component.
-- Returns YES_MATCH if the name corresponds exactly to the node's name.
overriding
function Matches (Node : in Path_Node_Type;
Name : in String;
Is_Last : in Boolean) return Route_Match_Type;
-- Return the component path pattern that this route node represents (ie, 'Name').
overriding
function Get_Pattern (Node : in Path_Node_Type) return String;
-- A variable path component whose value is injected in an Ada bean using the EL expression.
-- The route node is created each time an EL expression is found in the route pattern.
-- Example: /home/#{user.id}/index.html
-- In this example, the EL expression refers to <tt>user.id</tt>.
type EL_Node_Type is new Route_Node_Type with record
Value : EL.Expressions.Value_Expression;
end record;
type EL_Node_Access is access all EL_Node_Type'Class;
-- Check if the route node accepts the given path component.
-- Returns MAYBE_MATCH.
overriding
function Matches (Node : in EL_Node_Type;
Name : in String;
Is_Last : in Boolean) return Route_Match_Type;
-- Return the component path pattern that this route node represents (ie, the EL expr).
overriding
function Get_Pattern (Node : in EL_Node_Type) return String;
-- Inject the parameter that was extracted from the path.
overriding
procedure Inject_Parameter (Node : in EL_Node_Type;
Param : in String;
Into : in out Util.Beans.Basic.Bean'Class;
ELContext : in EL.Contexts.ELContext'Class);
-- A variable path component which can be injected in an Ada bean.
-- Example: /home/:id/view.html
-- The path component represented by <tt>:id</tt> is injected in the Ada bean object
-- passed to the <tt>Inject_Parameters</tt> procedure.
type Param_Node_Type (Len : Natural) is new Route_Node_Type with record
Name : String (1 .. Len);
end record;
type Param_Node_Access is access all Param_Node_Type'Class;
-- Check if the route node accepts the given path component.
-- Returns MAYBE_MATCH.
overriding
function Matches (Node : in Param_Node_Type;
Name : in String;
Is_Last : in Boolean) return Route_Match_Type;
-- Return the component path pattern that this route node represents (ie, Name).
overriding
function Get_Pattern (Node : in Param_Node_Type) return String;
-- Inject the parameter that was extracted from the path.
overriding
procedure Inject_Parameter (Node : in Param_Node_Type;
Param : in String;
Into : in out Util.Beans.Basic.Bean'Class;
ELContext : in EL.Contexts.ELContext'Class);
type Extension_Node_Type (Len : Natural) is new Route_Node_Type with record
Ext : String (1 .. Len);
end record;
type Extension_Node_Access is access all Extension_Node_Type'Class;
-- Check if the route node accepts the given extension.
-- Returns MAYBE_MATCH.
overriding
function Matches (Node : in Extension_Node_Type;
Name : in String;
Is_Last : in Boolean) return Route_Match_Type;
-- Return the component path pattern that this route node represents (ie, *.Ext).
overriding
function Get_Pattern (Node : in Extension_Node_Type) return String;
type Wildcard_Node_Type is new Route_Node_Type with null record;
type Wildcard_Node_Access is access all Wildcard_Node_Type'Class;
-- Check if the route node accepts the given extension.
-- Returns WILDCARD_MATCH.
overriding
function Matches (Node : in Wildcard_Node_Type;
Name : in String;
Is_Last : in Boolean) return Route_Match_Type;
-- Return the component path pattern that this route node represents (ie, *).
overriding
function Get_Pattern (Node : in Wildcard_Node_Type) return String;
-- Return the position of the variable part of the path.
-- If the URI matches a wildcard pattern, the position of the last '/' in the wildcard pattern
-- is returned.
overriding
function Get_Path_Pos (Node : in Wildcard_Node_Type;
Param : in Route_Param_Type) return Natural;
MAX_ROUTE_PARAMS : constant Positive := 10;
type Route_Context_Type is limited new Ada.Finalization.Limited_Controlled with record
Route : Route_Type_Ref;
Path : String_Access;
Params : Route_Param_Array (1 .. MAX_ROUTE_PARAMS);
Count : Natural := 0;
end record;
-- Release the storage held by the route context.
overriding
procedure Finalize (Context : in out Route_Context_Type);
type Router_Type is new Ada.Finalization.Limited_Controlled with record
Route : aliased Path_Node_Type (Len => 0);
end record;
-- Release the storage held by the router.
overriding
procedure Finalize (Router : in out Router_Type);
-- Insert the route node at the correct place in the children list
-- according to the rule kind.
procedure Insert (Parent : in Route_Node_Access;
Node : in Route_Node_Access;
Kind : in Route_Match_Type);
end Servlet.Routes;
|
26783
|
-----------------------------------------------------------------------
-- servlet-routes -- Request routing
-- Copyright (C) 2015, 2016, 2017, 2019, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- 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.Finalization;
with Util.Beans.Basic;
with Util.Refs;
with EL.Expressions;
with EL.Contexts;
package Servlet.Routes is
type Route_Type is abstract new Util.Refs.Ref_Entity with null record;
type Route_Type_Access is access all Route_Type'Class;
package Route_Type_Refs is
new Util.Refs.Indefinite_References (Element_Type => Route_Type'Class,
Element_Access => Route_Type_Access);
subtype Route_Type_Ref is Route_Type_Refs.Ref;
subtype Route_Type_Accessor is Route_Type_Refs.Element_Accessor;
No_Parameter : exception;
type Path_Mode is (FULL, PREFIX, SUFFIX);
-- The <tt>Route_Context_Type</tt> defines the context information after a path
-- has been routed.
type Route_Context_Type is tagged limited private;
-- Get path information after the routing.
function Get_Path (Context : in Route_Context_Type;
Mode : in Path_Mode := FULL) return String;
-- Get the path parameter value for the given parameter index.
-- The <tt>No_Parameter</tt> exception is raised if the parameter does not exist.
function Get_Parameter (Context : in Route_Context_Type;
Index : in Positive) return String;
-- Get the number of path parameters that were extracted for the route.
function Get_Parameter_Count (Context : in Route_Context_Type) return Natural;
-- Return the position of the variable part of the path.
-- If the URI matches a wildcard pattern, the position of the last '/' in the wildcard pattern
-- is returned.
function Get_Path_Pos (Context : in Route_Context_Type) return Natural;
-- Return the route associated with the resolved route context.
function Get_Route (Context : in Route_Context_Type) return Route_Type_Accessor;
function Get_Route (Context : in Route_Context_Type) return Route_Type_Ref;
-- Return True if there is no route.
function Is_Null (Context : in Route_Context_Type) return Boolean;
-- Change the context to use a new route.
procedure Change_Route (Context : in out Route_Context_Type;
To : in Route_Type_Ref);
-- Inject the parameters that have been extracted from the path according
-- to the selected route.
procedure Inject_Parameters (Context : in Route_Context_Type;
Into : in out Util.Beans.Basic.Bean'Class;
ELContext : in EL.Contexts.ELContext'Class);
-- The <tt>Router_Type</tt> registers the different routes with their rules and
-- resolves a path into a route context information.
type Router_Type is new Ada.Finalization.Limited_Controlled with private;
type Router_Type_Access is access all Router_Type'Class;
-- Add a route associated with the given path pattern. The pattern is split into components.
-- Some path components can be a fixed string (/home) and others can be variable.
-- When a path component is variable, the value can be retrieved from the route context.
-- Once the route path is created, the <tt>Process</tt> procedure is called with the route
-- reference.
procedure Add_Route (Router : in out Router_Type;
Pattern : in String;
ELContext : in EL.Contexts.ELContext'Class;
Process : not null access procedure (Route : in out Route_Type_Ref));
-- Build the route context from the given path by looking at the different routes registered
-- in the router with <tt>Add_Route</tt>.
procedure Find_Route (Router : in Router_Type;
Path : in String;
Context : in out Route_Context_Type'Class);
-- Walk the routes that have been added by <tt>Add_Route</tt> and call the <tt>Process</tt>
-- procedure with each path pattern and route object.
procedure Iterate (Router : in Router_Type;
Process : not null access procedure (Pattern : in String;
Route : in Route_Type_Accessor));
private
type String_Access is access all String;
type Route_Node_Type is tagged;
type Route_Node_Access is access all Route_Node_Type'Class;
-- Describes a variable path component whose value must be injected in an Ada bean.
type Route_Param_Type is limited record
Route : Route_Node_Access;
First : Natural := 0;
Last : Natural := 0;
end record;
type Route_Param_Array is array (Positive range <>) of Route_Param_Type;
type Route_Match_Type is (NO_MATCH, MAYBE_MATCH, WILDCARD_MATCH, EXT_MATCH, YES_MATCH);
type Route_Node_Type is abstract tagged limited record
Next_Route : Route_Node_Access;
Children : Route_Node_Access;
Route : Route_Type_Ref;
end record;
-- Inject the parameter that was extracted from the path.
procedure Inject_Parameter (Node : in Route_Node_Type;
Param : in String;
Into : in out Util.Beans.Basic.Bean'Class;
ELContext : in EL.Contexts.ELContext'Class) is null;
-- Check if the route node accepts the given path component.
function Matches (Node : in Route_Node_Type;
Name : in String;
Is_Last : in Boolean) return Route_Match_Type is abstract;
-- Return the component path pattern that this route node represents.
-- Example: 'index.html', '#{user.id}', ':id'
function Get_Pattern (Node : in Route_Node_Type) return String is abstract;
-- Return the position of the variable part of the path.
-- If the URI matches a wildcard pattern, the position of the last '/' in the wildcard pattern
-- is returned.
function Get_Path_Pos (Node : in Route_Node_Type;
Param : in Route_Param_Type) return Natural;
-- Find recursively a match on the given route sub-tree. The match must start at the position
-- <tt>First</tt> in the path up to the last path position. While the path components are
-- checked, the route context is populated with variable components. When the full path
-- matches, <tt>YES_MATCH</tt> is returned in the context gets the route instance.
procedure Find_Match (Node : in Route_Node_Type;
Path : in String;
First : in Natural;
Match : out Route_Match_Type;
Context : in out Route_Context_Type'Class);
-- Walk the routes that have been added by <tt>Add_Route</tt> and call the <tt>Process</tt>
-- procedure with each path pattern and route object.
procedure Iterate (Node : in Route_Node_Type;
Path : in String;
Process : not null access procedure (Pattern : in String;
Route : in Route_Type_Accessor));
-- A fixed path component identification.
type Path_Node_Type (Len : Natural) is new Route_Node_Type with record
Name : aliased String (1 .. Len);
end record;
type Path_Node_Access is access all Path_Node_Type'Class;
-- Check if the route node accepts the given path component.
-- Returns YES_MATCH if the name corresponds exactly to the node's name.
overriding
function Matches (Node : in Path_Node_Type;
Name : in String;
Is_Last : in Boolean) return Route_Match_Type;
-- Return the component path pattern that this route node represents (ie, 'Name').
overriding
function Get_Pattern (Node : in Path_Node_Type) return String;
-- A variable path component whose value is injected in an Ada bean using the EL expression.
-- The route node is created each time an EL expression is found in the route pattern.
-- Example: /home/#{user.id}/index.html
-- In this example, the EL expression refers to <tt>user.id</tt>.
type EL_Node_Type is new Route_Node_Type with record
Value : EL.Expressions.Value_Expression;
end record;
type EL_Node_Access is access all EL_Node_Type'Class;
-- Check if the route node accepts the given path component.
-- Returns MAYBE_MATCH.
overriding
function Matches (Node : in EL_Node_Type;
Name : in String;
Is_Last : in Boolean) return Route_Match_Type;
-- Return the component path pattern that this route node represents (ie, the EL expr).
overriding
function Get_Pattern (Node : in EL_Node_Type) return String;
-- Inject the parameter that was extracted from the path.
overriding
procedure Inject_Parameter (Node : in EL_Node_Type;
Param : in String;
Into : in out Util.Beans.Basic.Bean'Class;
ELContext : in EL.Contexts.ELContext'Class);
-- A variable path component which can be injected in an Ada bean.
-- Example: /home/:id/view.html
-- The path component represented by <tt>:id</tt> is injected in the Ada bean object
-- passed to the <tt>Inject_Parameters</tt> procedure.
type Param_Node_Type (Len : Natural) is new Route_Node_Type with record
Name : String (1 .. Len);
end record;
type Param_Node_Access is access all Param_Node_Type'Class;
-- Check if the route node accepts the given path component.
-- Returns MAYBE_MATCH.
overriding
function Matches (Node : in Param_Node_Type;
Name : in String;
Is_Last : in Boolean) return Route_Match_Type;
-- Return the component path pattern that this route node represents (ie, Name).
overriding
function Get_Pattern (Node : in Param_Node_Type) return String;
-- Inject the parameter that was extracted from the path.
overriding
procedure Inject_Parameter (Node : in Param_Node_Type;
Param : in String;
Into : in out Util.Beans.Basic.Bean'Class;
ELContext : in EL.Contexts.ELContext'Class);
type Extension_Node_Type (Len : Natural) is new Route_Node_Type with record
Ext : String (1 .. Len);
end record;
type Extension_Node_Access is access all Extension_Node_Type'Class;
-- Check if the route node accepts the given extension.
-- Returns MAYBE_MATCH.
overriding
function Matches (Node : in Extension_Node_Type;
Name : in String;
Is_Last : in Boolean) return Route_Match_Type;
-- Return the component path pattern that this route node represents (ie, *.Ext).
overriding
function Get_Pattern (Node : in Extension_Node_Type) return String;
type Wildcard_Node_Type is new Route_Node_Type with null record;
type Wildcard_Node_Access is access all Wildcard_Node_Type'Class;
-- Check if the route node accepts the given extension.
-- Returns WILDCARD_MATCH.
overriding
function Matches (Node : in Wildcard_Node_Type;
Name : in String;
Is_Last : in Boolean) return Route_Match_Type;
-- Return the component path pattern that this route node represents (ie, *).
overriding
function Get_Pattern (Node : in Wildcard_Node_Type) return String;
-- Return the position of the variable part of the path.
-- If the URI matches a wildcard pattern, the position of the last '/' in the wildcard pattern
-- is returned.
overriding
function Get_Path_Pos (Node : in Wildcard_Node_Type;
Param : in Route_Param_Type) return Natural;
MAX_ROUTE_PARAMS : constant Positive := 10;
type Route_Context_Type is limited new Ada.Finalization.Limited_Controlled with record
Route : Route_Type_Ref;
Path : String_Access;
Params : Route_Param_Array (1 .. MAX_ROUTE_PARAMS);
Count : Natural := 0;
end record;
-- Release the storage held by the route context.
overriding
procedure Finalize (Context : in out Route_Context_Type);
type Router_Type is new Ada.Finalization.Limited_Controlled with record
Route : aliased Path_Node_Type (Len => 0);
end record;
-- Release the storage held by the router.
overriding
procedure Finalize (Router : in out Router_Type);
-- Insert the route node at the correct place in the children list
-- according to the rule kind.
procedure Insert (Parent : in Route_Node_Access;
Node : in Route_Node_Access;
Kind : in Route_Match_Type);
end Servlet.Routes;
| true |
-----------------------------------------------------------------------
-- servlet-routes -- Request routing
-- Copyright (C) 2015, 2016, 2017, 2019, 2021 PI:NAME:<NAME>END_PI
-- Written by PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
--
-- 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.Finalization;
with Util.Beans.Basic;
with Util.Refs;
with EL.Expressions;
with EL.Contexts;
package Servlet.Routes is
type Route_Type is abstract new Util.Refs.Ref_Entity with null record;
type Route_Type_Access is access all Route_Type'Class;
package Route_Type_Refs is
new Util.Refs.Indefinite_References (Element_Type => Route_Type'Class,
Element_Access => Route_Type_Access);
subtype Route_Type_Ref is Route_Type_Refs.Ref;
subtype Route_Type_Accessor is Route_Type_Refs.Element_Accessor;
No_Parameter : exception;
type Path_Mode is (FULL, PREFIX, SUFFIX);
-- The <tt>Route_Context_Type</tt> defines the context information after a path
-- has been routed.
type Route_Context_Type is tagged limited private;
-- Get path information after the routing.
function Get_Path (Context : in Route_Context_Type;
Mode : in Path_Mode := FULL) return String;
-- Get the path parameter value for the given parameter index.
-- The <tt>No_Parameter</tt> exception is raised if the parameter does not exist.
function Get_Parameter (Context : in Route_Context_Type;
Index : in Positive) return String;
-- Get the number of path parameters that were extracted for the route.
function Get_Parameter_Count (Context : in Route_Context_Type) return Natural;
-- Return the position of the variable part of the path.
-- If the URI matches a wildcard pattern, the position of the last '/' in the wildcard pattern
-- is returned.
function Get_Path_Pos (Context : in Route_Context_Type) return Natural;
-- Return the route associated with the resolved route context.
function Get_Route (Context : in Route_Context_Type) return Route_Type_Accessor;
function Get_Route (Context : in Route_Context_Type) return Route_Type_Ref;
-- Return True if there is no route.
function Is_Null (Context : in Route_Context_Type) return Boolean;
-- Change the context to use a new route.
procedure Change_Route (Context : in out Route_Context_Type;
To : in Route_Type_Ref);
-- Inject the parameters that have been extracted from the path according
-- to the selected route.
procedure Inject_Parameters (Context : in Route_Context_Type;
Into : in out Util.Beans.Basic.Bean'Class;
ELContext : in EL.Contexts.ELContext'Class);
-- The <tt>Router_Type</tt> registers the different routes with their rules and
-- resolves a path into a route context information.
type Router_Type is new Ada.Finalization.Limited_Controlled with private;
type Router_Type_Access is access all Router_Type'Class;
-- Add a route associated with the given path pattern. The pattern is split into components.
-- Some path components can be a fixed string (/home) and others can be variable.
-- When a path component is variable, the value can be retrieved from the route context.
-- Once the route path is created, the <tt>Process</tt> procedure is called with the route
-- reference.
procedure Add_Route (Router : in out Router_Type;
Pattern : in String;
ELContext : in EL.Contexts.ELContext'Class;
Process : not null access procedure (Route : in out Route_Type_Ref));
-- Build the route context from the given path by looking at the different routes registered
-- in the router with <tt>Add_Route</tt>.
procedure Find_Route (Router : in Router_Type;
Path : in String;
Context : in out Route_Context_Type'Class);
-- Walk the routes that have been added by <tt>Add_Route</tt> and call the <tt>Process</tt>
-- procedure with each path pattern and route object.
procedure Iterate (Router : in Router_Type;
Process : not null access procedure (Pattern : in String;
Route : in Route_Type_Accessor));
private
type String_Access is access all String;
type Route_Node_Type is tagged;
type Route_Node_Access is access all Route_Node_Type'Class;
-- Describes a variable path component whose value must be injected in an Ada bean.
type Route_Param_Type is limited record
Route : Route_Node_Access;
First : Natural := 0;
Last : Natural := 0;
end record;
type Route_Param_Array is array (Positive range <>) of Route_Param_Type;
type Route_Match_Type is (NO_MATCH, MAYBE_MATCH, WILDCARD_MATCH, EXT_MATCH, YES_MATCH);
type Route_Node_Type is abstract tagged limited record
Next_Route : Route_Node_Access;
Children : Route_Node_Access;
Route : Route_Type_Ref;
end record;
-- Inject the parameter that was extracted from the path.
procedure Inject_Parameter (Node : in Route_Node_Type;
Param : in String;
Into : in out Util.Beans.Basic.Bean'Class;
ELContext : in EL.Contexts.ELContext'Class) is null;
-- Check if the route node accepts the given path component.
function Matches (Node : in Route_Node_Type;
Name : in String;
Is_Last : in Boolean) return Route_Match_Type is abstract;
-- Return the component path pattern that this route node represents.
-- Example: 'index.html', '#{user.id}', ':id'
function Get_Pattern (Node : in Route_Node_Type) return String is abstract;
-- Return the position of the variable part of the path.
-- If the URI matches a wildcard pattern, the position of the last '/' in the wildcard pattern
-- is returned.
function Get_Path_Pos (Node : in Route_Node_Type;
Param : in Route_Param_Type) return Natural;
-- Find recursively a match on the given route sub-tree. The match must start at the position
-- <tt>First</tt> in the path up to the last path position. While the path components are
-- checked, the route context is populated with variable components. When the full path
-- matches, <tt>YES_MATCH</tt> is returned in the context gets the route instance.
procedure Find_Match (Node : in Route_Node_Type;
Path : in String;
First : in Natural;
Match : out Route_Match_Type;
Context : in out Route_Context_Type'Class);
-- Walk the routes that have been added by <tt>Add_Route</tt> and call the <tt>Process</tt>
-- procedure with each path pattern and route object.
procedure Iterate (Node : in Route_Node_Type;
Path : in String;
Process : not null access procedure (Pattern : in String;
Route : in Route_Type_Accessor));
-- A fixed path component identification.
type Path_Node_Type (Len : Natural) is new Route_Node_Type with record
Name : aliased String (1 .. Len);
end record;
type Path_Node_Access is access all Path_Node_Type'Class;
-- Check if the route node accepts the given path component.
-- Returns YES_MATCH if the name corresponds exactly to the node's name.
overriding
function Matches (Node : in Path_Node_Type;
Name : in String;
Is_Last : in Boolean) return Route_Match_Type;
-- Return the component path pattern that this route node represents (ie, 'Name').
overriding
function Get_Pattern (Node : in Path_Node_Type) return String;
-- A variable path component whose value is injected in an Ada bean using the EL expression.
-- The route node is created each time an EL expression is found in the route pattern.
-- Example: /home/#{user.id}/index.html
-- In this example, the EL expression refers to <tt>user.id</tt>.
type EL_Node_Type is new Route_Node_Type with record
Value : EL.Expressions.Value_Expression;
end record;
type EL_Node_Access is access all EL_Node_Type'Class;
-- Check if the route node accepts the given path component.
-- Returns MAYBE_MATCH.
overriding
function Matches (Node : in EL_Node_Type;
Name : in String;
Is_Last : in Boolean) return Route_Match_Type;
-- Return the component path pattern that this route node represents (ie, the EL expr).
overriding
function Get_Pattern (Node : in EL_Node_Type) return String;
-- Inject the parameter that was extracted from the path.
overriding
procedure Inject_Parameter (Node : in EL_Node_Type;
Param : in String;
Into : in out Util.Beans.Basic.Bean'Class;
ELContext : in EL.Contexts.ELContext'Class);
-- A variable path component which can be injected in an Ada bean.
-- Example: /home/:id/view.html
-- The path component represented by <tt>:id</tt> is injected in the Ada bean object
-- passed to the <tt>Inject_Parameters</tt> procedure.
type Param_Node_Type (Len : Natural) is new Route_Node_Type with record
Name : String (1 .. Len);
end record;
type Param_Node_Access is access all Param_Node_Type'Class;
-- Check if the route node accepts the given path component.
-- Returns MAYBE_MATCH.
overriding
function Matches (Node : in Param_Node_Type;
Name : in String;
Is_Last : in Boolean) return Route_Match_Type;
-- Return the component path pattern that this route node represents (ie, Name).
overriding
function Get_Pattern (Node : in Param_Node_Type) return String;
-- Inject the parameter that was extracted from the path.
overriding
procedure Inject_Parameter (Node : in Param_Node_Type;
Param : in String;
Into : in out Util.Beans.Basic.Bean'Class;
ELContext : in EL.Contexts.ELContext'Class);
type Extension_Node_Type (Len : Natural) is new Route_Node_Type with record
Ext : String (1 .. Len);
end record;
type Extension_Node_Access is access all Extension_Node_Type'Class;
-- Check if the route node accepts the given extension.
-- Returns MAYBE_MATCH.
overriding
function Matches (Node : in Extension_Node_Type;
Name : in String;
Is_Last : in Boolean) return Route_Match_Type;
-- Return the component path pattern that this route node represents (ie, *.Ext).
overriding
function Get_Pattern (Node : in Extension_Node_Type) return String;
type Wildcard_Node_Type is new Route_Node_Type with null record;
type Wildcard_Node_Access is access all Wildcard_Node_Type'Class;
-- Check if the route node accepts the given extension.
-- Returns WILDCARD_MATCH.
overriding
function Matches (Node : in Wildcard_Node_Type;
Name : in String;
Is_Last : in Boolean) return Route_Match_Type;
-- Return the component path pattern that this route node represents (ie, *).
overriding
function Get_Pattern (Node : in Wildcard_Node_Type) return String;
-- Return the position of the variable part of the path.
-- If the URI matches a wildcard pattern, the position of the last '/' in the wildcard pattern
-- is returned.
overriding
function Get_Path_Pos (Node : in Wildcard_Node_Type;
Param : in Route_Param_Type) return Natural;
MAX_ROUTE_PARAMS : constant Positive := 10;
type Route_Context_Type is limited new Ada.Finalization.Limited_Controlled with record
Route : Route_Type_Ref;
Path : String_Access;
Params : Route_Param_Array (1 .. MAX_ROUTE_PARAMS);
Count : Natural := 0;
end record;
-- Release the storage held by the route context.
overriding
procedure Finalize (Context : in out Route_Context_Type);
type Router_Type is new Ada.Finalization.Limited_Controlled with record
Route : aliased Path_Node_Type (Len => 0);
end record;
-- Release the storage held by the router.
overriding
procedure Finalize (Router : in out Router_Type);
-- Insert the route node at the correct place in the children list
-- according to the rule kind.
procedure Insert (Parent : in Route_Node_Access;
Node : in Route_Node_Access;
Kind : in Route_Match_Type);
end Servlet.Routes;
|
[
{
"context": "-- Copyright (c) 2015-2017 Maxim Reznik <[email protected]>\n--\n-- SPDX-License-Identifi",
"end": 40,
"score": 0.9998458623886108,
"start": 28,
"tag": "NAME",
"value": "Maxim Reznik"
},
{
"context": "-- Copyright (c) 2015-2017 Maxim Reznik <[email protected]>\n--\n-- SPDX-License-Identifier: MIT\n-- License-",
"end": 60,
"score": 0.999932050704956,
"start": 42,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
tools/gen/gen-driver.adb
|
reznikmm/ada_lsp
| 11 |
-- Copyright (c) 2015-2017 Maxim Reznik <[email protected]>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Command_Line;
with Anagram.Grammars.Constructors;
with Anagram.Grammars.LR.LALR;
with Anagram.Grammars.LR_Tables;
with Anagram.Grammars.Reader;
with Anagram.Grammars_Convertors;
with Anagram.Grammars_Debug;
with Gen.Write_Parser_Data;
procedure Gen.Driver is
File : constant String := Ada.Command_Line.Argument (1);
G : constant Anagram.Grammars.Grammar :=
Anagram.Grammars.Reader.Read (File);
Plain : constant Anagram.Grammars.Grammar :=
Anagram.Grammars_Convertors.Convert (G, False);
AG : constant Anagram.Grammars.Grammar :=
Anagram.Grammars.Constructors.To_Augmented (Plain);
Table : constant Anagram.Grammars.LR_Tables.Table_Access :=
Anagram.Grammars.LR.LALR.Build (AG, False);
begin
if Ada.Command_Line.Argument_Count = 1 then
Gen.Write_Parser_Data (Plain, Table.all);
elsif Ada.Command_Line.Argument_Count > 2 then
Anagram.Grammars_Debug.Print_Conflicts (AG, Table.all);
end if;
end Gen.Driver;
|
22015
|
-- Copyright (c) 2015-2017 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Command_Line;
with Anagram.Grammars.Constructors;
with Anagram.Grammars.LR.LALR;
with Anagram.Grammars.LR_Tables;
with Anagram.Grammars.Reader;
with Anagram.Grammars_Convertors;
with Anagram.Grammars_Debug;
with Gen.Write_Parser_Data;
procedure Gen.Driver is
File : constant String := Ada.Command_Line.Argument (1);
G : constant Anagram.Grammars.Grammar :=
Anagram.Grammars.Reader.Read (File);
Plain : constant Anagram.Grammars.Grammar :=
Anagram.Grammars_Convertors.Convert (G, False);
AG : constant Anagram.Grammars.Grammar :=
Anagram.Grammars.Constructors.To_Augmented (Plain);
Table : constant Anagram.Grammars.LR_Tables.Table_Access :=
Anagram.Grammars.LR.LALR.Build (AG, False);
begin
if Ada.Command_Line.Argument_Count = 1 then
Gen.Write_Parser_Data (Plain, Table.all);
elsif Ada.Command_Line.Argument_Count > 2 then
Anagram.Grammars_Debug.Print_Conflicts (AG, Table.all);
end if;
end Gen.Driver;
| true |
-- Copyright (c) 2015-2017 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Command_Line;
with Anagram.Grammars.Constructors;
with Anagram.Grammars.LR.LALR;
with Anagram.Grammars.LR_Tables;
with Anagram.Grammars.Reader;
with Anagram.Grammars_Convertors;
with Anagram.Grammars_Debug;
with Gen.Write_Parser_Data;
procedure Gen.Driver is
File : constant String := Ada.Command_Line.Argument (1);
G : constant Anagram.Grammars.Grammar :=
Anagram.Grammars.Reader.Read (File);
Plain : constant Anagram.Grammars.Grammar :=
Anagram.Grammars_Convertors.Convert (G, False);
AG : constant Anagram.Grammars.Grammar :=
Anagram.Grammars.Constructors.To_Augmented (Plain);
Table : constant Anagram.Grammars.LR_Tables.Table_Access :=
Anagram.Grammars.LR.LALR.Build (AG, False);
begin
if Ada.Command_Line.Argument_Count = 1 then
Gen.Write_Parser_Data (Plain, Table.all);
elsif Ada.Command_Line.Argument_Count > 2 then
Anagram.Grammars_Debug.Print_Conflicts (AG, Table.all);
end if;
end Gen.Driver;
|
[
{
"context": "(RCS)\n-- Project: StratoX\n--\n-- Authors: Emanuel Regnath ([email protected])\nwith HAL;\nwith Interface",
"end": 159,
"score": 0.9999003410339355,
"start": 144,
"tag": "NAME",
"value": "Emanuel Regnath"
},
{
"context": " StratoX\n--\n-- Authors: Emanuel Regnath ([email protected])\nwith HAL;\nwith Interfaces; use Interfaces;\nwith ",
"end": 183,
"score": 0.999930739402771,
"start": 161,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
software/hal/boards/common/hil/hil.ads
|
TUM-EI-RCS/StratoX
| 12 |
-- Institution: Technische Universitaet Muenchen
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
--
-- Authors: Emanuel Regnath ([email protected])
with HAL;
with Interfaces; use Interfaces;
with Ada.Unchecked_Conversion;
-- @summary
-- target-independent functions of HIL.
package HIL with
SPARK_Mode
is
pragma Preelaborate;
--procedure configure_Hardware;
subtype Byte is HAL.Byte;
-- Unsigned_8
-- Integer_8
type Bit is mod 2**1 with Size => 1;
-- Architecture Independent
type Unsigned_8_Mask is new Unsigned_8;
subtype Unsigned_8_Bit_Index is Natural range 0 .. 7;
type Unsigned_16_Mask is new Unsigned_16;
type Unsigned_16_Bit_Index is new Natural range 0 .. 15;
type Unsigned_32_Mask is new Unsigned_32;
type Unsigned_32_Bit_Index is new Natural range 0 .. 31;
-- Arrays
type Byte_Array is array(Natural range <>) of Byte;
type Short_Array is array(Natural range <>) of Unsigned_16;
type Word_Array is array(Natural range <>) of Unsigned_32;
subtype Byte_Array_2 is Byte_Array(1..2); -- not working (explicit raise in flow_utility.adb)
-- type Byte_Array_2 is Byte_Array(1..2);
type Byte_Array_4 is array(1..4) of Byte;
type Unsigned_8_Array is array(Natural range <>) of Unsigned_8;
type Unsigned_16_Array is array(Natural range <>) of Unsigned_16;
type Unsigned_32_Array is array(Natural range <>) of Unsigned_32;
type Integer_8_Array is array(Natural range <>) of Integer_8;
type Integer_16_Array is array(Natural range <>) of Integer_16;
type Integer_32_Array is array(Natural range <>) of Integer_32;
type Float_Array is array(Natural range <>) of Float;
function From_Byte_Array_To_Float is new Ada.Unchecked_Conversion (Source => Byte_Array_4,
Target => Float);
function From_Float_To_Byte_Array is new Ada.Unchecked_Conversion (Source => Float,
Target => Byte_Array_4);
-- little endian (lowest byte first)
function toBytes(uint : in Unsigned_16) return Byte_Array is
(1 => Unsigned_8( uint mod 2**8 ), 2 => Unsigned_8 ( uint / 2**8 ) );
function toBytes( source : in Float) return Byte_Array_4 is
(From_Float_To_Byte_Array( source ) )
with Pre => source'Size = 32;
-- FAILS (unsigned arg, constrained return)
function toBytes_uc(uint : Unsigned_16) return Byte_Array_2 is
(1 => Unsigned_8( uint mod 2**8 ), 2 => Unsigned_8 ( uint / 2**8 ) );
function toUnsigned_16( bytes : Byte_Array) return Unsigned_16
is
( Unsigned_16 (bytes (bytes'First ))
+ Unsigned_16 (bytes (bytes'First + 1)) * 2**8)
with Pre => bytes'Length = 2;
function toUnsigned_32( bytes : Byte_Array) return Unsigned_32 is
( Unsigned_32 (bytes (bytes'First ))
+ Unsigned_32 (bytes (bytes'First + 1)) * 2**8
+ Unsigned_32 (bytes (bytes'First + 2)) * 2**16
+ Unsigned_32 (bytes (bytes'First + 3)) * 2**24)
with Pre => bytes'Length = 4;
function Bytes_To_Unsigned32 is new Ada.Unchecked_Conversion (Source => Byte_Array_4,
Target => Unsigned_32);
function Unsigned32_To_Bytes is new Ada.Unchecked_Conversion (Source => Unsigned_32,
Target => Byte_Array_4);
function From_Byte_To_Integer_8 is new Ada.Unchecked_Conversion (Source => Byte,
Target => Integer_8);
function From_Byte_Array_To_Integer_32 is new Ada.Unchecked_Conversion (Source => Byte_Array_4,
Target => Integer_32);
function toInteger_8( value : Byte ) return Integer_8 is
( From_Byte_To_Integer_8( value ) );
function toInteger_32( bytes : Byte_Array) return Integer_32
is
(From_Byte_Array_To_Integer_32( Byte_Array_4( bytes ) ) )
with Pre => bytes'Length = 4;
function toCharacter( source : Byte ) return Character
is ( Character'Val ( source ) );
function toFloat( source : Byte_Array_4 ) return Float is
( From_Byte_Array_To_Float( source ) );
procedure write_Bits( register : in out Unsigned_8;
start_index : Unsigned_8_Bit_Index;
length : Positive;
value : Integer) with
Pre => length <= Natural (Unsigned_8_Bit_Index'Last) + 1 - Natural (start_index) and then
value < 2**(length-1) + 2**(length-1) - 1; -- e.g. 2^8 = 256, but range is only up to 2^8-1
function read_Bits( register : in Unsigned_8;
start_index : Unsigned_8_Bit_Index;
length : Positive) return Unsigned_8
with Pre => length <= Natural (Unsigned_8_Bit_Index'Last) + 1 - Natural (start_index),
Post => read_Bits'Result < 2**length;
-- procedure set_Bit( reg : in out Unsigned_16, bit : Unsigned_16_Bit_ID) is
-- mask : Unsigned_16_Mask
procedure set_Bits( register : in out Unsigned_16; bit_mask : Unsigned_16_Mask)
with Pre => register'Size = bit_mask'Size;
procedure clear_Bits( register : in out Unsigned_16; bit_mask : Unsigned_16_Mask)
with Pre => register'Size = bit_mask'Size;
function isSet( register : Unsigned_16; bit_mask : Unsigned_16_Mask) return Boolean is
( ( register and Unsigned_16( bit_mask ) ) > 0 );
-- procedure Read_Buffer
-- (Stream : not null access Streams.Root_Stream_Type'Class;
-- Item : out Byte_Array);
--
-- procedure Write_Buffer
-- (Stream : not null access Streams.Root_Stream_Type'Class;
-- Item : in Byte_Array);
--
-- for Byte_Array'Read use Read_Buffer;
-- for Byte_Array'Write use Write_Buffer;
end HIL;
|
15730
|
-- Institution: Technische Universitaet Muenchen
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
--
-- Authors: <NAME> (<EMAIL>)
with HAL;
with Interfaces; use Interfaces;
with Ada.Unchecked_Conversion;
-- @summary
-- target-independent functions of HIL.
package HIL with
SPARK_Mode
is
pragma Preelaborate;
--procedure configure_Hardware;
subtype Byte is HAL.Byte;
-- Unsigned_8
-- Integer_8
type Bit is mod 2**1 with Size => 1;
-- Architecture Independent
type Unsigned_8_Mask is new Unsigned_8;
subtype Unsigned_8_Bit_Index is Natural range 0 .. 7;
type Unsigned_16_Mask is new Unsigned_16;
type Unsigned_16_Bit_Index is new Natural range 0 .. 15;
type Unsigned_32_Mask is new Unsigned_32;
type Unsigned_32_Bit_Index is new Natural range 0 .. 31;
-- Arrays
type Byte_Array is array(Natural range <>) of Byte;
type Short_Array is array(Natural range <>) of Unsigned_16;
type Word_Array is array(Natural range <>) of Unsigned_32;
subtype Byte_Array_2 is Byte_Array(1..2); -- not working (explicit raise in flow_utility.adb)
-- type Byte_Array_2 is Byte_Array(1..2);
type Byte_Array_4 is array(1..4) of Byte;
type Unsigned_8_Array is array(Natural range <>) of Unsigned_8;
type Unsigned_16_Array is array(Natural range <>) of Unsigned_16;
type Unsigned_32_Array is array(Natural range <>) of Unsigned_32;
type Integer_8_Array is array(Natural range <>) of Integer_8;
type Integer_16_Array is array(Natural range <>) of Integer_16;
type Integer_32_Array is array(Natural range <>) of Integer_32;
type Float_Array is array(Natural range <>) of Float;
function From_Byte_Array_To_Float is new Ada.Unchecked_Conversion (Source => Byte_Array_4,
Target => Float);
function From_Float_To_Byte_Array is new Ada.Unchecked_Conversion (Source => Float,
Target => Byte_Array_4);
-- little endian (lowest byte first)
function toBytes(uint : in Unsigned_16) return Byte_Array is
(1 => Unsigned_8( uint mod 2**8 ), 2 => Unsigned_8 ( uint / 2**8 ) );
function toBytes( source : in Float) return Byte_Array_4 is
(From_Float_To_Byte_Array( source ) )
with Pre => source'Size = 32;
-- FAILS (unsigned arg, constrained return)
function toBytes_uc(uint : Unsigned_16) return Byte_Array_2 is
(1 => Unsigned_8( uint mod 2**8 ), 2 => Unsigned_8 ( uint / 2**8 ) );
function toUnsigned_16( bytes : Byte_Array) return Unsigned_16
is
( Unsigned_16 (bytes (bytes'First ))
+ Unsigned_16 (bytes (bytes'First + 1)) * 2**8)
with Pre => bytes'Length = 2;
function toUnsigned_32( bytes : Byte_Array) return Unsigned_32 is
( Unsigned_32 (bytes (bytes'First ))
+ Unsigned_32 (bytes (bytes'First + 1)) * 2**8
+ Unsigned_32 (bytes (bytes'First + 2)) * 2**16
+ Unsigned_32 (bytes (bytes'First + 3)) * 2**24)
with Pre => bytes'Length = 4;
function Bytes_To_Unsigned32 is new Ada.Unchecked_Conversion (Source => Byte_Array_4,
Target => Unsigned_32);
function Unsigned32_To_Bytes is new Ada.Unchecked_Conversion (Source => Unsigned_32,
Target => Byte_Array_4);
function From_Byte_To_Integer_8 is new Ada.Unchecked_Conversion (Source => Byte,
Target => Integer_8);
function From_Byte_Array_To_Integer_32 is new Ada.Unchecked_Conversion (Source => Byte_Array_4,
Target => Integer_32);
function toInteger_8( value : Byte ) return Integer_8 is
( From_Byte_To_Integer_8( value ) );
function toInteger_32( bytes : Byte_Array) return Integer_32
is
(From_Byte_Array_To_Integer_32( Byte_Array_4( bytes ) ) )
with Pre => bytes'Length = 4;
function toCharacter( source : Byte ) return Character
is ( Character'Val ( source ) );
function toFloat( source : Byte_Array_4 ) return Float is
( From_Byte_Array_To_Float( source ) );
procedure write_Bits( register : in out Unsigned_8;
start_index : Unsigned_8_Bit_Index;
length : Positive;
value : Integer) with
Pre => length <= Natural (Unsigned_8_Bit_Index'Last) + 1 - Natural (start_index) and then
value < 2**(length-1) + 2**(length-1) - 1; -- e.g. 2^8 = 256, but range is only up to 2^8-1
function read_Bits( register : in Unsigned_8;
start_index : Unsigned_8_Bit_Index;
length : Positive) return Unsigned_8
with Pre => length <= Natural (Unsigned_8_Bit_Index'Last) + 1 - Natural (start_index),
Post => read_Bits'Result < 2**length;
-- procedure set_Bit( reg : in out Unsigned_16, bit : Unsigned_16_Bit_ID) is
-- mask : Unsigned_16_Mask
procedure set_Bits( register : in out Unsigned_16; bit_mask : Unsigned_16_Mask)
with Pre => register'Size = bit_mask'Size;
procedure clear_Bits( register : in out Unsigned_16; bit_mask : Unsigned_16_Mask)
with Pre => register'Size = bit_mask'Size;
function isSet( register : Unsigned_16; bit_mask : Unsigned_16_Mask) return Boolean is
( ( register and Unsigned_16( bit_mask ) ) > 0 );
-- procedure Read_Buffer
-- (Stream : not null access Streams.Root_Stream_Type'Class;
-- Item : out Byte_Array);
--
-- procedure Write_Buffer
-- (Stream : not null access Streams.Root_Stream_Type'Class;
-- Item : in Byte_Array);
--
-- for Byte_Array'Read use Read_Buffer;
-- for Byte_Array'Write use Write_Buffer;
end HIL;
| true |
-- Institution: Technische Universitaet Muenchen
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
--
-- Authors: PI:NAME:<NAME>END_PI (PI:EMAIL:<EMAIL>END_PI)
with HAL;
with Interfaces; use Interfaces;
with Ada.Unchecked_Conversion;
-- @summary
-- target-independent functions of HIL.
package HIL with
SPARK_Mode
is
pragma Preelaborate;
--procedure configure_Hardware;
subtype Byte is HAL.Byte;
-- Unsigned_8
-- Integer_8
type Bit is mod 2**1 with Size => 1;
-- Architecture Independent
type Unsigned_8_Mask is new Unsigned_8;
subtype Unsigned_8_Bit_Index is Natural range 0 .. 7;
type Unsigned_16_Mask is new Unsigned_16;
type Unsigned_16_Bit_Index is new Natural range 0 .. 15;
type Unsigned_32_Mask is new Unsigned_32;
type Unsigned_32_Bit_Index is new Natural range 0 .. 31;
-- Arrays
type Byte_Array is array(Natural range <>) of Byte;
type Short_Array is array(Natural range <>) of Unsigned_16;
type Word_Array is array(Natural range <>) of Unsigned_32;
subtype Byte_Array_2 is Byte_Array(1..2); -- not working (explicit raise in flow_utility.adb)
-- type Byte_Array_2 is Byte_Array(1..2);
type Byte_Array_4 is array(1..4) of Byte;
type Unsigned_8_Array is array(Natural range <>) of Unsigned_8;
type Unsigned_16_Array is array(Natural range <>) of Unsigned_16;
type Unsigned_32_Array is array(Natural range <>) of Unsigned_32;
type Integer_8_Array is array(Natural range <>) of Integer_8;
type Integer_16_Array is array(Natural range <>) of Integer_16;
type Integer_32_Array is array(Natural range <>) of Integer_32;
type Float_Array is array(Natural range <>) of Float;
function From_Byte_Array_To_Float is new Ada.Unchecked_Conversion (Source => Byte_Array_4,
Target => Float);
function From_Float_To_Byte_Array is new Ada.Unchecked_Conversion (Source => Float,
Target => Byte_Array_4);
-- little endian (lowest byte first)
function toBytes(uint : in Unsigned_16) return Byte_Array is
(1 => Unsigned_8( uint mod 2**8 ), 2 => Unsigned_8 ( uint / 2**8 ) );
function toBytes( source : in Float) return Byte_Array_4 is
(From_Float_To_Byte_Array( source ) )
with Pre => source'Size = 32;
-- FAILS (unsigned arg, constrained return)
function toBytes_uc(uint : Unsigned_16) return Byte_Array_2 is
(1 => Unsigned_8( uint mod 2**8 ), 2 => Unsigned_8 ( uint / 2**8 ) );
function toUnsigned_16( bytes : Byte_Array) return Unsigned_16
is
( Unsigned_16 (bytes (bytes'First ))
+ Unsigned_16 (bytes (bytes'First + 1)) * 2**8)
with Pre => bytes'Length = 2;
function toUnsigned_32( bytes : Byte_Array) return Unsigned_32 is
( Unsigned_32 (bytes (bytes'First ))
+ Unsigned_32 (bytes (bytes'First + 1)) * 2**8
+ Unsigned_32 (bytes (bytes'First + 2)) * 2**16
+ Unsigned_32 (bytes (bytes'First + 3)) * 2**24)
with Pre => bytes'Length = 4;
function Bytes_To_Unsigned32 is new Ada.Unchecked_Conversion (Source => Byte_Array_4,
Target => Unsigned_32);
function Unsigned32_To_Bytes is new Ada.Unchecked_Conversion (Source => Unsigned_32,
Target => Byte_Array_4);
function From_Byte_To_Integer_8 is new Ada.Unchecked_Conversion (Source => Byte,
Target => Integer_8);
function From_Byte_Array_To_Integer_32 is new Ada.Unchecked_Conversion (Source => Byte_Array_4,
Target => Integer_32);
function toInteger_8( value : Byte ) return Integer_8 is
( From_Byte_To_Integer_8( value ) );
function toInteger_32( bytes : Byte_Array) return Integer_32
is
(From_Byte_Array_To_Integer_32( Byte_Array_4( bytes ) ) )
with Pre => bytes'Length = 4;
function toCharacter( source : Byte ) return Character
is ( Character'Val ( source ) );
function toFloat( source : Byte_Array_4 ) return Float is
( From_Byte_Array_To_Float( source ) );
procedure write_Bits( register : in out Unsigned_8;
start_index : Unsigned_8_Bit_Index;
length : Positive;
value : Integer) with
Pre => length <= Natural (Unsigned_8_Bit_Index'Last) + 1 - Natural (start_index) and then
value < 2**(length-1) + 2**(length-1) - 1; -- e.g. 2^8 = 256, but range is only up to 2^8-1
function read_Bits( register : in Unsigned_8;
start_index : Unsigned_8_Bit_Index;
length : Positive) return Unsigned_8
with Pre => length <= Natural (Unsigned_8_Bit_Index'Last) + 1 - Natural (start_index),
Post => read_Bits'Result < 2**length;
-- procedure set_Bit( reg : in out Unsigned_16, bit : Unsigned_16_Bit_ID) is
-- mask : Unsigned_16_Mask
procedure set_Bits( register : in out Unsigned_16; bit_mask : Unsigned_16_Mask)
with Pre => register'Size = bit_mask'Size;
procedure clear_Bits( register : in out Unsigned_16; bit_mask : Unsigned_16_Mask)
with Pre => register'Size = bit_mask'Size;
function isSet( register : Unsigned_16; bit_mask : Unsigned_16_Mask) return Boolean is
( ( register and Unsigned_16( bit_mask ) ) > 0 );
-- procedure Read_Buffer
-- (Stream : not null access Streams.Root_Stream_Type'Class;
-- Item : out Byte_Array);
--
-- procedure Write_Buffer
-- (Stream : not null access Streams.Root_Stream_Type'Class;
-- Item : in Byte_Array);
--
-- for Byte_Array'Read use Read_Buffer;
-- for Byte_Array'Write use Write_Buffer;
end HIL;
|
[
{
"context": " --\n-- * Richard Wai (ANNEXI-STRAYLINE) ",
"end": 1044,
"score": 0.9997677803039551,
"start": 1033,
"tag": "NAME",
"value": "Richard Wai"
}
] |
build-compilation.adb
|
annexi-strayline/AURA
| 13 |
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- --
-- Command Line Interface --
-- --
-- ------------------------------------------------------------------------ --
-- --
-- Copyright (C) 2020, ANNEXI-STRAYLINE Trans-Human Ltd. --
-- All rights reserved. --
-- --
-- Original Contributors: --
-- * Richard Wai (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.Text_IO;
with Ada.Directories;
with Ada.Assertions;
with Ada.Strings.Wide_Wide_Fixed;
with Unit_Names;
with Platform_Info;
with Repositories;
with Registrar.Queries;
with Registrar.Last_Run;
with Registrar.Subsystems;
with Registrar.Registration;
with Registrar.Library_Units;
with Registrar.Source_Files;
with Workers, Workers.Reporting;
with Child_Processes.Path_Searching;
package body Build.Compilation is
procedure Assert (Check: in Boolean; Message: in String)
renames Ada.Assertions.Assert;
New_Line: Character renames Workers.Reporting.New_Line;
package Program_Paths renames Child_Processes.Path_Searching;
Compiler_Program: aliased constant String
:= Platform_Info.Toolchain_Prefix & "gcc";
Compiler: constant Program_Paths.Elaboration_Path_Search
:= Program_Paths.Initialize (Compiler_Program);
--
-- Compilation Order Support Utilities
--
-- Select_Configuration_Subsystem --
------------------------------------
-- Basically, for non-AURA subsystem units, we need to select the AURA
-- subsystem
function Select_Configuration_Subsystem
(Unit: Registrar.Library_Units.Library_Unit)
return Registrar.Subsystems.Subsystem
is
use Registrar.Subsystems;
begin
return Unit_Subsys: Subsystem
:= Registrar.Queries.Lookup_Subsystem (Unit.Name.Subsystem_Name)
do
if not Unit_Subsys.AURA then
Unit_Subsys := Registrar.Queries.Lookup_Subsystem
(Unit_Names.Set_Name ("aura"));
end if;
end return;
end Select_Configuration_Subsystem;
-- Compute_Arguments --
-----------------------
-- Compute all of the arguments needed to pass to the compiler to compile
-- Unit.
--
-- Opportunistically determine if the Unit is a member of a "System" format
-- Repository
function Compute_Arguments
(Unit : in Registrar.Library_Units.Library_Unit;
Config : in Build_Configuration;
From_System_Repo: out Boolean)
return String
is
package WWF renames Ada.Strings.Wide_Wide_Fixed;
use type Registrar.Source_Files.Source_File_Access;
use UBS;
use Repositories;
use Registrar.Subsystems;
use Registrar.Library_Units;
Unit_Subsys: constant Subsystem := Select_Configuration_Subsystem (Unit);
Available_Subsystems: constant Subsystem_Sets.Set
:= Registrar.Queries.Available_Subsystems;
Buffer: Unbounded_String := To_Unbounded_String ("-c");
procedure Add_Codepaths (Subsys: in Subsystem) is
-- Append includes for the subsystem and all configured codepaths to
-- the buffer
Subsys_Path: constant String := "../" & Subsys.Name.To_UTF8_String;
begin
Append (Buffer, " -I" & Subsys_Path);
for Codepath_Pair of Subsys.Configuration.Codepaths loop
Append (Buffer, " -I" & Subsys_Path & '/'
& UBS.To_String (Codepath_Pair.Value));
end loop;
end Add_Codepaths;
begin
pragma Assert (Unit.State /= Requested
and then Unit.Kind not in Unknown | Subunit);
-- We take advantage of pulling the unit's subsystem to look for
-- units from "System" repositories. Such units are not to be compiled
if Unit_Subsys.AURA and then
Extract_Repository(Unit_Subsys.Source_Repository).Format = System
then
From_System_Repo := True;
return "";
else
From_System_Repo := False;
end if;
-- Includes. Assume the "current directory" of the compiler command
-- is Build_Root (and therefore the root directory is at ../)
-- First include our own subsystem, and codepaths for AURA, or
-- the project root for non-aura
-- (See comment below as to why the next block is commented-out)
-- if Unit_Subsys.AURA then
-- Add_Codepaths (Unit_Subsys);
-- else
-- Append (Buffer, " -I../");
-- end if;
-- Always include the root project path, as this not only contains the
-- project sources, but also all of the configuration units
Append (Buffer, " -I../");
-- Now the subsystems of all dependencies of this unit, and their
-- codepaths. Obviously we don't want to needlessly add the same
-- subsystems over and over, so we'll create a set a subset
-- Note that the below is the "original" code. However, this approach,
-- though more efficient, is not always compatbile with GNAT. If other
-- toolchains can handle this approach, then this code can be selectively
-- reactivated at a later time.
-- declare
-- Dependent_Subsys: Subsystem_Sets.Set;
-- begin
--
-- for Dep of Registrar.Queries.Unit_Dependencies (Unit.Name) loop
-- declare
-- Dep_Subsys: constant Subsystem_Sets.Cursor
-- := Available_Subsystems.Find
-- (Subsystem'(Name => Dep.Subsystem_Name, others => <>));
-- begin
-- Dependent_Subsys.Include (Subsystem_Sets.Element (Dep_Subsys));
-- end;
-- end loop;
--
-- for Subsys of Dependent_Subsys loop
-- Add_Codepaths (Subsys);
-- end loop;
-- end;
-- The issue is that GNAT uses a "macro expansion" approach to generics.
-- This means that generic library units cannot truly be "separately
-- compiled", and where these units (or other public generics) are used,
-- the dependencies of those generics because virtual dependencies of the
-- unit which instantiates the generic.
--
-- After some deep consideration, it was decided that the trade-off of
-- simply including the codepaths for all needed Subsystems for the
-- compilation of every Ada unit was not signficant enough to justify the
-- much more intense approach to do dependency hoisting for generic
-- instantiations, which would be a very singificant effort.
for Subsys of Registrar.Queries.Available_Subsystems loop
-- At the compilation stage, all required subsystems should be
-- available.
-- Don't include non-aura subsystems, since they are all in the
-- root directory
if Subsys.AURA then
Add_Codepaths (Subsys);
end if;
end loop;
-- For external units, we (for now) we support only c files
if Unit.Kind = External_Unit then
Assert (Check => WWF.Tail (Source => Unit.Name.To_String,
Count => 2) = ".c",
Message => "Only ""C"" External Units can be compiled");
-- Definitions
for Def_Pair of Unit_Subsys.Configuration.C_Definitions loop
Append (Buffer, " -D");
Append (Buffer, Def_Pair.Value);
end loop;
-- Compiler options
for Opt_Pair of Unit_Subsys.Configuration.C_Compiler_Opts loop
Append (Buffer, ' ' & UBS.To_String (Opt_Pair.Value));
end loop;
else
-- Must be Ada
-- Compiler options
for Opt_Pair of Unit_Subsys.Configuration.Ada_Compiler_Opts loop
Append (Buffer, ' ' & UBS.To_String (Opt_Pair.Value));
end loop;
end if;
-- Now add the global config options (currently GNAT-specific) - this
-- makes sure that they override any others
if Config.Position_Independent then
Append (Buffer, " -fPIC");
else
Append (Buffer, " -fno-PIC");
end if;
if Config.Debug_Enabled then
Append (Buffer, " -g");
end if;
if Config.All_Assertions and then Unit.Kind /= External_Unit then
Append (Buffer, " -gnata");
end if;
case Config.Optimization is
when None => null;
when Level_1 => Append (Buffer, " -O1");
when Level_2 => Append (Buffer, " -O2");
when Level_3 => Append (Buffer, " -O3");
when Size => Append (Buffer, " -Os");
when Debug => Append (Buffer, " -Og");
end case;
-- Finally append the file name
if Unit.Body_File /= null then
-- This applies to external units and ada units
Append (Buffer, ' ' & Unit.Body_File.Full_Name);
else
pragma Assert (Unit.Kind in Package_Unit | Subprogram_Unit);
Append (Buffer, ' ' & Unit.Spec_File.Full_Name);
end if;
return To_String (Buffer);
end Compute_Arguments;
------------------------
-- Compilation_Orders --
------------------------
type Compilation_Order is new Workers.Work_Order with
record
Unit : Registrar.Library_Units.Library_Unit;
Config: Build_Configuration;
end record;
overriding function Image (Order: Compilation_Order) return String;
overriding procedure Execute (Order: in out Compilation_Order);
function Image (Order: Compilation_Order) return String is
( "[Compilation_Order] (Build.Compilation)" & New_Line
& " Unit: " & Order.Unit.Name.To_UTF8_String);
procedure Execute (Order: in out Compilation_Order) is
package TIO renames Ada.Text_IO;
Unit: Registrar.Library_Units.Library_Unit
renames Order.Unit;
Unit_Name: constant String := Unit.Name.To_UTF8_String;
From_System_Repo: Boolean;
Args: constant String
:= Compute_Arguments (Unit, Order.Config, From_System_Repo);
begin
-- If the unit is a member of a subsystem that is checked out from a
-- "System" format Repository, we never actually compile it - rather
-- the reverse dependencies are triggered. In order to keep that
-- considerably more complicated process (Compute_Recompilations),
-- it treats such units the same as all others.
--
-- Therefore if we find that we have such a unit, we just rehash the
-- compilation products (thus promoting the unit to State = Compiled),
-- and complete the order.
--
-- It just so happens that Compute_Arguments needs to look at the
-- owning subsystem anyways. Therefore the actual logic to check this
-- is in that function, to improve efficiency
if From_System_Repo then
Direct_Hash_Compilation_Products (Unit);
return;
end if;
-- Start by writing out the command line
declare
use TIO;
CMD_OUT: File_Type;
begin
Create (File => CMD_OUT,
Name => Build_Output_Root & '/'
& Unit_Name & ".cmd");
Put_Line (CMD_OUT, "Compiler used:");
Put_Line (CMD_OUT, Program_Paths.Image_Path (Compiler));
Put_Line (CMD_OUT, "Arguments used:");
Put_Line (CMD_OUT, Args);
Close (CMD_OUT);
end;
-- Now do the compilation!
declare
use Child_Processes;
Compile_Process: Child_Process'Class := Spawn_Process
(Image_Path => Program_Paths.Image_Path (Compiler),
Arguments => Args,
Working_Directory => Build_Root);
Timed_Out: Boolean;
Status : Exit_Status;
STDOUT_Buffer, STDERR_Buffer: UBS.Unbounded_String;
begin
Wait_And_Buffer (Process => Compile_Process,
Poll_Rate => 0.2,
Timeout => 600.0, -- Aggressive..
Output => STDOUT_Buffer,
Error => STDERR_Buffer,
Timed_Out => Timed_Out,
Status => Status);
if not Compile_Process.Terminated then
Compile_Process.Kill;
delay 0.5; -- Should be more than long enough!
if not Compile_Process.Terminated then
Compile_Process.Nuke;
end if;
end if;
-- Dump stdout and stderr (if non-empty) to their files
declare
use TIO;
STDOUT_File, STDERR_File: File_Type;
begin
if UBS.Length (STDOUT_Buffer) > 0 then
Create (File => STDOUT_File,
Name => Build_Output_Root & '/'
& Unit_Name & ".out");
Put (STDOUT_File, UBS.To_String (STDOUT_Buffer));
Close (STDOUT_File);
end if;
if UBS.Length (STDERR_Buffer) > 0 then
Create (File => STDERR_File,
Name => Build_Output_Root & '/'
& Unit_Name & ".err");
Put (STDERR_File, UBS.To_String (STDERR_Buffer));
Close (STDERR_File);
end if;
end;
-- Timeout is a fatal error - not your "typical" compilation
-- failure
Assert (Check => not Timed_Out,
Message => "Compilation timed-out. "
& "Check compiler output files.");
-- Unsuccessful exit status generally means the compilation failed,
-- A non-empty STDERR buffer means warnings. Both mean a "common"
-- failure that needs to be intercepted (avoiding a work report),
-- and a submission of the error output to the Compilation_Messages
-- queue
if UBS.Length (STDERR_Buffer) > 0 then
Compiler_Messages.Enqueue
(Compiler_Message'(Unit => Unit,
Context => (if Status = Success then
Warning
else
Error),
STDERR => STDERR_Buffer));
end if;
if Status /= Success then
-- Only actual non-successful exit statuses warrent a "failure"
-- Deatch the tracker so that the worker won't touch it, and then
-- increment failure. There is no phase trigger for compilation
-- orders
Order.Tracker.Increment_Failed_Items;
Order.Tracker := null;
end if;
if Status = Success then
Unit.State := Registrar.Library_Units.Compiled;
Registrar.Registration.Update_Library_Unit (Unit);
end if;
end;
end Execute;
-------------
-- Compile --
-------------
procedure Compile (Configuration: in Build_Configuration) is
use Registrar.Library_Units;
New_Order: Compilation_Order
:= (Tracker => Compilation_Progress'Access,
Config => Configuration,
others => <>);
Avail_Units: constant Library_Unit_Sets.Set
:= Registrar.Queries.Available_Library_Units;
begin
-- Verify that we actually know where the compiler is before we dispatch
-- a bunch of doomed work-orders. This will create one single obvious
-- error rather than an unbounded number of hours if we don't do this
-- here
if not Program_Paths.Found (Compiler) then
raise Program_Error with
"Unable to compile: Could not find the compiler ("
& Compiler_Program & ")!";
end if;
Compilation_Progress.Increase_Total_Items_By
(Natural (Avail_Units.Length));
for Unit of Avail_Units loop
New_Order.Unit := Unit;
Workers.Enqueue_Order (New_Order);
end loop;
end Compile;
end Build.Compilation;
|
22526
|
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- --
-- Command Line Interface --
-- --
-- ------------------------------------------------------------------------ --
-- --
-- Copyright (C) 2020, ANNEXI-STRAYLINE Trans-Human Ltd. --
-- All rights reserved. --
-- --
-- Original Contributors: --
-- * <NAME> (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.Text_IO;
with Ada.Directories;
with Ada.Assertions;
with Ada.Strings.Wide_Wide_Fixed;
with Unit_Names;
with Platform_Info;
with Repositories;
with Registrar.Queries;
with Registrar.Last_Run;
with Registrar.Subsystems;
with Registrar.Registration;
with Registrar.Library_Units;
with Registrar.Source_Files;
with Workers, Workers.Reporting;
with Child_Processes.Path_Searching;
package body Build.Compilation is
procedure Assert (Check: in Boolean; Message: in String)
renames Ada.Assertions.Assert;
New_Line: Character renames Workers.Reporting.New_Line;
package Program_Paths renames Child_Processes.Path_Searching;
Compiler_Program: aliased constant String
:= Platform_Info.Toolchain_Prefix & "gcc";
Compiler: constant Program_Paths.Elaboration_Path_Search
:= Program_Paths.Initialize (Compiler_Program);
--
-- Compilation Order Support Utilities
--
-- Select_Configuration_Subsystem --
------------------------------------
-- Basically, for non-AURA subsystem units, we need to select the AURA
-- subsystem
function Select_Configuration_Subsystem
(Unit: Registrar.Library_Units.Library_Unit)
return Registrar.Subsystems.Subsystem
is
use Registrar.Subsystems;
begin
return Unit_Subsys: Subsystem
:= Registrar.Queries.Lookup_Subsystem (Unit.Name.Subsystem_Name)
do
if not Unit_Subsys.AURA then
Unit_Subsys := Registrar.Queries.Lookup_Subsystem
(Unit_Names.Set_Name ("aura"));
end if;
end return;
end Select_Configuration_Subsystem;
-- Compute_Arguments --
-----------------------
-- Compute all of the arguments needed to pass to the compiler to compile
-- Unit.
--
-- Opportunistically determine if the Unit is a member of a "System" format
-- Repository
function Compute_Arguments
(Unit : in Registrar.Library_Units.Library_Unit;
Config : in Build_Configuration;
From_System_Repo: out Boolean)
return String
is
package WWF renames Ada.Strings.Wide_Wide_Fixed;
use type Registrar.Source_Files.Source_File_Access;
use UBS;
use Repositories;
use Registrar.Subsystems;
use Registrar.Library_Units;
Unit_Subsys: constant Subsystem := Select_Configuration_Subsystem (Unit);
Available_Subsystems: constant Subsystem_Sets.Set
:= Registrar.Queries.Available_Subsystems;
Buffer: Unbounded_String := To_Unbounded_String ("-c");
procedure Add_Codepaths (Subsys: in Subsystem) is
-- Append includes for the subsystem and all configured codepaths to
-- the buffer
Subsys_Path: constant String := "../" & Subsys.Name.To_UTF8_String;
begin
Append (Buffer, " -I" & Subsys_Path);
for Codepath_Pair of Subsys.Configuration.Codepaths loop
Append (Buffer, " -I" & Subsys_Path & '/'
& UBS.To_String (Codepath_Pair.Value));
end loop;
end Add_Codepaths;
begin
pragma Assert (Unit.State /= Requested
and then Unit.Kind not in Unknown | Subunit);
-- We take advantage of pulling the unit's subsystem to look for
-- units from "System" repositories. Such units are not to be compiled
if Unit_Subsys.AURA and then
Extract_Repository(Unit_Subsys.Source_Repository).Format = System
then
From_System_Repo := True;
return "";
else
From_System_Repo := False;
end if;
-- Includes. Assume the "current directory" of the compiler command
-- is Build_Root (and therefore the root directory is at ../)
-- First include our own subsystem, and codepaths for AURA, or
-- the project root for non-aura
-- (See comment below as to why the next block is commented-out)
-- if Unit_Subsys.AURA then
-- Add_Codepaths (Unit_Subsys);
-- else
-- Append (Buffer, " -I../");
-- end if;
-- Always include the root project path, as this not only contains the
-- project sources, but also all of the configuration units
Append (Buffer, " -I../");
-- Now the subsystems of all dependencies of this unit, and their
-- codepaths. Obviously we don't want to needlessly add the same
-- subsystems over and over, so we'll create a set a subset
-- Note that the below is the "original" code. However, this approach,
-- though more efficient, is not always compatbile with GNAT. If other
-- toolchains can handle this approach, then this code can be selectively
-- reactivated at a later time.
-- declare
-- Dependent_Subsys: Subsystem_Sets.Set;
-- begin
--
-- for Dep of Registrar.Queries.Unit_Dependencies (Unit.Name) loop
-- declare
-- Dep_Subsys: constant Subsystem_Sets.Cursor
-- := Available_Subsystems.Find
-- (Subsystem'(Name => Dep.Subsystem_Name, others => <>));
-- begin
-- Dependent_Subsys.Include (Subsystem_Sets.Element (Dep_Subsys));
-- end;
-- end loop;
--
-- for Subsys of Dependent_Subsys loop
-- Add_Codepaths (Subsys);
-- end loop;
-- end;
-- The issue is that GNAT uses a "macro expansion" approach to generics.
-- This means that generic library units cannot truly be "separately
-- compiled", and where these units (or other public generics) are used,
-- the dependencies of those generics because virtual dependencies of the
-- unit which instantiates the generic.
--
-- After some deep consideration, it was decided that the trade-off of
-- simply including the codepaths for all needed Subsystems for the
-- compilation of every Ada unit was not signficant enough to justify the
-- much more intense approach to do dependency hoisting for generic
-- instantiations, which would be a very singificant effort.
for Subsys of Registrar.Queries.Available_Subsystems loop
-- At the compilation stage, all required subsystems should be
-- available.
-- Don't include non-aura subsystems, since they are all in the
-- root directory
if Subsys.AURA then
Add_Codepaths (Subsys);
end if;
end loop;
-- For external units, we (for now) we support only c files
if Unit.Kind = External_Unit then
Assert (Check => WWF.Tail (Source => Unit.Name.To_String,
Count => 2) = ".c",
Message => "Only ""C"" External Units can be compiled");
-- Definitions
for Def_Pair of Unit_Subsys.Configuration.C_Definitions loop
Append (Buffer, " -D");
Append (Buffer, Def_Pair.Value);
end loop;
-- Compiler options
for Opt_Pair of Unit_Subsys.Configuration.C_Compiler_Opts loop
Append (Buffer, ' ' & UBS.To_String (Opt_Pair.Value));
end loop;
else
-- Must be Ada
-- Compiler options
for Opt_Pair of Unit_Subsys.Configuration.Ada_Compiler_Opts loop
Append (Buffer, ' ' & UBS.To_String (Opt_Pair.Value));
end loop;
end if;
-- Now add the global config options (currently GNAT-specific) - this
-- makes sure that they override any others
if Config.Position_Independent then
Append (Buffer, " -fPIC");
else
Append (Buffer, " -fno-PIC");
end if;
if Config.Debug_Enabled then
Append (Buffer, " -g");
end if;
if Config.All_Assertions and then Unit.Kind /= External_Unit then
Append (Buffer, " -gnata");
end if;
case Config.Optimization is
when None => null;
when Level_1 => Append (Buffer, " -O1");
when Level_2 => Append (Buffer, " -O2");
when Level_3 => Append (Buffer, " -O3");
when Size => Append (Buffer, " -Os");
when Debug => Append (Buffer, " -Og");
end case;
-- Finally append the file name
if Unit.Body_File /= null then
-- This applies to external units and ada units
Append (Buffer, ' ' & Unit.Body_File.Full_Name);
else
pragma Assert (Unit.Kind in Package_Unit | Subprogram_Unit);
Append (Buffer, ' ' & Unit.Spec_File.Full_Name);
end if;
return To_String (Buffer);
end Compute_Arguments;
------------------------
-- Compilation_Orders --
------------------------
type Compilation_Order is new Workers.Work_Order with
record
Unit : Registrar.Library_Units.Library_Unit;
Config: Build_Configuration;
end record;
overriding function Image (Order: Compilation_Order) return String;
overriding procedure Execute (Order: in out Compilation_Order);
function Image (Order: Compilation_Order) return String is
( "[Compilation_Order] (Build.Compilation)" & New_Line
& " Unit: " & Order.Unit.Name.To_UTF8_String);
procedure Execute (Order: in out Compilation_Order) is
package TIO renames Ada.Text_IO;
Unit: Registrar.Library_Units.Library_Unit
renames Order.Unit;
Unit_Name: constant String := Unit.Name.To_UTF8_String;
From_System_Repo: Boolean;
Args: constant String
:= Compute_Arguments (Unit, Order.Config, From_System_Repo);
begin
-- If the unit is a member of a subsystem that is checked out from a
-- "System" format Repository, we never actually compile it - rather
-- the reverse dependencies are triggered. In order to keep that
-- considerably more complicated process (Compute_Recompilations),
-- it treats such units the same as all others.
--
-- Therefore if we find that we have such a unit, we just rehash the
-- compilation products (thus promoting the unit to State = Compiled),
-- and complete the order.
--
-- It just so happens that Compute_Arguments needs to look at the
-- owning subsystem anyways. Therefore the actual logic to check this
-- is in that function, to improve efficiency
if From_System_Repo then
Direct_Hash_Compilation_Products (Unit);
return;
end if;
-- Start by writing out the command line
declare
use TIO;
CMD_OUT: File_Type;
begin
Create (File => CMD_OUT,
Name => Build_Output_Root & '/'
& Unit_Name & ".cmd");
Put_Line (CMD_OUT, "Compiler used:");
Put_Line (CMD_OUT, Program_Paths.Image_Path (Compiler));
Put_Line (CMD_OUT, "Arguments used:");
Put_Line (CMD_OUT, Args);
Close (CMD_OUT);
end;
-- Now do the compilation!
declare
use Child_Processes;
Compile_Process: Child_Process'Class := Spawn_Process
(Image_Path => Program_Paths.Image_Path (Compiler),
Arguments => Args,
Working_Directory => Build_Root);
Timed_Out: Boolean;
Status : Exit_Status;
STDOUT_Buffer, STDERR_Buffer: UBS.Unbounded_String;
begin
Wait_And_Buffer (Process => Compile_Process,
Poll_Rate => 0.2,
Timeout => 600.0, -- Aggressive..
Output => STDOUT_Buffer,
Error => STDERR_Buffer,
Timed_Out => Timed_Out,
Status => Status);
if not Compile_Process.Terminated then
Compile_Process.Kill;
delay 0.5; -- Should be more than long enough!
if not Compile_Process.Terminated then
Compile_Process.Nuke;
end if;
end if;
-- Dump stdout and stderr (if non-empty) to their files
declare
use TIO;
STDOUT_File, STDERR_File: File_Type;
begin
if UBS.Length (STDOUT_Buffer) > 0 then
Create (File => STDOUT_File,
Name => Build_Output_Root & '/'
& Unit_Name & ".out");
Put (STDOUT_File, UBS.To_String (STDOUT_Buffer));
Close (STDOUT_File);
end if;
if UBS.Length (STDERR_Buffer) > 0 then
Create (File => STDERR_File,
Name => Build_Output_Root & '/'
& Unit_Name & ".err");
Put (STDERR_File, UBS.To_String (STDERR_Buffer));
Close (STDERR_File);
end if;
end;
-- Timeout is a fatal error - not your "typical" compilation
-- failure
Assert (Check => not Timed_Out,
Message => "Compilation timed-out. "
& "Check compiler output files.");
-- Unsuccessful exit status generally means the compilation failed,
-- A non-empty STDERR buffer means warnings. Both mean a "common"
-- failure that needs to be intercepted (avoiding a work report),
-- and a submission of the error output to the Compilation_Messages
-- queue
if UBS.Length (STDERR_Buffer) > 0 then
Compiler_Messages.Enqueue
(Compiler_Message'(Unit => Unit,
Context => (if Status = Success then
Warning
else
Error),
STDERR => STDERR_Buffer));
end if;
if Status /= Success then
-- Only actual non-successful exit statuses warrent a "failure"
-- Deatch the tracker so that the worker won't touch it, and then
-- increment failure. There is no phase trigger for compilation
-- orders
Order.Tracker.Increment_Failed_Items;
Order.Tracker := null;
end if;
if Status = Success then
Unit.State := Registrar.Library_Units.Compiled;
Registrar.Registration.Update_Library_Unit (Unit);
end if;
end;
end Execute;
-------------
-- Compile --
-------------
procedure Compile (Configuration: in Build_Configuration) is
use Registrar.Library_Units;
New_Order: Compilation_Order
:= (Tracker => Compilation_Progress'Access,
Config => Configuration,
others => <>);
Avail_Units: constant Library_Unit_Sets.Set
:= Registrar.Queries.Available_Library_Units;
begin
-- Verify that we actually know where the compiler is before we dispatch
-- a bunch of doomed work-orders. This will create one single obvious
-- error rather than an unbounded number of hours if we don't do this
-- here
if not Program_Paths.Found (Compiler) then
raise Program_Error with
"Unable to compile: Could not find the compiler ("
& Compiler_Program & ")!";
end if;
Compilation_Progress.Increase_Total_Items_By
(Natural (Avail_Units.Length));
for Unit of Avail_Units loop
New_Order.Unit := Unit;
Workers.Enqueue_Order (New_Order);
end loop;
end Compile;
end Build.Compilation;
| true |
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- --
-- Command Line Interface --
-- --
-- ------------------------------------------------------------------------ --
-- --
-- Copyright (C) 2020, ANNEXI-STRAYLINE Trans-Human Ltd. --
-- All rights reserved. --
-- --
-- Original Contributors: --
-- * PI:NAME:<NAME>END_PI (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.Text_IO;
with Ada.Directories;
with Ada.Assertions;
with Ada.Strings.Wide_Wide_Fixed;
with Unit_Names;
with Platform_Info;
with Repositories;
with Registrar.Queries;
with Registrar.Last_Run;
with Registrar.Subsystems;
with Registrar.Registration;
with Registrar.Library_Units;
with Registrar.Source_Files;
with Workers, Workers.Reporting;
with Child_Processes.Path_Searching;
package body Build.Compilation is
procedure Assert (Check: in Boolean; Message: in String)
renames Ada.Assertions.Assert;
New_Line: Character renames Workers.Reporting.New_Line;
package Program_Paths renames Child_Processes.Path_Searching;
Compiler_Program: aliased constant String
:= Platform_Info.Toolchain_Prefix & "gcc";
Compiler: constant Program_Paths.Elaboration_Path_Search
:= Program_Paths.Initialize (Compiler_Program);
--
-- Compilation Order Support Utilities
--
-- Select_Configuration_Subsystem --
------------------------------------
-- Basically, for non-AURA subsystem units, we need to select the AURA
-- subsystem
function Select_Configuration_Subsystem
(Unit: Registrar.Library_Units.Library_Unit)
return Registrar.Subsystems.Subsystem
is
use Registrar.Subsystems;
begin
return Unit_Subsys: Subsystem
:= Registrar.Queries.Lookup_Subsystem (Unit.Name.Subsystem_Name)
do
if not Unit_Subsys.AURA then
Unit_Subsys := Registrar.Queries.Lookup_Subsystem
(Unit_Names.Set_Name ("aura"));
end if;
end return;
end Select_Configuration_Subsystem;
-- Compute_Arguments --
-----------------------
-- Compute all of the arguments needed to pass to the compiler to compile
-- Unit.
--
-- Opportunistically determine if the Unit is a member of a "System" format
-- Repository
function Compute_Arguments
(Unit : in Registrar.Library_Units.Library_Unit;
Config : in Build_Configuration;
From_System_Repo: out Boolean)
return String
is
package WWF renames Ada.Strings.Wide_Wide_Fixed;
use type Registrar.Source_Files.Source_File_Access;
use UBS;
use Repositories;
use Registrar.Subsystems;
use Registrar.Library_Units;
Unit_Subsys: constant Subsystem := Select_Configuration_Subsystem (Unit);
Available_Subsystems: constant Subsystem_Sets.Set
:= Registrar.Queries.Available_Subsystems;
Buffer: Unbounded_String := To_Unbounded_String ("-c");
procedure Add_Codepaths (Subsys: in Subsystem) is
-- Append includes for the subsystem and all configured codepaths to
-- the buffer
Subsys_Path: constant String := "../" & Subsys.Name.To_UTF8_String;
begin
Append (Buffer, " -I" & Subsys_Path);
for Codepath_Pair of Subsys.Configuration.Codepaths loop
Append (Buffer, " -I" & Subsys_Path & '/'
& UBS.To_String (Codepath_Pair.Value));
end loop;
end Add_Codepaths;
begin
pragma Assert (Unit.State /= Requested
and then Unit.Kind not in Unknown | Subunit);
-- We take advantage of pulling the unit's subsystem to look for
-- units from "System" repositories. Such units are not to be compiled
if Unit_Subsys.AURA and then
Extract_Repository(Unit_Subsys.Source_Repository).Format = System
then
From_System_Repo := True;
return "";
else
From_System_Repo := False;
end if;
-- Includes. Assume the "current directory" of the compiler command
-- is Build_Root (and therefore the root directory is at ../)
-- First include our own subsystem, and codepaths for AURA, or
-- the project root for non-aura
-- (See comment below as to why the next block is commented-out)
-- if Unit_Subsys.AURA then
-- Add_Codepaths (Unit_Subsys);
-- else
-- Append (Buffer, " -I../");
-- end if;
-- Always include the root project path, as this not only contains the
-- project sources, but also all of the configuration units
Append (Buffer, " -I../");
-- Now the subsystems of all dependencies of this unit, and their
-- codepaths. Obviously we don't want to needlessly add the same
-- subsystems over and over, so we'll create a set a subset
-- Note that the below is the "original" code. However, this approach,
-- though more efficient, is not always compatbile with GNAT. If other
-- toolchains can handle this approach, then this code can be selectively
-- reactivated at a later time.
-- declare
-- Dependent_Subsys: Subsystem_Sets.Set;
-- begin
--
-- for Dep of Registrar.Queries.Unit_Dependencies (Unit.Name) loop
-- declare
-- Dep_Subsys: constant Subsystem_Sets.Cursor
-- := Available_Subsystems.Find
-- (Subsystem'(Name => Dep.Subsystem_Name, others => <>));
-- begin
-- Dependent_Subsys.Include (Subsystem_Sets.Element (Dep_Subsys));
-- end;
-- end loop;
--
-- for Subsys of Dependent_Subsys loop
-- Add_Codepaths (Subsys);
-- end loop;
-- end;
-- The issue is that GNAT uses a "macro expansion" approach to generics.
-- This means that generic library units cannot truly be "separately
-- compiled", and where these units (or other public generics) are used,
-- the dependencies of those generics because virtual dependencies of the
-- unit which instantiates the generic.
--
-- After some deep consideration, it was decided that the trade-off of
-- simply including the codepaths for all needed Subsystems for the
-- compilation of every Ada unit was not signficant enough to justify the
-- much more intense approach to do dependency hoisting for generic
-- instantiations, which would be a very singificant effort.
for Subsys of Registrar.Queries.Available_Subsystems loop
-- At the compilation stage, all required subsystems should be
-- available.
-- Don't include non-aura subsystems, since they are all in the
-- root directory
if Subsys.AURA then
Add_Codepaths (Subsys);
end if;
end loop;
-- For external units, we (for now) we support only c files
if Unit.Kind = External_Unit then
Assert (Check => WWF.Tail (Source => Unit.Name.To_String,
Count => 2) = ".c",
Message => "Only ""C"" External Units can be compiled");
-- Definitions
for Def_Pair of Unit_Subsys.Configuration.C_Definitions loop
Append (Buffer, " -D");
Append (Buffer, Def_Pair.Value);
end loop;
-- Compiler options
for Opt_Pair of Unit_Subsys.Configuration.C_Compiler_Opts loop
Append (Buffer, ' ' & UBS.To_String (Opt_Pair.Value));
end loop;
else
-- Must be Ada
-- Compiler options
for Opt_Pair of Unit_Subsys.Configuration.Ada_Compiler_Opts loop
Append (Buffer, ' ' & UBS.To_String (Opt_Pair.Value));
end loop;
end if;
-- Now add the global config options (currently GNAT-specific) - this
-- makes sure that they override any others
if Config.Position_Independent then
Append (Buffer, " -fPIC");
else
Append (Buffer, " -fno-PIC");
end if;
if Config.Debug_Enabled then
Append (Buffer, " -g");
end if;
if Config.All_Assertions and then Unit.Kind /= External_Unit then
Append (Buffer, " -gnata");
end if;
case Config.Optimization is
when None => null;
when Level_1 => Append (Buffer, " -O1");
when Level_2 => Append (Buffer, " -O2");
when Level_3 => Append (Buffer, " -O3");
when Size => Append (Buffer, " -Os");
when Debug => Append (Buffer, " -Og");
end case;
-- Finally append the file name
if Unit.Body_File /= null then
-- This applies to external units and ada units
Append (Buffer, ' ' & Unit.Body_File.Full_Name);
else
pragma Assert (Unit.Kind in Package_Unit | Subprogram_Unit);
Append (Buffer, ' ' & Unit.Spec_File.Full_Name);
end if;
return To_String (Buffer);
end Compute_Arguments;
------------------------
-- Compilation_Orders --
------------------------
type Compilation_Order is new Workers.Work_Order with
record
Unit : Registrar.Library_Units.Library_Unit;
Config: Build_Configuration;
end record;
overriding function Image (Order: Compilation_Order) return String;
overriding procedure Execute (Order: in out Compilation_Order);
function Image (Order: Compilation_Order) return String is
( "[Compilation_Order] (Build.Compilation)" & New_Line
& " Unit: " & Order.Unit.Name.To_UTF8_String);
procedure Execute (Order: in out Compilation_Order) is
package TIO renames Ada.Text_IO;
Unit: Registrar.Library_Units.Library_Unit
renames Order.Unit;
Unit_Name: constant String := Unit.Name.To_UTF8_String;
From_System_Repo: Boolean;
Args: constant String
:= Compute_Arguments (Unit, Order.Config, From_System_Repo);
begin
-- If the unit is a member of a subsystem that is checked out from a
-- "System" format Repository, we never actually compile it - rather
-- the reverse dependencies are triggered. In order to keep that
-- considerably more complicated process (Compute_Recompilations),
-- it treats such units the same as all others.
--
-- Therefore if we find that we have such a unit, we just rehash the
-- compilation products (thus promoting the unit to State = Compiled),
-- and complete the order.
--
-- It just so happens that Compute_Arguments needs to look at the
-- owning subsystem anyways. Therefore the actual logic to check this
-- is in that function, to improve efficiency
if From_System_Repo then
Direct_Hash_Compilation_Products (Unit);
return;
end if;
-- Start by writing out the command line
declare
use TIO;
CMD_OUT: File_Type;
begin
Create (File => CMD_OUT,
Name => Build_Output_Root & '/'
& Unit_Name & ".cmd");
Put_Line (CMD_OUT, "Compiler used:");
Put_Line (CMD_OUT, Program_Paths.Image_Path (Compiler));
Put_Line (CMD_OUT, "Arguments used:");
Put_Line (CMD_OUT, Args);
Close (CMD_OUT);
end;
-- Now do the compilation!
declare
use Child_Processes;
Compile_Process: Child_Process'Class := Spawn_Process
(Image_Path => Program_Paths.Image_Path (Compiler),
Arguments => Args,
Working_Directory => Build_Root);
Timed_Out: Boolean;
Status : Exit_Status;
STDOUT_Buffer, STDERR_Buffer: UBS.Unbounded_String;
begin
Wait_And_Buffer (Process => Compile_Process,
Poll_Rate => 0.2,
Timeout => 600.0, -- Aggressive..
Output => STDOUT_Buffer,
Error => STDERR_Buffer,
Timed_Out => Timed_Out,
Status => Status);
if not Compile_Process.Terminated then
Compile_Process.Kill;
delay 0.5; -- Should be more than long enough!
if not Compile_Process.Terminated then
Compile_Process.Nuke;
end if;
end if;
-- Dump stdout and stderr (if non-empty) to their files
declare
use TIO;
STDOUT_File, STDERR_File: File_Type;
begin
if UBS.Length (STDOUT_Buffer) > 0 then
Create (File => STDOUT_File,
Name => Build_Output_Root & '/'
& Unit_Name & ".out");
Put (STDOUT_File, UBS.To_String (STDOUT_Buffer));
Close (STDOUT_File);
end if;
if UBS.Length (STDERR_Buffer) > 0 then
Create (File => STDERR_File,
Name => Build_Output_Root & '/'
& Unit_Name & ".err");
Put (STDERR_File, UBS.To_String (STDERR_Buffer));
Close (STDERR_File);
end if;
end;
-- Timeout is a fatal error - not your "typical" compilation
-- failure
Assert (Check => not Timed_Out,
Message => "Compilation timed-out. "
& "Check compiler output files.");
-- Unsuccessful exit status generally means the compilation failed,
-- A non-empty STDERR buffer means warnings. Both mean a "common"
-- failure that needs to be intercepted (avoiding a work report),
-- and a submission of the error output to the Compilation_Messages
-- queue
if UBS.Length (STDERR_Buffer) > 0 then
Compiler_Messages.Enqueue
(Compiler_Message'(Unit => Unit,
Context => (if Status = Success then
Warning
else
Error),
STDERR => STDERR_Buffer));
end if;
if Status /= Success then
-- Only actual non-successful exit statuses warrent a "failure"
-- Deatch the tracker so that the worker won't touch it, and then
-- increment failure. There is no phase trigger for compilation
-- orders
Order.Tracker.Increment_Failed_Items;
Order.Tracker := null;
end if;
if Status = Success then
Unit.State := Registrar.Library_Units.Compiled;
Registrar.Registration.Update_Library_Unit (Unit);
end if;
end;
end Execute;
-------------
-- Compile --
-------------
procedure Compile (Configuration: in Build_Configuration) is
use Registrar.Library_Units;
New_Order: Compilation_Order
:= (Tracker => Compilation_Progress'Access,
Config => Configuration,
others => <>);
Avail_Units: constant Library_Unit_Sets.Set
:= Registrar.Queries.Available_Library_Units;
begin
-- Verify that we actually know where the compiler is before we dispatch
-- a bunch of doomed work-orders. This will create one single obvious
-- error rather than an unbounded number of hours if we don't do this
-- here
if not Program_Paths.Found (Compiler) then
raise Program_Error with
"Unable to compile: Could not find the compiler ("
& Compiler_Program & ")!";
end if;
Compilation_Progress.Increase_Total_Items_By
(Natural (Avail_Units.Length));
for Unit of Avail_Units loop
New_Order.Unit := Unit;
Workers.Enqueue_Order (New_Order);
end loop;
end Compile;
end Build.Compilation;
|
[
{
"context": "---------------------------\n-- Copyright (c) 2014, Natacha Porté --\n-- ",
"end": 115,
"score": 0.9998583793640137,
"start": 102,
"tag": "NAME",
"value": "Natacha Porté"
}
] |
src/simple_webapps.adb
|
faelys/simple-webapps
| 1 |
------------------------------------------------------------------------------
-- 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. --
------------------------------------------------------------------------------
package body Simple_Webapps is
function HTML_Escape (Unsafe_Input : String) return String is
function Length (Input : String) return Natural;
function Length (Input : String) return Natural is
Result : Natural := Input'Length;
begin
for I in Input'Range loop
case Input (I) is
when '<' | '>' =>
Result := Result + 3;
when '&' =>
Result := Result + 4;
when '"' =>
Result := Result + 5;
when others =>
null;
end case;
end loop;
return Result;
end Length;
Result : String (1 .. Length (Unsafe_Input));
O : Positive := Result'First;
begin
for I in Unsafe_Input'Range loop
case Unsafe_Input (I) is
when '<' =>
Result (O .. O + 3) := "<";
O := O + 4;
when '>' =>
Result (O .. O + 3) := ">";
O := O + 4;
when '&' =>
Result (O .. O + 4) := "&";
O := O + 5;
when '"' =>
Result (O .. O + 5) := """;
O := O + 6;
when others =>
Result (O) := Unsafe_Input (I);
O := O + 1;
end case;
end loop;
return Result;
end HTML_Escape;
end Simple_Webapps;
|
13754
|
------------------------------------------------------------------------------
-- Copyright (c) 2014, <NAME> --
-- --
-- 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. --
------------------------------------------------------------------------------
package body Simple_Webapps is
function HTML_Escape (Unsafe_Input : String) return String is
function Length (Input : String) return Natural;
function Length (Input : String) return Natural is
Result : Natural := Input'Length;
begin
for I in Input'Range loop
case Input (I) is
when '<' | '>' =>
Result := Result + 3;
when '&' =>
Result := Result + 4;
when '"' =>
Result := Result + 5;
when others =>
null;
end case;
end loop;
return Result;
end Length;
Result : String (1 .. Length (Unsafe_Input));
O : Positive := Result'First;
begin
for I in Unsafe_Input'Range loop
case Unsafe_Input (I) is
when '<' =>
Result (O .. O + 3) := "<";
O := O + 4;
when '>' =>
Result (O .. O + 3) := ">";
O := O + 4;
when '&' =>
Result (O .. O + 4) := "&";
O := O + 5;
when '"' =>
Result (O .. O + 5) := """;
O := O + 6;
when others =>
Result (O) := Unsafe_Input (I);
O := O + 1;
end case;
end loop;
return Result;
end HTML_Escape;
end Simple_Webapps;
| true |
------------------------------------------------------------------------------
-- Copyright (c) 2014, PI:NAME:<NAME>END_PI --
-- --
-- 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. --
------------------------------------------------------------------------------
package body Simple_Webapps is
function HTML_Escape (Unsafe_Input : String) return String is
function Length (Input : String) return Natural;
function Length (Input : String) return Natural is
Result : Natural := Input'Length;
begin
for I in Input'Range loop
case Input (I) is
when '<' | '>' =>
Result := Result + 3;
when '&' =>
Result := Result + 4;
when '"' =>
Result := Result + 5;
when others =>
null;
end case;
end loop;
return Result;
end Length;
Result : String (1 .. Length (Unsafe_Input));
O : Positive := Result'First;
begin
for I in Unsafe_Input'Range loop
case Unsafe_Input (I) is
when '<' =>
Result (O .. O + 3) := "<";
O := O + 4;
when '>' =>
Result (O .. O + 3) := ">";
O := O + 4;
when '&' =>
Result (O .. O + 4) := "&";
O := O + 5;
when '"' =>
Result (O .. O + 5) := """;
O := O + 6;
when others =>
Result (O) := Unsafe_Input (I);
O := O + 1;
end case;
end loop;
return Result;
end HTML_Escape;
end Simple_Webapps;
|
[
{
"context": "-- SPDX-FileCopyrightText: 2019 Max Reznik <[email protected]>\n--\n-- SPDX-License-Identifi",
"end": 43,
"score": 0.9998562335968018,
"start": 33,
"tag": "NAME",
"value": "Max Reznik"
},
{
"context": "-- SPDX-FileCopyrightText: 2019 Max Reznik <[email protected]>\n--\n-- SPDX-License-Identifier: MIT\n------------",
"end": 63,
"score": 0.9999317526817322,
"start": 45,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
tools/ada-larl/ada_larl.adb
|
reznikmm/gela
| 0 |
-- SPDX-FileCopyrightText: 2019 Max Reznik <[email protected]>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Ada.Command_Line;
with Ada.Text_IO;
with Anagram.Grammars;
with Anagram.Grammars.Reader;
with Anagram.Grammars_Convertors;
with Anagram.Grammars.Rule_Templates;
with Anagram.Grammars_Debug;
with Anagram.Grammars.LR_Tables;
with Anagram.Grammars.LR.LALR;
with Anagram.Grammars.Constructors;
with Anagram.Grammars.Conflicts;
with Writers; use Writers;
with League.String_Vectors;
with League.Strings;
procedure Ada_LARL is
use type Anagram.Grammars.Rule_Count;
use type Anagram.Grammars.LR.State_Count;
procedure Put_Proc_Decl
(Output : in out Writer;
Suffix : Wide_Wide_String);
procedure Put_Piece
(Piece : in out Writer;
From : Anagram.Grammars.Production_Index;
To : Anagram.Grammars.Production_Index);
procedure Put_Rule
(Output : in out Writer;
Prod : Anagram.Grammars.Production;
Rule : Anagram.Grammars.Rule);
function Image (X : Integer) return Wide_Wide_String;
procedure Print_Go_To;
procedure Print_Action;
File : constant String := Ada.Command_Line.Argument (1);
G : constant Anagram.Grammars.Grammar :=
Anagram.Grammars.Reader.Read (File);
Plain : constant Anagram.Grammars.Grammar :=
Anagram.Grammars_Convertors.Convert (G, Left => False);
AG : constant Anagram.Grammars.Grammar :=
Anagram.Grammars.Constructors.To_Augmented (Plain);
Table : constant Anagram.Grammars.LR_Tables.Table_Access :=
Anagram.Grammars.LR.LALR.Build
(Input => AG,
Right_Nulled => False);
Resolver : Anagram.Grammars.Conflicts.Resolver;
Output : Writer;
-----------
-- Image --
-----------
function Image (X : Integer) return Wide_Wide_String is
Img : constant Wide_Wide_String := Integer'Wide_Wide_Image (X);
begin
return Img (2 .. Img'Last);
end Image;
------------------
-- Print_Action --
------------------
procedure Print_Action is
use type Anagram.Grammars.Production_Count;
use type Anagram.Grammars.Part_Count;
type Action_Code is mod 2 ** 16;
Count : Natural;
Code : Action_Code;
begin
Output.P (" type Action_Code is mod 2 ** 16;");
Output.P (" for Action_Code'Size use 16;");
Output.P;
Output.P (" Action_Table : constant array");
Output.N (" (State_Index range 1 .. ");
Output.N (Natural (Anagram.Grammars.LR_Tables.Last_State (Table.all)));
Output.P (",");
Output.N (" Anagram.Grammars.Terminal_Count range 0 .. ");
Output.N (Natural (Plain.Last_Terminal));
Output.P (") of Action_Code :=");
for State in 1 .. Anagram.Grammars.LR_Tables.Last_State (Table.all) loop
if State = 1 then
Output.N (" (");
else
Output.P (",");
Output.N (" ");
end if;
Output.N (Natural (State));
Output.P (" =>");
Output.N (" (");
Count := 0;
for T in 0 .. Plain.Last_Terminal loop
declare
use Anagram.Grammars.LR_Tables;
S : constant Anagram.Grammars.LR.State_Count :=
Shift (Table.all, State, T);
R : constant Reduce_Iterator := Reduce (Table.all, State, T);
begin
if S /= 0 then
Code := Action_Code (S) + 16#80_00#;
elsif not Is_Empty (R) then
Code := Action_Code (Production (R));
else
Code := 0;
end if;
if Code /= 0 then
Output.N (Natural (T));
Output.N (" => ");
Output.N (Natural (Code));
Count := Count + 1;
if Count < 4 then
Output.N (", ");
else
Count := 0;
Output.P (",");
Output.N (" ");
end if;
end if;
end;
end loop;
Output.N ("others => 0)");
end loop;
Output.P (");");
Output.P;
Output.P (" type Production_Record is record");
Output.P (" NT : Anagram.Grammars.Non_Terminal_Index;");
Output.P (" Parts : Natural;");
Output.P (" end record;");
Output.P;
Output.N (" Prods : constant array (Action_Code range 1 .. ");
Output.N (Natural (Plain.Last_Production));
Output.P (") of");
Output.P (" Production_Record :=");
Count := 0;
for J in 1 .. Plain.Last_Production loop
if J = 1 then
Output.N (" (");
elsif Count > 5 then
Count := 0;
Output.P (",");
Output.N (" ");
else
Output.N (", ");
end if;
Output.N ("(");
Output.N (Natural (Plain.Production (J).Parent));
Output.N (", ");
Output.N (Natural (Plain.Production (J).Last
- Plain.Production (J).First + 1));
Output.N (")");
Count := Count + 1;
end loop;
Output.P (");");
Output.P;
Output.P (" procedure Next_Action");
Output.P (" (State : Anagram.Grammars.LR_Parsers.State_Index;");
Output.P (" Token : Anagram.Grammars.Terminal_Count;");
Output.P (" Value : out Anagram.Grammars.LR_Parsers.Action)");
Output.P (" is");
Output.P (" Code : constant Action_Code := " &
"Action_Table (State, Token);");
Output.P (" begin");
Output.P (" if (Code and 16#80_00#) /= 0 then");
Output.P (" Value := (Kind => Shift, " &
"State => State_Index (Code and 16#7F_FF#));");
Output.P (" elsif Code /= 0 then");
Output.P (" Value := (Kind => Reduce,");
Output.P (" Prod => " &
"Anagram.Grammars.Production_Index (Code),");
Output.P (" NT => Prods (Code).NT,");
Output.P (" Parts => Prods (Code).Parts);");
for State in 1 .. Anagram.Grammars.LR_Tables.Last_State (Table.all) loop
if Anagram.Grammars.LR_Tables.Finish (Table.all, State) then
Output.N (" elsif State = ");
Output.N (Natural (State));
Output.P (" then");
Output.P (" Value := (Kind => Finish);");
end if;
end loop;
Output.P (" else");
Output.P (" Value := (Kind => Error);");
Output.P (" end if;");
Output.P (" end Next_Action;");
Output.P;
end Print_Action;
-----------------
-- Print_Go_To --
-----------------
procedure Print_Go_To is
Count : Natural;
begin
Output.P (" Go_To_Table : constant array");
Output.N (" (Anagram.Grammars.LR_Parsers.State_Index range 1 .. ");
Output.N (Natural (Anagram.Grammars.LR_Tables.Last_State (Table.all)));
Output.P (",");
Output.N (" Anagram.Grammars.Non_Terminal_Index range 1 .. ");
Output.N (Natural (Plain.Last_Non_Terminal));
Output.P (") of State_Index :=");
for State in 1 .. Anagram.Grammars.LR_Tables.Last_State (Table.all) loop
if State = 1 then
Output.N (" (");
else
Output.P (",");
Output.N (" ");
end if;
Output.N (Natural (State));
Output.P (" =>");
Output.N (" (");
Count := 0;
for NT in 1 .. Plain.Last_Non_Terminal loop
declare
use Anagram.Grammars.LR;
Next : constant State_Count :=
Anagram.Grammars.LR_Tables.Shift (Table.all, State, NT);
begin
if Next /= 0 then
Output.N (Natural (NT));
Output.N (" => ");
Output.N (Natural (Next));
Count := Count + 1;
if Count < 4 then
Output.N (", ");
else
Count := 0;
Output.P (",");
Output.N (" ");
end if;
end if;
end;
end loop;
Output.N ("others => 0)");
end loop;
Output.P (");");
Output.P;
Output.P (" function Go_To");
Output.P (" (State : Anagram.Grammars.LR_Parsers.State_Index;");
Output.P (" NT : Anagram.Grammars.Non_Terminal_Index)");
Output.P (" return Anagram.Grammars.LR_Parsers.State_Index");
Output.P (" is");
Output.P (" begin");
Output.P (" return Go_To_Table (State, NT);");
Output.P (" end Go_To;");
Output.P;
end Print_Go_To;
--------------
-- Put_Rule --
--------------
procedure Put_Rule
(Output : in out Writer;
Prod : Anagram.Grammars.Production;
Rule : Anagram.Grammars.Rule)
is
use Anagram.Grammars.Rule_Templates;
use type League.Strings.Universal_String;
Template : constant Rule_Template := Create (Rule.Text);
Args : League.String_Vectors.Universal_String_Vector;
Value : League.Strings.Universal_String;
begin
for J in 1 .. Template.Count loop
Value.Clear;
if Plain.Non_Terminal (Prod.Parent).Name = Template.Part_Name (J) then
Value.Append ("Nodes (1)");
else
declare
Index : Positive := 1;
begin
for Part of Plain.Part (Prod.First .. Prod.Last) loop
if Part.Name = Template.Part_Name (J) then
Value.Append ("Nodes (");
Value.Append (Image (Index));
Value.Append (")");
end if;
Index := Index + 1;
end loop;
if Value.Is_Empty then
if Template.Has_Default (J) then
Value := Template.Default (J);
else
Ada.Text_IO.Put_Line
("Wrong part " &
Template.Part_Name (J).To_UTF_8_String &
" in rule for production " &
Plain.Non_Terminal (Prod.Parent).Name.To_UTF_8_String
& "." & Prod.Name.To_UTF_8_String);
Ada.Text_IO.Put_Line (Rule.Text.To_UTF_8_String);
raise Constraint_Error;
end if;
end if;
end;
end if;
Args.Append (Value);
end loop;
Output.P (Template.Substitute (Args));
end Put_Rule;
procedure Put_Proc_Decl
(Output : in out Writer;
Suffix : Wide_Wide_String) is
begin
Output.N ("procedure Program.Parsers.On_Reduce");
Output.P (Suffix);
Output.P (" (Self : access Parse_Context;");
Output.P (" Prod : Anagram.Grammars.Production_Index;");
Output.N (" Nodes : in out " &
"Program.Parsers.Nodes.Node_Array)");
end Put_Proc_Decl;
procedure Put_Piece
(Piece : in out Writer;
From : Anagram.Grammars.Production_Index;
To : Anagram.Grammars.Production_Index)
is
Suffix : Wide_Wide_String :=
Anagram.Grammars.Production_Index'Wide_Wide_Image (From);
begin
Suffix (1) := '_';
Piece.P ("with Anagram.Grammars;");
Piece.P ("with Program.Parsers.Nodes;");
Piece.N ("private ");
Put_Proc_Decl (Piece, Suffix);
Piece.P (";");
Piece.N ("pragma Preelaborate (Program.Parsers.On_Reduce");
Piece.N (Suffix);
Piece.P (");");
Piece.P;
-- Piece.P ("pragma Warnings (""U"");");
Piece.P ("with Program.Parsers.Nodes;");
Piece.P ("use Program.Parsers.Nodes;");
Piece.P ("pragma Style_Checks (""N"");");
Put_Proc_Decl (Piece, Suffix);
Piece.P (" is");
Piece.P ("begin");
Piece.P (" case Prod is");
for Prod of Plain.Production (From .. To) loop
Piece.N (" when");
Piece.N
(Anagram.Grammars.Production_Index'Wide_Wide_Image (Prod.Index));
Piece.P (" =>");
for Rule of Plain.Rule (Prod.First_Rule .. Prod.Last_Rule) loop
Put_Rule (Piece, Prod, Rule);
end loop;
if Prod.First_Rule > Prod.Last_Rule then
Piece.P (" null;");
end if;
end loop;
Piece.P (" when others =>");
Piece.P (" raise Constraint_Error;");
Piece.P (" end case;");
Piece.N ("end Program.Parsers.On_Reduce");
Piece.N (Suffix);
Piece.P (";");
end Put_Piece;
use type Anagram.Grammars.Production_Count;
Piece_Length : constant Anagram.Grammars.Production_Count := 500;
Piece : Writer;
begin
Resolver.Resolve (AG, Table.all);
Output.P ("with Anagram.Grammars;");
Output.P ("with Anagram.Grammars.LR_Parsers;");
Output.P;
Output.P ("package Program.Parsers.Data is");
Output.P (" pragma Preelaborate;");
Output.P;
Output.P (" procedure Next_Action");
Output.P (" (State : Anagram.Grammars.LR_Parsers.State_Index;");
Output.P (" Token : Anagram.Grammars.Terminal_Count;");
Output.P (" Value : out Anagram.Grammars.LR_Parsers.Action);");
Output.P;
Output.P (" function Go_To");
Output.P (" (State : Anagram.Grammars.LR_Parsers.State_Index;");
Output.P (" NT : Anagram.Grammars.Non_Terminal_Index)");
Output.P (" return Anagram.Grammars.LR_Parsers.State_Index;");
Output.P;
Output.P ("end Program.Parsers.Data;");
Output.P;
Output.P ("package body Program.Parsers.Data is");
Output.P (" use Anagram.Grammars.LR_Parsers;");
Output.P;
Print_Go_To;
Print_Action;
Output.P ("end Program.Parsers.Data;");
Output.P;
Output.P ("with Anagram.Grammars;");
Output.P ("with Program.Parsers.Nodes;");
Output.N ("private ");
Put_Proc_Decl (Output, "");
Output.P (";");
Output.P ("pragma Preelaborate (Program.Parsers.On_Reduce);");
Output.P;
for Piece_Index in 0 .. (Plain.Last_Production - 1) / Piece_Length loop
declare
From : constant Anagram.Grammars.Production_Index :=
Piece_Index * Piece_Length + 1;
begin
Output.N ("with Program.Parsers.On_Reduce_");
Output.N (Natural (From));
Output.P (";");
end;
end loop;
Put_Proc_Decl (Output, "");
Output.P (" is");
Output.P ("begin");
Output.P (" case Prod is");
for Piece_Index in 0 .. (Plain.Last_Production - 1) / Piece_Length loop
declare
From : constant Anagram.Grammars.Production_Index :=
Piece_Index * Piece_Length + 1;
To : constant Anagram.Grammars.Production_Index :=
Anagram.Grammars.Production_Index'Min
(Plain.Last_Production, (Piece_Index + 1) * Piece_Length);
begin
Output.N (" when ");
Output.N (Natural (From));
Output.N (" .. ");
Output.N (Natural (To));
Output.P (" =>");
Output.N (" On_Reduce_");
Output.N (Natural (From));
Output.P (" (Self, Prod, Nodes);");
Put_Piece
(Piece => Piece,
From => From,
To => To);
end;
end loop;
Output.P (" when others =>");
Output.P (" raise Constraint_Error;");
Output.P (" end case;");
Output.P ("end Program.Parsers.On_Reduce;");
Ada.Text_IO.Put_Line (Output.Text.To_UTF_8_String);
Ada.Text_IO.Put_Line (Piece.Text.To_UTF_8_String);
Anagram.Grammars_Debug.Print_Conflicts (AG, Table.all);
if Ada.Command_Line.Argument_Count > 1 then
Anagram.Grammars_Debug.Print (G);
end if;
end Ada_LARL;
|
16768
|
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Ada.Command_Line;
with Ada.Text_IO;
with Anagram.Grammars;
with Anagram.Grammars.Reader;
with Anagram.Grammars_Convertors;
with Anagram.Grammars.Rule_Templates;
with Anagram.Grammars_Debug;
with Anagram.Grammars.LR_Tables;
with Anagram.Grammars.LR.LALR;
with Anagram.Grammars.Constructors;
with Anagram.Grammars.Conflicts;
with Writers; use Writers;
with League.String_Vectors;
with League.Strings;
procedure Ada_LARL is
use type Anagram.Grammars.Rule_Count;
use type Anagram.Grammars.LR.State_Count;
procedure Put_Proc_Decl
(Output : in out Writer;
Suffix : Wide_Wide_String);
procedure Put_Piece
(Piece : in out Writer;
From : Anagram.Grammars.Production_Index;
To : Anagram.Grammars.Production_Index);
procedure Put_Rule
(Output : in out Writer;
Prod : Anagram.Grammars.Production;
Rule : Anagram.Grammars.Rule);
function Image (X : Integer) return Wide_Wide_String;
procedure Print_Go_To;
procedure Print_Action;
File : constant String := Ada.Command_Line.Argument (1);
G : constant Anagram.Grammars.Grammar :=
Anagram.Grammars.Reader.Read (File);
Plain : constant Anagram.Grammars.Grammar :=
Anagram.Grammars_Convertors.Convert (G, Left => False);
AG : constant Anagram.Grammars.Grammar :=
Anagram.Grammars.Constructors.To_Augmented (Plain);
Table : constant Anagram.Grammars.LR_Tables.Table_Access :=
Anagram.Grammars.LR.LALR.Build
(Input => AG,
Right_Nulled => False);
Resolver : Anagram.Grammars.Conflicts.Resolver;
Output : Writer;
-----------
-- Image --
-----------
function Image (X : Integer) return Wide_Wide_String is
Img : constant Wide_Wide_String := Integer'Wide_Wide_Image (X);
begin
return Img (2 .. Img'Last);
end Image;
------------------
-- Print_Action --
------------------
procedure Print_Action is
use type Anagram.Grammars.Production_Count;
use type Anagram.Grammars.Part_Count;
type Action_Code is mod 2 ** 16;
Count : Natural;
Code : Action_Code;
begin
Output.P (" type Action_Code is mod 2 ** 16;");
Output.P (" for Action_Code'Size use 16;");
Output.P;
Output.P (" Action_Table : constant array");
Output.N (" (State_Index range 1 .. ");
Output.N (Natural (Anagram.Grammars.LR_Tables.Last_State (Table.all)));
Output.P (",");
Output.N (" Anagram.Grammars.Terminal_Count range 0 .. ");
Output.N (Natural (Plain.Last_Terminal));
Output.P (") of Action_Code :=");
for State in 1 .. Anagram.Grammars.LR_Tables.Last_State (Table.all) loop
if State = 1 then
Output.N (" (");
else
Output.P (",");
Output.N (" ");
end if;
Output.N (Natural (State));
Output.P (" =>");
Output.N (" (");
Count := 0;
for T in 0 .. Plain.Last_Terminal loop
declare
use Anagram.Grammars.LR_Tables;
S : constant Anagram.Grammars.LR.State_Count :=
Shift (Table.all, State, T);
R : constant Reduce_Iterator := Reduce (Table.all, State, T);
begin
if S /= 0 then
Code := Action_Code (S) + 16#80_00#;
elsif not Is_Empty (R) then
Code := Action_Code (Production (R));
else
Code := 0;
end if;
if Code /= 0 then
Output.N (Natural (T));
Output.N (" => ");
Output.N (Natural (Code));
Count := Count + 1;
if Count < 4 then
Output.N (", ");
else
Count := 0;
Output.P (",");
Output.N (" ");
end if;
end if;
end;
end loop;
Output.N ("others => 0)");
end loop;
Output.P (");");
Output.P;
Output.P (" type Production_Record is record");
Output.P (" NT : Anagram.Grammars.Non_Terminal_Index;");
Output.P (" Parts : Natural;");
Output.P (" end record;");
Output.P;
Output.N (" Prods : constant array (Action_Code range 1 .. ");
Output.N (Natural (Plain.Last_Production));
Output.P (") of");
Output.P (" Production_Record :=");
Count := 0;
for J in 1 .. Plain.Last_Production loop
if J = 1 then
Output.N (" (");
elsif Count > 5 then
Count := 0;
Output.P (",");
Output.N (" ");
else
Output.N (", ");
end if;
Output.N ("(");
Output.N (Natural (Plain.Production (J).Parent));
Output.N (", ");
Output.N (Natural (Plain.Production (J).Last
- Plain.Production (J).First + 1));
Output.N (")");
Count := Count + 1;
end loop;
Output.P (");");
Output.P;
Output.P (" procedure Next_Action");
Output.P (" (State : Anagram.Grammars.LR_Parsers.State_Index;");
Output.P (" Token : Anagram.Grammars.Terminal_Count;");
Output.P (" Value : out Anagram.Grammars.LR_Parsers.Action)");
Output.P (" is");
Output.P (" Code : constant Action_Code := " &
"Action_Table (State, Token);");
Output.P (" begin");
Output.P (" if (Code and 16#80_00#) /= 0 then");
Output.P (" Value := (Kind => Shift, " &
"State => State_Index (Code and 16#7F_FF#));");
Output.P (" elsif Code /= 0 then");
Output.P (" Value := (Kind => Reduce,");
Output.P (" Prod => " &
"Anagram.Grammars.Production_Index (Code),");
Output.P (" NT => Prods (Code).NT,");
Output.P (" Parts => Prods (Code).Parts);");
for State in 1 .. Anagram.Grammars.LR_Tables.Last_State (Table.all) loop
if Anagram.Grammars.LR_Tables.Finish (Table.all, State) then
Output.N (" elsif State = ");
Output.N (Natural (State));
Output.P (" then");
Output.P (" Value := (Kind => Finish);");
end if;
end loop;
Output.P (" else");
Output.P (" Value := (Kind => Error);");
Output.P (" end if;");
Output.P (" end Next_Action;");
Output.P;
end Print_Action;
-----------------
-- Print_Go_To --
-----------------
procedure Print_Go_To is
Count : Natural;
begin
Output.P (" Go_To_Table : constant array");
Output.N (" (Anagram.Grammars.LR_Parsers.State_Index range 1 .. ");
Output.N (Natural (Anagram.Grammars.LR_Tables.Last_State (Table.all)));
Output.P (",");
Output.N (" Anagram.Grammars.Non_Terminal_Index range 1 .. ");
Output.N (Natural (Plain.Last_Non_Terminal));
Output.P (") of State_Index :=");
for State in 1 .. Anagram.Grammars.LR_Tables.Last_State (Table.all) loop
if State = 1 then
Output.N (" (");
else
Output.P (",");
Output.N (" ");
end if;
Output.N (Natural (State));
Output.P (" =>");
Output.N (" (");
Count := 0;
for NT in 1 .. Plain.Last_Non_Terminal loop
declare
use Anagram.Grammars.LR;
Next : constant State_Count :=
Anagram.Grammars.LR_Tables.Shift (Table.all, State, NT);
begin
if Next /= 0 then
Output.N (Natural (NT));
Output.N (" => ");
Output.N (Natural (Next));
Count := Count + 1;
if Count < 4 then
Output.N (", ");
else
Count := 0;
Output.P (",");
Output.N (" ");
end if;
end if;
end;
end loop;
Output.N ("others => 0)");
end loop;
Output.P (");");
Output.P;
Output.P (" function Go_To");
Output.P (" (State : Anagram.Grammars.LR_Parsers.State_Index;");
Output.P (" NT : Anagram.Grammars.Non_Terminal_Index)");
Output.P (" return Anagram.Grammars.LR_Parsers.State_Index");
Output.P (" is");
Output.P (" begin");
Output.P (" return Go_To_Table (State, NT);");
Output.P (" end Go_To;");
Output.P;
end Print_Go_To;
--------------
-- Put_Rule --
--------------
procedure Put_Rule
(Output : in out Writer;
Prod : Anagram.Grammars.Production;
Rule : Anagram.Grammars.Rule)
is
use Anagram.Grammars.Rule_Templates;
use type League.Strings.Universal_String;
Template : constant Rule_Template := Create (Rule.Text);
Args : League.String_Vectors.Universal_String_Vector;
Value : League.Strings.Universal_String;
begin
for J in 1 .. Template.Count loop
Value.Clear;
if Plain.Non_Terminal (Prod.Parent).Name = Template.Part_Name (J) then
Value.Append ("Nodes (1)");
else
declare
Index : Positive := 1;
begin
for Part of Plain.Part (Prod.First .. Prod.Last) loop
if Part.Name = Template.Part_Name (J) then
Value.Append ("Nodes (");
Value.Append (Image (Index));
Value.Append (")");
end if;
Index := Index + 1;
end loop;
if Value.Is_Empty then
if Template.Has_Default (J) then
Value := Template.Default (J);
else
Ada.Text_IO.Put_Line
("Wrong part " &
Template.Part_Name (J).To_UTF_8_String &
" in rule for production " &
Plain.Non_Terminal (Prod.Parent).Name.To_UTF_8_String
& "." & Prod.Name.To_UTF_8_String);
Ada.Text_IO.Put_Line (Rule.Text.To_UTF_8_String);
raise Constraint_Error;
end if;
end if;
end;
end if;
Args.Append (Value);
end loop;
Output.P (Template.Substitute (Args));
end Put_Rule;
procedure Put_Proc_Decl
(Output : in out Writer;
Suffix : Wide_Wide_String) is
begin
Output.N ("procedure Program.Parsers.On_Reduce");
Output.P (Suffix);
Output.P (" (Self : access Parse_Context;");
Output.P (" Prod : Anagram.Grammars.Production_Index;");
Output.N (" Nodes : in out " &
"Program.Parsers.Nodes.Node_Array)");
end Put_Proc_Decl;
procedure Put_Piece
(Piece : in out Writer;
From : Anagram.Grammars.Production_Index;
To : Anagram.Grammars.Production_Index)
is
Suffix : Wide_Wide_String :=
Anagram.Grammars.Production_Index'Wide_Wide_Image (From);
begin
Suffix (1) := '_';
Piece.P ("with Anagram.Grammars;");
Piece.P ("with Program.Parsers.Nodes;");
Piece.N ("private ");
Put_Proc_Decl (Piece, Suffix);
Piece.P (";");
Piece.N ("pragma Preelaborate (Program.Parsers.On_Reduce");
Piece.N (Suffix);
Piece.P (");");
Piece.P;
-- Piece.P ("pragma Warnings (""U"");");
Piece.P ("with Program.Parsers.Nodes;");
Piece.P ("use Program.Parsers.Nodes;");
Piece.P ("pragma Style_Checks (""N"");");
Put_Proc_Decl (Piece, Suffix);
Piece.P (" is");
Piece.P ("begin");
Piece.P (" case Prod is");
for Prod of Plain.Production (From .. To) loop
Piece.N (" when");
Piece.N
(Anagram.Grammars.Production_Index'Wide_Wide_Image (Prod.Index));
Piece.P (" =>");
for Rule of Plain.Rule (Prod.First_Rule .. Prod.Last_Rule) loop
Put_Rule (Piece, Prod, Rule);
end loop;
if Prod.First_Rule > Prod.Last_Rule then
Piece.P (" null;");
end if;
end loop;
Piece.P (" when others =>");
Piece.P (" raise Constraint_Error;");
Piece.P (" end case;");
Piece.N ("end Program.Parsers.On_Reduce");
Piece.N (Suffix);
Piece.P (";");
end Put_Piece;
use type Anagram.Grammars.Production_Count;
Piece_Length : constant Anagram.Grammars.Production_Count := 500;
Piece : Writer;
begin
Resolver.Resolve (AG, Table.all);
Output.P ("with Anagram.Grammars;");
Output.P ("with Anagram.Grammars.LR_Parsers;");
Output.P;
Output.P ("package Program.Parsers.Data is");
Output.P (" pragma Preelaborate;");
Output.P;
Output.P (" procedure Next_Action");
Output.P (" (State : Anagram.Grammars.LR_Parsers.State_Index;");
Output.P (" Token : Anagram.Grammars.Terminal_Count;");
Output.P (" Value : out Anagram.Grammars.LR_Parsers.Action);");
Output.P;
Output.P (" function Go_To");
Output.P (" (State : Anagram.Grammars.LR_Parsers.State_Index;");
Output.P (" NT : Anagram.Grammars.Non_Terminal_Index)");
Output.P (" return Anagram.Grammars.LR_Parsers.State_Index;");
Output.P;
Output.P ("end Program.Parsers.Data;");
Output.P;
Output.P ("package body Program.Parsers.Data is");
Output.P (" use Anagram.Grammars.LR_Parsers;");
Output.P;
Print_Go_To;
Print_Action;
Output.P ("end Program.Parsers.Data;");
Output.P;
Output.P ("with Anagram.Grammars;");
Output.P ("with Program.Parsers.Nodes;");
Output.N ("private ");
Put_Proc_Decl (Output, "");
Output.P (";");
Output.P ("pragma Preelaborate (Program.Parsers.On_Reduce);");
Output.P;
for Piece_Index in 0 .. (Plain.Last_Production - 1) / Piece_Length loop
declare
From : constant Anagram.Grammars.Production_Index :=
Piece_Index * Piece_Length + 1;
begin
Output.N ("with Program.Parsers.On_Reduce_");
Output.N (Natural (From));
Output.P (";");
end;
end loop;
Put_Proc_Decl (Output, "");
Output.P (" is");
Output.P ("begin");
Output.P (" case Prod is");
for Piece_Index in 0 .. (Plain.Last_Production - 1) / Piece_Length loop
declare
From : constant Anagram.Grammars.Production_Index :=
Piece_Index * Piece_Length + 1;
To : constant Anagram.Grammars.Production_Index :=
Anagram.Grammars.Production_Index'Min
(Plain.Last_Production, (Piece_Index + 1) * Piece_Length);
begin
Output.N (" when ");
Output.N (Natural (From));
Output.N (" .. ");
Output.N (Natural (To));
Output.P (" =>");
Output.N (" On_Reduce_");
Output.N (Natural (From));
Output.P (" (Self, Prod, Nodes);");
Put_Piece
(Piece => Piece,
From => From,
To => To);
end;
end loop;
Output.P (" when others =>");
Output.P (" raise Constraint_Error;");
Output.P (" end case;");
Output.P ("end Program.Parsers.On_Reduce;");
Ada.Text_IO.Put_Line (Output.Text.To_UTF_8_String);
Ada.Text_IO.Put_Line (Piece.Text.To_UTF_8_String);
Anagram.Grammars_Debug.Print_Conflicts (AG, Table.all);
if Ada.Command_Line.Argument_Count > 1 then
Anagram.Grammars_Debug.Print (G);
end if;
end Ada_LARL;
| true |
-- SPDX-FileCopyrightText: 2019 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Ada.Command_Line;
with Ada.Text_IO;
with Anagram.Grammars;
with Anagram.Grammars.Reader;
with Anagram.Grammars_Convertors;
with Anagram.Grammars.Rule_Templates;
with Anagram.Grammars_Debug;
with Anagram.Grammars.LR_Tables;
with Anagram.Grammars.LR.LALR;
with Anagram.Grammars.Constructors;
with Anagram.Grammars.Conflicts;
with Writers; use Writers;
with League.String_Vectors;
with League.Strings;
procedure Ada_LARL is
use type Anagram.Grammars.Rule_Count;
use type Anagram.Grammars.LR.State_Count;
procedure Put_Proc_Decl
(Output : in out Writer;
Suffix : Wide_Wide_String);
procedure Put_Piece
(Piece : in out Writer;
From : Anagram.Grammars.Production_Index;
To : Anagram.Grammars.Production_Index);
procedure Put_Rule
(Output : in out Writer;
Prod : Anagram.Grammars.Production;
Rule : Anagram.Grammars.Rule);
function Image (X : Integer) return Wide_Wide_String;
procedure Print_Go_To;
procedure Print_Action;
File : constant String := Ada.Command_Line.Argument (1);
G : constant Anagram.Grammars.Grammar :=
Anagram.Grammars.Reader.Read (File);
Plain : constant Anagram.Grammars.Grammar :=
Anagram.Grammars_Convertors.Convert (G, Left => False);
AG : constant Anagram.Grammars.Grammar :=
Anagram.Grammars.Constructors.To_Augmented (Plain);
Table : constant Anagram.Grammars.LR_Tables.Table_Access :=
Anagram.Grammars.LR.LALR.Build
(Input => AG,
Right_Nulled => False);
Resolver : Anagram.Grammars.Conflicts.Resolver;
Output : Writer;
-----------
-- Image --
-----------
function Image (X : Integer) return Wide_Wide_String is
Img : constant Wide_Wide_String := Integer'Wide_Wide_Image (X);
begin
return Img (2 .. Img'Last);
end Image;
------------------
-- Print_Action --
------------------
procedure Print_Action is
use type Anagram.Grammars.Production_Count;
use type Anagram.Grammars.Part_Count;
type Action_Code is mod 2 ** 16;
Count : Natural;
Code : Action_Code;
begin
Output.P (" type Action_Code is mod 2 ** 16;");
Output.P (" for Action_Code'Size use 16;");
Output.P;
Output.P (" Action_Table : constant array");
Output.N (" (State_Index range 1 .. ");
Output.N (Natural (Anagram.Grammars.LR_Tables.Last_State (Table.all)));
Output.P (",");
Output.N (" Anagram.Grammars.Terminal_Count range 0 .. ");
Output.N (Natural (Plain.Last_Terminal));
Output.P (") of Action_Code :=");
for State in 1 .. Anagram.Grammars.LR_Tables.Last_State (Table.all) loop
if State = 1 then
Output.N (" (");
else
Output.P (",");
Output.N (" ");
end if;
Output.N (Natural (State));
Output.P (" =>");
Output.N (" (");
Count := 0;
for T in 0 .. Plain.Last_Terminal loop
declare
use Anagram.Grammars.LR_Tables;
S : constant Anagram.Grammars.LR.State_Count :=
Shift (Table.all, State, T);
R : constant Reduce_Iterator := Reduce (Table.all, State, T);
begin
if S /= 0 then
Code := Action_Code (S) + 16#80_00#;
elsif not Is_Empty (R) then
Code := Action_Code (Production (R));
else
Code := 0;
end if;
if Code /= 0 then
Output.N (Natural (T));
Output.N (" => ");
Output.N (Natural (Code));
Count := Count + 1;
if Count < 4 then
Output.N (", ");
else
Count := 0;
Output.P (",");
Output.N (" ");
end if;
end if;
end;
end loop;
Output.N ("others => 0)");
end loop;
Output.P (");");
Output.P;
Output.P (" type Production_Record is record");
Output.P (" NT : Anagram.Grammars.Non_Terminal_Index;");
Output.P (" Parts : Natural;");
Output.P (" end record;");
Output.P;
Output.N (" Prods : constant array (Action_Code range 1 .. ");
Output.N (Natural (Plain.Last_Production));
Output.P (") of");
Output.P (" Production_Record :=");
Count := 0;
for J in 1 .. Plain.Last_Production loop
if J = 1 then
Output.N (" (");
elsif Count > 5 then
Count := 0;
Output.P (",");
Output.N (" ");
else
Output.N (", ");
end if;
Output.N ("(");
Output.N (Natural (Plain.Production (J).Parent));
Output.N (", ");
Output.N (Natural (Plain.Production (J).Last
- Plain.Production (J).First + 1));
Output.N (")");
Count := Count + 1;
end loop;
Output.P (");");
Output.P;
Output.P (" procedure Next_Action");
Output.P (" (State : Anagram.Grammars.LR_Parsers.State_Index;");
Output.P (" Token : Anagram.Grammars.Terminal_Count;");
Output.P (" Value : out Anagram.Grammars.LR_Parsers.Action)");
Output.P (" is");
Output.P (" Code : constant Action_Code := " &
"Action_Table (State, Token);");
Output.P (" begin");
Output.P (" if (Code and 16#80_00#) /= 0 then");
Output.P (" Value := (Kind => Shift, " &
"State => State_Index (Code and 16#7F_FF#));");
Output.P (" elsif Code /= 0 then");
Output.P (" Value := (Kind => Reduce,");
Output.P (" Prod => " &
"Anagram.Grammars.Production_Index (Code),");
Output.P (" NT => Prods (Code).NT,");
Output.P (" Parts => Prods (Code).Parts);");
for State in 1 .. Anagram.Grammars.LR_Tables.Last_State (Table.all) loop
if Anagram.Grammars.LR_Tables.Finish (Table.all, State) then
Output.N (" elsif State = ");
Output.N (Natural (State));
Output.P (" then");
Output.P (" Value := (Kind => Finish);");
end if;
end loop;
Output.P (" else");
Output.P (" Value := (Kind => Error);");
Output.P (" end if;");
Output.P (" end Next_Action;");
Output.P;
end Print_Action;
-----------------
-- Print_Go_To --
-----------------
procedure Print_Go_To is
Count : Natural;
begin
Output.P (" Go_To_Table : constant array");
Output.N (" (Anagram.Grammars.LR_Parsers.State_Index range 1 .. ");
Output.N (Natural (Anagram.Grammars.LR_Tables.Last_State (Table.all)));
Output.P (",");
Output.N (" Anagram.Grammars.Non_Terminal_Index range 1 .. ");
Output.N (Natural (Plain.Last_Non_Terminal));
Output.P (") of State_Index :=");
for State in 1 .. Anagram.Grammars.LR_Tables.Last_State (Table.all) loop
if State = 1 then
Output.N (" (");
else
Output.P (",");
Output.N (" ");
end if;
Output.N (Natural (State));
Output.P (" =>");
Output.N (" (");
Count := 0;
for NT in 1 .. Plain.Last_Non_Terminal loop
declare
use Anagram.Grammars.LR;
Next : constant State_Count :=
Anagram.Grammars.LR_Tables.Shift (Table.all, State, NT);
begin
if Next /= 0 then
Output.N (Natural (NT));
Output.N (" => ");
Output.N (Natural (Next));
Count := Count + 1;
if Count < 4 then
Output.N (", ");
else
Count := 0;
Output.P (",");
Output.N (" ");
end if;
end if;
end;
end loop;
Output.N ("others => 0)");
end loop;
Output.P (");");
Output.P;
Output.P (" function Go_To");
Output.P (" (State : Anagram.Grammars.LR_Parsers.State_Index;");
Output.P (" NT : Anagram.Grammars.Non_Terminal_Index)");
Output.P (" return Anagram.Grammars.LR_Parsers.State_Index");
Output.P (" is");
Output.P (" begin");
Output.P (" return Go_To_Table (State, NT);");
Output.P (" end Go_To;");
Output.P;
end Print_Go_To;
--------------
-- Put_Rule --
--------------
procedure Put_Rule
(Output : in out Writer;
Prod : Anagram.Grammars.Production;
Rule : Anagram.Grammars.Rule)
is
use Anagram.Grammars.Rule_Templates;
use type League.Strings.Universal_String;
Template : constant Rule_Template := Create (Rule.Text);
Args : League.String_Vectors.Universal_String_Vector;
Value : League.Strings.Universal_String;
begin
for J in 1 .. Template.Count loop
Value.Clear;
if Plain.Non_Terminal (Prod.Parent).Name = Template.Part_Name (J) then
Value.Append ("Nodes (1)");
else
declare
Index : Positive := 1;
begin
for Part of Plain.Part (Prod.First .. Prod.Last) loop
if Part.Name = Template.Part_Name (J) then
Value.Append ("Nodes (");
Value.Append (Image (Index));
Value.Append (")");
end if;
Index := Index + 1;
end loop;
if Value.Is_Empty then
if Template.Has_Default (J) then
Value := Template.Default (J);
else
Ada.Text_IO.Put_Line
("Wrong part " &
Template.Part_Name (J).To_UTF_8_String &
" in rule for production " &
Plain.Non_Terminal (Prod.Parent).Name.To_UTF_8_String
& "." & Prod.Name.To_UTF_8_String);
Ada.Text_IO.Put_Line (Rule.Text.To_UTF_8_String);
raise Constraint_Error;
end if;
end if;
end;
end if;
Args.Append (Value);
end loop;
Output.P (Template.Substitute (Args));
end Put_Rule;
procedure Put_Proc_Decl
(Output : in out Writer;
Suffix : Wide_Wide_String) is
begin
Output.N ("procedure Program.Parsers.On_Reduce");
Output.P (Suffix);
Output.P (" (Self : access Parse_Context;");
Output.P (" Prod : Anagram.Grammars.Production_Index;");
Output.N (" Nodes : in out " &
"Program.Parsers.Nodes.Node_Array)");
end Put_Proc_Decl;
procedure Put_Piece
(Piece : in out Writer;
From : Anagram.Grammars.Production_Index;
To : Anagram.Grammars.Production_Index)
is
Suffix : Wide_Wide_String :=
Anagram.Grammars.Production_Index'Wide_Wide_Image (From);
begin
Suffix (1) := '_';
Piece.P ("with Anagram.Grammars;");
Piece.P ("with Program.Parsers.Nodes;");
Piece.N ("private ");
Put_Proc_Decl (Piece, Suffix);
Piece.P (";");
Piece.N ("pragma Preelaborate (Program.Parsers.On_Reduce");
Piece.N (Suffix);
Piece.P (");");
Piece.P;
-- Piece.P ("pragma Warnings (""U"");");
Piece.P ("with Program.Parsers.Nodes;");
Piece.P ("use Program.Parsers.Nodes;");
Piece.P ("pragma Style_Checks (""N"");");
Put_Proc_Decl (Piece, Suffix);
Piece.P (" is");
Piece.P ("begin");
Piece.P (" case Prod is");
for Prod of Plain.Production (From .. To) loop
Piece.N (" when");
Piece.N
(Anagram.Grammars.Production_Index'Wide_Wide_Image (Prod.Index));
Piece.P (" =>");
for Rule of Plain.Rule (Prod.First_Rule .. Prod.Last_Rule) loop
Put_Rule (Piece, Prod, Rule);
end loop;
if Prod.First_Rule > Prod.Last_Rule then
Piece.P (" null;");
end if;
end loop;
Piece.P (" when others =>");
Piece.P (" raise Constraint_Error;");
Piece.P (" end case;");
Piece.N ("end Program.Parsers.On_Reduce");
Piece.N (Suffix);
Piece.P (";");
end Put_Piece;
use type Anagram.Grammars.Production_Count;
Piece_Length : constant Anagram.Grammars.Production_Count := 500;
Piece : Writer;
begin
Resolver.Resolve (AG, Table.all);
Output.P ("with Anagram.Grammars;");
Output.P ("with Anagram.Grammars.LR_Parsers;");
Output.P;
Output.P ("package Program.Parsers.Data is");
Output.P (" pragma Preelaborate;");
Output.P;
Output.P (" procedure Next_Action");
Output.P (" (State : Anagram.Grammars.LR_Parsers.State_Index;");
Output.P (" Token : Anagram.Grammars.Terminal_Count;");
Output.P (" Value : out Anagram.Grammars.LR_Parsers.Action);");
Output.P;
Output.P (" function Go_To");
Output.P (" (State : Anagram.Grammars.LR_Parsers.State_Index;");
Output.P (" NT : Anagram.Grammars.Non_Terminal_Index)");
Output.P (" return Anagram.Grammars.LR_Parsers.State_Index;");
Output.P;
Output.P ("end Program.Parsers.Data;");
Output.P;
Output.P ("package body Program.Parsers.Data is");
Output.P (" use Anagram.Grammars.LR_Parsers;");
Output.P;
Print_Go_To;
Print_Action;
Output.P ("end Program.Parsers.Data;");
Output.P;
Output.P ("with Anagram.Grammars;");
Output.P ("with Program.Parsers.Nodes;");
Output.N ("private ");
Put_Proc_Decl (Output, "");
Output.P (";");
Output.P ("pragma Preelaborate (Program.Parsers.On_Reduce);");
Output.P;
for Piece_Index in 0 .. (Plain.Last_Production - 1) / Piece_Length loop
declare
From : constant Anagram.Grammars.Production_Index :=
Piece_Index * Piece_Length + 1;
begin
Output.N ("with Program.Parsers.On_Reduce_");
Output.N (Natural (From));
Output.P (";");
end;
end loop;
Put_Proc_Decl (Output, "");
Output.P (" is");
Output.P ("begin");
Output.P (" case Prod is");
for Piece_Index in 0 .. (Plain.Last_Production - 1) / Piece_Length loop
declare
From : constant Anagram.Grammars.Production_Index :=
Piece_Index * Piece_Length + 1;
To : constant Anagram.Grammars.Production_Index :=
Anagram.Grammars.Production_Index'Min
(Plain.Last_Production, (Piece_Index + 1) * Piece_Length);
begin
Output.N (" when ");
Output.N (Natural (From));
Output.N (" .. ");
Output.N (Natural (To));
Output.P (" =>");
Output.N (" On_Reduce_");
Output.N (Natural (From));
Output.P (" (Self, Prod, Nodes);");
Put_Piece
(Piece => Piece,
From => From,
To => To);
end;
end loop;
Output.P (" when others =>");
Output.P (" raise Constraint_Error;");
Output.P (" end case;");
Output.P ("end Program.Parsers.On_Reduce;");
Ada.Text_IO.Put_Line (Output.Text.To_UTF_8_String);
Ada.Text_IO.Put_Line (Piece.Text.To_UTF_8_String);
Anagram.Grammars_Debug.Print_Conflicts (AG, Table.all);
if Ada.Command_Line.Argument_Count > 1 then
Anagram.Grammars_Debug.Print (G);
end if;
end Ada_LARL;
|
[
{
"context": "-- Copyright (C) 2019 Thierry Rascle <[email protected]>\n-- MIT license. Please refer t",
"end": 36,
"score": 0.9998745322227478,
"start": 22,
"tag": "NAME",
"value": "Thierry Rascle"
},
{
"context": "-- Copyright (C) 2019 Thierry Rascle <[email protected]>\n-- MIT license. Please refer to the LICENSE file",
"end": 54,
"score": 0.9999327063560486,
"start": 38,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
src/_for_debug_purposes/apsepp-scope_debug.adb
|
thierr26/ada-apsepp
| 0 |
-- Copyright (C) 2019 Thierry Rascle <[email protected]>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Debug_Trace;
package body Apsepp.Scope_Debug is
----------------------------------------------------------------------------
function C (Entity_Name : String;
En, Ex : Boolean) return Controlled_Debug_Tracer is
begin
if En then
Debug_Trace.Debug_Trace.Trace ("Entry", Entity_Name);
end if;
return (Limited_Controlled
with Entity_Name_Length => Entity_Name'Length,
Entity_Name_Str => Entity_Name,
Exit_Trace_Required => Ex);
end C;
----------------------------------------------------------------------------
not overriding
function Create_A (Entity_Name : String) return Controlled_Debug_Tracer
is (C (Entity_Name, True, True));
----------------------------------------------------------------------------
not overriding
function Create_I (Entity_Name : String) return Controlled_Debug_Tracer
is (C (Entity_Name, True, False));
----------------------------------------------------------------------------
not overriding
function Create_F (Entity_Name : String) return Controlled_Debug_Tracer
is (C (Entity_Name, False, True));
----------------------------------------------------------------------------
not overriding
function Create_N (Entity_Name : String) return Controlled_Debug_Tracer
is (C (Entity_Name, False, False));
----------------------------------------------------------------------------
not overriding
function Entity (Obj : Controlled_Debug_Tracer) return String
is (Obj.Entity_Name_Str);
----------------------------------------------------------------------------
not overriding
procedure Trace (Obj : Controlled_Debug_Tracer; Message : String) is
begin
Debug_Trace.Debug_Trace.Trace
(Message, Controlled_Debug_Tracer'Class (Obj).Entity);
end Trace;
----------------------------------------------------------------------------
not overriding
procedure Trace_E (Obj : Controlled_Debug_Tracer;
E : Exception_Occurrence) is
begin
Debug_Trace.Debug_Trace.Trace_E
(E, Controlled_Debug_Tracer'Class (Obj).Entity);
end Trace_E;
----------------------------------------------------------------------------
not overriding
procedure Trace_Time
(Obj : Controlled_Debug_Tracer;
Reset_Elapsed : Boolean := False) is
begin
Debug_Trace.Debug_Trace.Trace_Time
(Controlled_Debug_Tracer'Class (Obj).Entity, Reset_Elapsed);
end Trace_Time;
----------------------------------------------------------------------------
overriding
procedure Finalize (Obj : in out Controlled_Debug_Tracer) is
begin
if Obj.Exit_Trace_Required then
Debug_Trace.Debug_Trace.Trace
("Exit", Controlled_Debug_Tracer'Class (Obj).Entity);
end if;
end Finalize;
----------------------------------------------------------------------------
end Apsepp.Scope_Debug;
|
18392
|
-- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Debug_Trace;
package body Apsepp.Scope_Debug is
----------------------------------------------------------------------------
function C (Entity_Name : String;
En, Ex : Boolean) return Controlled_Debug_Tracer is
begin
if En then
Debug_Trace.Debug_Trace.Trace ("Entry", Entity_Name);
end if;
return (Limited_Controlled
with Entity_Name_Length => Entity_Name'Length,
Entity_Name_Str => Entity_Name,
Exit_Trace_Required => Ex);
end C;
----------------------------------------------------------------------------
not overriding
function Create_A (Entity_Name : String) return Controlled_Debug_Tracer
is (C (Entity_Name, True, True));
----------------------------------------------------------------------------
not overriding
function Create_I (Entity_Name : String) return Controlled_Debug_Tracer
is (C (Entity_Name, True, False));
----------------------------------------------------------------------------
not overriding
function Create_F (Entity_Name : String) return Controlled_Debug_Tracer
is (C (Entity_Name, False, True));
----------------------------------------------------------------------------
not overriding
function Create_N (Entity_Name : String) return Controlled_Debug_Tracer
is (C (Entity_Name, False, False));
----------------------------------------------------------------------------
not overriding
function Entity (Obj : Controlled_Debug_Tracer) return String
is (Obj.Entity_Name_Str);
----------------------------------------------------------------------------
not overriding
procedure Trace (Obj : Controlled_Debug_Tracer; Message : String) is
begin
Debug_Trace.Debug_Trace.Trace
(Message, Controlled_Debug_Tracer'Class (Obj).Entity);
end Trace;
----------------------------------------------------------------------------
not overriding
procedure Trace_E (Obj : Controlled_Debug_Tracer;
E : Exception_Occurrence) is
begin
Debug_Trace.Debug_Trace.Trace_E
(E, Controlled_Debug_Tracer'Class (Obj).Entity);
end Trace_E;
----------------------------------------------------------------------------
not overriding
procedure Trace_Time
(Obj : Controlled_Debug_Tracer;
Reset_Elapsed : Boolean := False) is
begin
Debug_Trace.Debug_Trace.Trace_Time
(Controlled_Debug_Tracer'Class (Obj).Entity, Reset_Elapsed);
end Trace_Time;
----------------------------------------------------------------------------
overriding
procedure Finalize (Obj : in out Controlled_Debug_Tracer) is
begin
if Obj.Exit_Trace_Required then
Debug_Trace.Debug_Trace.Trace
("Exit", Controlled_Debug_Tracer'Class (Obj).Entity);
end if;
end Finalize;
----------------------------------------------------------------------------
end Apsepp.Scope_Debug;
| true |
-- Copyright (C) 2019 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Debug_Trace;
package body Apsepp.Scope_Debug is
----------------------------------------------------------------------------
function C (Entity_Name : String;
En, Ex : Boolean) return Controlled_Debug_Tracer is
begin
if En then
Debug_Trace.Debug_Trace.Trace ("Entry", Entity_Name);
end if;
return (Limited_Controlled
with Entity_Name_Length => Entity_Name'Length,
Entity_Name_Str => Entity_Name,
Exit_Trace_Required => Ex);
end C;
----------------------------------------------------------------------------
not overriding
function Create_A (Entity_Name : String) return Controlled_Debug_Tracer
is (C (Entity_Name, True, True));
----------------------------------------------------------------------------
not overriding
function Create_I (Entity_Name : String) return Controlled_Debug_Tracer
is (C (Entity_Name, True, False));
----------------------------------------------------------------------------
not overriding
function Create_F (Entity_Name : String) return Controlled_Debug_Tracer
is (C (Entity_Name, False, True));
----------------------------------------------------------------------------
not overriding
function Create_N (Entity_Name : String) return Controlled_Debug_Tracer
is (C (Entity_Name, False, False));
----------------------------------------------------------------------------
not overriding
function Entity (Obj : Controlled_Debug_Tracer) return String
is (Obj.Entity_Name_Str);
----------------------------------------------------------------------------
not overriding
procedure Trace (Obj : Controlled_Debug_Tracer; Message : String) is
begin
Debug_Trace.Debug_Trace.Trace
(Message, Controlled_Debug_Tracer'Class (Obj).Entity);
end Trace;
----------------------------------------------------------------------------
not overriding
procedure Trace_E (Obj : Controlled_Debug_Tracer;
E : Exception_Occurrence) is
begin
Debug_Trace.Debug_Trace.Trace_E
(E, Controlled_Debug_Tracer'Class (Obj).Entity);
end Trace_E;
----------------------------------------------------------------------------
not overriding
procedure Trace_Time
(Obj : Controlled_Debug_Tracer;
Reset_Elapsed : Boolean := False) is
begin
Debug_Trace.Debug_Trace.Trace_Time
(Controlled_Debug_Tracer'Class (Obj).Entity, Reset_Elapsed);
end Trace_Time;
----------------------------------------------------------------------------
overriding
procedure Finalize (Obj : in out Controlled_Debug_Tracer) is
begin
if Obj.Exit_Trace_Required then
Debug_Trace.Debug_Trace.Trace
("Exit", Controlled_Debug_Tracer'Class (Obj).Entity);
end if;
end Finalize;
----------------------------------------------------------------------------
end Apsepp.Scope_Debug;
|
[
{
"context": "-- EXTENSION FROM '.ADA' TO '.DEP'.\n-- JET 09/21/87 CREATED ORIGINAL TEST.\n\nWITH REPORT; US",
"end": 1661,
"score": 0.9362673759460449,
"start": 1658,
"tag": "NAME",
"value": "JET"
}
] |
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd1c04e.ada
|
best08618/asylo
| 7 |
-- CD1C04E.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
-- OBJECTIVE:
-- CHECK THAT A RECORD REPRESENTATION CLAUSE CAN BE GIVEN FOR
-- A DERIVED RECORD TYPE EVEN IF THE REPRESENTATION IS INHERITED
-- FROM THE PARENT, AND THAT THE REPRESENTATION CLAUSE FOR THE
-- DERIVED TYPE OVERRIDES THAT OF THE PARENT TYPE.
-- HISTORY:
-- PWB 03/25/89 DELETED CHECKS OF COMPONENT'SIZE; CHANGED
-- EXTENSION FROM '.ADA' TO '.DEP'.
-- JET 09/21/87 CREATED ORIGINAL TEST.
WITH REPORT; USE REPORT;
WITH SYSTEM; USE SYSTEM;
PROCEDURE CD1C04E IS
UNITS_PER_INTEGER : CONSTANT :=
(INTEGER'SIZE + SYSTEM.STORAGE_UNIT - 1) /
SYSTEM.STORAGE_UNIT;
TYPE E_TYPE IS (RED, BLUE, GREEN);
TYPE PARENT_TYPE IS
RECORD
I : INTEGER RANGE 0 .. 127 := 127;
C : CHARACTER := 'S';
B : BOOLEAN := FALSE;
E : E_TYPE := BLUE;
END RECORD;
FOR PARENT_TYPE USE
RECORD
C AT 0 * UNITS_PER_INTEGER RANGE 0 .. CHARACTER'SIZE - 1;
B AT 1 * UNITS_PER_INTEGER RANGE 0 .. BOOLEAN'SIZE - 1;
I AT 2 * UNITS_PER_INTEGER RANGE 0 .. INTEGER'SIZE/2 - 1;
E AT 3 * UNITS_PER_INTEGER RANGE 0 .. CHARACTER'SIZE - 1;
END RECORD;
TYPE DERIVED_TYPE IS NEW PARENT_TYPE;
FOR DERIVED_TYPE USE
RECORD
C AT 1 * UNITS_PER_INTEGER RANGE 1 .. CHARACTER'SIZE + 1;
B AT 3 * UNITS_PER_INTEGER RANGE 1 .. BOOLEAN'SIZE + 1;
I AT 5 * UNITS_PER_INTEGER RANGE 1 .. INTEGER'SIZE/2 + 1;
E AT 7 * UNITS_PER_INTEGER RANGE 1 .. CHARACTER'SIZE + 1;
END RECORD;
P_REC : PARENT_TYPE;
REC : DERIVED_TYPE;
BEGIN
TEST("CD1C04E", "CHECK THAT A RECORD REPRESENTATION CLAUSE " &
"CAN BE GIVEN FOR A DERIVED RECORD TYPE EVEN " &
"IF THE REPRESENTATION IS INHERITED FROM " &
"THE PARENT, AND THAT THE REPRESENTATION " &
"CLAUSE FOR THE DERIVED TYPE OVERRIDES THAT " &
"OF THE PARENT TYPE");
IF DERIVED_TYPE'SIZE = IDENT_INT (PARENT_TYPE'SIZE) THEN
FAILED ("DERIVED_TYPE'SIZE WAS INHERITED FROM " &
"PARENT_TYPE");
END IF;
REC := (12, 'T', TRUE, RED);
IF (REC.I /= 12) OR (REC.C /= 'T') OR
(NOT REC.B) OR (REC.E /= RED) THEN
FAILED ("THE VALUES OF DERIVED_TYPE COMPONENTS WERE " &
"INCORRECT");
END IF;
IF REC.I'POSITION = P_REC.I'POSITION OR
REC.C'POSITION = P_REC.C'POSITION OR
REC.B'POSITION = P_REC.B'POSITION OR
REC.E'POSITION = P_REC.E'POSITION THEN
FAILED ("THE POSITIONS OF DERIVED_TYPE COMPONENTS WERE " &
"INHERITED FROM PARENT_TYPE");
END IF;
IF REC.I'FIRST_BIT = P_REC.I'FIRST_BIT OR
REC.C'FIRST_BIT = P_REC.C'FIRST_BIT OR
REC.B'FIRST_BIT = P_REC.B'FIRST_BIT OR
REC.E'FIRST_BIT = P_REC.E'FIRST_BIT THEN
FAILED ("THE FIRST_BITS OF DERIVED_TYPE COMPONENTS WERE " &
"INHERITED FROM PARENT_TYPE");
END IF;
IF REC.I'LAST_BIT = P_REC.I'LAST_BIT OR
REC.C'LAST_BIT = P_REC.C'LAST_BIT OR
REC.B'LAST_BIT = P_REC.B'LAST_BIT OR
REC.E'LAST_BIT = P_REC.E'LAST_BIT THEN
FAILED ("THE LAST_BITS OF DERIVED_TYPE COMPONENTS WERE " &
"INHERITED FROM PARENT_TYPE");
END IF;
RESULT;
END CD1C04E;
|
28601
|
-- CD1C04E.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
-- OBJECTIVE:
-- CHECK THAT A RECORD REPRESENTATION CLAUSE CAN BE GIVEN FOR
-- A DERIVED RECORD TYPE EVEN IF THE REPRESENTATION IS INHERITED
-- FROM THE PARENT, AND THAT THE REPRESENTATION CLAUSE FOR THE
-- DERIVED TYPE OVERRIDES THAT OF THE PARENT TYPE.
-- HISTORY:
-- PWB 03/25/89 DELETED CHECKS OF COMPONENT'SIZE; CHANGED
-- EXTENSION FROM '.ADA' TO '.DEP'.
-- <NAME> 09/21/87 CREATED ORIGINAL TEST.
WITH REPORT; USE REPORT;
WITH SYSTEM; USE SYSTEM;
PROCEDURE CD1C04E IS
UNITS_PER_INTEGER : CONSTANT :=
(INTEGER'SIZE + SYSTEM.STORAGE_UNIT - 1) /
SYSTEM.STORAGE_UNIT;
TYPE E_TYPE IS (RED, BLUE, GREEN);
TYPE PARENT_TYPE IS
RECORD
I : INTEGER RANGE 0 .. 127 := 127;
C : CHARACTER := 'S';
B : BOOLEAN := FALSE;
E : E_TYPE := BLUE;
END RECORD;
FOR PARENT_TYPE USE
RECORD
C AT 0 * UNITS_PER_INTEGER RANGE 0 .. CHARACTER'SIZE - 1;
B AT 1 * UNITS_PER_INTEGER RANGE 0 .. BOOLEAN'SIZE - 1;
I AT 2 * UNITS_PER_INTEGER RANGE 0 .. INTEGER'SIZE/2 - 1;
E AT 3 * UNITS_PER_INTEGER RANGE 0 .. CHARACTER'SIZE - 1;
END RECORD;
TYPE DERIVED_TYPE IS NEW PARENT_TYPE;
FOR DERIVED_TYPE USE
RECORD
C AT 1 * UNITS_PER_INTEGER RANGE 1 .. CHARACTER'SIZE + 1;
B AT 3 * UNITS_PER_INTEGER RANGE 1 .. BOOLEAN'SIZE + 1;
I AT 5 * UNITS_PER_INTEGER RANGE 1 .. INTEGER'SIZE/2 + 1;
E AT 7 * UNITS_PER_INTEGER RANGE 1 .. CHARACTER'SIZE + 1;
END RECORD;
P_REC : PARENT_TYPE;
REC : DERIVED_TYPE;
BEGIN
TEST("CD1C04E", "CHECK THAT A RECORD REPRESENTATION CLAUSE " &
"CAN BE GIVEN FOR A DERIVED RECORD TYPE EVEN " &
"IF THE REPRESENTATION IS INHERITED FROM " &
"THE PARENT, AND THAT THE REPRESENTATION " &
"CLAUSE FOR THE DERIVED TYPE OVERRIDES THAT " &
"OF THE PARENT TYPE");
IF DERIVED_TYPE'SIZE = IDENT_INT (PARENT_TYPE'SIZE) THEN
FAILED ("DERIVED_TYPE'SIZE WAS INHERITED FROM " &
"PARENT_TYPE");
END IF;
REC := (12, 'T', TRUE, RED);
IF (REC.I /= 12) OR (REC.C /= 'T') OR
(NOT REC.B) OR (REC.E /= RED) THEN
FAILED ("THE VALUES OF DERIVED_TYPE COMPONENTS WERE " &
"INCORRECT");
END IF;
IF REC.I'POSITION = P_REC.I'POSITION OR
REC.C'POSITION = P_REC.C'POSITION OR
REC.B'POSITION = P_REC.B'POSITION OR
REC.E'POSITION = P_REC.E'POSITION THEN
FAILED ("THE POSITIONS OF DERIVED_TYPE COMPONENTS WERE " &
"INHERITED FROM PARENT_TYPE");
END IF;
IF REC.I'FIRST_BIT = P_REC.I'FIRST_BIT OR
REC.C'FIRST_BIT = P_REC.C'FIRST_BIT OR
REC.B'FIRST_BIT = P_REC.B'FIRST_BIT OR
REC.E'FIRST_BIT = P_REC.E'FIRST_BIT THEN
FAILED ("THE FIRST_BITS OF DERIVED_TYPE COMPONENTS WERE " &
"INHERITED FROM PARENT_TYPE");
END IF;
IF REC.I'LAST_BIT = P_REC.I'LAST_BIT OR
REC.C'LAST_BIT = P_REC.C'LAST_BIT OR
REC.B'LAST_BIT = P_REC.B'LAST_BIT OR
REC.E'LAST_BIT = P_REC.E'LAST_BIT THEN
FAILED ("THE LAST_BITS OF DERIVED_TYPE COMPONENTS WERE " &
"INHERITED FROM PARENT_TYPE");
END IF;
RESULT;
END CD1C04E;
| true |
-- CD1C04E.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
-- OBJECTIVE:
-- CHECK THAT A RECORD REPRESENTATION CLAUSE CAN BE GIVEN FOR
-- A DERIVED RECORD TYPE EVEN IF THE REPRESENTATION IS INHERITED
-- FROM THE PARENT, AND THAT THE REPRESENTATION CLAUSE FOR THE
-- DERIVED TYPE OVERRIDES THAT OF THE PARENT TYPE.
-- HISTORY:
-- PWB 03/25/89 DELETED CHECKS OF COMPONENT'SIZE; CHANGED
-- EXTENSION FROM '.ADA' TO '.DEP'.
-- PI:NAME:<NAME>END_PI 09/21/87 CREATED ORIGINAL TEST.
WITH REPORT; USE REPORT;
WITH SYSTEM; USE SYSTEM;
PROCEDURE CD1C04E IS
UNITS_PER_INTEGER : CONSTANT :=
(INTEGER'SIZE + SYSTEM.STORAGE_UNIT - 1) /
SYSTEM.STORAGE_UNIT;
TYPE E_TYPE IS (RED, BLUE, GREEN);
TYPE PARENT_TYPE IS
RECORD
I : INTEGER RANGE 0 .. 127 := 127;
C : CHARACTER := 'S';
B : BOOLEAN := FALSE;
E : E_TYPE := BLUE;
END RECORD;
FOR PARENT_TYPE USE
RECORD
C AT 0 * UNITS_PER_INTEGER RANGE 0 .. CHARACTER'SIZE - 1;
B AT 1 * UNITS_PER_INTEGER RANGE 0 .. BOOLEAN'SIZE - 1;
I AT 2 * UNITS_PER_INTEGER RANGE 0 .. INTEGER'SIZE/2 - 1;
E AT 3 * UNITS_PER_INTEGER RANGE 0 .. CHARACTER'SIZE - 1;
END RECORD;
TYPE DERIVED_TYPE IS NEW PARENT_TYPE;
FOR DERIVED_TYPE USE
RECORD
C AT 1 * UNITS_PER_INTEGER RANGE 1 .. CHARACTER'SIZE + 1;
B AT 3 * UNITS_PER_INTEGER RANGE 1 .. BOOLEAN'SIZE + 1;
I AT 5 * UNITS_PER_INTEGER RANGE 1 .. INTEGER'SIZE/2 + 1;
E AT 7 * UNITS_PER_INTEGER RANGE 1 .. CHARACTER'SIZE + 1;
END RECORD;
P_REC : PARENT_TYPE;
REC : DERIVED_TYPE;
BEGIN
TEST("CD1C04E", "CHECK THAT A RECORD REPRESENTATION CLAUSE " &
"CAN BE GIVEN FOR A DERIVED RECORD TYPE EVEN " &
"IF THE REPRESENTATION IS INHERITED FROM " &
"THE PARENT, AND THAT THE REPRESENTATION " &
"CLAUSE FOR THE DERIVED TYPE OVERRIDES THAT " &
"OF THE PARENT TYPE");
IF DERIVED_TYPE'SIZE = IDENT_INT (PARENT_TYPE'SIZE) THEN
FAILED ("DERIVED_TYPE'SIZE WAS INHERITED FROM " &
"PARENT_TYPE");
END IF;
REC := (12, 'T', TRUE, RED);
IF (REC.I /= 12) OR (REC.C /= 'T') OR
(NOT REC.B) OR (REC.E /= RED) THEN
FAILED ("THE VALUES OF DERIVED_TYPE COMPONENTS WERE " &
"INCORRECT");
END IF;
IF REC.I'POSITION = P_REC.I'POSITION OR
REC.C'POSITION = P_REC.C'POSITION OR
REC.B'POSITION = P_REC.B'POSITION OR
REC.E'POSITION = P_REC.E'POSITION THEN
FAILED ("THE POSITIONS OF DERIVED_TYPE COMPONENTS WERE " &
"INHERITED FROM PARENT_TYPE");
END IF;
IF REC.I'FIRST_BIT = P_REC.I'FIRST_BIT OR
REC.C'FIRST_BIT = P_REC.C'FIRST_BIT OR
REC.B'FIRST_BIT = P_REC.B'FIRST_BIT OR
REC.E'FIRST_BIT = P_REC.E'FIRST_BIT THEN
FAILED ("THE FIRST_BITS OF DERIVED_TYPE COMPONENTS WERE " &
"INHERITED FROM PARENT_TYPE");
END IF;
IF REC.I'LAST_BIT = P_REC.I'LAST_BIT OR
REC.C'LAST_BIT = P_REC.C'LAST_BIT OR
REC.B'LAST_BIT = P_REC.B'LAST_BIT OR
REC.E'LAST_BIT = P_REC.E'LAST_BIT THEN
FAILED ("THE LAST_BITS OF DERIVED_TYPE COMPONENTS WERE " &
"INHERITED FROM PARENT_TYPE");
END IF;
RESULT;
END CD1C04E;
|
[
{
"context": "-- Copyright 2018-2021 Bartek thindil Jasicki\n--\n-- This file is part of Steam Sky.\n--\n-- ",
"end": 48,
"score": 0.9998601675033569,
"start": 26,
"tag": "NAME",
"value": "Bartek thindil Jasicki"
}
] |
src/careers.adb
|
thindil/steamsky
| 80 |
-- Copyright 2018-2021 Bartek thindil Jasicki
--
-- This file is part of Steam Sky.
--
-- Steam Sky 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.
--
-- Steam Sky 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 Steam Sky. If not, see <http://www.gnu.org/licenses/>.
with Ada.Characters.Handling; use Ada.Characters.Handling;
with DOM.Core; use DOM.Core;
with DOM.Core.Documents;
with DOM.Core.Nodes; use DOM.Core.Nodes;
with DOM.Core.Elements; use DOM.Core.Elements;
with Log; use Log;
with Factions; use Factions;
package body Careers is
procedure Load_Careers(Reader: Tree_Reader) is
Temp_Record: Career_Record;
Nodes_List, Child_Nodes: Node_List;
Careers_Data: Document;
Skill_Name, Career_Index: Unbounded_String;
Tmp_Skills: UnboundedString_Container.Vector;
Delete_Index: Positive;
Career_Node: Node;
Action, Skill_Action: Data_Action;
begin
Careers_Data := Get_Tree(Read => Reader);
Nodes_List :=
DOM.Core.Documents.Get_Elements_By_Tag_Name
(Doc => Careers_Data, Tag_Name => "career");
Load_Careers_Loop :
for I in 0 .. Length(List => Nodes_List) - 1 loop
Temp_Record := (Name => Null_Unbounded_String, Skills => Tmp_Skills);
Career_Node := Item(List => Nodes_List, Index => I);
Career_Index :=
To_Unbounded_String
(Source => Get_Attribute(Elem => Career_Node, Name => "index"));
Action :=
(if Get_Attribute(Elem => Career_Node, Name => "action")'Length > 0
then
Data_Action'Value
(Get_Attribute(Elem => Career_Node, Name => "action"))
else ADD);
if Action in UPDATE | REMOVE then
if not Careers_Container.Contains
(Container => Careers_List, Key => Career_Index) then
raise Data_Loading_Error
with "Can't " & To_Lower(Item => Data_Action'Image(Action)) &
" career '" & To_String(Source => Career_Index) &
"', there is no career with that index.";
end if;
elsif Careers_Container.Contains
(Container => Careers_List, Key => Career_Index) then
raise Data_Loading_Error
with "Can't add career '" & To_String(Source => Career_Index) &
"', there is already a career with that index.";
end if;
if Action /= REMOVE then
if Action = UPDATE then
Temp_Record := Careers_List(Career_Index);
end if;
if Get_Attribute(Elem => Career_Node, Name => "name") /= "" then
Temp_Record.Name :=
To_Unbounded_String
(Source =>
Get_Attribute(Elem => Career_Node, Name => "name"));
end if;
Child_Nodes :=
DOM.Core.Elements.Get_Elements_By_Tag_Name
(Elem => Career_Node, Name => "skill");
Read_Skills_Loop :
for J in 0 .. Length(List => Child_Nodes) - 1 loop
Skill_Name :=
To_Unbounded_String
(Source =>
Get_Attribute
(Elem => Item(List => Child_Nodes, Index => J),
Name => "name"));
Skill_Action :=
(if Get_Attribute(Item(Child_Nodes, J), "action")'Length > 0
then
Data_Action'Value
(Get_Attribute(Item(Child_Nodes, J), "action"))
else ADD);
if Find_Skill_Index(To_String(Skill_Name)) = 0 then
raise Data_Loading_Error
with "Can't " & To_Lower(Data_Action'Image(Action)) &
"career '" & To_String(Career_Index) & "', skill '" &
To_String(Skill_Name) & "' not exists";
end if;
if Skill_Action /= REMOVE then
Temp_Record.Skills.Append(New_Item => Skill_Name);
else
Delete_Index := Temp_Record.Skills.First_Index;
Remove_Skills_Loop :
while Delete_Index <= Temp_Record.Skills.Last_Index loop
if Temp_Record.Skills(Delete_Index) = Skill_Name then
Temp_Record.Skills.Delete(Index => Delete_Index);
exit Remove_Skills_Loop;
end if;
Delete_Index := Delete_Index + 1;
end loop Remove_Skills_Loop;
end if;
end loop Read_Skills_Loop;
if Action /= UPDATE then
Careers_Container.Include
(Careers_List, Career_Index, Temp_Record);
Log_Message
("Career added: " & To_String(Temp_Record.Name), EVERYTHING);
else
Careers_List(Career_Index) := Temp_Record;
Log_Message
("Career updated: " & To_String(Temp_Record.Name),
EVERYTHING);
end if;
else
Careers_Container.Exclude(Careers_List, Career_Index);
Remove_Careers_Loop :
for Faction of Factions_List loop
Factions.Careers_Container.Exclude
(Faction.Careers, Career_Index);
end loop Remove_Careers_Loop;
Log_Message
("Career removed: " & To_String(Career_Index), EVERYTHING);
end if;
end loop Load_Careers_Loop;
end Load_Careers;
end Careers;
|
22652
|
-- Copyright 2018-2021 <NAME>
--
-- This file is part of Steam Sky.
--
-- Steam Sky 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.
--
-- Steam Sky 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 Steam Sky. If not, see <http://www.gnu.org/licenses/>.
with Ada.Characters.Handling; use Ada.Characters.Handling;
with DOM.Core; use DOM.Core;
with DOM.Core.Documents;
with DOM.Core.Nodes; use DOM.Core.Nodes;
with DOM.Core.Elements; use DOM.Core.Elements;
with Log; use Log;
with Factions; use Factions;
package body Careers is
procedure Load_Careers(Reader: Tree_Reader) is
Temp_Record: Career_Record;
Nodes_List, Child_Nodes: Node_List;
Careers_Data: Document;
Skill_Name, Career_Index: Unbounded_String;
Tmp_Skills: UnboundedString_Container.Vector;
Delete_Index: Positive;
Career_Node: Node;
Action, Skill_Action: Data_Action;
begin
Careers_Data := Get_Tree(Read => Reader);
Nodes_List :=
DOM.Core.Documents.Get_Elements_By_Tag_Name
(Doc => Careers_Data, Tag_Name => "career");
Load_Careers_Loop :
for I in 0 .. Length(List => Nodes_List) - 1 loop
Temp_Record := (Name => Null_Unbounded_String, Skills => Tmp_Skills);
Career_Node := Item(List => Nodes_List, Index => I);
Career_Index :=
To_Unbounded_String
(Source => Get_Attribute(Elem => Career_Node, Name => "index"));
Action :=
(if Get_Attribute(Elem => Career_Node, Name => "action")'Length > 0
then
Data_Action'Value
(Get_Attribute(Elem => Career_Node, Name => "action"))
else ADD);
if Action in UPDATE | REMOVE then
if not Careers_Container.Contains
(Container => Careers_List, Key => Career_Index) then
raise Data_Loading_Error
with "Can't " & To_Lower(Item => Data_Action'Image(Action)) &
" career '" & To_String(Source => Career_Index) &
"', there is no career with that index.";
end if;
elsif Careers_Container.Contains
(Container => Careers_List, Key => Career_Index) then
raise Data_Loading_Error
with "Can't add career '" & To_String(Source => Career_Index) &
"', there is already a career with that index.";
end if;
if Action /= REMOVE then
if Action = UPDATE then
Temp_Record := Careers_List(Career_Index);
end if;
if Get_Attribute(Elem => Career_Node, Name => "name") /= "" then
Temp_Record.Name :=
To_Unbounded_String
(Source =>
Get_Attribute(Elem => Career_Node, Name => "name"));
end if;
Child_Nodes :=
DOM.Core.Elements.Get_Elements_By_Tag_Name
(Elem => Career_Node, Name => "skill");
Read_Skills_Loop :
for J in 0 .. Length(List => Child_Nodes) - 1 loop
Skill_Name :=
To_Unbounded_String
(Source =>
Get_Attribute
(Elem => Item(List => Child_Nodes, Index => J),
Name => "name"));
Skill_Action :=
(if Get_Attribute(Item(Child_Nodes, J), "action")'Length > 0
then
Data_Action'Value
(Get_Attribute(Item(Child_Nodes, J), "action"))
else ADD);
if Find_Skill_Index(To_String(Skill_Name)) = 0 then
raise Data_Loading_Error
with "Can't " & To_Lower(Data_Action'Image(Action)) &
"career '" & To_String(Career_Index) & "', skill '" &
To_String(Skill_Name) & "' not exists";
end if;
if Skill_Action /= REMOVE then
Temp_Record.Skills.Append(New_Item => Skill_Name);
else
Delete_Index := Temp_Record.Skills.First_Index;
Remove_Skills_Loop :
while Delete_Index <= Temp_Record.Skills.Last_Index loop
if Temp_Record.Skills(Delete_Index) = Skill_Name then
Temp_Record.Skills.Delete(Index => Delete_Index);
exit Remove_Skills_Loop;
end if;
Delete_Index := Delete_Index + 1;
end loop Remove_Skills_Loop;
end if;
end loop Read_Skills_Loop;
if Action /= UPDATE then
Careers_Container.Include
(Careers_List, Career_Index, Temp_Record);
Log_Message
("Career added: " & To_String(Temp_Record.Name), EVERYTHING);
else
Careers_List(Career_Index) := Temp_Record;
Log_Message
("Career updated: " & To_String(Temp_Record.Name),
EVERYTHING);
end if;
else
Careers_Container.Exclude(Careers_List, Career_Index);
Remove_Careers_Loop :
for Faction of Factions_List loop
Factions.Careers_Container.Exclude
(Faction.Careers, Career_Index);
end loop Remove_Careers_Loop;
Log_Message
("Career removed: " & To_String(Career_Index), EVERYTHING);
end if;
end loop Load_Careers_Loop;
end Load_Careers;
end Careers;
| true |
-- Copyright 2018-2021 PI:NAME:<NAME>END_PI
--
-- This file is part of Steam Sky.
--
-- Steam Sky 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.
--
-- Steam Sky 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 Steam Sky. If not, see <http://www.gnu.org/licenses/>.
with Ada.Characters.Handling; use Ada.Characters.Handling;
with DOM.Core; use DOM.Core;
with DOM.Core.Documents;
with DOM.Core.Nodes; use DOM.Core.Nodes;
with DOM.Core.Elements; use DOM.Core.Elements;
with Log; use Log;
with Factions; use Factions;
package body Careers is
procedure Load_Careers(Reader: Tree_Reader) is
Temp_Record: Career_Record;
Nodes_List, Child_Nodes: Node_List;
Careers_Data: Document;
Skill_Name, Career_Index: Unbounded_String;
Tmp_Skills: UnboundedString_Container.Vector;
Delete_Index: Positive;
Career_Node: Node;
Action, Skill_Action: Data_Action;
begin
Careers_Data := Get_Tree(Read => Reader);
Nodes_List :=
DOM.Core.Documents.Get_Elements_By_Tag_Name
(Doc => Careers_Data, Tag_Name => "career");
Load_Careers_Loop :
for I in 0 .. Length(List => Nodes_List) - 1 loop
Temp_Record := (Name => Null_Unbounded_String, Skills => Tmp_Skills);
Career_Node := Item(List => Nodes_List, Index => I);
Career_Index :=
To_Unbounded_String
(Source => Get_Attribute(Elem => Career_Node, Name => "index"));
Action :=
(if Get_Attribute(Elem => Career_Node, Name => "action")'Length > 0
then
Data_Action'Value
(Get_Attribute(Elem => Career_Node, Name => "action"))
else ADD);
if Action in UPDATE | REMOVE then
if not Careers_Container.Contains
(Container => Careers_List, Key => Career_Index) then
raise Data_Loading_Error
with "Can't " & To_Lower(Item => Data_Action'Image(Action)) &
" career '" & To_String(Source => Career_Index) &
"', there is no career with that index.";
end if;
elsif Careers_Container.Contains
(Container => Careers_List, Key => Career_Index) then
raise Data_Loading_Error
with "Can't add career '" & To_String(Source => Career_Index) &
"', there is already a career with that index.";
end if;
if Action /= REMOVE then
if Action = UPDATE then
Temp_Record := Careers_List(Career_Index);
end if;
if Get_Attribute(Elem => Career_Node, Name => "name") /= "" then
Temp_Record.Name :=
To_Unbounded_String
(Source =>
Get_Attribute(Elem => Career_Node, Name => "name"));
end if;
Child_Nodes :=
DOM.Core.Elements.Get_Elements_By_Tag_Name
(Elem => Career_Node, Name => "skill");
Read_Skills_Loop :
for J in 0 .. Length(List => Child_Nodes) - 1 loop
Skill_Name :=
To_Unbounded_String
(Source =>
Get_Attribute
(Elem => Item(List => Child_Nodes, Index => J),
Name => "name"));
Skill_Action :=
(if Get_Attribute(Item(Child_Nodes, J), "action")'Length > 0
then
Data_Action'Value
(Get_Attribute(Item(Child_Nodes, J), "action"))
else ADD);
if Find_Skill_Index(To_String(Skill_Name)) = 0 then
raise Data_Loading_Error
with "Can't " & To_Lower(Data_Action'Image(Action)) &
"career '" & To_String(Career_Index) & "', skill '" &
To_String(Skill_Name) & "' not exists";
end if;
if Skill_Action /= REMOVE then
Temp_Record.Skills.Append(New_Item => Skill_Name);
else
Delete_Index := Temp_Record.Skills.First_Index;
Remove_Skills_Loop :
while Delete_Index <= Temp_Record.Skills.Last_Index loop
if Temp_Record.Skills(Delete_Index) = Skill_Name then
Temp_Record.Skills.Delete(Index => Delete_Index);
exit Remove_Skills_Loop;
end if;
Delete_Index := Delete_Index + 1;
end loop Remove_Skills_Loop;
end if;
end loop Read_Skills_Loop;
if Action /= UPDATE then
Careers_Container.Include
(Careers_List, Career_Index, Temp_Record);
Log_Message
("Career added: " & To_String(Temp_Record.Name), EVERYTHING);
else
Careers_List(Career_Index) := Temp_Record;
Log_Message
("Career updated: " & To_String(Temp_Record.Name),
EVERYTHING);
end if;
else
Careers_Container.Exclude(Careers_List, Career_Index);
Remove_Careers_Loop :
for Faction of Factions_List loop
Factions.Careers_Container.Exclude
(Faction.Careers, Career_Index);
end loop Remove_Careers_Loop;
Log_Message
("Career removed: " & To_String(Career_Index), EVERYTHING);
end if;
end loop Load_Careers_Loop;
end Load_Careers;
end Careers;
|
[
{
"context": "-------\n-- Copyright (C) 2020 by Heisenbug Ltd. ([email protected])\n--\n-- This work is free. You can redistribute i",
"end": 142,
"score": 0.999921441078186,
"start": 123,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
src/open_weather_map-api-service-weather.ads
|
Jellix/open_weather_map_api
| 1 |
--------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. ([email protected])
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hocevar. See the LICENSE file for more details.
--------------------------------------------------------------------------------
pragma License (Unrestricted);
--------------------------------------------------------------------------------
--% @summary
--% Open_Weather_Map.API.Service.Weather
--
--% @description
--% Provides the query object implementing a single id based query.
--------------------------------------------------------------------------------
package Open_Weather_Map.API.Service.Weather is
-----------------------------------------------------------------------------
-- API: Current weather data (by city ID)
-----------------------------------------------------------------------------
type T is new Service.T with private;
-----------------------------------------------------------------------------
-- Initialize
-----------------------------------------------------------------------------
procedure Initialize
(Self : out T;
Configuration : in GNATCOLL.JSON.JSON_Value;
Connection : not null Client.T_Access;
Max_Cache_Interval : in Ada.Real_Time.Time_Span := Default_Cache_Interval;
Id : in City_Id);
--% Initializes an instance of a single query.
--
--% @param Self
--% Instance of the single query to initialize.
--
--% @param Configuration
--% Configuration data object containing connection relevant data (proxy
--% server, API key, etc.).
--
--% @param Connection
--% The connection to be used for client server communication.
--
--% @param Max_Cache_Interval
--% Denotes the maximum frequency at which actual queries are being sent to
--% the server.
--
--% @param Id
--% Location id of the place to be queried.
private
type T is new API. Service.T with null record;
-----------------------------------------------------------------------------
-- Decode_Response
-----------------------------------------------------------------------------
overriding function Decode_Response
(Self : in T;
Root : in GNATCOLL.JSON.JSON_Value) return Data_Set;
--% Decodes a single query response from the server.
--
--% @param Self
--% The single query instance.
--
--% @param Root
--% Root of the JSON data sent back by the server.
--
--% @return
--% The data set decoded from the response in Root.
end Open_Weather_Map.API.Service.Weather;
|
18635
|
--------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (<EMAIL>)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hocevar. See the LICENSE file for more details.
--------------------------------------------------------------------------------
pragma License (Unrestricted);
--------------------------------------------------------------------------------
--% @summary
--% Open_Weather_Map.API.Service.Weather
--
--% @description
--% Provides the query object implementing a single id based query.
--------------------------------------------------------------------------------
package Open_Weather_Map.API.Service.Weather is
-----------------------------------------------------------------------------
-- API: Current weather data (by city ID)
-----------------------------------------------------------------------------
type T is new Service.T with private;
-----------------------------------------------------------------------------
-- Initialize
-----------------------------------------------------------------------------
procedure Initialize
(Self : out T;
Configuration : in GNATCOLL.JSON.JSON_Value;
Connection : not null Client.T_Access;
Max_Cache_Interval : in Ada.Real_Time.Time_Span := Default_Cache_Interval;
Id : in City_Id);
--% Initializes an instance of a single query.
--
--% @param Self
--% Instance of the single query to initialize.
--
--% @param Configuration
--% Configuration data object containing connection relevant data (proxy
--% server, API key, etc.).
--
--% @param Connection
--% The connection to be used for client server communication.
--
--% @param Max_Cache_Interval
--% Denotes the maximum frequency at which actual queries are being sent to
--% the server.
--
--% @param Id
--% Location id of the place to be queried.
private
type T is new API. Service.T with null record;
-----------------------------------------------------------------------------
-- Decode_Response
-----------------------------------------------------------------------------
overriding function Decode_Response
(Self : in T;
Root : in GNATCOLL.JSON.JSON_Value) return Data_Set;
--% Decodes a single query response from the server.
--
--% @param Self
--% The single query instance.
--
--% @param Root
--% Root of the JSON data sent back by the server.
--
--% @return
--% The data set decoded from the response in Root.
end Open_Weather_Map.API.Service.Weather;
| true |
--------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (PI:EMAIL:<EMAIL>END_PI)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hocevar. See the LICENSE file for more details.
--------------------------------------------------------------------------------
pragma License (Unrestricted);
--------------------------------------------------------------------------------
--% @summary
--% Open_Weather_Map.API.Service.Weather
--
--% @description
--% Provides the query object implementing a single id based query.
--------------------------------------------------------------------------------
package Open_Weather_Map.API.Service.Weather is
-----------------------------------------------------------------------------
-- API: Current weather data (by city ID)
-----------------------------------------------------------------------------
type T is new Service.T with private;
-----------------------------------------------------------------------------
-- Initialize
-----------------------------------------------------------------------------
procedure Initialize
(Self : out T;
Configuration : in GNATCOLL.JSON.JSON_Value;
Connection : not null Client.T_Access;
Max_Cache_Interval : in Ada.Real_Time.Time_Span := Default_Cache_Interval;
Id : in City_Id);
--% Initializes an instance of a single query.
--
--% @param Self
--% Instance of the single query to initialize.
--
--% @param Configuration
--% Configuration data object containing connection relevant data (proxy
--% server, API key, etc.).
--
--% @param Connection
--% The connection to be used for client server communication.
--
--% @param Max_Cache_Interval
--% Denotes the maximum frequency at which actual queries are being sent to
--% the server.
--
--% @param Id
--% Location id of the place to be queried.
private
type T is new API. Service.T with null record;
-----------------------------------------------------------------------------
-- Decode_Response
-----------------------------------------------------------------------------
overriding function Decode_Response
(Self : in T;
Root : in GNATCOLL.JSON.JSON_Value) return Data_Set;
--% Decodes a single query response from the server.
--
--% @param Self
--% The single query instance.
--
--% @param Root
--% Root of the JSON data sent back by the server.
--
--% @return
--% The data set decoded from the response in Root.
end Open_Weather_Map.API.Service.Weather;
|
[
{
"context": "-- Copyright (c) 2020-2021 Bartek thindil Jasicki <[email protected]>\n--\n-- This program is free so",
"end": 49,
"score": 0.9998589754104614,
"start": 27,
"tag": "NAME",
"value": "Bartek thindil Jasicki"
},
{
"context": "- Copyright (c) 2020-2021 Bartek thindil Jasicki <[email protected]>\n--\n-- This program is free software: you can red",
"end": 68,
"score": 0.9999361038208008,
"start": 51,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
src/ui/goals-ui.adb
|
thindil/steamsky
| 80 |
-- Copyright (c) 2020-2021 Bartek thindil Jasicki <[email protected]>
--
-- 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/>.
with Ada.Strings; use Ada.Strings;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with Interfaces.C;
with GNAT.Directory_Operations; use GNAT.Directory_Operations;
with CArgv;
with Tcl; use Tcl;
with Tcl.Ada; use Tcl.Ada;
with Tcl.Tk.Ada; use Tcl.Tk.Ada;
with Tcl.Tk.Ada.Widgets; use Tcl.Tk.Ada.Widgets;
with Tcl.Tk.Ada.Widgets.TtkButton; use Tcl.Tk.Ada.Widgets.TtkButton;
with Tcl.Tk.Ada.Widgets.TtkFrame; use Tcl.Tk.Ada.Widgets.TtkFrame;
with Tcl.Tk.Ada.Widgets.TtkLabel; use Tcl.Tk.Ada.Widgets.TtkLabel;
with Tcl.Tk.Ada.Widgets.TtkTreeView; use Tcl.Tk.Ada.Widgets.TtkTreeView;
with Tcl.Tklib.Ada.Tooltip; use Tcl.Tklib.Ada.Tooltip;
with Config; use Config;
with Game; use Game;
with Utils; use Utils;
with Utils.UI; use Utils.UI;
package body Goals.UI is
-- ****o* GUI/GUI.Show_Goals_Command
-- FUNCTION
-- Show goals UI to the player
-- PARAMETERS
-- ClientData - Custom data send to the command. Unused
-- Interp - Tcl interpreter in which command was executed.
-- Argc - Number of arguments passed to the command. Unused
-- Argv - Values of arguments passed to the command.
-- RESULT
-- This function always return TCL_OK
-- COMMANDS
-- ShowGoals buttonpath
-- Buttonpath is path to the button which is used to set the goal
-- SOURCE
function Show_Goals_Command
(ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int with
Convention => C;
-- ****
function Show_Goals_Command
(ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int is
pragma Unreferenced(ClientData, Argc);
Goals_Dialog: constant Ttk_Frame := Get_Widget(".goalsdialog", Interp);
GoalsView: constant Ttk_Tree_View :=
Get_Widget(Goals_Dialog & ".view", Interp);
SelectButton: constant Ttk_Button :=
Get_Widget(Goals_Dialog & ".selectbutton", Interp);
Dialog_Header: constant Ttk_Label :=
Get_Widget(Goals_Dialog & ".header", Interp);
begin
Tcl_EvalFile
(Interp,
To_String(Data_Directory) & "ui" & Dir_Separator & "goals.tcl");
Load_Goals_Loop :
for I in Goals_List.Iterate loop
Insert
(GoalsView,
GoalTypes'Image(Goals_List(I).GType) & " end -id {" &
Trim(Positive'Image(Goals_Container.To_Index(I)), Left) &
"} -text {" & GoalText(Goals_Container.To_Index(I)) & "}");
end loop Load_Goals_Loop;
configure(SelectButton, "-command {SetGoal " & CArgv.Arg(Argv, 1) & "}");
Bind
(Dialog_Header,
"<ButtonPress-" & (if Game_Settings.Right_Button then "3" else "1") &
">",
"{SetMousePosition " & Dialog_Header & " %X %Y}");
Bind
(Dialog_Header, "<Motion>", "{MoveDialog " & Goals_Dialog & " %X %Y}");
Bind
(Dialog_Header,
"<ButtonRelease-" &
(if Game_Settings.Right_Button then "3" else "1") & ">",
"{SetMousePosition " & Dialog_Header & " 0 0}");
return TCL_OK;
end Show_Goals_Command;
-- ****o* GUI/GUI.Set_Goal_Command
-- FUNCTION
-- Set selected goal as a current goal
-- PARAMETERS
-- ClientData - Custom data send to the command. Unused
-- Interp - Tcl interpreter in which command was executed.
-- Argc - Number of arguments passed to the command. Unused
-- Argv - Values of arguments passed to the command.
-- RESULT
-- This function always return TCL_OK
-- COMMANDS
-- SetGoal buttonpath
-- Buttonpath is path to the button which is used to set the goal
-- SOURCE
function Set_Goal_Command
(ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int with
Convention => C;
-- ****
function Set_Goal_Command
(ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int is
pragma Unreferenced(ClientData, Argc);
GoalsView: constant Ttk_Tree_View :=
Get_Widget(".goalsdialog.view", Interp);
SelectedGoal: Natural;
ButtonName: constant String := CArgv.Arg(Argv, 1);
GoalButton: constant Ttk_Button := Get_Widget(ButtonName, Interp);
ButtonText: Unbounded_String;
begin
SelectedGoal := Natural'Value(Selection(GoalsView));
ClearCurrentGoal;
if SelectedGoal > 0 then
CurrentGoal := Goals_List(SelectedGoal);
elsif Index(ButtonName, "newgamemenu") = 0 then
CurrentGoal :=
Goals_List
(Get_Random(Goals_List.First_Index, Goals_List.Last_Index));
end if;
if SelectedGoal > 0 then
ButtonText := To_Unbounded_String(GoalText(SelectedGoal));
Add(GoalButton, To_String(ButtonText));
if Length(ButtonText) > 16 then
ButtonText := Unbounded_Slice(ButtonText, 1, 17) & "...";
end if;
configure(GoalButton, "-text {" & To_String(ButtonText) & "}");
else
configure(GoalButton, "-text {Random}");
end if;
Tcl_Eval(Interp, ".goalsdialog.closebutton invoke");
return TCL_OK;
end Set_Goal_Command;
procedure AddCommands is
begin
Add_Command("ShowGoals", Show_Goals_Command'Access);
Add_Command("SetGoal", Set_Goal_Command'Access);
end AddCommands;
end Goals.UI;
|
1316
|
-- Copyright (c) 2020-2021 <NAME> <<EMAIL>>
--
-- 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/>.
with Ada.Strings; use Ada.Strings;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with Interfaces.C;
with GNAT.Directory_Operations; use GNAT.Directory_Operations;
with CArgv;
with Tcl; use Tcl;
with Tcl.Ada; use Tcl.Ada;
with Tcl.Tk.Ada; use Tcl.Tk.Ada;
with Tcl.Tk.Ada.Widgets; use Tcl.Tk.Ada.Widgets;
with Tcl.Tk.Ada.Widgets.TtkButton; use Tcl.Tk.Ada.Widgets.TtkButton;
with Tcl.Tk.Ada.Widgets.TtkFrame; use Tcl.Tk.Ada.Widgets.TtkFrame;
with Tcl.Tk.Ada.Widgets.TtkLabel; use Tcl.Tk.Ada.Widgets.TtkLabel;
with Tcl.Tk.Ada.Widgets.TtkTreeView; use Tcl.Tk.Ada.Widgets.TtkTreeView;
with Tcl.Tklib.Ada.Tooltip; use Tcl.Tklib.Ada.Tooltip;
with Config; use Config;
with Game; use Game;
with Utils; use Utils;
with Utils.UI; use Utils.UI;
package body Goals.UI is
-- ****o* GUI/GUI.Show_Goals_Command
-- FUNCTION
-- Show goals UI to the player
-- PARAMETERS
-- ClientData - Custom data send to the command. Unused
-- Interp - Tcl interpreter in which command was executed.
-- Argc - Number of arguments passed to the command. Unused
-- Argv - Values of arguments passed to the command.
-- RESULT
-- This function always return TCL_OK
-- COMMANDS
-- ShowGoals buttonpath
-- Buttonpath is path to the button which is used to set the goal
-- SOURCE
function Show_Goals_Command
(ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int with
Convention => C;
-- ****
function Show_Goals_Command
(ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int is
pragma Unreferenced(ClientData, Argc);
Goals_Dialog: constant Ttk_Frame := Get_Widget(".goalsdialog", Interp);
GoalsView: constant Ttk_Tree_View :=
Get_Widget(Goals_Dialog & ".view", Interp);
SelectButton: constant Ttk_Button :=
Get_Widget(Goals_Dialog & ".selectbutton", Interp);
Dialog_Header: constant Ttk_Label :=
Get_Widget(Goals_Dialog & ".header", Interp);
begin
Tcl_EvalFile
(Interp,
To_String(Data_Directory) & "ui" & Dir_Separator & "goals.tcl");
Load_Goals_Loop :
for I in Goals_List.Iterate loop
Insert
(GoalsView,
GoalTypes'Image(Goals_List(I).GType) & " end -id {" &
Trim(Positive'Image(Goals_Container.To_Index(I)), Left) &
"} -text {" & GoalText(Goals_Container.To_Index(I)) & "}");
end loop Load_Goals_Loop;
configure(SelectButton, "-command {SetGoal " & CArgv.Arg(Argv, 1) & "}");
Bind
(Dialog_Header,
"<ButtonPress-" & (if Game_Settings.Right_Button then "3" else "1") &
">",
"{SetMousePosition " & Dialog_Header & " %X %Y}");
Bind
(Dialog_Header, "<Motion>", "{MoveDialog " & Goals_Dialog & " %X %Y}");
Bind
(Dialog_Header,
"<ButtonRelease-" &
(if Game_Settings.Right_Button then "3" else "1") & ">",
"{SetMousePosition " & Dialog_Header & " 0 0}");
return TCL_OK;
end Show_Goals_Command;
-- ****o* GUI/GUI.Set_Goal_Command
-- FUNCTION
-- Set selected goal as a current goal
-- PARAMETERS
-- ClientData - Custom data send to the command. Unused
-- Interp - Tcl interpreter in which command was executed.
-- Argc - Number of arguments passed to the command. Unused
-- Argv - Values of arguments passed to the command.
-- RESULT
-- This function always return TCL_OK
-- COMMANDS
-- SetGoal buttonpath
-- Buttonpath is path to the button which is used to set the goal
-- SOURCE
function Set_Goal_Command
(ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int with
Convention => C;
-- ****
function Set_Goal_Command
(ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int is
pragma Unreferenced(ClientData, Argc);
GoalsView: constant Ttk_Tree_View :=
Get_Widget(".goalsdialog.view", Interp);
SelectedGoal: Natural;
ButtonName: constant String := CArgv.Arg(Argv, 1);
GoalButton: constant Ttk_Button := Get_Widget(ButtonName, Interp);
ButtonText: Unbounded_String;
begin
SelectedGoal := Natural'Value(Selection(GoalsView));
ClearCurrentGoal;
if SelectedGoal > 0 then
CurrentGoal := Goals_List(SelectedGoal);
elsif Index(ButtonName, "newgamemenu") = 0 then
CurrentGoal :=
Goals_List
(Get_Random(Goals_List.First_Index, Goals_List.Last_Index));
end if;
if SelectedGoal > 0 then
ButtonText := To_Unbounded_String(GoalText(SelectedGoal));
Add(GoalButton, To_String(ButtonText));
if Length(ButtonText) > 16 then
ButtonText := Unbounded_Slice(ButtonText, 1, 17) & "...";
end if;
configure(GoalButton, "-text {" & To_String(ButtonText) & "}");
else
configure(GoalButton, "-text {Random}");
end if;
Tcl_Eval(Interp, ".goalsdialog.closebutton invoke");
return TCL_OK;
end Set_Goal_Command;
procedure AddCommands is
begin
Add_Command("ShowGoals", Show_Goals_Command'Access);
Add_Command("SetGoal", Set_Goal_Command'Access);
end AddCommands;
end Goals.UI;
| true |
-- Copyright (c) 2020-2021 PI:NAME:<NAME>END_PI <PI:EMAIL:<EMAIL>END_PI>
--
-- 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/>.
with Ada.Strings; use Ada.Strings;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with Interfaces.C;
with GNAT.Directory_Operations; use GNAT.Directory_Operations;
with CArgv;
with Tcl; use Tcl;
with Tcl.Ada; use Tcl.Ada;
with Tcl.Tk.Ada; use Tcl.Tk.Ada;
with Tcl.Tk.Ada.Widgets; use Tcl.Tk.Ada.Widgets;
with Tcl.Tk.Ada.Widgets.TtkButton; use Tcl.Tk.Ada.Widgets.TtkButton;
with Tcl.Tk.Ada.Widgets.TtkFrame; use Tcl.Tk.Ada.Widgets.TtkFrame;
with Tcl.Tk.Ada.Widgets.TtkLabel; use Tcl.Tk.Ada.Widgets.TtkLabel;
with Tcl.Tk.Ada.Widgets.TtkTreeView; use Tcl.Tk.Ada.Widgets.TtkTreeView;
with Tcl.Tklib.Ada.Tooltip; use Tcl.Tklib.Ada.Tooltip;
with Config; use Config;
with Game; use Game;
with Utils; use Utils;
with Utils.UI; use Utils.UI;
package body Goals.UI is
-- ****o* GUI/GUI.Show_Goals_Command
-- FUNCTION
-- Show goals UI to the player
-- PARAMETERS
-- ClientData - Custom data send to the command. Unused
-- Interp - Tcl interpreter in which command was executed.
-- Argc - Number of arguments passed to the command. Unused
-- Argv - Values of arguments passed to the command.
-- RESULT
-- This function always return TCL_OK
-- COMMANDS
-- ShowGoals buttonpath
-- Buttonpath is path to the button which is used to set the goal
-- SOURCE
function Show_Goals_Command
(ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int with
Convention => C;
-- ****
function Show_Goals_Command
(ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int is
pragma Unreferenced(ClientData, Argc);
Goals_Dialog: constant Ttk_Frame := Get_Widget(".goalsdialog", Interp);
GoalsView: constant Ttk_Tree_View :=
Get_Widget(Goals_Dialog & ".view", Interp);
SelectButton: constant Ttk_Button :=
Get_Widget(Goals_Dialog & ".selectbutton", Interp);
Dialog_Header: constant Ttk_Label :=
Get_Widget(Goals_Dialog & ".header", Interp);
begin
Tcl_EvalFile
(Interp,
To_String(Data_Directory) & "ui" & Dir_Separator & "goals.tcl");
Load_Goals_Loop :
for I in Goals_List.Iterate loop
Insert
(GoalsView,
GoalTypes'Image(Goals_List(I).GType) & " end -id {" &
Trim(Positive'Image(Goals_Container.To_Index(I)), Left) &
"} -text {" & GoalText(Goals_Container.To_Index(I)) & "}");
end loop Load_Goals_Loop;
configure(SelectButton, "-command {SetGoal " & CArgv.Arg(Argv, 1) & "}");
Bind
(Dialog_Header,
"<ButtonPress-" & (if Game_Settings.Right_Button then "3" else "1") &
">",
"{SetMousePosition " & Dialog_Header & " %X %Y}");
Bind
(Dialog_Header, "<Motion>", "{MoveDialog " & Goals_Dialog & " %X %Y}");
Bind
(Dialog_Header,
"<ButtonRelease-" &
(if Game_Settings.Right_Button then "3" else "1") & ">",
"{SetMousePosition " & Dialog_Header & " 0 0}");
return TCL_OK;
end Show_Goals_Command;
-- ****o* GUI/GUI.Set_Goal_Command
-- FUNCTION
-- Set selected goal as a current goal
-- PARAMETERS
-- ClientData - Custom data send to the command. Unused
-- Interp - Tcl interpreter in which command was executed.
-- Argc - Number of arguments passed to the command. Unused
-- Argv - Values of arguments passed to the command.
-- RESULT
-- This function always return TCL_OK
-- COMMANDS
-- SetGoal buttonpath
-- Buttonpath is path to the button which is used to set the goal
-- SOURCE
function Set_Goal_Command
(ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int with
Convention => C;
-- ****
function Set_Goal_Command
(ClientData: Integer; Interp: Tcl.Tcl_Interp; Argc: Interfaces.C.int;
Argv: CArgv.Chars_Ptr_Ptr) return Interfaces.C.int is
pragma Unreferenced(ClientData, Argc);
GoalsView: constant Ttk_Tree_View :=
Get_Widget(".goalsdialog.view", Interp);
SelectedGoal: Natural;
ButtonName: constant String := CArgv.Arg(Argv, 1);
GoalButton: constant Ttk_Button := Get_Widget(ButtonName, Interp);
ButtonText: Unbounded_String;
begin
SelectedGoal := Natural'Value(Selection(GoalsView));
ClearCurrentGoal;
if SelectedGoal > 0 then
CurrentGoal := Goals_List(SelectedGoal);
elsif Index(ButtonName, "newgamemenu") = 0 then
CurrentGoal :=
Goals_List
(Get_Random(Goals_List.First_Index, Goals_List.Last_Index));
end if;
if SelectedGoal > 0 then
ButtonText := To_Unbounded_String(GoalText(SelectedGoal));
Add(GoalButton, To_String(ButtonText));
if Length(ButtonText) > 16 then
ButtonText := Unbounded_Slice(ButtonText, 1, 17) & "...";
end if;
configure(GoalButton, "-text {" & To_String(ButtonText) & "}");
else
configure(GoalButton, "-text {Random}");
end if;
Tcl_Eval(Interp, ".goalsdialog.closebutton invoke");
return TCL_OK;
end Set_Goal_Command;
procedure AddCommands is
begin
Add_Command("ShowGoals", Show_Goals_Command'Access);
Add_Command("SetGoal", Set_Goal_Command'Access);
end AddCommands;
end Goals.UI;
|
[
{
"context": ">221</B>\n <G>212</G>\n <Name>blaugrau</Name>\n <R>175</R>\n </Color1>\n ",
"end": 659,
"score": 0.7625066637992859,
"start": 651,
"tag": "NAME",
"value": "blaugrau"
},
{
"context": ">192</B>\n <G>192</G>\n <Name>hellgrau</Name>\n <R>192</R>\n </Color10>\n",
"end": 798,
"score": 0.8538277745246887,
"start": 790,
"tag": "NAME",
"value": "hellgrau"
},
{
"context": "<B>255</B>\n <G>0</G>\n <Name>kamesinrot</Name>\n <R>255</R>\n </Color11>\n",
"end": 938,
"score": 0.8346977233886719,
"start": 928,
"tag": "NAME",
"value": "kamesinrot"
},
{
"context": ">255</B>\n <G>247</G>\n <Name>pastell-blau</Name>\n <R>211</R>\n </Color13>\n",
"end": 1218,
"score": 0.9554033279418945,
"start": 1206,
"tag": "NAME",
"value": "pastell-blau"
},
{
"context": ">186</B>\n <G>245</G>\n <Name>pastell-gelb</Name>\n <R>255</R>\n </Color14>\n",
"end": 1362,
"score": 0.9186481237411499,
"start": 1350,
"tag": "NAME",
"value": "pastell-gelb"
},
{
"context": ">234</B>\n <G>255</G>\n <Name>pastell-gr&uuml;n</Name>\n <R>211</R>\n ",
"end": 1504,
"score": 0.7261152267456055,
"start": 1494,
"tag": "NAME",
"value": "pastell-gr"
},
{
"context": " <G>255</G>\n <Name>pastell-gr&uuml;n</Name>\n <R>211</R>\n </Color15>\n",
"end": 1515,
"score": 0.6402716040611267,
"start": 1514,
"tag": "NAME",
"value": "n"
},
{
"context": ">255</B>\n <G>211</G>\n <Name>pastell-lila</Name>\n <R>244</R>\n </Color16>\n",
"end": 1659,
"score": 0.9988327026367188,
"start": 1647,
"tag": "NAME",
"value": "pastell-lila"
},
{
"context": ">191</B>\n <G>165</G>\n <Name>pastell-rot</Name>\n <R>244</R>\n </Color17>\n",
"end": 1802,
"score": 0.9963436126708984,
"start": 1791,
"tag": "NAME",
"value": "pastell-rot"
},
{
"context": "B>61</B>\n <G>125</G>\n <Name>braun</Name>\n <R>170</R>\n </Color2>\n ",
"end": 2204,
"score": 0.992628812789917,
"start": 2199,
"tag": "NAME",
"value": "braun"
},
{
"context": "<B>0</B>\n <G>225</G>\n <Name>goldgelb</Name>\n <R>255</R>\n </Color6>\n ",
"end": 3180,
"score": 0.9963279366493225,
"start": 3172,
"tag": "USERNAME",
"value": "goldgelb"
},
{
"context": ">255</B>\n <G>212</G>\n <Name>hellblau</Name>\n <R>191</R>\n </Color9>\n ",
"end": 3591,
"score": 0.9939939379692078,
"start": 3583,
"tag": "USERNAME",
"value": "hellblau"
},
{
"context": "Setzen>false</ReferenzenSetzen>\n <User>platon</User>\n </Update>\n </DataSource>\n <D",
"end": 4453,
"score": 0.998705267906189,
"start": 4447,
"tag": "USERNAME",
"value": "platon"
},
{
"context": "nden>false</AufgehobeneAusblenden>\n <Autor>ollie</Autor>\n <Basepackagename>testmodel</Basep",
"end": 10205,
"score": 0.8809925317764282,
"start": 10200,
"tag": "USERNAME",
"value": "ollie"
},
{
"context": "d>false</ListItemField>\n <Name>LastModificationUser</Name>\n <NotNu",
"end": 122985,
"score": 0.6703768968582153,
"start": 122981,
"tag": "NAME",
"value": "Last"
},
{
"context": "d>false</ListItemField>\n <Name>LastModificationUser</Name>\n <NotNull>false</No",
"end": 224069,
"score": 0.706793487071991,
"start": 224053,
"tag": "NAME",
"value": "LastModification"
}
] |
legacy-core/src/test/resources/dm/TestModel.ads
|
greifentor/archimedes-legacy
| 0 |
<Diagramm>
<AdditionalSQLCode>
<SQLCode>
<AdditionalSQLCodePostChanging></AdditionalSQLCodePostChanging>
<AdditionalSQLCodePostReducing></AdditionalSQLCodePostReducing>
<AdditionalSQLCodePreChanging></AdditionalSQLCodePreChanging>
<AdditionalSQLCodePreExtending></AdditionalSQLCodePreExtending>
</SQLCode>
</AdditionalSQLCode>
<Colors>
<Anzahl>23</Anzahl>
<Color0>
<B>255</B>
<G>0</G>
<Name>blau</Name>
<R>0</R>
</Color0>
<Color1>
<B>221</B>
<G>212</G>
<Name>blaugrau</Name>
<R>175</R>
</Color1>
<Color10>
<B>192</B>
<G>192</G>
<Name>hellgrau</Name>
<R>192</R>
</Color10>
<Color11>
<B>255</B>
<G>0</G>
<Name>kamesinrot</Name>
<R>255</R>
</Color11>
<Color12>
<B>0</B>
<G>200</G>
<Name>orange</Name>
<R>255</R>
</Color12>
<Color13>
<B>255</B>
<G>247</G>
<Name>pastell-blau</Name>
<R>211</R>
</Color13>
<Color14>
<B>186</B>
<G>245</G>
<Name>pastell-gelb</Name>
<R>255</R>
</Color14>
<Color15>
<B>234</B>
<G>255</G>
<Name>pastell-gr&uuml;n</Name>
<R>211</R>
</Color15>
<Color16>
<B>255</B>
<G>211</G>
<Name>pastell-lila</Name>
<R>244</R>
</Color16>
<Color17>
<B>191</B>
<G>165</G>
<Name>pastell-rot</Name>
<R>244</R>
</Color17>
<Color18>
<B>175</B>
<G>175</G>
<Name>pink</Name>
<R>255</R>
</Color18>
<Color19>
<B>0</B>
<G>0</G>
<Name>rot</Name>
<R>255</R>
</Color19>
<Color2>
<B>61</B>
<G>125</G>
<Name>braun</Name>
<R>170</R>
</Color2>
<Color20>
<B>0</B>
<G>0</G>
<Name>schwarz</Name>
<R>0</R>
</Color20>
<Color21>
<B>255</B>
<G>255</G>
<Name>t&uuml;rkis</Name>
<R>0</R>
</Color21>
<Color22>
<B>255</B>
<G>255</G>
<Name>wei&szlig;</Name>
<R>255</R>
</Color22>
<Color3>
<B>64</B>
<G>64</G>
<Name>dunkelgrau</Name>
<R>64</R>
</Color3>
<Color4>
<B>84</B>
<G>132</G>
<Name>dunkelgr&uuml;n</Name>
<R>94</R>
</Color4>
<Color5>
<B>0</B>
<G>255</G>
<Name>gelb</Name>
<R>255</R>
</Color5>
<Color6>
<B>0</B>
<G>225</G>
<Name>goldgelb</Name>
<R>255</R>
</Color6>
<Color7>
<B>128</B>
<G>128</G>
<Name>grau</Name>
<R>128</R>
</Color7>
<Color8>
<B>0</B>
<G>255</G>
<Name>gr&uuml;n</Name>
<R>0</R>
</Color8>
<Color9>
<B>255</B>
<G>212</G>
<Name>hellblau</Name>
<R>191</R>
</Color9>
</Colors>
<ComplexIndices>
<IndexCount>0</IndexCount>
</ComplexIndices>
<DataSource>
<Import>
<DBName></DBName>
<Description></Description>
<Domains>false</Domains>
<Driver></Driver>
<Name></Name>
<Referenzen>false</Referenzen>
<User></User>
</Import>
<Update>
<DBMode>MYSQL</DBMode>
<DBName>jdbc:mysql://messene/platon</DBName>
<Description></Description>
<DomainFaehig>false</DomainFaehig>
<Driver>com.mysql.jdbc.Driver</Driver>
<FkNotNullBeachten>false</FkNotNullBeachten>
<Name></Name>
<Quote></Quote>
<ReferenzenSetzen>false</ReferenzenSetzen>
<User>platon</User>
</Update>
</DataSource>
<DefaultComment>
<Anzahl>0</Anzahl>
</DefaultComment>
<Domains>
<Anzahl>14</Anzahl>
<Domain0>
<Datatype>4</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar>A boolean value in number format. 0 means false, any other value is true.</Kommentar>
<Length>0</Length>
<NKS>0</NKS>
<Name>Boolean</Name>
<Parameters></Parameters>
</Domain0>
<Domain1>
<Datatype>12</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar>This type is for descriptions in the meaning of names of data records.</Kommentar>
<Length>100</Length>
<NKS>0</NKS>
<Name>Description</Name>
<Parameters></Parameters>
</Domain1>
<Domain10>
<Datatype>12</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar></Kommentar>
<Length>21</Length>
<NKS>0</NKS>
<Name>Password</Name>
<Parameters></Parameters>
</Domain10>
<Domain11>
<Datatype>4</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar></Kommentar>
<Length>0</Length>
<NKS>0</NKS>
<Name>Portnumber</Name>
<Parameters></Parameters>
</Domain11>
<Domain12>
<Datatype>4</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar></Kommentar>
<Length>0</Length>
<NKS>0</NKS>
<Name>Sorting</Name>
<Parameters></Parameters>
</Domain12>
<Domain13>
<Datatype>12</Datatype>
<History></History>
<Initialwert>':o)'</Initialwert>
<Kommentar>A token, that describes the record in a short form.</Kommentar>
<Length>20</Length>
<NKS>0</NKS>
<Name>Token</Name>
<Parameters></Parameters>
</Domain13>
<Domain2>
<Datatype>12</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar></Kommentar>
<Length>255</Length>
<NKS>0</NKS>
<Name>Filename</Name>
<Parameters></Parameters>
</Domain2>
<Domain3>
<Datatype>-5</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar>A GLI is a global local identificator. Fields of this type are used to store comprehensive ids (across more than one databases).</Kommentar>
<Length>0</Length>
<NKS>0</NKS>
<Name>GLI</Name>
<Parameters></Parameters>
</Domain3>
<Domain4>
<Datatype>-5</Datatype>
<History></History>
<Initialwert>-1</Initialwert>
<Kommentar>This type should be used for key data fields.</Kommentar>
<Length>0</Length>
<NKS>0</NKS>
<Name>Ident</Name>
<Parameters></Parameters>
</Domain4>
<Domain5>
<Datatype>12</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar></Kommentar>
<Length>255</Length>
<NKS>0</NKS>
<Name>LongDescription</Name>
<Parameters></Parameters>
</Domain5>
<Domain6>
<Datatype>-5</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar>A type to store more precise manner, than the PTimestamp domain. LongPTimestamps include millis additionally. The format is: YYYYMMDDHHMMSSsss.</Kommentar>
<Length>0</Length>
<NKS>0</NKS>
<Name>LongPTimestamp</Name>
<Parameters></Parameters>
</Domain6>
<Domain7>
<Datatype>-1</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar></Kommentar>
<Length>0</Length>
<NKS>0</NKS>
<Name>Longtext</Name>
<Parameters></Parameters>
</Domain7>
<Domain8>
<Datatype>12</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar>This field contains the name of the Workstation, where the data record has been changed.</Kommentar>
<Length>40</Length>
<NKS>0</NKS>
<Name>PCName</Name>
<Parameters></Parameters>
</Domain8>
<Domain9>
<Datatype>2</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar>Data fields of this type contain time informations in the following format: YYYYMMDDHHMMSS.</Kommentar>
<Length>14</Length>
<NKS>0</NKS>
<Name>PTimestamp</Name>
<Parameters></Parameters>
</Domain9>
</Domains>
<Factories>
<Object>archimedes.legacy.scheme.DefaultObjectFactory</Object>
</Factories>
<Pages>
<PerColumn>5</PerColumn>
<PerRow>10</PerRow>
</Pages>
<Parameter>
<AdditionalSQLScriptListener>archimedes.scheme.SQLScriptListenerTest01, archimedes.scheme.SQLScriptListenerTest02</AdditionalSQLScriptListener>
<Applicationname>TestModel</Applicationname>
<AufgehobeneAusblenden>false</AufgehobeneAusblenden>
<Autor>ollie</Autor>
<Basepackagename>testmodel</Basepackagename>
<CodeFactoryClassName></CodeFactoryClassName>
<Codebasispfad>~/codetmp/</Codebasispfad>
<DBVersionDBVersionColumn></DBVersionDBVersionColumn>
<DBVersionDescriptionColumn></DBVersionDescriptionColumn>
<DBVersionTablename></DBVersionTablename>
<History></History>
<Kommentar>Archimedesmodell f&uuml;r den Unittest.</Kommentar>
<Name>TestModel</Name>
<Optionen>
<Anzahl>0</Anzahl>
</Optionen>
<PflichtfelderMarkieren>false</PflichtfelderMarkieren>
<ReferenzierteSpaltenAnzeigen>true</ReferenzierteSpaltenAnzeigen>
<SchemaName></SchemaName>
<Schriftgroessen>
<Tabelleninhalte>12</Tabelleninhalte>
<Ueberschriften>24</Ueberschriften>
<Untertitel>12</Untertitel>
</Schriftgroessen>
<Scripte>
<AfterWrite>&lt;null&gt;</AfterWrite>
</Scripte>
<TechnischeFelderAusgrauen>true</TechnischeFelderAusgrauen>
<UdschebtiBaseClassName></UdschebtiBaseClassName>
<Version>2</Version>
<Versionsdatum>09.12.2008</Versionsdatum>
<Versionskommentar>&lt;null&gt;</Versionskommentar>
</Parameter>
<Sequences>
<Count>0</Count>
</Sequences>
<Stereotype>
<Anzahl>4</Anzahl>
<Stereotype0>
<DoNotPrint>false</DoNotPrint>
<HideTable>false</HideTable>
<History></History>
<Kommentar>Diese Stereotype kennzeichnet eine Tabelle, deren Datens&auml;tze nicht gel&ouml;scht, sondern lediglich deaktiviert werden sollen.</Kommentar>
<Name>Deactivatable</Name>
</Stereotype0>
<Stereotype1>
<DoNotPrint>false</DoNotPrint>
<HideTable>false</HideTable>
<History></History>
<Kommentar>Diese Stereotype kennzeichnet eine Tabelle, deren Datens&auml;tze nicht gel&ouml;scht, sondern lediglich deaktiviert werden sollen.</Kommentar>
<Name>Deaktivierbar</Name>
</Stereotype1>
<Stereotype2>
<DoNotPrint>false</DoNotPrint>
<HideTable>false</HideTable>
<History></History>
<Kommentar>-/-</Kommentar>
<Name>System</Name>
</Stereotype2>
<Stereotype3>
<DoNotPrint>false</DoNotPrint>
<HideTable>false</HideTable>
<History></History>
<Kommentar>-/-</Kommentar>
<Name>Test</Name>
</Stereotype3>
</Stereotype>
<Tabellen>
<Anzahl>9</Anzahl>
<Tabelle0>
<Aufgehoben>false</Aufgehoben>
<Codegenerator>
<AuswahlMembers>
<Anzahl>5</Anzahl>
<Member0>
<Attribute>OPTIONAL</Attribute>
<Spalte>Description</Spalte>
<Tabelle>DataScheme</Tabelle>
</Member0>
<Member1>
<Attribute>OPTIONAL</Attribute>
<Spalte>Token</Spalte>
<Tabelle>DataScheme</Tabelle>
</Member1>
<Member2>
<Attribute>OPTIONAL</Attribute>
<Spalte>Version</Spalte>
<Tabelle>DataScheme</Tabelle>
</Member2>
<Member3>
<Attribute>OPTIONAL</Attribute>
<Spalte>LoadModelAtStart</Spalte>
<Tabelle>DataScheme</Tabelle>
</Member3>
<Member4>
<Attribute>OPTIONAL</Attribute>
<Spalte>Request</Spalte>
<Tabelle>DataScheme</Tabelle>
</Member4>
</AuswahlMembers>
<CompareMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>Description</Spalte>
</Member0>
</CompareMembers>
<Equalsmembers>
<Anzahl>4</Anzahl>
<Member0>
<Spalte>DataScheme</Spalte>
</Member0>
<Member1>
<Spalte>Deleted</Spalte>
</Member1>
<Member2>
<Spalte>Description</Spalte>
</Member2>
<Member3>
<Spalte>Token</Spalte>
</Member3>
</Equalsmembers>
<HashCodeMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>DataScheme</Spalte>
</Member0>
</HashCodeMembers>
<NReferenzen>
<Anzahl>0</Anzahl>
</NReferenzen>
<OrderMembers>
<Anzahl>1</Anzahl>
<Member0>
<Richtung>ASC</Richtung>
<Spalte>Description</Spalte>
<Tabelle>DataScheme</Tabelle>
</Member0>
</OrderMembers>
<ToComboStringMembers>
<Anzahl>2</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
<Member1>
<Prefix> (</Prefix>
<Spalte>Token</Spalte>
<Suffix>)</Suffix>
</Member1>
</ToComboStringMembers>
<ToStringMembers>
<Anzahl>2</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
<Member1>
<Prefix> (</Prefix>
<Spalte>Token</Spalte>
<Suffix>)</Suffix>
</Member1>
</ToStringMembers>
</Codegenerator>
<Farben>
<Hintergrund>blaugrau</Hintergrund>
<Schrift>java.awt.Color[r=0,g=0,b=0]</Schrift>
</Farben>
<FirstGenerationDone>true</FirstGenerationDone>
<History></History>
<InDevelopment>false</InDevelopment>
<Kommentar></Kommentar>
<NMRelation>false</NMRelation>
<Name>DataScheme</Name>
<Options>
<Count>0</Count>
</Options>
<Panels>
<Anzahl>1</Anzahl>
<Panel0>
<PanelClass></PanelClass>
<PanelNumber>0</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Daten</TabTitle>
<TabToolTipText>Hier können Sie die Daten des Objektes warten.</TabToolTipText>
</Panel0>
</Panels>
<Spalten>
<Anzahl>15</Anzahl>
<Codegenerator>
<ActiveInApplication>true</ActiveInApplication>
<AdditionalCreateConstraints></AdditionalCreateConstraints>
<Codegeneratoroptionen></Codegeneratoroptionen>
<Codeverzeichnis>platon/scheme</Codeverzeichnis>
<Codieren>false</Codieren>
<DynamicCode>true</DynamicCode>
<Inherited>false</Inherited>
<Kontextname></Kontextname>
<UniqueFormula>Description & Deleted | Token & Deleted</UniqueFormula>
</Codegenerator>
<Spalte0>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>DataScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte0>
<Spalte1>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Active</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte1>
<Spalte10>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>R&uuml;ckfrage</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>R</Mnemonic>
<Position>7</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>CheckBoxRequest</RessourceIdentifier>
<ToolTipText>Setzen Sie diese Flagge, wenn zu dem Datenmodell eine R&uuml;ckfrage besteht.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Request</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte10>
<Spalte11>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>R&uuml;ckfragebeschreibung</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>8</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldRequestDescription</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie die eigentliche Problemstellung der R&uuml;ckfrage hinterlegen.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>RequestDescription</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte11>
<Spalte12>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Spezifikation</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>S</Mnemonic>
<Position>4</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldSpecification</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine Spezifikation zum Datenschema an.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Specification</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte12>
<Spalte13>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Token</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>K&uuml;rzel</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>K</Mnemonic>
<Position>2</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldToken</RessourceIdentifier>
<ToolTipText>Geben Sie hier ein eindeutiges K&uuml;rzel f&uuml;r den Datensatz ein.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Token</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte13>
<Spalte14>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Token</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Aktuelle Datenmodellversion</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>O</Mnemonic>
<Position>9</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldVersion</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie die aktuelle Version des Datenmodells festlegen.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Version</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte14>
<Spalte2>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Filename</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>ADS-Dateiname</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>A</Mnemonic>
<Position>3</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldADSFilePath</RessourceIdentifier>
<ToolTipText>Geben Sie hier den vollst&auml;ndigen Namen der ADS-Datei an, f&uuml;r die die Dokumentation gelten soll.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>ADSFilePath</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte2>
<Spalte3>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Kommentar</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>K</Mnemonic>
<Position>5</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldComment</RessourceIdentifier>
<ToolTipText>Hier finden Sie Platz f&uuml;r Kommentare zur Tabelle oder der Spezifikation.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Comment</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte3>
<Spalte4>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Deleted</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>true</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte4>
<Spalte5>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bezeichnung</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>B</Mnemonic>
<Position>1</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldDescription</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine eindeutige Bezeichnung f&uuml;r den Datensatz ein. </ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Description</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte5>
<Spalte6>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PTimestamp</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationDate</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte6>
<Spalte7>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PCName</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationPCName</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte7>
<Spalte8>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>true</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationUser</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte8>
<Spalte9>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bei Start oder Wechsel laden</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>W</Mnemonic>
<Position>6</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>CheckBoxLoadModelAtStart</RessourceIdentifier>
<ToolTipText>Setzen Sie diese Flagge, wenn die Datenmodelldatei beim Programmstart bzw. bei einem Schemawechsel geladen und abgeglichen werden soll.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar>Diese Flagge mu&szlig; gesetzt werden, wenn die Datenmodelldatei bei geladen und abgeglichen werden soll, sobald das DataScheme gewechselt wird.</Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LoadModelAtStart</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte9>
</Spalten>
<Stereotype>
<Anzahl>0</Anzahl>
</Stereotype>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Name>Main</Name>
<X>100</X>
<Y>75</Y>
</View0>
</Views>
</Tabelle0>
<Tabelle1>
<Aufgehoben>false</Aufgehoben>
<Codegenerator>
<AuswahlMembers>
<Anzahl>8</Anzahl>
<Member0>
<Attribute>OPTIONAL</Attribute>
<Spalte>Description</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member0>
<Member1>
<Attribute>OPTIONAL</Attribute>
<Spalte>Active</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member1>
<Member2>
<Attribute>OPTIONAL</Attribute>
<Spalte>Verified</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member2>
<Member3>
<Attribute>OPTIONAL</Attribute>
<Spalte>Request</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member3>
<Member4>
<Attribute>OPTIONAL</Attribute>
<Spalte>SinceVersion</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member4>
<Member5>
<Attribute>OPTIONAL</Attribute>
<Spalte>TilVersion</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member5>
<Member6>
<Attribute>OPTIONAL</Attribute>
<Spalte>DescriptionSpecificationSheet</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member6>
<Member7>
<Attribute>OPTIONAL</Attribute>
<Spalte>Specification</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member7>
</AuswahlMembers>
<CompareMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>Description</Spalte>
</Member0>
</CompareMembers>
<Equalsmembers>
<Anzahl>4</Anzahl>
<Member0>
<Spalte>TableScheme</Spalte>
</Member0>
<Member1>
<Spalte>Deleted</Spalte>
</Member1>
<Member2>
<Spalte>Description</Spalte>
</Member2>
<Member3>
<Spalte>Specification</Spalte>
</Member3>
</Equalsmembers>
<HashCodeMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>TableScheme</Spalte>
</Member0>
</HashCodeMembers>
<NReferenzen>
<Anzahl>2</Anzahl>
<NReferenz0>
<Alterable>true</Alterable>
<DeleteConfirmationRequired>false</DeleteConfirmationRequired>
<Extensible>false</Extensible>
<Id>0</Id>
<Panel>1</Panel>
<PanelType>standard</PanelType>
<PermitCreate>false</PermitCreate>
<Spalte>TableScheme</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</NReferenz0>
<NReferenz1>
<Alterable>false</Alterable>
<DeleteConfirmationRequired>false</DeleteConfirmationRequired>
<Extensible>false</Extensible>
<Id>1</Id>
<Panel>2</Panel>
<PanelType>standard</PanelType>
<PermitCreate>false</PermitCreate>
<Spalte>TableScheme</Spalte>
<Tabelle>StereotypeSchemeTableScheme</Tabelle>
</NReferenz1>
</NReferenzen>
<OrderMembers>
<Anzahl>1</Anzahl>
<Member0>
<Richtung>ASC</Richtung>
<Spalte>Description</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member0>
</OrderMembers>
<ToComboStringMembers>
<Anzahl>1</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
</ToComboStringMembers>
<ToStringMembers>
<Anzahl>1</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
</ToStringMembers>
</Codegenerator>
<Farben>
<Hintergrund>blaugrau</Hintergrund>
<Schrift>java.awt.Color[r=0,g=0,b=0]</Schrift>
</Farben>
<FirstGenerationDone>true</FirstGenerationDone>
<History></History>
<InDevelopment>false</InDevelopment>
<Kommentar>Diese Klasse enth&auml;lt die Angaben zu den einzelnen Tabellen des beschriebenen Datenschemas.</Kommentar>
<NMRelation>false</NMRelation>
<Name>TableScheme</Name>
<Options>
<Count>0</Count>
</Options>
<Panels>
<Anzahl>3</Anzahl>
<Panel0>
<PanelClass></PanelClass>
<PanelNumber>0</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Daten</TabTitle>
<TabToolTipText>Hier können Sie die Daten des Objektes warten.</TabToolTipText>
</Panel0>
<Panel1>
<PanelClass></PanelClass>
<PanelNumber>1</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Spalten</TabTitle>
<TabToolTipText>Hier finden Sie die Spalten der Tabelle.</TabToolTipText>
</Panel1>
<Panel2>
<PanelClass></PanelClass>
<PanelNumber>2</PanelNumber>
<TabMnemonic>2</TabMnemonic>
<TabTitle>2.Stereotypen</TabTitle>
<TabToolTipText>Hier finden Sie die Stereotypen, die der Tabelle zugeordnet sind.</TabToolTipText>
</Panel2>
</Panels>
<Spalten>
<Anzahl>16</Anzahl>
<Codegenerator>
<ActiveInApplication>true</ActiveInApplication>
<AdditionalCreateConstraints></AdditionalCreateConstraints>
<Codegeneratoroptionen><TestTag>DataScheme, ColumnScheme</TestTag></Codegeneratoroptionen>
<Codeverzeichnis>platon/scheme</Codeverzeichnis>
<Codieren>false</Codieren>
<DynamicCode>true</DynamicCode>
<Inherited>false</Inherited>
<Kontextname></Kontextname>
<UniqueFormula></UniqueFormula>
</Codegenerator>
<Spalte0>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>TableScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte0>
<Spalte1>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Active</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte1>
<Spalte10>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>R&uuml;ckfragebeschreibung</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>8</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldRequestDescription</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie den Inhalt der R&uuml;ckfrage hinterlegen.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>RequestDescription</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte10>
<Spalte11>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Token</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Seit Version</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>9</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldSinceVersion</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie die Version des Datenmodells angeben, ab der die Tabelle Bestandteil des Modells war.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>SinceVersion</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte11>
<Spalte12>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Spezifikation</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>S</Mnemonic>
<Position>2</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldSpecification</RessourceIdentifier>
<ToolTipText>Geben Sie hier die technische Spezifikation um Tabellenschema an.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Specification</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte12>
<Spalte13>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Token</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bis Version</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>10</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldTilVersion</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie die Version des Datenmodells angeben, bis zu der die Tabelle Bestandteil des Datenmodells war.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>TilVersion</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte13>
<Spalte14>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Gepr&uuml;ft</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>G</Mnemonic>
<Position>5</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>CheckBoxVerified</RessourceIdentifier>
<ToolTipText>Setzen Sie diese Flagge, wenn die Tabellenbeschreibung als gepr&uuml;ft gelten soll.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Verified</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte14>
<Spalte15>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>true</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Datenschema</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>4</Position>
<ReferenceWeight>massiv</ReferenceWeight>
<RessourceIdentifier>ComboBoxDatascheme</RessourceIdentifier>
<ToolTipText>Hier finden Sie das Datenschema, zu dem die Tabelle geh&ouml;rt.</ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>DataScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<Referenz>
<Direction0>UP</Direction0>
<Direction1>DOWN</Direction1>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Spalte>DataScheme</Spalte>
<Tabelle>DataScheme</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>UP</Direction0>
<Direction1>DOWN</Direction1>
<Name>Main</Name>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte15>
<Spalte2>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Kommentar</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>K</Mnemonic>
<Position>3</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldComment</RessourceIdentifier>
<ToolTipText>Hier finden Sie Platz f&uuml;r Kommentare zur Tabelle oder der Spezifikation.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Comment</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte2>
<Spalte3>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Deleted</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>true</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte3>
<Spalte4>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>true</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bezeichnung</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>B</Mnemonic>
<Position>1</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldDescription</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine eindeutige Bezeichnung f&uuml;r den Datensatz ein. </ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Description</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte4>
<Spalte5>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bezeichnung (lt. Pflichtenheft)</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>11</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldDescriptionSpecificationSheet</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie die Bezeichnung des Feldes lt. Pflichtenheft angeben, falls diese vom Namen des Datenbankfeldes abweicht.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar>Eine Bezeichnung lt. Pflichtenheft, falls abweichend.</Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>DescriptionSpecificationSheet</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte5>
<Spalte6>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PTimestamp</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationDate</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte6>
<Spalte7>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PCName</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationPCName</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte7>
<Spalte8>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>true</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationUser</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte8>
<Spalte9>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>R&uuml;ckfrage</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>7</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>CheckBoxRequest</RessourceIdentifier>
<ToolTipText>Setzen Sie diese Flagge, wenn Sie zur Tabelle eine R&uuml;ckfrage haben.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Request</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte9>
</Spalten>
<Stereotype>
<Anzahl>0</Anzahl>
</Stereotype>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Name>Main</Name>
<X>100</X>
<Y>425</Y>
</View0>
</Views>
</Tabelle1>
<Tabelle2>
<Aufgehoben>false</Aufgehoben>
<Codegenerator>
<AuswahlMembers>
<Anzahl>5</Anzahl>
<Member0>
<Attribute>OPTIONAL</Attribute>
<Spalte>Description</Spalte>
<Tabelle>DomainScheme</Tabelle>
</Member0>
<Member1>
<Attribute>OPTIONAL</Attribute>
<Spalte>SQLType</Spalte>
<Tabelle>DomainScheme</Tabelle>
</Member1>
<Member2>
<Attribute>OPTIONAL</Attribute>
<Spalte>Active</Spalte>
<Tabelle>DomainScheme</Tabelle>
</Member2>
<Member3>
<Attribute>OPTIONAL</Attribute>
<Spalte>Verified</Spalte>
<Tabelle>DomainScheme</Tabelle>
</Member3>
<Member4>
<Attribute>OPTIONAL</Attribute>
<Spalte>Specification</Spalte>
<Tabelle>DomainScheme</Tabelle>
</Member4>
</AuswahlMembers>
<CompareMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>Description</Spalte>
</Member0>
</CompareMembers>
<Equalsmembers>
<Anzahl>5</Anzahl>
<Member0>
<Spalte>DomainScheme</Spalte>
</Member0>
<Member1>
<Spalte>Active</Spalte>
</Member1>
<Member2>
<Spalte>Deleted</Spalte>
</Member2>
<Member3>
<Spalte>Description</Spalte>
</Member3>
<Member4>
<Spalte>SQLType</Spalte>
</Member4>
</Equalsmembers>
<HashCodeMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>DomainScheme</Spalte>
</Member0>
</HashCodeMembers>
<NReferenzen>
<Anzahl>1</Anzahl>
<NReferenz0>
<Alterable>false</Alterable>
<DeleteConfirmationRequired>false</DeleteConfirmationRequired>
<Extensible>false</Extensible>
<Id>0</Id>
<Panel>1</Panel>
<PanelType>standard</PanelType>
<PermitCreate>false</PermitCreate>
<Spalte>DomainScheme</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</NReferenz0>
</NReferenzen>
<OrderMembers>
<Anzahl>2</Anzahl>
<Member0>
<Richtung>DESC</Richtung>
<Spalte>Active</Spalte>
<Tabelle>DomainScheme</Tabelle>
</Member0>
<Member1>
<Richtung>ASC</Richtung>
<Spalte>Description</Spalte>
<Tabelle>DomainScheme</Tabelle>
</Member1>
</OrderMembers>
<ToComboStringMembers>
<Anzahl>2</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
<Member1>
<Prefix> (</Prefix>
<Spalte>SQLType</Spalte>
<Suffix>)</Suffix>
</Member1>
</ToComboStringMembers>
<ToStringMembers>
<Anzahl>2</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
<Member1>
<Prefix> (</Prefix>
<Spalte>SQLType</Spalte>
<Suffix>)</Suffix>
</Member1>
</ToStringMembers>
</Codegenerator>
<Farben>
<Hintergrund>hellblau</Hintergrund>
<Schrift>java.awt.Color[r=0,g=0,b=0]</Schrift>
</Farben>
<FirstGenerationDone>true</FirstGenerationDone>
<History></History>
<InDevelopment>false</InDevelopment>
<Kommentar></Kommentar>
<NMRelation>false</NMRelation>
<Name>DomainScheme</Name>
<Options>
<Count>0</Count>
</Options>
<Panels>
<Anzahl>2</Anzahl>
<Panel0>
<PanelClass></PanelClass>
<PanelNumber>0</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Daten</TabTitle>
<TabToolTipText>Hier können Sie die Daten des Objektes warten.</TabToolTipText>
</Panel0>
<Panel1>
<PanelClass></PanelClass>
<PanelNumber>1</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Tabellenspalten</TabTitle>
<TabToolTipText>Hier finden Sie die Tabellenspalten dieser Domain.</TabToolTipText>
</Panel1>
</Panels>
<Spalten>
<Anzahl>12</Anzahl>
<Codegenerator>
<ActiveInApplication>true</ActiveInApplication>
<AdditionalCreateConstraints></AdditionalCreateConstraints>
<Codegeneratoroptionen></Codegeneratoroptionen>
<Codeverzeichnis>platon/scheme</Codeverzeichnis>
<Codieren>false</Codieren>
<DynamicCode>true</DynamicCode>
<Inherited>false</Inherited>
<Kontextname></Kontextname>
<UniqueFormula></UniqueFormula>
</Codegenerator>
<Spalte0>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>DomainScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte0>
<Spalte1>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Active</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte1>
<Spalte10>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Gepr&uuml;ft</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>G</Mnemonic>
<Position>6</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>CheckBoxVerified</RessourceIdentifier>
<ToolTipText>Setzen Sie diese Flagge, wenn das Dom&auml;nenschema als gepr&uuml;ft gelten soll.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Verified</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte10>
<Spalte11>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Datenschema</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>D</Mnemonic>
<Position>5</Position>
<ReferenceWeight>massiv</ReferenceWeight>
<RessourceIdentifier>ComboBoxDataScheme</RessourceIdentifier>
<ToolTipText>Geben Sie hier das Datenschema an, f&uuml;r das der Domaintyp gelten soll.</ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar>Das Datenschema, f&uuml;r das Dom&auml;nentyp gelten soll.</Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>DataScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<Referenz>
<Direction0>RIGHT</Direction0>
<Direction1>RIGHT</Direction1>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Spalte>DataScheme</Spalte>
<Tabelle>DataScheme</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>RIGHT</Direction0>
<Direction1>RIGHT</Direction1>
<Name>Main</Name>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte11>
<Spalte2>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Kommentar</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>K</Mnemonic>
<Position>4</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldComment</RessourceIdentifier>
<ToolTipText>Hier finden Sie Platz f&uuml;r Kommentare zur Tabelle oder der Spezifikation.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Comment</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte2>
<Spalte3>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Deleted</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte3>
<Spalte4>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bezeichnung</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>B</Mnemonic>
<Position>1</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldDescription</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine eindeutige Bezeichnung f&uuml;r den Datensatz ein. </ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Description</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte4>
<Spalte5>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PTimestamp</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationDate</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte5>
<Spalte6>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PCName</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationPCName</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte6>
<Spalte7>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>true</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationUser</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte7>
<Spalte8>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Spezifikation</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>S</Mnemonic>
<Position>3</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldSpecification</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine Spezifikation zum Domainschema an.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Specification</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte8>
<Spalte9>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>SQL-Typ</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>Q</Mnemonic>
<Position>2</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldSQLType</RessourceIdentifier>
<ToolTipText>Geben Sie hier den SQL-Typ an, der hinter dem Domainschema steht.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>SQLType</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte9>
</Spalten>
<Stereotype>
<Anzahl>0</Anzahl>
</Stereotype>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Name>Main</Name>
<X>500</X>
<Y>925</Y>
</View0>
</Views>
</Tabelle2>
<Tabelle3>
<Aufgehoben>false</Aufgehoben>
<Codegenerator>
<AuswahlMembers>
<Anzahl>11</Anzahl>
<Member0>
<Attribute>OPTIONAL</Attribute>
<Spalte>Description</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</Member0>
<Member1>
<Attribute>OPTIONAL</Attribute>
<Spalte>Description</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member1>
<Member10>
<Attribute>OPTIONAL</Attribute>
<Spalte>Specification</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</Member10>
<Member2>
<Attribute>OPTIONAL</Attribute>
<Spalte>Description</Spalte>
<Tabelle>DomainScheme</Tabelle>
</Member2>
<Member3>
<Attribute>OPTIONAL</Attribute>
<Spalte>SQLType</Spalte>
<Tabelle>DomainScheme</Tabelle>
</Member3>
<Member4>
<Attribute>OPTIONAL</Attribute>
<Spalte>Active</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</Member4>
<Member5>
<Attribute>OPTIONAL</Attribute>
<Spalte>Verified</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</Member5>
<Member6>
<Attribute>OPTIONAL</Attribute>
<Spalte>Request</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</Member6>
<Member7>
<Attribute>OPTIONAL</Attribute>
<Spalte>SinceVersion</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</Member7>
<Member8>
<Attribute>OPTIONAL</Attribute>
<Spalte>TilVersion</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</Member8>
<Member9>
<Attribute>OPTIONAL</Attribute>
<Spalte>DescriptionSpecificationSheet</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</Member9>
</AuswahlMembers>
<CompareMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>Description</Spalte>
</Member0>
</CompareMembers>
<Equalsmembers>
<Anzahl>4</Anzahl>
<Member0>
<Spalte>ColumnScheme</Spalte>
</Member0>
<Member1>
<Spalte>Deleted</Spalte>
</Member1>
<Member2>
<Spalte>Description</Spalte>
</Member2>
<Member3>
<Spalte>DomainScheme</Spalte>
</Member3>
</Equalsmembers>
<HashCodeMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>ColumnScheme</Spalte>
</Member0>
</HashCodeMembers>
<NReferenzen>
<Anzahl>0</Anzahl>
</NReferenzen>
<OrderMembers>
<Anzahl>2</Anzahl>
<Member0>
<Richtung>ASC</Richtung>
<Spalte>Description</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</Member0>
<Member1>
<Richtung>ASC</Richtung>
<Spalte>Description</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member1>
</OrderMembers>
<ToComboStringMembers>
<Anzahl>2</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
<Member1>
<Prefix></Prefix>
<Spalte>DomainScheme</Spalte>
<Suffix></Suffix>
</Member1>
</ToComboStringMembers>
<ToStringMembers>
<Anzahl>2</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
<Member1>
<Prefix>(</Prefix>
<Spalte>DomainScheme</Spalte>
<Suffix>)</Suffix>
</Member1>
</ToStringMembers>
</Codegenerator>
<Farben>
<Hintergrund>blaugrau</Hintergrund>
<Schrift>java.awt.Color[r=0,g=0,b=0]</Schrift>
</Farben>
<FirstGenerationDone>true</FirstGenerationDone>
<History></History>
<InDevelopment>false</InDevelopment>
<Kommentar>Diese Klasse enth&auml;lt Informationen &uuml;ber die Datenfelder des beschriebenen Datenmodells.</Kommentar>
<NMRelation>false</NMRelation>
<Name>ColumnScheme</Name>
<Options>
<Count>0</Count>
</Options>
<Panels>
<Anzahl>1</Anzahl>
<Panel0>
<PanelClass></PanelClass>
<PanelNumber>0</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Daten</TabTitle>
<TabToolTipText>Hier können Sie die Daten des Objektes warten.</TabToolTipText>
</Panel0>
</Panels>
<Spalten>
<Anzahl>19</Anzahl>
<Codegenerator>
<ActiveInApplication>true</ActiveInApplication>
<AdditionalCreateConstraints></AdditionalCreateConstraints>
<Codegeneratoroptionen></Codegeneratoroptionen>
<Codeverzeichnis>platon/scheme</Codeverzeichnis>
<Codieren>false</Codieren>
<DynamicCode>true</DynamicCode>
<Inherited>false</Inherited>
<Kontextname></Kontextname>
<UniqueFormula></UniqueFormula>
</Codegenerator>
<Spalte0>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>ColumnScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte0>
<Spalte1>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Active</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte1>
<Spalte10>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>R&uuml;ckfrage</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>6</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>CheckBoxRequest</RessourceIdentifier>
<ToolTipText>Setzen Sie diese Flagge, wenn zu dem Datenfeld eine R&uuml;ckfrage n&ouml;tig ist.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Request</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte10>
<Spalte11>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>R&uuml;ckfragenbeschreibung</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>7</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldRequestDescription</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie die Beschreibung der R&uuml;ckfrage hinterlegen.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>RequestDescription</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte11>
<Spalte12>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Token</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Seit Version</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>9</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldSinceVersion</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie die Version des Datenmodells angeben, ab der die Tabellenspalte Bestandteil des Datenmodells war.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>SinceVersion</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte12>
<Spalte13>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Spezifikation</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>S</Mnemonic>
<Position>3</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldSpecification</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine Spezifikation zum Datenfeld an.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Specification</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte13>
<Spalte14>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Token</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bis Version</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>10</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldTilVersion</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie die Version des Datenmodells angeben, bis zu der die Tabellenspalte ein Bestandteil desselben war.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>TilVersion</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte14>
<Spalte15>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Gepr&uuml;ft</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>G</Mnemonic>
<Position>5</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>CheckBoxVerified</RessourceIdentifier>
<ToolTipText>Setzen Sie diese Flagge, wenn das Tabellenspaltenschema als gepr&uuml;ft gelten soll.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Verified</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte15>
<Spalte16>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>DataScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<Referenz>
<Direction0>UP</Direction0>
<Direction1>RIGHT</Direction1>
<Offset0>25</Offset0>
<Offset1>50</Offset1>
<Spalte>DataScheme</Spalte>
<Tabelle>DataScheme</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>UP</Direction0>
<Direction1>RIGHT</Direction1>
<Name>Main</Name>
<Offset0>25</Offset0>
<Offset1>50</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte16>
<Spalte17>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>true</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Dom&auml;ne (Typ)</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>D</Mnemonic>
<Position>2</Position>
<ReferenceWeight>massiv</ReferenceWeight>
<RessourceIdentifier>ComboBoxDomainScheme</RessourceIdentifier>
<ToolTipText>Legen Sie hier einen Dom&auml;nentyp f&uuml;r das Datenfeld fest.</ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>DomainScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<Referenz>
<Direction0>DOWN</Direction0>
<Direction1>UP</Direction1>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Spalte>DomainScheme</Spalte>
<Tabelle>DomainScheme</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>DOWN</Direction0>
<Direction1>UP</Direction1>
<Name>Main</Name>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte17>
<Spalte18>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>true</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Tabelle</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>T</Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>ComboBoxTableScheme</RessourceIdentifier>
<ToolTipText>Hier finden Sie die Tabelle, zu der das Datenfeld geh&ouml;rt.</ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>TableScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<Referenz>
<Direction0>LEFT</Direction0>
<Direction1>RIGHT</Direction1>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Spalte>TableScheme</Spalte>
<Tabelle>TableScheme</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>LEFT</Direction0>
<Direction1>RIGHT</Direction1>
<Name>Main</Name>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte18>
<Spalte2>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Kommentar</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>K</Mnemonic>
<Position>4</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldComment</RessourceIdentifier>
<ToolTipText>Hier finden Sie Platz f&uuml;r Kommentare zur Tabelle oder der Spezifikation.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Comment</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte2>
<Spalte3>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Deleted</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>true</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte3>
<Spalte4>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>true</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bezeichnung</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>B</Mnemonic>
<Position>1</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldDescription</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine eindeutige Bezeichnung f&uuml;r den Datensatz ein. </ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Description</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte4>
<Spalte5>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bezeichnung (lt. Pflichtenheft)</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>11</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldDescriptionSpecificationSheet</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie eine Bezeichnung des Feldes im Pflichtenheft angeben, falls diese vom Namen des Datenbankenfeldes abweicht.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar>Bezeichnung lt. Pflichtenheft, falls diese abweicht.</Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>DescriptionSpecificationSheet</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte5>
<Spalte6>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PTimestamp</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationDate</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte6>
<Spalte7>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PCName</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationPCName</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte7>
<Spalte8>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>true</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationUser</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte8>
<Spalte9>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>true</Disabled>
<Domain>LongDescription</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Referenziert</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>3</Position>
<ReferenceWeight>massiv</ReferenceWeight>
<RessourceIdentifier>ComboBoxReferences</RessourceIdentifier>
<ToolTipText>Hier finden Sie einen Hinweis auf eine durch die Tabellenspalte referenzierte andere Tabellenspalte.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>ReferencesTo</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte9>
</Spalten>
<Stereotype>
<Anzahl>1</Anzahl>
</Stereotype>
<Stereotype0>Test</Stereotype0>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Name>Main</Name>
<X>500</X>
<Y>425</Y>
</View0>
</Views>
</Tabelle3>
<Tabelle4>
<Aufgehoben>false</Aufgehoben>
<Codegenerator>
<AuswahlMembers>
<Anzahl>4</Anzahl>
<Member0>
<Attribute>OPTIONAL</Attribute>
<Spalte>Description</Spalte>
<Tabelle>StereotypeScheme</Tabelle>
</Member0>
<Member1>
<Attribute>OPTIONAL</Attribute>
<Spalte>Active</Spalte>
<Tabelle>StereotypeScheme</Tabelle>
</Member1>
<Member2>
<Attribute>OPTIONAL</Attribute>
<Spalte>Verified</Spalte>
<Tabelle>StereotypeScheme</Tabelle>
</Member2>
<Member3>
<Attribute>OPTIONAL</Attribute>
<Spalte>Specification</Spalte>
<Tabelle>StereotypeScheme</Tabelle>
</Member3>
</AuswahlMembers>
<CompareMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>Description</Spalte>
</Member0>
</CompareMembers>
<Equalsmembers>
<Anzahl>6</Anzahl>
<Member0>
<Spalte>StereotypeScheme</Spalte>
</Member0>
<Member1>
<Spalte>Active</Spalte>
</Member1>
<Member2>
<Spalte>Deleted</Spalte>
</Member2>
<Member3>
<Spalte>Description</Spalte>
</Member3>
<Member4>
<Spalte>Specification</Spalte>
</Member4>
<Member5>
<Spalte>Comment</Spalte>
</Member5>
</Equalsmembers>
<HashCodeMembers>
<Anzahl>0</Anzahl>
</HashCodeMembers>
<NReferenzen>
<Anzahl>1</Anzahl>
<NReferenz0>
<Alterable>false</Alterable>
<DeleteConfirmationRequired>false</DeleteConfirmationRequired>
<Extensible>false</Extensible>
<Id>0</Id>
<Panel>1</Panel>
<PanelType>standard</PanelType>
<PermitCreate>false</PermitCreate>
<Spalte>StereotypeScheme</Spalte>
<Tabelle>StereotypeSchemeTableScheme</Tabelle>
</NReferenz0>
</NReferenzen>
<OrderMembers>
<Anzahl>1</Anzahl>
<Member0>
<Richtung>ASC</Richtung>
<Spalte>Description</Spalte>
<Tabelle>StereotypeScheme</Tabelle>
</Member0>
</OrderMembers>
<ToComboStringMembers>
<Anzahl>1</Anzahl>
<Member0>
<Prefix><< </Prefix>
<Spalte>Description</Spalte>
<Suffix> >></Suffix>
</Member0>
</ToComboStringMembers>
<ToStringMembers>
<Anzahl>1</Anzahl>
<Member0>
<Prefix><< </Prefix>
<Spalte>Description</Spalte>
<Suffix> >></Suffix>
</Member0>
</ToStringMembers>
</Codegenerator>
<Farben>
<Hintergrund>hellblau</Hintergrund>
<Schrift>java.awt.Color[r=0,g=0,b=0]</Schrift>
</Farben>
<FirstGenerationDone>true</FirstGenerationDone>
<History></History>
<InDevelopment>false</InDevelopment>
<Kommentar>:oD</Kommentar>
<NMRelation>false</NMRelation>
<Name>StereotypeScheme</Name>
<Options>
<Count>0</Count>
</Options>
<Panels>
<Anzahl>2</Anzahl>
<Panel0>
<PanelClass></PanelClass>
<PanelNumber>0</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Daten</TabTitle>
<TabToolTipText>Hier können Sie die Daten des Objektes warten.</TabToolTipText>
</Panel0>
<Panel1>
<PanelClass></PanelClass>
<PanelNumber>1</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Tabellen</TabTitle>
<TabToolTipText>Hier finden Sie die Tabellen, denen die Stereotype zugeordnet ist.</TabToolTipText>
</Panel1>
</Panels>
<Spalten>
<Anzahl>11</Anzahl>
<Codegenerator>
<ActiveInApplication>true</ActiveInApplication>
<AdditionalCreateConstraints></AdditionalCreateConstraints>
<Codegeneratoroptionen></Codegeneratoroptionen>
<Codeverzeichnis>platon/scheme</Codeverzeichnis>
<Codieren>false</Codieren>
<DynamicCode>true</DynamicCode>
<Inherited>false</Inherited>
<Kontextname></Kontextname>
<UniqueFormula></UniqueFormula>
</Codegenerator>
<Spalte0>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>StereotypeScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte0>
<Spalte1>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Active</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte1>
<Spalte10>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>true</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Datenschema</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>D</Mnemonic>
<Position>4</Position>
<ReferenceWeight>massiv</ReferenceWeight>
<RessourceIdentifier>ComboBoxDataScheme</RessourceIdentifier>
<ToolTipText>Geben Sie hier das Datenschema an, f&uuml;r das die Stereotype gelten soll.</ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar>Das Datenschema, in dem die Stereotype gelten soll.</Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>DataScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<Referenz>
<Direction0>LEFT</Direction0>
<Direction1>LEFT</Direction1>
<Offset0>25</Offset0>
<Offset1>75</Offset1>
<Spalte>DataScheme</Spalte>
<Tabelle>DataScheme</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>LEFT</Direction0>
<Direction1>LEFT</Direction1>
<Name>Main</Name>
<Offset0>25</Offset0>
<Offset1>75</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte10>
<Spalte2>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Kommentar</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>K</Mnemonic>
<Position>3</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldComment</RessourceIdentifier>
<ToolTipText>Hier finden Sie Platz f&uuml;r Kommentare zur Tabelle oder der Spezifikation.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Comment</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte2>
<Spalte3>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Deleted</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>true</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte3>
<Spalte4>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>true</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bezeichnung</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>B</Mnemonic>
<Position>1</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldDescription</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine eindeutige Bezeichnung f&uuml;r den Datensatz ein. </ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Description</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte4>
<Spalte5>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PTimestamp</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>true</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationDate</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte5>
<Spalte6>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PCName</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationPCName</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte6>
<Spalte7>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>true</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationUser</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte7>
<Spalte8>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Spezifikation</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>S</Mnemonic>
<Position>2</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldSpecification</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine Spezifikation zum Stereotypen ein.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Specification</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte8>
<Spalte9>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Gepr&uuml;ft</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>G</Mnemonic>
<Position>5</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>CheckBoxVerified</RessourceIdentifier>
<ToolTipText>Setzen Sie diese Flagge, wenn die Stereotypenbeschreibung als gepr&uuml;ft gelten soll.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Verified</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte9>
</Spalten>
<Stereotype>
<Anzahl>0</Anzahl>
</Stereotype>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Name>Main</Name>
<X>100</X>
<Y>1075</Y>
</View0>
</Views>
</Tabelle4>
<Tabelle5>
<Aufgehoben>false</Aufgehoben>
<Codegenerator>
<AuswahlMembers>
<Anzahl>1</Anzahl>
<Member0>
<Attribute>OPTIONAL</Attribute>
<Spalte>TableScheme</Spalte>
<Tabelle>StereotypeSchemeTableScheme</Tabelle>
</Member0>
</AuswahlMembers>
<CompareMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>TableScheme</Spalte>
</Member0>
</CompareMembers>
<Equalsmembers>
<Anzahl>3</Anzahl>
<Member0>
<Spalte>Active</Spalte>
</Member0>
<Member1>
<Spalte>Deleted</Spalte>
</Member1>
<Member2>
<Spalte>TableScheme</Spalte>
</Member2>
</Equalsmembers>
<HashCodeMembers>
<Anzahl>0</Anzahl>
</HashCodeMembers>
<NReferenzen>
<Anzahl>0</Anzahl>
</NReferenzen>
<OrderMembers>
<Anzahl>1</Anzahl>
<Member0>
<Richtung>ASC</Richtung>
<Spalte>TableScheme</Spalte>
<Tabelle>StereotypeSchemeTableScheme</Tabelle>
</Member0>
</OrderMembers>
<ToComboStringMembers>
<Anzahl>1</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>TableScheme</Spalte>
<Suffix></Suffix>
</Member0>
</ToComboStringMembers>
<ToStringMembers>
<Anzahl>1</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>TableScheme</Spalte>
<Suffix></Suffix>
</Member0>
</ToStringMembers>
</Codegenerator>
<Farben>
<Hintergrund>pastell-blau</Hintergrund>
<Schrift>java.awt.Color[r=0,g=0,b=0]</Schrift>
</Farben>
<FirstGenerationDone>true</FirstGenerationDone>
<History></History>
<InDevelopment>false</InDevelopment>
<Kommentar>:ob</Kommentar>
<NMRelation>false</NMRelation>
<Name>StereotypeSchemeTableScheme</Name>
<Options>
<Count>0</Count>
</Options>
<Panels>
<Anzahl>1</Anzahl>
<Panel0>
<PanelClass></PanelClass>
<PanelNumber>0</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Daten</TabTitle>
<TabToolTipText>Hier können Sie die Daten des Objektes warten.</TabToolTipText>
</Panel0>
</Panels>
<Spalten>
<Anzahl>7</Anzahl>
<Codegenerator>
<ActiveInApplication>true</ActiveInApplication>
<AdditionalCreateConstraints></AdditionalCreateConstraints>
<Codegeneratoroptionen></Codegeneratoroptionen>
<Codeverzeichnis>platon/scheme</Codeverzeichnis>
<Codieren>false</Codieren>
<DynamicCode>true</DynamicCode>
<Inherited>false</Inherited>
<Kontextname></Kontextname>
<UniqueFormula></UniqueFormula>
</Codegenerator>
<Spalte0>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Active</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte0>
<Spalte1>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Deleted</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte1>
<Spalte2>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PTimestamp</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>true</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationDate</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte2>
<Spalte3>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PCName</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationPCName</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte3>
<Spalte4>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>true</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationUser</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte4>
<Spalte5>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>StereotypeScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<Referenz>
<Direction0>DOWN</Direction0>
<Direction1>UP</Direction1>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Spalte>StereotypeScheme</Spalte>
<Tabelle>StereotypeScheme</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>DOWN</Direction0>
<Direction1>UP</Direction1>
<Name>Main</Name>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte5>
<Spalte6>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText> </ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>TableScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<Referenz>
<Direction0>UP</Direction0>
<Direction1>DOWN</Direction1>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Spalte>TableScheme</Spalte>
<Tabelle>TableScheme</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>UP</Direction0>
<Direction1>DOWN</Direction1>
<Name>Main</Name>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte6>
</Spalten>
<Stereotype>
<Anzahl>0</Anzahl>
</Stereotype>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Name>Main</Name>
<X>100</X>
<Y>825</Y>
</View0>
</Views>
</Tabelle5>
<Tabelle6>
<Aufgehoben>false</Aufgehoben>
<Codegenerator>
<AuswahlMembers>
<Anzahl>2</Anzahl>
<Member0>
<Attribute>OPTIONAL</Attribute>
<Spalte>Description</Spalte>
<Tabelle>TestTabelle</Tabelle>
</Member0>
<Member1>
<Attribute>OPTIONAL</Attribute>
<Spalte>Token</Spalte>
<Tabelle>TestTabelle</Tabelle>
</Member1>
</AuswahlMembers>
<CompareMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>Description</Spalte>
</Member0>
</CompareMembers>
<Equalsmembers>
<Anzahl>4</Anzahl>
<Member0>
<Spalte>Id</Spalte>
</Member0>
<Member1>
<Spalte>Description</Spalte>
</Member1>
<Member2>
<Spalte>Deleted</Spalte>
</Member2>
<Member3>
<Spalte>Token</Spalte>
</Member3>
</Equalsmembers>
<HashCodeMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>Id</Spalte>
</Member0>
</HashCodeMembers>
<NReferenzen>
<Anzahl>0</Anzahl>
</NReferenzen>
<OrderMembers>
<Anzahl>1</Anzahl>
<Member0>
<Richtung>ASC</Richtung>
<Spalte>Description</Spalte>
<Tabelle>TestTabelle</Tabelle>
</Member0>
</OrderMembers>
<ToComboStringMembers>
<Anzahl>2</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
<Member1>
<Prefix> (</Prefix>
<Spalte>Token</Spalte>
<Suffix>)</Suffix>
</Member1>
</ToComboStringMembers>
<ToStringMembers>
<Anzahl>2</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
<Member1>
<Prefix> (</Prefix>
<Spalte>Token</Spalte>
<Suffix>)</Suffix>
</Member1>
</ToStringMembers>
</Codegenerator>
<Farben>
<Hintergrund>dunkelgr&uuml;n</Hintergrund>
<Schrift>schwarz</Schrift>
</Farben>
<FirstGenerationDone>false</FirstGenerationDone>
<History></History>
<InDevelopment>false</InDevelopment>
<Kommentar></Kommentar>
<NMRelation>false</NMRelation>
<Name>TestTabelle</Name>
<Options>
<Count>0</Count>
</Options>
<Panels>
<Anzahl>1</Anzahl>
<Panel0>
<PanelClass></PanelClass>
<PanelNumber>0</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Daten</TabTitle>
<TabToolTipText>Hier können Sie die Daten des Objekt warten</TabToolTipText>
</Panel0>
</Panels>
<Spalten>
<Anzahl>5</Anzahl>
<Codegenerator>
<ActiveInApplication>false</ActiveInApplication>
<AdditionalCreateConstraints></AdditionalCreateConstraints>
<Codegeneratoroptionen></Codegeneratoroptionen>
<Codeverzeichnis>.</Codeverzeichnis>
<Codieren>true</Codieren>
<DynamicCode>true</DynamicCode>
<Inherited>false</Inherited>
<Kontextname></Kontextname>
<UniqueFormula></UniqueFormula>
</Codegenerator>
<Spalte0>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Id</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte0>
<Spalte1>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue>0</IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Deleted</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte1>
<Spalte2>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bezeichnung</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>B</Mnemonic>
<Position>1</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldDescription</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine eindeutige,aussagekr&auml;ftige Bezeichnung ein.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Description</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte2>
<Spalte3>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Token</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText>K&uuml;rzel</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>K</Mnemonic>
<Position>2</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldToken</RessourceIdentifier>
<ToolTipText>Geben Sie hier ein eindeutiges, aussagekr&auml;ftiges K&uuml;rzel ein.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Token</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>true</Unique>
</Spalte3>
<Spalte4>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Referenz</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<Referenz>
<Direction0>UP</Direction0>
<Direction1>DOWN</Direction1>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Spalte>DomainScheme</Spalte>
<Tabelle>DomainScheme</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>UP</Direction0>
<Direction1>DOWN</Direction1>
<Name>Main</Name>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte4>
</Spalten>
<Stereotype>
<Anzahl>1</Anzahl>
</Stereotype>
<Stereotype0>Deactivatable</Stereotype0>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Name>Main</Name>
<X>500</X>
<Y>1275</Y>
</View0>
</Views>
</Tabelle6>
<Tabelle7>
<Aufgehoben>false</Aufgehoben>
<Codegenerator>
<AuswahlMembers>
<Anzahl>0</Anzahl>
</AuswahlMembers>
<CompareMembers>
<Anzahl>0</Anzahl>
</CompareMembers>
<Equalsmembers>
<Anzahl>0</Anzahl>
</Equalsmembers>
<HashCodeMembers>
<Anzahl>0</Anzahl>
</HashCodeMembers>
<NReferenzen>
<Anzahl>0</Anzahl>
</NReferenzen>
<OrderMembers>
<Anzahl>0</Anzahl>
</OrderMembers>
<ToComboStringMembers>
<Anzahl>0</Anzahl>
</ToComboStringMembers>
<ToStringMembers>
<Anzahl>0</Anzahl>
</ToStringMembers>
</Codegenerator>
<Farben>
<Hintergrund>pastell-gelb</Hintergrund>
<Schrift>schwarz</Schrift>
</Farben>
<FirstGenerationDone>false</FirstGenerationDone>
<History>@changed null - Added.</History>
<InDevelopment>false</InDevelopment>
<Kommentar></Kommentar>
<NMRelation>false</NMRelation>
<Name>MultiKeyTabelle</Name>
<Options>
<Count>0</Count>
</Options>
<Panels>
<Anzahl>1</Anzahl>
<Panel0>
<PanelClass></PanelClass>
<PanelNumber>0</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Daten</TabTitle>
<TabToolTipText>Hier können Sie die Daten des Objekt warten</TabToolTipText>
</Panel0>
</Panels>
<Spalten>
<Anzahl>2</Anzahl>
<Codegenerator>
<ActiveInApplication>false</ActiveInApplication>
<AdditionalCreateConstraints></AdditionalCreateConstraints>
<Codegeneratoroptionen></Codegeneratoroptionen>
<Codeverzeichnis>.</Codeverzeichnis>
<Codieren>true</Codieren>
<DynamicCode>true</DynamicCode>
<Inherited>false</Inherited>
<Kontextname></Kontextname>
<UniqueFormula></UniqueFormula>
</Codegenerator>
<Spalte0>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History>@changed null - Added.</History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Id0</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte0>
<Spalte1>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Token</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History>@changed null - Added.</History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Id1</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte1>
</Spalten>
<Stereotype>
<Anzahl>0</Anzahl>
</Stereotype>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Name>Main</Name>
<X>1075</X>
<Y>1275</Y>
</View0>
</Views>
</Tabelle7>
<Tabelle8>
<Aufgehoben>false</Aufgehoben>
<Codegenerator>
<AuswahlMembers>
<Anzahl>0</Anzahl>
</AuswahlMembers>
<CompareMembers>
<Anzahl>0</Anzahl>
</CompareMembers>
<Equalsmembers>
<Anzahl>0</Anzahl>
</Equalsmembers>
<HashCodeMembers>
<Anzahl>0</Anzahl>
</HashCodeMembers>
<NReferenzen>
<Anzahl>0</Anzahl>
</NReferenzen>
<OrderMembers>
<Anzahl>0</Anzahl>
</OrderMembers>
<ToComboStringMembers>
<Anzahl>0</Anzahl>
</ToComboStringMembers>
<ToStringMembers>
<Anzahl>0</Anzahl>
</ToStringMembers>
</Codegenerator>
<Farben>
<Hintergrund>goldgelb</Hintergrund>
<Schrift>schwarz</Schrift>
</Farben>
<FirstGenerationDone>false</FirstGenerationDone>
<History>@changed null - Added.</History>
<InDevelopment>false</InDevelopment>
<Kommentar></Kommentar>
<NMRelation>false</NMRelation>
<Name>MultiKeyReferenzTabelle</Name>
<Options>
<Count>0</Count>
</Options>
<Panels>
<Anzahl>1</Anzahl>
<Panel0>
<PanelClass></PanelClass>
<PanelNumber>0</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Daten</TabTitle>
<TabToolTipText>Hier können Sie die Daten des Objekt warten</TabToolTipText>
</Panel0>
</Panels>
<Spalten>
<Anzahl>3</Anzahl>
<Codegenerator>
<ActiveInApplication>false</ActiveInApplication>
<AdditionalCreateConstraints></AdditionalCreateConstraints>
<Codegeneratoroptionen></Codegeneratoroptionen>
<Codeverzeichnis>.</Codeverzeichnis>
<Codieren>true</Codieren>
<DynamicCode>true</DynamicCode>
<Inherited>false</Inherited>
<Kontextname></Kontextname>
<UniqueFormula></UniqueFormula>
</Codegenerator>
<Spalte0>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History>@changed null - Added.</History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Id</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte0>
<Spalte1>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History>@changed null - Added.</History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Ref0</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<Referenz>
<Direction0>UP</Direction0>
<Direction1>UP</Direction1>
<Offset0>0</Offset0>
<Offset1>0</Offset1>
<Spalte>Id0</Spalte>
<Tabelle>MultiKeyTabelle</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>UP</Direction0>
<Direction1>UP</Direction1>
<Name>Main</Name>
<Offset0>0</Offset0>
<Offset1>0</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte1>
<Spalte2>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Token</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History>@changed null - Added.</History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Ref1</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<Referenz>
<Direction0>UP</Direction0>
<Direction1>UP</Direction1>
<Offset0>0</Offset0>
<Offset1>0</Offset1>
<Spalte>Id1</Spalte>
<Tabelle>MultiKeyTabelle</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>UP</Direction0>
<Direction1>UP</Direction1>
<Name>Main</Name>
<Offset0>0</Offset0>
<Offset1>0</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte2>
</Spalten>
<Stereotype>
<Anzahl>0</Anzahl>
</Stereotype>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Name>Main</Name>
<X>1075</X>
<Y>1075</Y>
</View0>
</Views>
</Tabelle8>
</Tabellen>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Beschreibung>Diese Sicht beinhaltet alle Tabellen des Schemas</Beschreibung>
<Name>Main</Name>
<ReferenzierteSpaltenAnzeigen>true</ReferenzierteSpaltenAnzeigen>
<Tabelle0>DataScheme</Tabelle0>
<Tabelle1>TableScheme</Tabelle1>
<Tabelle2>DomainScheme</Tabelle2>
<Tabelle3>ColumnScheme</Tabelle3>
<Tabelle4>StereotypeScheme</Tabelle4>
<Tabelle5>StereotypeSchemeTableScheme</Tabelle5>
<Tabelle6>TestTabelle</Tabelle6>
<Tabellenanzahl>7</Tabellenanzahl>
<TechnischeSpaltenVerstecken>false</TechnischeSpaltenVerstecken>
</View0>
</Views>
</Diagramm>
|
17404
|
<Diagramm>
<AdditionalSQLCode>
<SQLCode>
<AdditionalSQLCodePostChanging></AdditionalSQLCodePostChanging>
<AdditionalSQLCodePostReducing></AdditionalSQLCodePostReducing>
<AdditionalSQLCodePreChanging></AdditionalSQLCodePreChanging>
<AdditionalSQLCodePreExtending></AdditionalSQLCodePreExtending>
</SQLCode>
</AdditionalSQLCode>
<Colors>
<Anzahl>23</Anzahl>
<Color0>
<B>255</B>
<G>0</G>
<Name>blau</Name>
<R>0</R>
</Color0>
<Color1>
<B>221</B>
<G>212</G>
<Name><NAME></Name>
<R>175</R>
</Color1>
<Color10>
<B>192</B>
<G>192</G>
<Name><NAME></Name>
<R>192</R>
</Color10>
<Color11>
<B>255</B>
<G>0</G>
<Name><NAME></Name>
<R>255</R>
</Color11>
<Color12>
<B>0</B>
<G>200</G>
<Name>orange</Name>
<R>255</R>
</Color12>
<Color13>
<B>255</B>
<G>247</G>
<Name><NAME></Name>
<R>211</R>
</Color13>
<Color14>
<B>186</B>
<G>245</G>
<Name><NAME></Name>
<R>255</R>
</Color14>
<Color15>
<B>234</B>
<G>255</G>
<Name><NAME>&uuml;<NAME></Name>
<R>211</R>
</Color15>
<Color16>
<B>255</B>
<G>211</G>
<Name><NAME></Name>
<R>244</R>
</Color16>
<Color17>
<B>191</B>
<G>165</G>
<Name><NAME></Name>
<R>244</R>
</Color17>
<Color18>
<B>175</B>
<G>175</G>
<Name>pink</Name>
<R>255</R>
</Color18>
<Color19>
<B>0</B>
<G>0</G>
<Name>rot</Name>
<R>255</R>
</Color19>
<Color2>
<B>61</B>
<G>125</G>
<Name><NAME></Name>
<R>170</R>
</Color2>
<Color20>
<B>0</B>
<G>0</G>
<Name>schwarz</Name>
<R>0</R>
</Color20>
<Color21>
<B>255</B>
<G>255</G>
<Name>t&uuml;rkis</Name>
<R>0</R>
</Color21>
<Color22>
<B>255</B>
<G>255</G>
<Name>wei&szlig;</Name>
<R>255</R>
</Color22>
<Color3>
<B>64</B>
<G>64</G>
<Name>dunkelgrau</Name>
<R>64</R>
</Color3>
<Color4>
<B>84</B>
<G>132</G>
<Name>dunkelgr&uuml;n</Name>
<R>94</R>
</Color4>
<Color5>
<B>0</B>
<G>255</G>
<Name>gelb</Name>
<R>255</R>
</Color5>
<Color6>
<B>0</B>
<G>225</G>
<Name>goldgelb</Name>
<R>255</R>
</Color6>
<Color7>
<B>128</B>
<G>128</G>
<Name>grau</Name>
<R>128</R>
</Color7>
<Color8>
<B>0</B>
<G>255</G>
<Name>gr&uuml;n</Name>
<R>0</R>
</Color8>
<Color9>
<B>255</B>
<G>212</G>
<Name>hellblau</Name>
<R>191</R>
</Color9>
</Colors>
<ComplexIndices>
<IndexCount>0</IndexCount>
</ComplexIndices>
<DataSource>
<Import>
<DBName></DBName>
<Description></Description>
<Domains>false</Domains>
<Driver></Driver>
<Name></Name>
<Referenzen>false</Referenzen>
<User></User>
</Import>
<Update>
<DBMode>MYSQL</DBMode>
<DBName>jdbc:mysql://messene/platon</DBName>
<Description></Description>
<DomainFaehig>false</DomainFaehig>
<Driver>com.mysql.jdbc.Driver</Driver>
<FkNotNullBeachten>false</FkNotNullBeachten>
<Name></Name>
<Quote></Quote>
<ReferenzenSetzen>false</ReferenzenSetzen>
<User>platon</User>
</Update>
</DataSource>
<DefaultComment>
<Anzahl>0</Anzahl>
</DefaultComment>
<Domains>
<Anzahl>14</Anzahl>
<Domain0>
<Datatype>4</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar>A boolean value in number format. 0 means false, any other value is true.</Kommentar>
<Length>0</Length>
<NKS>0</NKS>
<Name>Boolean</Name>
<Parameters></Parameters>
</Domain0>
<Domain1>
<Datatype>12</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar>This type is for descriptions in the meaning of names of data records.</Kommentar>
<Length>100</Length>
<NKS>0</NKS>
<Name>Description</Name>
<Parameters></Parameters>
</Domain1>
<Domain10>
<Datatype>12</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar></Kommentar>
<Length>21</Length>
<NKS>0</NKS>
<Name>Password</Name>
<Parameters></Parameters>
</Domain10>
<Domain11>
<Datatype>4</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar></Kommentar>
<Length>0</Length>
<NKS>0</NKS>
<Name>Portnumber</Name>
<Parameters></Parameters>
</Domain11>
<Domain12>
<Datatype>4</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar></Kommentar>
<Length>0</Length>
<NKS>0</NKS>
<Name>Sorting</Name>
<Parameters></Parameters>
</Domain12>
<Domain13>
<Datatype>12</Datatype>
<History></History>
<Initialwert>':o)'</Initialwert>
<Kommentar>A token, that describes the record in a short form.</Kommentar>
<Length>20</Length>
<NKS>0</NKS>
<Name>Token</Name>
<Parameters></Parameters>
</Domain13>
<Domain2>
<Datatype>12</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar></Kommentar>
<Length>255</Length>
<NKS>0</NKS>
<Name>Filename</Name>
<Parameters></Parameters>
</Domain2>
<Domain3>
<Datatype>-5</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar>A GLI is a global local identificator. Fields of this type are used to store comprehensive ids (across more than one databases).</Kommentar>
<Length>0</Length>
<NKS>0</NKS>
<Name>GLI</Name>
<Parameters></Parameters>
</Domain3>
<Domain4>
<Datatype>-5</Datatype>
<History></History>
<Initialwert>-1</Initialwert>
<Kommentar>This type should be used for key data fields.</Kommentar>
<Length>0</Length>
<NKS>0</NKS>
<Name>Ident</Name>
<Parameters></Parameters>
</Domain4>
<Domain5>
<Datatype>12</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar></Kommentar>
<Length>255</Length>
<NKS>0</NKS>
<Name>LongDescription</Name>
<Parameters></Parameters>
</Domain5>
<Domain6>
<Datatype>-5</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar>A type to store more precise manner, than the PTimestamp domain. LongPTimestamps include millis additionally. The format is: YYYYMMDDHHMMSSsss.</Kommentar>
<Length>0</Length>
<NKS>0</NKS>
<Name>LongPTimestamp</Name>
<Parameters></Parameters>
</Domain6>
<Domain7>
<Datatype>-1</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar></Kommentar>
<Length>0</Length>
<NKS>0</NKS>
<Name>Longtext</Name>
<Parameters></Parameters>
</Domain7>
<Domain8>
<Datatype>12</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar>This field contains the name of the Workstation, where the data record has been changed.</Kommentar>
<Length>40</Length>
<NKS>0</NKS>
<Name>PCName</Name>
<Parameters></Parameters>
</Domain8>
<Domain9>
<Datatype>2</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar>Data fields of this type contain time informations in the following format: YYYYMMDDHHMMSS.</Kommentar>
<Length>14</Length>
<NKS>0</NKS>
<Name>PTimestamp</Name>
<Parameters></Parameters>
</Domain9>
</Domains>
<Factories>
<Object>archimedes.legacy.scheme.DefaultObjectFactory</Object>
</Factories>
<Pages>
<PerColumn>5</PerColumn>
<PerRow>10</PerRow>
</Pages>
<Parameter>
<AdditionalSQLScriptListener>archimedes.scheme.SQLScriptListenerTest01, archimedes.scheme.SQLScriptListenerTest02</AdditionalSQLScriptListener>
<Applicationname>TestModel</Applicationname>
<AufgehobeneAusblenden>false</AufgehobeneAusblenden>
<Autor>ollie</Autor>
<Basepackagename>testmodel</Basepackagename>
<CodeFactoryClassName></CodeFactoryClassName>
<Codebasispfad>~/codetmp/</Codebasispfad>
<DBVersionDBVersionColumn></DBVersionDBVersionColumn>
<DBVersionDescriptionColumn></DBVersionDescriptionColumn>
<DBVersionTablename></DBVersionTablename>
<History></History>
<Kommentar>Archimedesmodell f&uuml;r den Unittest.</Kommentar>
<Name>TestModel</Name>
<Optionen>
<Anzahl>0</Anzahl>
</Optionen>
<PflichtfelderMarkieren>false</PflichtfelderMarkieren>
<ReferenzierteSpaltenAnzeigen>true</ReferenzierteSpaltenAnzeigen>
<SchemaName></SchemaName>
<Schriftgroessen>
<Tabelleninhalte>12</Tabelleninhalte>
<Ueberschriften>24</Ueberschriften>
<Untertitel>12</Untertitel>
</Schriftgroessen>
<Scripte>
<AfterWrite>&lt;null&gt;</AfterWrite>
</Scripte>
<TechnischeFelderAusgrauen>true</TechnischeFelderAusgrauen>
<UdschebtiBaseClassName></UdschebtiBaseClassName>
<Version>2</Version>
<Versionsdatum>09.12.2008</Versionsdatum>
<Versionskommentar>&lt;null&gt;</Versionskommentar>
</Parameter>
<Sequences>
<Count>0</Count>
</Sequences>
<Stereotype>
<Anzahl>4</Anzahl>
<Stereotype0>
<DoNotPrint>false</DoNotPrint>
<HideTable>false</HideTable>
<History></History>
<Kommentar>Diese Stereotype kennzeichnet eine Tabelle, deren Datens&auml;tze nicht gel&ouml;scht, sondern lediglich deaktiviert werden sollen.</Kommentar>
<Name>Deactivatable</Name>
</Stereotype0>
<Stereotype1>
<DoNotPrint>false</DoNotPrint>
<HideTable>false</HideTable>
<History></History>
<Kommentar>Diese Stereotype kennzeichnet eine Tabelle, deren Datens&auml;tze nicht gel&ouml;scht, sondern lediglich deaktiviert werden sollen.</Kommentar>
<Name>Deaktivierbar</Name>
</Stereotype1>
<Stereotype2>
<DoNotPrint>false</DoNotPrint>
<HideTable>false</HideTable>
<History></History>
<Kommentar>-/-</Kommentar>
<Name>System</Name>
</Stereotype2>
<Stereotype3>
<DoNotPrint>false</DoNotPrint>
<HideTable>false</HideTable>
<History></History>
<Kommentar>-/-</Kommentar>
<Name>Test</Name>
</Stereotype3>
</Stereotype>
<Tabellen>
<Anzahl>9</Anzahl>
<Tabelle0>
<Aufgehoben>false</Aufgehoben>
<Codegenerator>
<AuswahlMembers>
<Anzahl>5</Anzahl>
<Member0>
<Attribute>OPTIONAL</Attribute>
<Spalte>Description</Spalte>
<Tabelle>DataScheme</Tabelle>
</Member0>
<Member1>
<Attribute>OPTIONAL</Attribute>
<Spalte>Token</Spalte>
<Tabelle>DataScheme</Tabelle>
</Member1>
<Member2>
<Attribute>OPTIONAL</Attribute>
<Spalte>Version</Spalte>
<Tabelle>DataScheme</Tabelle>
</Member2>
<Member3>
<Attribute>OPTIONAL</Attribute>
<Spalte>LoadModelAtStart</Spalte>
<Tabelle>DataScheme</Tabelle>
</Member3>
<Member4>
<Attribute>OPTIONAL</Attribute>
<Spalte>Request</Spalte>
<Tabelle>DataScheme</Tabelle>
</Member4>
</AuswahlMembers>
<CompareMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>Description</Spalte>
</Member0>
</CompareMembers>
<Equalsmembers>
<Anzahl>4</Anzahl>
<Member0>
<Spalte>DataScheme</Spalte>
</Member0>
<Member1>
<Spalte>Deleted</Spalte>
</Member1>
<Member2>
<Spalte>Description</Spalte>
</Member2>
<Member3>
<Spalte>Token</Spalte>
</Member3>
</Equalsmembers>
<HashCodeMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>DataScheme</Spalte>
</Member0>
</HashCodeMembers>
<NReferenzen>
<Anzahl>0</Anzahl>
</NReferenzen>
<OrderMembers>
<Anzahl>1</Anzahl>
<Member0>
<Richtung>ASC</Richtung>
<Spalte>Description</Spalte>
<Tabelle>DataScheme</Tabelle>
</Member0>
</OrderMembers>
<ToComboStringMembers>
<Anzahl>2</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
<Member1>
<Prefix> (</Prefix>
<Spalte>Token</Spalte>
<Suffix>)</Suffix>
</Member1>
</ToComboStringMembers>
<ToStringMembers>
<Anzahl>2</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
<Member1>
<Prefix> (</Prefix>
<Spalte>Token</Spalte>
<Suffix>)</Suffix>
</Member1>
</ToStringMembers>
</Codegenerator>
<Farben>
<Hintergrund>blaugrau</Hintergrund>
<Schrift>java.awt.Color[r=0,g=0,b=0]</Schrift>
</Farben>
<FirstGenerationDone>true</FirstGenerationDone>
<History></History>
<InDevelopment>false</InDevelopment>
<Kommentar></Kommentar>
<NMRelation>false</NMRelation>
<Name>DataScheme</Name>
<Options>
<Count>0</Count>
</Options>
<Panels>
<Anzahl>1</Anzahl>
<Panel0>
<PanelClass></PanelClass>
<PanelNumber>0</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Daten</TabTitle>
<TabToolTipText>Hier können Sie die Daten des Objektes warten.</TabToolTipText>
</Panel0>
</Panels>
<Spalten>
<Anzahl>15</Anzahl>
<Codegenerator>
<ActiveInApplication>true</ActiveInApplication>
<AdditionalCreateConstraints></AdditionalCreateConstraints>
<Codegeneratoroptionen></Codegeneratoroptionen>
<Codeverzeichnis>platon/scheme</Codeverzeichnis>
<Codieren>false</Codieren>
<DynamicCode>true</DynamicCode>
<Inherited>false</Inherited>
<Kontextname></Kontextname>
<UniqueFormula>Description & Deleted | Token & Deleted</UniqueFormula>
</Codegenerator>
<Spalte0>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>DataScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte0>
<Spalte1>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Active</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte1>
<Spalte10>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>R&uuml;ckfrage</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>R</Mnemonic>
<Position>7</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>CheckBoxRequest</RessourceIdentifier>
<ToolTipText>Setzen Sie diese Flagge, wenn zu dem Datenmodell eine R&uuml;ckfrage besteht.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Request</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte10>
<Spalte11>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>R&uuml;ckfragebeschreibung</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>8</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldRequestDescription</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie die eigentliche Problemstellung der R&uuml;ckfrage hinterlegen.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>RequestDescription</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte11>
<Spalte12>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Spezifikation</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>S</Mnemonic>
<Position>4</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldSpecification</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine Spezifikation zum Datenschema an.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Specification</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte12>
<Spalte13>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Token</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>K&uuml;rzel</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>K</Mnemonic>
<Position>2</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldToken</RessourceIdentifier>
<ToolTipText>Geben Sie hier ein eindeutiges K&uuml;rzel f&uuml;r den Datensatz ein.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Token</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte13>
<Spalte14>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Token</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Aktuelle Datenmodellversion</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>O</Mnemonic>
<Position>9</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldVersion</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie die aktuelle Version des Datenmodells festlegen.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Version</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte14>
<Spalte2>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Filename</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>ADS-Dateiname</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>A</Mnemonic>
<Position>3</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldADSFilePath</RessourceIdentifier>
<ToolTipText>Geben Sie hier den vollst&auml;ndigen Namen der ADS-Datei an, f&uuml;r die die Dokumentation gelten soll.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>ADSFilePath</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte2>
<Spalte3>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Kommentar</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>K</Mnemonic>
<Position>5</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldComment</RessourceIdentifier>
<ToolTipText>Hier finden Sie Platz f&uuml;r Kommentare zur Tabelle oder der Spezifikation.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Comment</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte3>
<Spalte4>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Deleted</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>true</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte4>
<Spalte5>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bezeichnung</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>B</Mnemonic>
<Position>1</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldDescription</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine eindeutige Bezeichnung f&uuml;r den Datensatz ein. </ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Description</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte5>
<Spalte6>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PTimestamp</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationDate</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte6>
<Spalte7>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PCName</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationPCName</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte7>
<Spalte8>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>true</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationUser</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte8>
<Spalte9>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bei Start oder Wechsel laden</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>W</Mnemonic>
<Position>6</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>CheckBoxLoadModelAtStart</RessourceIdentifier>
<ToolTipText>Setzen Sie diese Flagge, wenn die Datenmodelldatei beim Programmstart bzw. bei einem Schemawechsel geladen und abgeglichen werden soll.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar>Diese Flagge mu&szlig; gesetzt werden, wenn die Datenmodelldatei bei geladen und abgeglichen werden soll, sobald das DataScheme gewechselt wird.</Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LoadModelAtStart</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte9>
</Spalten>
<Stereotype>
<Anzahl>0</Anzahl>
</Stereotype>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Name>Main</Name>
<X>100</X>
<Y>75</Y>
</View0>
</Views>
</Tabelle0>
<Tabelle1>
<Aufgehoben>false</Aufgehoben>
<Codegenerator>
<AuswahlMembers>
<Anzahl>8</Anzahl>
<Member0>
<Attribute>OPTIONAL</Attribute>
<Spalte>Description</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member0>
<Member1>
<Attribute>OPTIONAL</Attribute>
<Spalte>Active</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member1>
<Member2>
<Attribute>OPTIONAL</Attribute>
<Spalte>Verified</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member2>
<Member3>
<Attribute>OPTIONAL</Attribute>
<Spalte>Request</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member3>
<Member4>
<Attribute>OPTIONAL</Attribute>
<Spalte>SinceVersion</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member4>
<Member5>
<Attribute>OPTIONAL</Attribute>
<Spalte>TilVersion</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member5>
<Member6>
<Attribute>OPTIONAL</Attribute>
<Spalte>DescriptionSpecificationSheet</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member6>
<Member7>
<Attribute>OPTIONAL</Attribute>
<Spalte>Specification</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member7>
</AuswahlMembers>
<CompareMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>Description</Spalte>
</Member0>
</CompareMembers>
<Equalsmembers>
<Anzahl>4</Anzahl>
<Member0>
<Spalte>TableScheme</Spalte>
</Member0>
<Member1>
<Spalte>Deleted</Spalte>
</Member1>
<Member2>
<Spalte>Description</Spalte>
</Member2>
<Member3>
<Spalte>Specification</Spalte>
</Member3>
</Equalsmembers>
<HashCodeMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>TableScheme</Spalte>
</Member0>
</HashCodeMembers>
<NReferenzen>
<Anzahl>2</Anzahl>
<NReferenz0>
<Alterable>true</Alterable>
<DeleteConfirmationRequired>false</DeleteConfirmationRequired>
<Extensible>false</Extensible>
<Id>0</Id>
<Panel>1</Panel>
<PanelType>standard</PanelType>
<PermitCreate>false</PermitCreate>
<Spalte>TableScheme</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</NReferenz0>
<NReferenz1>
<Alterable>false</Alterable>
<DeleteConfirmationRequired>false</DeleteConfirmationRequired>
<Extensible>false</Extensible>
<Id>1</Id>
<Panel>2</Panel>
<PanelType>standard</PanelType>
<PermitCreate>false</PermitCreate>
<Spalte>TableScheme</Spalte>
<Tabelle>StereotypeSchemeTableScheme</Tabelle>
</NReferenz1>
</NReferenzen>
<OrderMembers>
<Anzahl>1</Anzahl>
<Member0>
<Richtung>ASC</Richtung>
<Spalte>Description</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member0>
</OrderMembers>
<ToComboStringMembers>
<Anzahl>1</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
</ToComboStringMembers>
<ToStringMembers>
<Anzahl>1</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
</ToStringMembers>
</Codegenerator>
<Farben>
<Hintergrund>blaugrau</Hintergrund>
<Schrift>java.awt.Color[r=0,g=0,b=0]</Schrift>
</Farben>
<FirstGenerationDone>true</FirstGenerationDone>
<History></History>
<InDevelopment>false</InDevelopment>
<Kommentar>Diese Klasse enth&auml;lt die Angaben zu den einzelnen Tabellen des beschriebenen Datenschemas.</Kommentar>
<NMRelation>false</NMRelation>
<Name>TableScheme</Name>
<Options>
<Count>0</Count>
</Options>
<Panels>
<Anzahl>3</Anzahl>
<Panel0>
<PanelClass></PanelClass>
<PanelNumber>0</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Daten</TabTitle>
<TabToolTipText>Hier können Sie die Daten des Objektes warten.</TabToolTipText>
</Panel0>
<Panel1>
<PanelClass></PanelClass>
<PanelNumber>1</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Spalten</TabTitle>
<TabToolTipText>Hier finden Sie die Spalten der Tabelle.</TabToolTipText>
</Panel1>
<Panel2>
<PanelClass></PanelClass>
<PanelNumber>2</PanelNumber>
<TabMnemonic>2</TabMnemonic>
<TabTitle>2.Stereotypen</TabTitle>
<TabToolTipText>Hier finden Sie die Stereotypen, die der Tabelle zugeordnet sind.</TabToolTipText>
</Panel2>
</Panels>
<Spalten>
<Anzahl>16</Anzahl>
<Codegenerator>
<ActiveInApplication>true</ActiveInApplication>
<AdditionalCreateConstraints></AdditionalCreateConstraints>
<Codegeneratoroptionen><TestTag>DataScheme, ColumnScheme</TestTag></Codegeneratoroptionen>
<Codeverzeichnis>platon/scheme</Codeverzeichnis>
<Codieren>false</Codieren>
<DynamicCode>true</DynamicCode>
<Inherited>false</Inherited>
<Kontextname></Kontextname>
<UniqueFormula></UniqueFormula>
</Codegenerator>
<Spalte0>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>TableScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte0>
<Spalte1>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Active</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte1>
<Spalte10>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>R&uuml;ckfragebeschreibung</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>8</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldRequestDescription</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie den Inhalt der R&uuml;ckfrage hinterlegen.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>RequestDescription</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte10>
<Spalte11>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Token</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Seit Version</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>9</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldSinceVersion</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie die Version des Datenmodells angeben, ab der die Tabelle Bestandteil des Modells war.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>SinceVersion</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte11>
<Spalte12>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Spezifikation</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>S</Mnemonic>
<Position>2</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldSpecification</RessourceIdentifier>
<ToolTipText>Geben Sie hier die technische Spezifikation um Tabellenschema an.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Specification</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte12>
<Spalte13>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Token</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bis Version</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>10</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldTilVersion</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie die Version des Datenmodells angeben, bis zu der die Tabelle Bestandteil des Datenmodells war.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>TilVersion</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte13>
<Spalte14>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Gepr&uuml;ft</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>G</Mnemonic>
<Position>5</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>CheckBoxVerified</RessourceIdentifier>
<ToolTipText>Setzen Sie diese Flagge, wenn die Tabellenbeschreibung als gepr&uuml;ft gelten soll.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Verified</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte14>
<Spalte15>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>true</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Datenschema</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>4</Position>
<ReferenceWeight>massiv</ReferenceWeight>
<RessourceIdentifier>ComboBoxDatascheme</RessourceIdentifier>
<ToolTipText>Hier finden Sie das Datenschema, zu dem die Tabelle geh&ouml;rt.</ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>DataScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<Referenz>
<Direction0>UP</Direction0>
<Direction1>DOWN</Direction1>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Spalte>DataScheme</Spalte>
<Tabelle>DataScheme</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>UP</Direction0>
<Direction1>DOWN</Direction1>
<Name>Main</Name>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte15>
<Spalte2>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Kommentar</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>K</Mnemonic>
<Position>3</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldComment</RessourceIdentifier>
<ToolTipText>Hier finden Sie Platz f&uuml;r Kommentare zur Tabelle oder der Spezifikation.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Comment</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte2>
<Spalte3>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Deleted</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>true</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte3>
<Spalte4>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>true</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bezeichnung</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>B</Mnemonic>
<Position>1</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldDescription</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine eindeutige Bezeichnung f&uuml;r den Datensatz ein. </ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Description</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte4>
<Spalte5>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bezeichnung (lt. Pflichtenheft)</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>11</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldDescriptionSpecificationSheet</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie die Bezeichnung des Feldes lt. Pflichtenheft angeben, falls diese vom Namen des Datenbankfeldes abweicht.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar>Eine Bezeichnung lt. Pflichtenheft, falls abweichend.</Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>DescriptionSpecificationSheet</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte5>
<Spalte6>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PTimestamp</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationDate</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte6>
<Spalte7>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PCName</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationPCName</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte7>
<Spalte8>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>true</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationUser</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte8>
<Spalte9>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>R&uuml;ckfrage</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>7</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>CheckBoxRequest</RessourceIdentifier>
<ToolTipText>Setzen Sie diese Flagge, wenn Sie zur Tabelle eine R&uuml;ckfrage haben.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Request</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte9>
</Spalten>
<Stereotype>
<Anzahl>0</Anzahl>
</Stereotype>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Name>Main</Name>
<X>100</X>
<Y>425</Y>
</View0>
</Views>
</Tabelle1>
<Tabelle2>
<Aufgehoben>false</Aufgehoben>
<Codegenerator>
<AuswahlMembers>
<Anzahl>5</Anzahl>
<Member0>
<Attribute>OPTIONAL</Attribute>
<Spalte>Description</Spalte>
<Tabelle>DomainScheme</Tabelle>
</Member0>
<Member1>
<Attribute>OPTIONAL</Attribute>
<Spalte>SQLType</Spalte>
<Tabelle>DomainScheme</Tabelle>
</Member1>
<Member2>
<Attribute>OPTIONAL</Attribute>
<Spalte>Active</Spalte>
<Tabelle>DomainScheme</Tabelle>
</Member2>
<Member3>
<Attribute>OPTIONAL</Attribute>
<Spalte>Verified</Spalte>
<Tabelle>DomainScheme</Tabelle>
</Member3>
<Member4>
<Attribute>OPTIONAL</Attribute>
<Spalte>Specification</Spalte>
<Tabelle>DomainScheme</Tabelle>
</Member4>
</AuswahlMembers>
<CompareMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>Description</Spalte>
</Member0>
</CompareMembers>
<Equalsmembers>
<Anzahl>5</Anzahl>
<Member0>
<Spalte>DomainScheme</Spalte>
</Member0>
<Member1>
<Spalte>Active</Spalte>
</Member1>
<Member2>
<Spalte>Deleted</Spalte>
</Member2>
<Member3>
<Spalte>Description</Spalte>
</Member3>
<Member4>
<Spalte>SQLType</Spalte>
</Member4>
</Equalsmembers>
<HashCodeMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>DomainScheme</Spalte>
</Member0>
</HashCodeMembers>
<NReferenzen>
<Anzahl>1</Anzahl>
<NReferenz0>
<Alterable>false</Alterable>
<DeleteConfirmationRequired>false</DeleteConfirmationRequired>
<Extensible>false</Extensible>
<Id>0</Id>
<Panel>1</Panel>
<PanelType>standard</PanelType>
<PermitCreate>false</PermitCreate>
<Spalte>DomainScheme</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</NReferenz0>
</NReferenzen>
<OrderMembers>
<Anzahl>2</Anzahl>
<Member0>
<Richtung>DESC</Richtung>
<Spalte>Active</Spalte>
<Tabelle>DomainScheme</Tabelle>
</Member0>
<Member1>
<Richtung>ASC</Richtung>
<Spalte>Description</Spalte>
<Tabelle>DomainScheme</Tabelle>
</Member1>
</OrderMembers>
<ToComboStringMembers>
<Anzahl>2</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
<Member1>
<Prefix> (</Prefix>
<Spalte>SQLType</Spalte>
<Suffix>)</Suffix>
</Member1>
</ToComboStringMembers>
<ToStringMembers>
<Anzahl>2</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
<Member1>
<Prefix> (</Prefix>
<Spalte>SQLType</Spalte>
<Suffix>)</Suffix>
</Member1>
</ToStringMembers>
</Codegenerator>
<Farben>
<Hintergrund>hellblau</Hintergrund>
<Schrift>java.awt.Color[r=0,g=0,b=0]</Schrift>
</Farben>
<FirstGenerationDone>true</FirstGenerationDone>
<History></History>
<InDevelopment>false</InDevelopment>
<Kommentar></Kommentar>
<NMRelation>false</NMRelation>
<Name>DomainScheme</Name>
<Options>
<Count>0</Count>
</Options>
<Panels>
<Anzahl>2</Anzahl>
<Panel0>
<PanelClass></PanelClass>
<PanelNumber>0</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Daten</TabTitle>
<TabToolTipText>Hier können Sie die Daten des Objektes warten.</TabToolTipText>
</Panel0>
<Panel1>
<PanelClass></PanelClass>
<PanelNumber>1</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Tabellenspalten</TabTitle>
<TabToolTipText>Hier finden Sie die Tabellenspalten dieser Domain.</TabToolTipText>
</Panel1>
</Panels>
<Spalten>
<Anzahl>12</Anzahl>
<Codegenerator>
<ActiveInApplication>true</ActiveInApplication>
<AdditionalCreateConstraints></AdditionalCreateConstraints>
<Codegeneratoroptionen></Codegeneratoroptionen>
<Codeverzeichnis>platon/scheme</Codeverzeichnis>
<Codieren>false</Codieren>
<DynamicCode>true</DynamicCode>
<Inherited>false</Inherited>
<Kontextname></Kontextname>
<UniqueFormula></UniqueFormula>
</Codegenerator>
<Spalte0>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>DomainScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte0>
<Spalte1>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Active</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte1>
<Spalte10>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Gepr&uuml;ft</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>G</Mnemonic>
<Position>6</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>CheckBoxVerified</RessourceIdentifier>
<ToolTipText>Setzen Sie diese Flagge, wenn das Dom&auml;nenschema als gepr&uuml;ft gelten soll.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Verified</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte10>
<Spalte11>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Datenschema</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>D</Mnemonic>
<Position>5</Position>
<ReferenceWeight>massiv</ReferenceWeight>
<RessourceIdentifier>ComboBoxDataScheme</RessourceIdentifier>
<ToolTipText>Geben Sie hier das Datenschema an, f&uuml;r das der Domaintyp gelten soll.</ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar>Das Datenschema, f&uuml;r das Dom&auml;nentyp gelten soll.</Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>DataScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<Referenz>
<Direction0>RIGHT</Direction0>
<Direction1>RIGHT</Direction1>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Spalte>DataScheme</Spalte>
<Tabelle>DataScheme</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>RIGHT</Direction0>
<Direction1>RIGHT</Direction1>
<Name>Main</Name>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte11>
<Spalte2>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Kommentar</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>K</Mnemonic>
<Position>4</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldComment</RessourceIdentifier>
<ToolTipText>Hier finden Sie Platz f&uuml;r Kommentare zur Tabelle oder der Spezifikation.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Comment</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte2>
<Spalte3>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Deleted</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte3>
<Spalte4>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bezeichnung</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>B</Mnemonic>
<Position>1</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldDescription</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine eindeutige Bezeichnung f&uuml;r den Datensatz ein. </ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Description</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte4>
<Spalte5>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PTimestamp</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationDate</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte5>
<Spalte6>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PCName</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationPCName</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte6>
<Spalte7>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>true</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name><NAME>ModificationUser</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte7>
<Spalte8>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Spezifikation</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>S</Mnemonic>
<Position>3</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldSpecification</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine Spezifikation zum Domainschema an.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Specification</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte8>
<Spalte9>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>SQL-Typ</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>Q</Mnemonic>
<Position>2</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldSQLType</RessourceIdentifier>
<ToolTipText>Geben Sie hier den SQL-Typ an, der hinter dem Domainschema steht.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>SQLType</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte9>
</Spalten>
<Stereotype>
<Anzahl>0</Anzahl>
</Stereotype>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Name>Main</Name>
<X>500</X>
<Y>925</Y>
</View0>
</Views>
</Tabelle2>
<Tabelle3>
<Aufgehoben>false</Aufgehoben>
<Codegenerator>
<AuswahlMembers>
<Anzahl>11</Anzahl>
<Member0>
<Attribute>OPTIONAL</Attribute>
<Spalte>Description</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</Member0>
<Member1>
<Attribute>OPTIONAL</Attribute>
<Spalte>Description</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member1>
<Member10>
<Attribute>OPTIONAL</Attribute>
<Spalte>Specification</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</Member10>
<Member2>
<Attribute>OPTIONAL</Attribute>
<Spalte>Description</Spalte>
<Tabelle>DomainScheme</Tabelle>
</Member2>
<Member3>
<Attribute>OPTIONAL</Attribute>
<Spalte>SQLType</Spalte>
<Tabelle>DomainScheme</Tabelle>
</Member3>
<Member4>
<Attribute>OPTIONAL</Attribute>
<Spalte>Active</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</Member4>
<Member5>
<Attribute>OPTIONAL</Attribute>
<Spalte>Verified</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</Member5>
<Member6>
<Attribute>OPTIONAL</Attribute>
<Spalte>Request</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</Member6>
<Member7>
<Attribute>OPTIONAL</Attribute>
<Spalte>SinceVersion</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</Member7>
<Member8>
<Attribute>OPTIONAL</Attribute>
<Spalte>TilVersion</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</Member8>
<Member9>
<Attribute>OPTIONAL</Attribute>
<Spalte>DescriptionSpecificationSheet</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</Member9>
</AuswahlMembers>
<CompareMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>Description</Spalte>
</Member0>
</CompareMembers>
<Equalsmembers>
<Anzahl>4</Anzahl>
<Member0>
<Spalte>ColumnScheme</Spalte>
</Member0>
<Member1>
<Spalte>Deleted</Spalte>
</Member1>
<Member2>
<Spalte>Description</Spalte>
</Member2>
<Member3>
<Spalte>DomainScheme</Spalte>
</Member3>
</Equalsmembers>
<HashCodeMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>ColumnScheme</Spalte>
</Member0>
</HashCodeMembers>
<NReferenzen>
<Anzahl>0</Anzahl>
</NReferenzen>
<OrderMembers>
<Anzahl>2</Anzahl>
<Member0>
<Richtung>ASC</Richtung>
<Spalte>Description</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</Member0>
<Member1>
<Richtung>ASC</Richtung>
<Spalte>Description</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member1>
</OrderMembers>
<ToComboStringMembers>
<Anzahl>2</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
<Member1>
<Prefix></Prefix>
<Spalte>DomainScheme</Spalte>
<Suffix></Suffix>
</Member1>
</ToComboStringMembers>
<ToStringMembers>
<Anzahl>2</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
<Member1>
<Prefix>(</Prefix>
<Spalte>DomainScheme</Spalte>
<Suffix>)</Suffix>
</Member1>
</ToStringMembers>
</Codegenerator>
<Farben>
<Hintergrund>blaugrau</Hintergrund>
<Schrift>java.awt.Color[r=0,g=0,b=0]</Schrift>
</Farben>
<FirstGenerationDone>true</FirstGenerationDone>
<History></History>
<InDevelopment>false</InDevelopment>
<Kommentar>Diese Klasse enth&auml;lt Informationen &uuml;ber die Datenfelder des beschriebenen Datenmodells.</Kommentar>
<NMRelation>false</NMRelation>
<Name>ColumnScheme</Name>
<Options>
<Count>0</Count>
</Options>
<Panels>
<Anzahl>1</Anzahl>
<Panel0>
<PanelClass></PanelClass>
<PanelNumber>0</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Daten</TabTitle>
<TabToolTipText>Hier können Sie die Daten des Objektes warten.</TabToolTipText>
</Panel0>
</Panels>
<Spalten>
<Anzahl>19</Anzahl>
<Codegenerator>
<ActiveInApplication>true</ActiveInApplication>
<AdditionalCreateConstraints></AdditionalCreateConstraints>
<Codegeneratoroptionen></Codegeneratoroptionen>
<Codeverzeichnis>platon/scheme</Codeverzeichnis>
<Codieren>false</Codieren>
<DynamicCode>true</DynamicCode>
<Inherited>false</Inherited>
<Kontextname></Kontextname>
<UniqueFormula></UniqueFormula>
</Codegenerator>
<Spalte0>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>ColumnScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte0>
<Spalte1>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Active</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte1>
<Spalte10>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>R&uuml;ckfrage</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>6</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>CheckBoxRequest</RessourceIdentifier>
<ToolTipText>Setzen Sie diese Flagge, wenn zu dem Datenfeld eine R&uuml;ckfrage n&ouml;tig ist.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Request</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte10>
<Spalte11>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>R&uuml;ckfragenbeschreibung</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>7</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldRequestDescription</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie die Beschreibung der R&uuml;ckfrage hinterlegen.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>RequestDescription</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte11>
<Spalte12>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Token</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Seit Version</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>9</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldSinceVersion</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie die Version des Datenmodells angeben, ab der die Tabellenspalte Bestandteil des Datenmodells war.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>SinceVersion</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte12>
<Spalte13>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Spezifikation</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>S</Mnemonic>
<Position>3</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldSpecification</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine Spezifikation zum Datenfeld an.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Specification</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte13>
<Spalte14>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Token</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bis Version</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>10</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldTilVersion</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie die Version des Datenmodells angeben, bis zu der die Tabellenspalte ein Bestandteil desselben war.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>TilVersion</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte14>
<Spalte15>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Gepr&uuml;ft</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>G</Mnemonic>
<Position>5</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>CheckBoxVerified</RessourceIdentifier>
<ToolTipText>Setzen Sie diese Flagge, wenn das Tabellenspaltenschema als gepr&uuml;ft gelten soll.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Verified</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte15>
<Spalte16>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>DataScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<Referenz>
<Direction0>UP</Direction0>
<Direction1>RIGHT</Direction1>
<Offset0>25</Offset0>
<Offset1>50</Offset1>
<Spalte>DataScheme</Spalte>
<Tabelle>DataScheme</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>UP</Direction0>
<Direction1>RIGHT</Direction1>
<Name>Main</Name>
<Offset0>25</Offset0>
<Offset1>50</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte16>
<Spalte17>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>true</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Dom&auml;ne (Typ)</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>D</Mnemonic>
<Position>2</Position>
<ReferenceWeight>massiv</ReferenceWeight>
<RessourceIdentifier>ComboBoxDomainScheme</RessourceIdentifier>
<ToolTipText>Legen Sie hier einen Dom&auml;nentyp f&uuml;r das Datenfeld fest.</ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>DomainScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<Referenz>
<Direction0>DOWN</Direction0>
<Direction1>UP</Direction1>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Spalte>DomainScheme</Spalte>
<Tabelle>DomainScheme</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>DOWN</Direction0>
<Direction1>UP</Direction1>
<Name>Main</Name>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte17>
<Spalte18>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>true</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Tabelle</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>T</Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>ComboBoxTableScheme</RessourceIdentifier>
<ToolTipText>Hier finden Sie die Tabelle, zu der das Datenfeld geh&ouml;rt.</ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>TableScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<Referenz>
<Direction0>LEFT</Direction0>
<Direction1>RIGHT</Direction1>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Spalte>TableScheme</Spalte>
<Tabelle>TableScheme</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>LEFT</Direction0>
<Direction1>RIGHT</Direction1>
<Name>Main</Name>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte18>
<Spalte2>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Kommentar</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>K</Mnemonic>
<Position>4</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldComment</RessourceIdentifier>
<ToolTipText>Hier finden Sie Platz f&uuml;r Kommentare zur Tabelle oder der Spezifikation.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Comment</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte2>
<Spalte3>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Deleted</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>true</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte3>
<Spalte4>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>true</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bezeichnung</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>B</Mnemonic>
<Position>1</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldDescription</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine eindeutige Bezeichnung f&uuml;r den Datensatz ein. </ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Description</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte4>
<Spalte5>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bezeichnung (lt. Pflichtenheft)</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>11</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldDescriptionSpecificationSheet</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie eine Bezeichnung des Feldes im Pflichtenheft angeben, falls diese vom Namen des Datenbankenfeldes abweicht.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar>Bezeichnung lt. Pflichtenheft, falls diese abweicht.</Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>DescriptionSpecificationSheet</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte5>
<Spalte6>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PTimestamp</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationDate</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte6>
<Spalte7>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PCName</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationPCName</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte7>
<Spalte8>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>true</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationUser</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte8>
<Spalte9>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>true</Disabled>
<Domain>LongDescription</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Referenziert</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>3</Position>
<ReferenceWeight>massiv</ReferenceWeight>
<RessourceIdentifier>ComboBoxReferences</RessourceIdentifier>
<ToolTipText>Hier finden Sie einen Hinweis auf eine durch die Tabellenspalte referenzierte andere Tabellenspalte.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>ReferencesTo</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte9>
</Spalten>
<Stereotype>
<Anzahl>1</Anzahl>
</Stereotype>
<Stereotype0>Test</Stereotype0>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Name>Main</Name>
<X>500</X>
<Y>425</Y>
</View0>
</Views>
</Tabelle3>
<Tabelle4>
<Aufgehoben>false</Aufgehoben>
<Codegenerator>
<AuswahlMembers>
<Anzahl>4</Anzahl>
<Member0>
<Attribute>OPTIONAL</Attribute>
<Spalte>Description</Spalte>
<Tabelle>StereotypeScheme</Tabelle>
</Member0>
<Member1>
<Attribute>OPTIONAL</Attribute>
<Spalte>Active</Spalte>
<Tabelle>StereotypeScheme</Tabelle>
</Member1>
<Member2>
<Attribute>OPTIONAL</Attribute>
<Spalte>Verified</Spalte>
<Tabelle>StereotypeScheme</Tabelle>
</Member2>
<Member3>
<Attribute>OPTIONAL</Attribute>
<Spalte>Specification</Spalte>
<Tabelle>StereotypeScheme</Tabelle>
</Member3>
</AuswahlMembers>
<CompareMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>Description</Spalte>
</Member0>
</CompareMembers>
<Equalsmembers>
<Anzahl>6</Anzahl>
<Member0>
<Spalte>StereotypeScheme</Spalte>
</Member0>
<Member1>
<Spalte>Active</Spalte>
</Member1>
<Member2>
<Spalte>Deleted</Spalte>
</Member2>
<Member3>
<Spalte>Description</Spalte>
</Member3>
<Member4>
<Spalte>Specification</Spalte>
</Member4>
<Member5>
<Spalte>Comment</Spalte>
</Member5>
</Equalsmembers>
<HashCodeMembers>
<Anzahl>0</Anzahl>
</HashCodeMembers>
<NReferenzen>
<Anzahl>1</Anzahl>
<NReferenz0>
<Alterable>false</Alterable>
<DeleteConfirmationRequired>false</DeleteConfirmationRequired>
<Extensible>false</Extensible>
<Id>0</Id>
<Panel>1</Panel>
<PanelType>standard</PanelType>
<PermitCreate>false</PermitCreate>
<Spalte>StereotypeScheme</Spalte>
<Tabelle>StereotypeSchemeTableScheme</Tabelle>
</NReferenz0>
</NReferenzen>
<OrderMembers>
<Anzahl>1</Anzahl>
<Member0>
<Richtung>ASC</Richtung>
<Spalte>Description</Spalte>
<Tabelle>StereotypeScheme</Tabelle>
</Member0>
</OrderMembers>
<ToComboStringMembers>
<Anzahl>1</Anzahl>
<Member0>
<Prefix><< </Prefix>
<Spalte>Description</Spalte>
<Suffix> >></Suffix>
</Member0>
</ToComboStringMembers>
<ToStringMembers>
<Anzahl>1</Anzahl>
<Member0>
<Prefix><< </Prefix>
<Spalte>Description</Spalte>
<Suffix> >></Suffix>
</Member0>
</ToStringMembers>
</Codegenerator>
<Farben>
<Hintergrund>hellblau</Hintergrund>
<Schrift>java.awt.Color[r=0,g=0,b=0]</Schrift>
</Farben>
<FirstGenerationDone>true</FirstGenerationDone>
<History></History>
<InDevelopment>false</InDevelopment>
<Kommentar>:oD</Kommentar>
<NMRelation>false</NMRelation>
<Name>StereotypeScheme</Name>
<Options>
<Count>0</Count>
</Options>
<Panels>
<Anzahl>2</Anzahl>
<Panel0>
<PanelClass></PanelClass>
<PanelNumber>0</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Daten</TabTitle>
<TabToolTipText>Hier können Sie die Daten des Objektes warten.</TabToolTipText>
</Panel0>
<Panel1>
<PanelClass></PanelClass>
<PanelNumber>1</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Tabellen</TabTitle>
<TabToolTipText>Hier finden Sie die Tabellen, denen die Stereotype zugeordnet ist.</TabToolTipText>
</Panel1>
</Panels>
<Spalten>
<Anzahl>11</Anzahl>
<Codegenerator>
<ActiveInApplication>true</ActiveInApplication>
<AdditionalCreateConstraints></AdditionalCreateConstraints>
<Codegeneratoroptionen></Codegeneratoroptionen>
<Codeverzeichnis>platon/scheme</Codeverzeichnis>
<Codieren>false</Codieren>
<DynamicCode>true</DynamicCode>
<Inherited>false</Inherited>
<Kontextname></Kontextname>
<UniqueFormula></UniqueFormula>
</Codegenerator>
<Spalte0>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>StereotypeScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte0>
<Spalte1>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Active</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte1>
<Spalte10>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>true</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Datenschema</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>D</Mnemonic>
<Position>4</Position>
<ReferenceWeight>massiv</ReferenceWeight>
<RessourceIdentifier>ComboBoxDataScheme</RessourceIdentifier>
<ToolTipText>Geben Sie hier das Datenschema an, f&uuml;r das die Stereotype gelten soll.</ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar>Das Datenschema, in dem die Stereotype gelten soll.</Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>DataScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<Referenz>
<Direction0>LEFT</Direction0>
<Direction1>LEFT</Direction1>
<Offset0>25</Offset0>
<Offset1>75</Offset1>
<Spalte>DataScheme</Spalte>
<Tabelle>DataScheme</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>LEFT</Direction0>
<Direction1>LEFT</Direction1>
<Name>Main</Name>
<Offset0>25</Offset0>
<Offset1>75</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte10>
<Spalte2>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Kommentar</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>K</Mnemonic>
<Position>3</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldComment</RessourceIdentifier>
<ToolTipText>Hier finden Sie Platz f&uuml;r Kommentare zur Tabelle oder der Spezifikation.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Comment</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte2>
<Spalte3>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Deleted</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>true</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte3>
<Spalte4>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>true</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bezeichnung</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>B</Mnemonic>
<Position>1</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldDescription</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine eindeutige Bezeichnung f&uuml;r den Datensatz ein. </ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Description</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte4>
<Spalte5>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PTimestamp</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>true</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationDate</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte5>
<Spalte6>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PCName</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationPCName</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte6>
<Spalte7>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>true</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationUser</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte7>
<Spalte8>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Spezifikation</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>S</Mnemonic>
<Position>2</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldSpecification</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine Spezifikation zum Stereotypen ein.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Specification</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte8>
<Spalte9>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Gepr&uuml;ft</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>G</Mnemonic>
<Position>5</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>CheckBoxVerified</RessourceIdentifier>
<ToolTipText>Setzen Sie diese Flagge, wenn die Stereotypenbeschreibung als gepr&uuml;ft gelten soll.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Verified</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte9>
</Spalten>
<Stereotype>
<Anzahl>0</Anzahl>
</Stereotype>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Name>Main</Name>
<X>100</X>
<Y>1075</Y>
</View0>
</Views>
</Tabelle4>
<Tabelle5>
<Aufgehoben>false</Aufgehoben>
<Codegenerator>
<AuswahlMembers>
<Anzahl>1</Anzahl>
<Member0>
<Attribute>OPTIONAL</Attribute>
<Spalte>TableScheme</Spalte>
<Tabelle>StereotypeSchemeTableScheme</Tabelle>
</Member0>
</AuswahlMembers>
<CompareMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>TableScheme</Spalte>
</Member0>
</CompareMembers>
<Equalsmembers>
<Anzahl>3</Anzahl>
<Member0>
<Spalte>Active</Spalte>
</Member0>
<Member1>
<Spalte>Deleted</Spalte>
</Member1>
<Member2>
<Spalte>TableScheme</Spalte>
</Member2>
</Equalsmembers>
<HashCodeMembers>
<Anzahl>0</Anzahl>
</HashCodeMembers>
<NReferenzen>
<Anzahl>0</Anzahl>
</NReferenzen>
<OrderMembers>
<Anzahl>1</Anzahl>
<Member0>
<Richtung>ASC</Richtung>
<Spalte>TableScheme</Spalte>
<Tabelle>StereotypeSchemeTableScheme</Tabelle>
</Member0>
</OrderMembers>
<ToComboStringMembers>
<Anzahl>1</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>TableScheme</Spalte>
<Suffix></Suffix>
</Member0>
</ToComboStringMembers>
<ToStringMembers>
<Anzahl>1</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>TableScheme</Spalte>
<Suffix></Suffix>
</Member0>
</ToStringMembers>
</Codegenerator>
<Farben>
<Hintergrund>pastell-blau</Hintergrund>
<Schrift>java.awt.Color[r=0,g=0,b=0]</Schrift>
</Farben>
<FirstGenerationDone>true</FirstGenerationDone>
<History></History>
<InDevelopment>false</InDevelopment>
<Kommentar>:ob</Kommentar>
<NMRelation>false</NMRelation>
<Name>StereotypeSchemeTableScheme</Name>
<Options>
<Count>0</Count>
</Options>
<Panels>
<Anzahl>1</Anzahl>
<Panel0>
<PanelClass></PanelClass>
<PanelNumber>0</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Daten</TabTitle>
<TabToolTipText>Hier können Sie die Daten des Objektes warten.</TabToolTipText>
</Panel0>
</Panels>
<Spalten>
<Anzahl>7</Anzahl>
<Codegenerator>
<ActiveInApplication>true</ActiveInApplication>
<AdditionalCreateConstraints></AdditionalCreateConstraints>
<Codegeneratoroptionen></Codegeneratoroptionen>
<Codeverzeichnis>platon/scheme</Codeverzeichnis>
<Codieren>false</Codieren>
<DynamicCode>true</DynamicCode>
<Inherited>false</Inherited>
<Kontextname></Kontextname>
<UniqueFormula></UniqueFormula>
</Codegenerator>
<Spalte0>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Active</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte0>
<Spalte1>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Deleted</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte1>
<Spalte2>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PTimestamp</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>true</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationDate</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte2>
<Spalte3>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PCName</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationPCName</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte3>
<Spalte4>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>true</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name><NAME>User</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte4>
<Spalte5>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>StereotypeScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<Referenz>
<Direction0>DOWN</Direction0>
<Direction1>UP</Direction1>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Spalte>StereotypeScheme</Spalte>
<Tabelle>StereotypeScheme</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>DOWN</Direction0>
<Direction1>UP</Direction1>
<Name>Main</Name>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte5>
<Spalte6>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText> </ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>TableScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<Referenz>
<Direction0>UP</Direction0>
<Direction1>DOWN</Direction1>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Spalte>TableScheme</Spalte>
<Tabelle>TableScheme</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>UP</Direction0>
<Direction1>DOWN</Direction1>
<Name>Main</Name>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte6>
</Spalten>
<Stereotype>
<Anzahl>0</Anzahl>
</Stereotype>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Name>Main</Name>
<X>100</X>
<Y>825</Y>
</View0>
</Views>
</Tabelle5>
<Tabelle6>
<Aufgehoben>false</Aufgehoben>
<Codegenerator>
<AuswahlMembers>
<Anzahl>2</Anzahl>
<Member0>
<Attribute>OPTIONAL</Attribute>
<Spalte>Description</Spalte>
<Tabelle>TestTabelle</Tabelle>
</Member0>
<Member1>
<Attribute>OPTIONAL</Attribute>
<Spalte>Token</Spalte>
<Tabelle>TestTabelle</Tabelle>
</Member1>
</AuswahlMembers>
<CompareMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>Description</Spalte>
</Member0>
</CompareMembers>
<Equalsmembers>
<Anzahl>4</Anzahl>
<Member0>
<Spalte>Id</Spalte>
</Member0>
<Member1>
<Spalte>Description</Spalte>
</Member1>
<Member2>
<Spalte>Deleted</Spalte>
</Member2>
<Member3>
<Spalte>Token</Spalte>
</Member3>
</Equalsmembers>
<HashCodeMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>Id</Spalte>
</Member0>
</HashCodeMembers>
<NReferenzen>
<Anzahl>0</Anzahl>
</NReferenzen>
<OrderMembers>
<Anzahl>1</Anzahl>
<Member0>
<Richtung>ASC</Richtung>
<Spalte>Description</Spalte>
<Tabelle>TestTabelle</Tabelle>
</Member0>
</OrderMembers>
<ToComboStringMembers>
<Anzahl>2</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
<Member1>
<Prefix> (</Prefix>
<Spalte>Token</Spalte>
<Suffix>)</Suffix>
</Member1>
</ToComboStringMembers>
<ToStringMembers>
<Anzahl>2</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
<Member1>
<Prefix> (</Prefix>
<Spalte>Token</Spalte>
<Suffix>)</Suffix>
</Member1>
</ToStringMembers>
</Codegenerator>
<Farben>
<Hintergrund>dunkelgr&uuml;n</Hintergrund>
<Schrift>schwarz</Schrift>
</Farben>
<FirstGenerationDone>false</FirstGenerationDone>
<History></History>
<InDevelopment>false</InDevelopment>
<Kommentar></Kommentar>
<NMRelation>false</NMRelation>
<Name>TestTabelle</Name>
<Options>
<Count>0</Count>
</Options>
<Panels>
<Anzahl>1</Anzahl>
<Panel0>
<PanelClass></PanelClass>
<PanelNumber>0</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Daten</TabTitle>
<TabToolTipText>Hier können Sie die Daten des Objekt warten</TabToolTipText>
</Panel0>
</Panels>
<Spalten>
<Anzahl>5</Anzahl>
<Codegenerator>
<ActiveInApplication>false</ActiveInApplication>
<AdditionalCreateConstraints></AdditionalCreateConstraints>
<Codegeneratoroptionen></Codegeneratoroptionen>
<Codeverzeichnis>.</Codeverzeichnis>
<Codieren>true</Codieren>
<DynamicCode>true</DynamicCode>
<Inherited>false</Inherited>
<Kontextname></Kontextname>
<UniqueFormula></UniqueFormula>
</Codegenerator>
<Spalte0>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Id</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte0>
<Spalte1>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue>0</IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Deleted</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte1>
<Spalte2>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bezeichnung</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>B</Mnemonic>
<Position>1</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldDescription</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine eindeutige,aussagekr&auml;ftige Bezeichnung ein.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Description</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte2>
<Spalte3>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Token</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText>K&uuml;rzel</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>K</Mnemonic>
<Position>2</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldToken</RessourceIdentifier>
<ToolTipText>Geben Sie hier ein eindeutiges, aussagekr&auml;ftiges K&uuml;rzel ein.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Token</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>true</Unique>
</Spalte3>
<Spalte4>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Referenz</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<Referenz>
<Direction0>UP</Direction0>
<Direction1>DOWN</Direction1>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Spalte>DomainScheme</Spalte>
<Tabelle>DomainScheme</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>UP</Direction0>
<Direction1>DOWN</Direction1>
<Name>Main</Name>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte4>
</Spalten>
<Stereotype>
<Anzahl>1</Anzahl>
</Stereotype>
<Stereotype0>Deactivatable</Stereotype0>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Name>Main</Name>
<X>500</X>
<Y>1275</Y>
</View0>
</Views>
</Tabelle6>
<Tabelle7>
<Aufgehoben>false</Aufgehoben>
<Codegenerator>
<AuswahlMembers>
<Anzahl>0</Anzahl>
</AuswahlMembers>
<CompareMembers>
<Anzahl>0</Anzahl>
</CompareMembers>
<Equalsmembers>
<Anzahl>0</Anzahl>
</Equalsmembers>
<HashCodeMembers>
<Anzahl>0</Anzahl>
</HashCodeMembers>
<NReferenzen>
<Anzahl>0</Anzahl>
</NReferenzen>
<OrderMembers>
<Anzahl>0</Anzahl>
</OrderMembers>
<ToComboStringMembers>
<Anzahl>0</Anzahl>
</ToComboStringMembers>
<ToStringMembers>
<Anzahl>0</Anzahl>
</ToStringMembers>
</Codegenerator>
<Farben>
<Hintergrund>pastell-gelb</Hintergrund>
<Schrift>schwarz</Schrift>
</Farben>
<FirstGenerationDone>false</FirstGenerationDone>
<History>@changed null - Added.</History>
<InDevelopment>false</InDevelopment>
<Kommentar></Kommentar>
<NMRelation>false</NMRelation>
<Name>MultiKeyTabelle</Name>
<Options>
<Count>0</Count>
</Options>
<Panels>
<Anzahl>1</Anzahl>
<Panel0>
<PanelClass></PanelClass>
<PanelNumber>0</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Daten</TabTitle>
<TabToolTipText>Hier können Sie die Daten des Objekt warten</TabToolTipText>
</Panel0>
</Panels>
<Spalten>
<Anzahl>2</Anzahl>
<Codegenerator>
<ActiveInApplication>false</ActiveInApplication>
<AdditionalCreateConstraints></AdditionalCreateConstraints>
<Codegeneratoroptionen></Codegeneratoroptionen>
<Codeverzeichnis>.</Codeverzeichnis>
<Codieren>true</Codieren>
<DynamicCode>true</DynamicCode>
<Inherited>false</Inherited>
<Kontextname></Kontextname>
<UniqueFormula></UniqueFormula>
</Codegenerator>
<Spalte0>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History>@changed null - Added.</History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Id0</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte0>
<Spalte1>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Token</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History>@changed null - Added.</History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Id1</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte1>
</Spalten>
<Stereotype>
<Anzahl>0</Anzahl>
</Stereotype>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Name>Main</Name>
<X>1075</X>
<Y>1275</Y>
</View0>
</Views>
</Tabelle7>
<Tabelle8>
<Aufgehoben>false</Aufgehoben>
<Codegenerator>
<AuswahlMembers>
<Anzahl>0</Anzahl>
</AuswahlMembers>
<CompareMembers>
<Anzahl>0</Anzahl>
</CompareMembers>
<Equalsmembers>
<Anzahl>0</Anzahl>
</Equalsmembers>
<HashCodeMembers>
<Anzahl>0</Anzahl>
</HashCodeMembers>
<NReferenzen>
<Anzahl>0</Anzahl>
</NReferenzen>
<OrderMembers>
<Anzahl>0</Anzahl>
</OrderMembers>
<ToComboStringMembers>
<Anzahl>0</Anzahl>
</ToComboStringMembers>
<ToStringMembers>
<Anzahl>0</Anzahl>
</ToStringMembers>
</Codegenerator>
<Farben>
<Hintergrund>goldgelb</Hintergrund>
<Schrift>schwarz</Schrift>
</Farben>
<FirstGenerationDone>false</FirstGenerationDone>
<History>@changed null - Added.</History>
<InDevelopment>false</InDevelopment>
<Kommentar></Kommentar>
<NMRelation>false</NMRelation>
<Name>MultiKeyReferenzTabelle</Name>
<Options>
<Count>0</Count>
</Options>
<Panels>
<Anzahl>1</Anzahl>
<Panel0>
<PanelClass></PanelClass>
<PanelNumber>0</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Daten</TabTitle>
<TabToolTipText>Hier können Sie die Daten des Objekt warten</TabToolTipText>
</Panel0>
</Panels>
<Spalten>
<Anzahl>3</Anzahl>
<Codegenerator>
<ActiveInApplication>false</ActiveInApplication>
<AdditionalCreateConstraints></AdditionalCreateConstraints>
<Codegeneratoroptionen></Codegeneratoroptionen>
<Codeverzeichnis>.</Codeverzeichnis>
<Codieren>true</Codieren>
<DynamicCode>true</DynamicCode>
<Inherited>false</Inherited>
<Kontextname></Kontextname>
<UniqueFormula></UniqueFormula>
</Codegenerator>
<Spalte0>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History>@changed null - Added.</History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Id</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte0>
<Spalte1>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History>@changed null - Added.</History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Ref0</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<Referenz>
<Direction0>UP</Direction0>
<Direction1>UP</Direction1>
<Offset0>0</Offset0>
<Offset1>0</Offset1>
<Spalte>Id0</Spalte>
<Tabelle>MultiKeyTabelle</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>UP</Direction0>
<Direction1>UP</Direction1>
<Name>Main</Name>
<Offset0>0</Offset0>
<Offset1>0</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte1>
<Spalte2>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Token</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History>@changed null - Added.</History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Ref1</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<Referenz>
<Direction0>UP</Direction0>
<Direction1>UP</Direction1>
<Offset0>0</Offset0>
<Offset1>0</Offset1>
<Spalte>Id1</Spalte>
<Tabelle>MultiKeyTabelle</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>UP</Direction0>
<Direction1>UP</Direction1>
<Name>Main</Name>
<Offset0>0</Offset0>
<Offset1>0</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte2>
</Spalten>
<Stereotype>
<Anzahl>0</Anzahl>
</Stereotype>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Name>Main</Name>
<X>1075</X>
<Y>1075</Y>
</View0>
</Views>
</Tabelle8>
</Tabellen>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Beschreibung>Diese Sicht beinhaltet alle Tabellen des Schemas</Beschreibung>
<Name>Main</Name>
<ReferenzierteSpaltenAnzeigen>true</ReferenzierteSpaltenAnzeigen>
<Tabelle0>DataScheme</Tabelle0>
<Tabelle1>TableScheme</Tabelle1>
<Tabelle2>DomainScheme</Tabelle2>
<Tabelle3>ColumnScheme</Tabelle3>
<Tabelle4>StereotypeScheme</Tabelle4>
<Tabelle5>StereotypeSchemeTableScheme</Tabelle5>
<Tabelle6>TestTabelle</Tabelle6>
<Tabellenanzahl>7</Tabellenanzahl>
<TechnischeSpaltenVerstecken>false</TechnischeSpaltenVerstecken>
</View0>
</Views>
</Diagramm>
| true |
<Diagramm>
<AdditionalSQLCode>
<SQLCode>
<AdditionalSQLCodePostChanging></AdditionalSQLCodePostChanging>
<AdditionalSQLCodePostReducing></AdditionalSQLCodePostReducing>
<AdditionalSQLCodePreChanging></AdditionalSQLCodePreChanging>
<AdditionalSQLCodePreExtending></AdditionalSQLCodePreExtending>
</SQLCode>
</AdditionalSQLCode>
<Colors>
<Anzahl>23</Anzahl>
<Color0>
<B>255</B>
<G>0</G>
<Name>blau</Name>
<R>0</R>
</Color0>
<Color1>
<B>221</B>
<G>212</G>
<Name>PI:NAME:<NAME>END_PI</Name>
<R>175</R>
</Color1>
<Color10>
<B>192</B>
<G>192</G>
<Name>PI:NAME:<NAME>END_PI</Name>
<R>192</R>
</Color10>
<Color11>
<B>255</B>
<G>0</G>
<Name>PI:NAME:<NAME>END_PI</Name>
<R>255</R>
</Color11>
<Color12>
<B>0</B>
<G>200</G>
<Name>orange</Name>
<R>255</R>
</Color12>
<Color13>
<B>255</B>
<G>247</G>
<Name>PI:NAME:<NAME>END_PI</Name>
<R>211</R>
</Color13>
<Color14>
<B>186</B>
<G>245</G>
<Name>PI:NAME:<NAME>END_PI</Name>
<R>255</R>
</Color14>
<Color15>
<B>234</B>
<G>255</G>
<Name>PI:NAME:<NAME>END_PI&uuml;PI:NAME:<NAME>END_PI</Name>
<R>211</R>
</Color15>
<Color16>
<B>255</B>
<G>211</G>
<Name>PI:NAME:<NAME>END_PI</Name>
<R>244</R>
</Color16>
<Color17>
<B>191</B>
<G>165</G>
<Name>PI:NAME:<NAME>END_PI</Name>
<R>244</R>
</Color17>
<Color18>
<B>175</B>
<G>175</G>
<Name>pink</Name>
<R>255</R>
</Color18>
<Color19>
<B>0</B>
<G>0</G>
<Name>rot</Name>
<R>255</R>
</Color19>
<Color2>
<B>61</B>
<G>125</G>
<Name>PI:NAME:<NAME>END_PI</Name>
<R>170</R>
</Color2>
<Color20>
<B>0</B>
<G>0</G>
<Name>schwarz</Name>
<R>0</R>
</Color20>
<Color21>
<B>255</B>
<G>255</G>
<Name>t&uuml;rkis</Name>
<R>0</R>
</Color21>
<Color22>
<B>255</B>
<G>255</G>
<Name>wei&szlig;</Name>
<R>255</R>
</Color22>
<Color3>
<B>64</B>
<G>64</G>
<Name>dunkelgrau</Name>
<R>64</R>
</Color3>
<Color4>
<B>84</B>
<G>132</G>
<Name>dunkelgr&uuml;n</Name>
<R>94</R>
</Color4>
<Color5>
<B>0</B>
<G>255</G>
<Name>gelb</Name>
<R>255</R>
</Color5>
<Color6>
<B>0</B>
<G>225</G>
<Name>goldgelb</Name>
<R>255</R>
</Color6>
<Color7>
<B>128</B>
<G>128</G>
<Name>grau</Name>
<R>128</R>
</Color7>
<Color8>
<B>0</B>
<G>255</G>
<Name>gr&uuml;n</Name>
<R>0</R>
</Color8>
<Color9>
<B>255</B>
<G>212</G>
<Name>hellblau</Name>
<R>191</R>
</Color9>
</Colors>
<ComplexIndices>
<IndexCount>0</IndexCount>
</ComplexIndices>
<DataSource>
<Import>
<DBName></DBName>
<Description></Description>
<Domains>false</Domains>
<Driver></Driver>
<Name></Name>
<Referenzen>false</Referenzen>
<User></User>
</Import>
<Update>
<DBMode>MYSQL</DBMode>
<DBName>jdbc:mysql://messene/platon</DBName>
<Description></Description>
<DomainFaehig>false</DomainFaehig>
<Driver>com.mysql.jdbc.Driver</Driver>
<FkNotNullBeachten>false</FkNotNullBeachten>
<Name></Name>
<Quote></Quote>
<ReferenzenSetzen>false</ReferenzenSetzen>
<User>platon</User>
</Update>
</DataSource>
<DefaultComment>
<Anzahl>0</Anzahl>
</DefaultComment>
<Domains>
<Anzahl>14</Anzahl>
<Domain0>
<Datatype>4</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar>A boolean value in number format. 0 means false, any other value is true.</Kommentar>
<Length>0</Length>
<NKS>0</NKS>
<Name>Boolean</Name>
<Parameters></Parameters>
</Domain0>
<Domain1>
<Datatype>12</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar>This type is for descriptions in the meaning of names of data records.</Kommentar>
<Length>100</Length>
<NKS>0</NKS>
<Name>Description</Name>
<Parameters></Parameters>
</Domain1>
<Domain10>
<Datatype>12</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar></Kommentar>
<Length>21</Length>
<NKS>0</NKS>
<Name>Password</Name>
<Parameters></Parameters>
</Domain10>
<Domain11>
<Datatype>4</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar></Kommentar>
<Length>0</Length>
<NKS>0</NKS>
<Name>Portnumber</Name>
<Parameters></Parameters>
</Domain11>
<Domain12>
<Datatype>4</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar></Kommentar>
<Length>0</Length>
<NKS>0</NKS>
<Name>Sorting</Name>
<Parameters></Parameters>
</Domain12>
<Domain13>
<Datatype>12</Datatype>
<History></History>
<Initialwert>':o)'</Initialwert>
<Kommentar>A token, that describes the record in a short form.</Kommentar>
<Length>20</Length>
<NKS>0</NKS>
<Name>Token</Name>
<Parameters></Parameters>
</Domain13>
<Domain2>
<Datatype>12</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar></Kommentar>
<Length>255</Length>
<NKS>0</NKS>
<Name>Filename</Name>
<Parameters></Parameters>
</Domain2>
<Domain3>
<Datatype>-5</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar>A GLI is a global local identificator. Fields of this type are used to store comprehensive ids (across more than one databases).</Kommentar>
<Length>0</Length>
<NKS>0</NKS>
<Name>GLI</Name>
<Parameters></Parameters>
</Domain3>
<Domain4>
<Datatype>-5</Datatype>
<History></History>
<Initialwert>-1</Initialwert>
<Kommentar>This type should be used for key data fields.</Kommentar>
<Length>0</Length>
<NKS>0</NKS>
<Name>Ident</Name>
<Parameters></Parameters>
</Domain4>
<Domain5>
<Datatype>12</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar></Kommentar>
<Length>255</Length>
<NKS>0</NKS>
<Name>LongDescription</Name>
<Parameters></Parameters>
</Domain5>
<Domain6>
<Datatype>-5</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar>A type to store more precise manner, than the PTimestamp domain. LongPTimestamps include millis additionally. The format is: YYYYMMDDHHMMSSsss.</Kommentar>
<Length>0</Length>
<NKS>0</NKS>
<Name>LongPTimestamp</Name>
<Parameters></Parameters>
</Domain6>
<Domain7>
<Datatype>-1</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar></Kommentar>
<Length>0</Length>
<NKS>0</NKS>
<Name>Longtext</Name>
<Parameters></Parameters>
</Domain7>
<Domain8>
<Datatype>12</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar>This field contains the name of the Workstation, where the data record has been changed.</Kommentar>
<Length>40</Length>
<NKS>0</NKS>
<Name>PCName</Name>
<Parameters></Parameters>
</Domain8>
<Domain9>
<Datatype>2</Datatype>
<History></History>
<Initialwert>NULL</Initialwert>
<Kommentar>Data fields of this type contain time informations in the following format: YYYYMMDDHHMMSS.</Kommentar>
<Length>14</Length>
<NKS>0</NKS>
<Name>PTimestamp</Name>
<Parameters></Parameters>
</Domain9>
</Domains>
<Factories>
<Object>archimedes.legacy.scheme.DefaultObjectFactory</Object>
</Factories>
<Pages>
<PerColumn>5</PerColumn>
<PerRow>10</PerRow>
</Pages>
<Parameter>
<AdditionalSQLScriptListener>archimedes.scheme.SQLScriptListenerTest01, archimedes.scheme.SQLScriptListenerTest02</AdditionalSQLScriptListener>
<Applicationname>TestModel</Applicationname>
<AufgehobeneAusblenden>false</AufgehobeneAusblenden>
<Autor>ollie</Autor>
<Basepackagename>testmodel</Basepackagename>
<CodeFactoryClassName></CodeFactoryClassName>
<Codebasispfad>~/codetmp/</Codebasispfad>
<DBVersionDBVersionColumn></DBVersionDBVersionColumn>
<DBVersionDescriptionColumn></DBVersionDescriptionColumn>
<DBVersionTablename></DBVersionTablename>
<History></History>
<Kommentar>Archimedesmodell f&uuml;r den Unittest.</Kommentar>
<Name>TestModel</Name>
<Optionen>
<Anzahl>0</Anzahl>
</Optionen>
<PflichtfelderMarkieren>false</PflichtfelderMarkieren>
<ReferenzierteSpaltenAnzeigen>true</ReferenzierteSpaltenAnzeigen>
<SchemaName></SchemaName>
<Schriftgroessen>
<Tabelleninhalte>12</Tabelleninhalte>
<Ueberschriften>24</Ueberschriften>
<Untertitel>12</Untertitel>
</Schriftgroessen>
<Scripte>
<AfterWrite>&lt;null&gt;</AfterWrite>
</Scripte>
<TechnischeFelderAusgrauen>true</TechnischeFelderAusgrauen>
<UdschebtiBaseClassName></UdschebtiBaseClassName>
<Version>2</Version>
<Versionsdatum>09.12.2008</Versionsdatum>
<Versionskommentar>&lt;null&gt;</Versionskommentar>
</Parameter>
<Sequences>
<Count>0</Count>
</Sequences>
<Stereotype>
<Anzahl>4</Anzahl>
<Stereotype0>
<DoNotPrint>false</DoNotPrint>
<HideTable>false</HideTable>
<History></History>
<Kommentar>Diese Stereotype kennzeichnet eine Tabelle, deren Datens&auml;tze nicht gel&ouml;scht, sondern lediglich deaktiviert werden sollen.</Kommentar>
<Name>Deactivatable</Name>
</Stereotype0>
<Stereotype1>
<DoNotPrint>false</DoNotPrint>
<HideTable>false</HideTable>
<History></History>
<Kommentar>Diese Stereotype kennzeichnet eine Tabelle, deren Datens&auml;tze nicht gel&ouml;scht, sondern lediglich deaktiviert werden sollen.</Kommentar>
<Name>Deaktivierbar</Name>
</Stereotype1>
<Stereotype2>
<DoNotPrint>false</DoNotPrint>
<HideTable>false</HideTable>
<History></History>
<Kommentar>-/-</Kommentar>
<Name>System</Name>
</Stereotype2>
<Stereotype3>
<DoNotPrint>false</DoNotPrint>
<HideTable>false</HideTable>
<History></History>
<Kommentar>-/-</Kommentar>
<Name>Test</Name>
</Stereotype3>
</Stereotype>
<Tabellen>
<Anzahl>9</Anzahl>
<Tabelle0>
<Aufgehoben>false</Aufgehoben>
<Codegenerator>
<AuswahlMembers>
<Anzahl>5</Anzahl>
<Member0>
<Attribute>OPTIONAL</Attribute>
<Spalte>Description</Spalte>
<Tabelle>DataScheme</Tabelle>
</Member0>
<Member1>
<Attribute>OPTIONAL</Attribute>
<Spalte>Token</Spalte>
<Tabelle>DataScheme</Tabelle>
</Member1>
<Member2>
<Attribute>OPTIONAL</Attribute>
<Spalte>Version</Spalte>
<Tabelle>DataScheme</Tabelle>
</Member2>
<Member3>
<Attribute>OPTIONAL</Attribute>
<Spalte>LoadModelAtStart</Spalte>
<Tabelle>DataScheme</Tabelle>
</Member3>
<Member4>
<Attribute>OPTIONAL</Attribute>
<Spalte>Request</Spalte>
<Tabelle>DataScheme</Tabelle>
</Member4>
</AuswahlMembers>
<CompareMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>Description</Spalte>
</Member0>
</CompareMembers>
<Equalsmembers>
<Anzahl>4</Anzahl>
<Member0>
<Spalte>DataScheme</Spalte>
</Member0>
<Member1>
<Spalte>Deleted</Spalte>
</Member1>
<Member2>
<Spalte>Description</Spalte>
</Member2>
<Member3>
<Spalte>Token</Spalte>
</Member3>
</Equalsmembers>
<HashCodeMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>DataScheme</Spalte>
</Member0>
</HashCodeMembers>
<NReferenzen>
<Anzahl>0</Anzahl>
</NReferenzen>
<OrderMembers>
<Anzahl>1</Anzahl>
<Member0>
<Richtung>ASC</Richtung>
<Spalte>Description</Spalte>
<Tabelle>DataScheme</Tabelle>
</Member0>
</OrderMembers>
<ToComboStringMembers>
<Anzahl>2</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
<Member1>
<Prefix> (</Prefix>
<Spalte>Token</Spalte>
<Suffix>)</Suffix>
</Member1>
</ToComboStringMembers>
<ToStringMembers>
<Anzahl>2</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
<Member1>
<Prefix> (</Prefix>
<Spalte>Token</Spalte>
<Suffix>)</Suffix>
</Member1>
</ToStringMembers>
</Codegenerator>
<Farben>
<Hintergrund>blaugrau</Hintergrund>
<Schrift>java.awt.Color[r=0,g=0,b=0]</Schrift>
</Farben>
<FirstGenerationDone>true</FirstGenerationDone>
<History></History>
<InDevelopment>false</InDevelopment>
<Kommentar></Kommentar>
<NMRelation>false</NMRelation>
<Name>DataScheme</Name>
<Options>
<Count>0</Count>
</Options>
<Panels>
<Anzahl>1</Anzahl>
<Panel0>
<PanelClass></PanelClass>
<PanelNumber>0</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Daten</TabTitle>
<TabToolTipText>Hier können Sie die Daten des Objektes warten.</TabToolTipText>
</Panel0>
</Panels>
<Spalten>
<Anzahl>15</Anzahl>
<Codegenerator>
<ActiveInApplication>true</ActiveInApplication>
<AdditionalCreateConstraints></AdditionalCreateConstraints>
<Codegeneratoroptionen></Codegeneratoroptionen>
<Codeverzeichnis>platon/scheme</Codeverzeichnis>
<Codieren>false</Codieren>
<DynamicCode>true</DynamicCode>
<Inherited>false</Inherited>
<Kontextname></Kontextname>
<UniqueFormula>Description & Deleted | Token & Deleted</UniqueFormula>
</Codegenerator>
<Spalte0>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>DataScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte0>
<Spalte1>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Active</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte1>
<Spalte10>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>R&uuml;ckfrage</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>R</Mnemonic>
<Position>7</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>CheckBoxRequest</RessourceIdentifier>
<ToolTipText>Setzen Sie diese Flagge, wenn zu dem Datenmodell eine R&uuml;ckfrage besteht.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Request</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte10>
<Spalte11>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>R&uuml;ckfragebeschreibung</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>8</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldRequestDescription</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie die eigentliche Problemstellung der R&uuml;ckfrage hinterlegen.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>RequestDescription</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte11>
<Spalte12>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Spezifikation</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>S</Mnemonic>
<Position>4</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldSpecification</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine Spezifikation zum Datenschema an.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Specification</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte12>
<Spalte13>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Token</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>K&uuml;rzel</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>K</Mnemonic>
<Position>2</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldToken</RessourceIdentifier>
<ToolTipText>Geben Sie hier ein eindeutiges K&uuml;rzel f&uuml;r den Datensatz ein.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Token</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte13>
<Spalte14>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Token</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Aktuelle Datenmodellversion</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>O</Mnemonic>
<Position>9</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldVersion</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie die aktuelle Version des Datenmodells festlegen.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Version</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte14>
<Spalte2>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Filename</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>ADS-Dateiname</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>A</Mnemonic>
<Position>3</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldADSFilePath</RessourceIdentifier>
<ToolTipText>Geben Sie hier den vollst&auml;ndigen Namen der ADS-Datei an, f&uuml;r die die Dokumentation gelten soll.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>ADSFilePath</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte2>
<Spalte3>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Kommentar</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>K</Mnemonic>
<Position>5</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldComment</RessourceIdentifier>
<ToolTipText>Hier finden Sie Platz f&uuml;r Kommentare zur Tabelle oder der Spezifikation.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Comment</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte3>
<Spalte4>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Deleted</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>true</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte4>
<Spalte5>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bezeichnung</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>B</Mnemonic>
<Position>1</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldDescription</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine eindeutige Bezeichnung f&uuml;r den Datensatz ein. </ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Description</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte5>
<Spalte6>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PTimestamp</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationDate</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte6>
<Spalte7>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PCName</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationPCName</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte7>
<Spalte8>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>true</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationUser</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte8>
<Spalte9>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bei Start oder Wechsel laden</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>W</Mnemonic>
<Position>6</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>CheckBoxLoadModelAtStart</RessourceIdentifier>
<ToolTipText>Setzen Sie diese Flagge, wenn die Datenmodelldatei beim Programmstart bzw. bei einem Schemawechsel geladen und abgeglichen werden soll.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar>Diese Flagge mu&szlig; gesetzt werden, wenn die Datenmodelldatei bei geladen und abgeglichen werden soll, sobald das DataScheme gewechselt wird.</Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LoadModelAtStart</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte9>
</Spalten>
<Stereotype>
<Anzahl>0</Anzahl>
</Stereotype>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Name>Main</Name>
<X>100</X>
<Y>75</Y>
</View0>
</Views>
</Tabelle0>
<Tabelle1>
<Aufgehoben>false</Aufgehoben>
<Codegenerator>
<AuswahlMembers>
<Anzahl>8</Anzahl>
<Member0>
<Attribute>OPTIONAL</Attribute>
<Spalte>Description</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member0>
<Member1>
<Attribute>OPTIONAL</Attribute>
<Spalte>Active</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member1>
<Member2>
<Attribute>OPTIONAL</Attribute>
<Spalte>Verified</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member2>
<Member3>
<Attribute>OPTIONAL</Attribute>
<Spalte>Request</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member3>
<Member4>
<Attribute>OPTIONAL</Attribute>
<Spalte>SinceVersion</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member4>
<Member5>
<Attribute>OPTIONAL</Attribute>
<Spalte>TilVersion</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member5>
<Member6>
<Attribute>OPTIONAL</Attribute>
<Spalte>DescriptionSpecificationSheet</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member6>
<Member7>
<Attribute>OPTIONAL</Attribute>
<Spalte>Specification</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member7>
</AuswahlMembers>
<CompareMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>Description</Spalte>
</Member0>
</CompareMembers>
<Equalsmembers>
<Anzahl>4</Anzahl>
<Member0>
<Spalte>TableScheme</Spalte>
</Member0>
<Member1>
<Spalte>Deleted</Spalte>
</Member1>
<Member2>
<Spalte>Description</Spalte>
</Member2>
<Member3>
<Spalte>Specification</Spalte>
</Member3>
</Equalsmembers>
<HashCodeMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>TableScheme</Spalte>
</Member0>
</HashCodeMembers>
<NReferenzen>
<Anzahl>2</Anzahl>
<NReferenz0>
<Alterable>true</Alterable>
<DeleteConfirmationRequired>false</DeleteConfirmationRequired>
<Extensible>false</Extensible>
<Id>0</Id>
<Panel>1</Panel>
<PanelType>standard</PanelType>
<PermitCreate>false</PermitCreate>
<Spalte>TableScheme</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</NReferenz0>
<NReferenz1>
<Alterable>false</Alterable>
<DeleteConfirmationRequired>false</DeleteConfirmationRequired>
<Extensible>false</Extensible>
<Id>1</Id>
<Panel>2</Panel>
<PanelType>standard</PanelType>
<PermitCreate>false</PermitCreate>
<Spalte>TableScheme</Spalte>
<Tabelle>StereotypeSchemeTableScheme</Tabelle>
</NReferenz1>
</NReferenzen>
<OrderMembers>
<Anzahl>1</Anzahl>
<Member0>
<Richtung>ASC</Richtung>
<Spalte>Description</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member0>
</OrderMembers>
<ToComboStringMembers>
<Anzahl>1</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
</ToComboStringMembers>
<ToStringMembers>
<Anzahl>1</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
</ToStringMembers>
</Codegenerator>
<Farben>
<Hintergrund>blaugrau</Hintergrund>
<Schrift>java.awt.Color[r=0,g=0,b=0]</Schrift>
</Farben>
<FirstGenerationDone>true</FirstGenerationDone>
<History></History>
<InDevelopment>false</InDevelopment>
<Kommentar>Diese Klasse enth&auml;lt die Angaben zu den einzelnen Tabellen des beschriebenen Datenschemas.</Kommentar>
<NMRelation>false</NMRelation>
<Name>TableScheme</Name>
<Options>
<Count>0</Count>
</Options>
<Panels>
<Anzahl>3</Anzahl>
<Panel0>
<PanelClass></PanelClass>
<PanelNumber>0</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Daten</TabTitle>
<TabToolTipText>Hier können Sie die Daten des Objektes warten.</TabToolTipText>
</Panel0>
<Panel1>
<PanelClass></PanelClass>
<PanelNumber>1</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Spalten</TabTitle>
<TabToolTipText>Hier finden Sie die Spalten der Tabelle.</TabToolTipText>
</Panel1>
<Panel2>
<PanelClass></PanelClass>
<PanelNumber>2</PanelNumber>
<TabMnemonic>2</TabMnemonic>
<TabTitle>2.Stereotypen</TabTitle>
<TabToolTipText>Hier finden Sie die Stereotypen, die der Tabelle zugeordnet sind.</TabToolTipText>
</Panel2>
</Panels>
<Spalten>
<Anzahl>16</Anzahl>
<Codegenerator>
<ActiveInApplication>true</ActiveInApplication>
<AdditionalCreateConstraints></AdditionalCreateConstraints>
<Codegeneratoroptionen><TestTag>DataScheme, ColumnScheme</TestTag></Codegeneratoroptionen>
<Codeverzeichnis>platon/scheme</Codeverzeichnis>
<Codieren>false</Codieren>
<DynamicCode>true</DynamicCode>
<Inherited>false</Inherited>
<Kontextname></Kontextname>
<UniqueFormula></UniqueFormula>
</Codegenerator>
<Spalte0>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>TableScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte0>
<Spalte1>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Active</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte1>
<Spalte10>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>R&uuml;ckfragebeschreibung</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>8</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldRequestDescription</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie den Inhalt der R&uuml;ckfrage hinterlegen.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>RequestDescription</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte10>
<Spalte11>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Token</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Seit Version</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>9</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldSinceVersion</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie die Version des Datenmodells angeben, ab der die Tabelle Bestandteil des Modells war.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>SinceVersion</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte11>
<Spalte12>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Spezifikation</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>S</Mnemonic>
<Position>2</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldSpecification</RessourceIdentifier>
<ToolTipText>Geben Sie hier die technische Spezifikation um Tabellenschema an.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Specification</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte12>
<Spalte13>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Token</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bis Version</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>10</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldTilVersion</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie die Version des Datenmodells angeben, bis zu der die Tabelle Bestandteil des Datenmodells war.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>TilVersion</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte13>
<Spalte14>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Gepr&uuml;ft</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>G</Mnemonic>
<Position>5</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>CheckBoxVerified</RessourceIdentifier>
<ToolTipText>Setzen Sie diese Flagge, wenn die Tabellenbeschreibung als gepr&uuml;ft gelten soll.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Verified</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte14>
<Spalte15>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>true</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Datenschema</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>4</Position>
<ReferenceWeight>massiv</ReferenceWeight>
<RessourceIdentifier>ComboBoxDatascheme</RessourceIdentifier>
<ToolTipText>Hier finden Sie das Datenschema, zu dem die Tabelle geh&ouml;rt.</ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>DataScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<Referenz>
<Direction0>UP</Direction0>
<Direction1>DOWN</Direction1>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Spalte>DataScheme</Spalte>
<Tabelle>DataScheme</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>UP</Direction0>
<Direction1>DOWN</Direction1>
<Name>Main</Name>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte15>
<Spalte2>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Kommentar</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>K</Mnemonic>
<Position>3</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldComment</RessourceIdentifier>
<ToolTipText>Hier finden Sie Platz f&uuml;r Kommentare zur Tabelle oder der Spezifikation.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Comment</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte2>
<Spalte3>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Deleted</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>true</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte3>
<Spalte4>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>true</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bezeichnung</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>B</Mnemonic>
<Position>1</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldDescription</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine eindeutige Bezeichnung f&uuml;r den Datensatz ein. </ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Description</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte4>
<Spalte5>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bezeichnung (lt. Pflichtenheft)</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>11</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldDescriptionSpecificationSheet</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie die Bezeichnung des Feldes lt. Pflichtenheft angeben, falls diese vom Namen des Datenbankfeldes abweicht.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar>Eine Bezeichnung lt. Pflichtenheft, falls abweichend.</Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>DescriptionSpecificationSheet</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte5>
<Spalte6>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PTimestamp</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationDate</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte6>
<Spalte7>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PCName</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationPCName</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte7>
<Spalte8>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>true</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationUser</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte8>
<Spalte9>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>R&uuml;ckfrage</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>7</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>CheckBoxRequest</RessourceIdentifier>
<ToolTipText>Setzen Sie diese Flagge, wenn Sie zur Tabelle eine R&uuml;ckfrage haben.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Request</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte9>
</Spalten>
<Stereotype>
<Anzahl>0</Anzahl>
</Stereotype>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Name>Main</Name>
<X>100</X>
<Y>425</Y>
</View0>
</Views>
</Tabelle1>
<Tabelle2>
<Aufgehoben>false</Aufgehoben>
<Codegenerator>
<AuswahlMembers>
<Anzahl>5</Anzahl>
<Member0>
<Attribute>OPTIONAL</Attribute>
<Spalte>Description</Spalte>
<Tabelle>DomainScheme</Tabelle>
</Member0>
<Member1>
<Attribute>OPTIONAL</Attribute>
<Spalte>SQLType</Spalte>
<Tabelle>DomainScheme</Tabelle>
</Member1>
<Member2>
<Attribute>OPTIONAL</Attribute>
<Spalte>Active</Spalte>
<Tabelle>DomainScheme</Tabelle>
</Member2>
<Member3>
<Attribute>OPTIONAL</Attribute>
<Spalte>Verified</Spalte>
<Tabelle>DomainScheme</Tabelle>
</Member3>
<Member4>
<Attribute>OPTIONAL</Attribute>
<Spalte>Specification</Spalte>
<Tabelle>DomainScheme</Tabelle>
</Member4>
</AuswahlMembers>
<CompareMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>Description</Spalte>
</Member0>
</CompareMembers>
<Equalsmembers>
<Anzahl>5</Anzahl>
<Member0>
<Spalte>DomainScheme</Spalte>
</Member0>
<Member1>
<Spalte>Active</Spalte>
</Member1>
<Member2>
<Spalte>Deleted</Spalte>
</Member2>
<Member3>
<Spalte>Description</Spalte>
</Member3>
<Member4>
<Spalte>SQLType</Spalte>
</Member4>
</Equalsmembers>
<HashCodeMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>DomainScheme</Spalte>
</Member0>
</HashCodeMembers>
<NReferenzen>
<Anzahl>1</Anzahl>
<NReferenz0>
<Alterable>false</Alterable>
<DeleteConfirmationRequired>false</DeleteConfirmationRequired>
<Extensible>false</Extensible>
<Id>0</Id>
<Panel>1</Panel>
<PanelType>standard</PanelType>
<PermitCreate>false</PermitCreate>
<Spalte>DomainScheme</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</NReferenz0>
</NReferenzen>
<OrderMembers>
<Anzahl>2</Anzahl>
<Member0>
<Richtung>DESC</Richtung>
<Spalte>Active</Spalte>
<Tabelle>DomainScheme</Tabelle>
</Member0>
<Member1>
<Richtung>ASC</Richtung>
<Spalte>Description</Spalte>
<Tabelle>DomainScheme</Tabelle>
</Member1>
</OrderMembers>
<ToComboStringMembers>
<Anzahl>2</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
<Member1>
<Prefix> (</Prefix>
<Spalte>SQLType</Spalte>
<Suffix>)</Suffix>
</Member1>
</ToComboStringMembers>
<ToStringMembers>
<Anzahl>2</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
<Member1>
<Prefix> (</Prefix>
<Spalte>SQLType</Spalte>
<Suffix>)</Suffix>
</Member1>
</ToStringMembers>
</Codegenerator>
<Farben>
<Hintergrund>hellblau</Hintergrund>
<Schrift>java.awt.Color[r=0,g=0,b=0]</Schrift>
</Farben>
<FirstGenerationDone>true</FirstGenerationDone>
<History></History>
<InDevelopment>false</InDevelopment>
<Kommentar></Kommentar>
<NMRelation>false</NMRelation>
<Name>DomainScheme</Name>
<Options>
<Count>0</Count>
</Options>
<Panels>
<Anzahl>2</Anzahl>
<Panel0>
<PanelClass></PanelClass>
<PanelNumber>0</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Daten</TabTitle>
<TabToolTipText>Hier können Sie die Daten des Objektes warten.</TabToolTipText>
</Panel0>
<Panel1>
<PanelClass></PanelClass>
<PanelNumber>1</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Tabellenspalten</TabTitle>
<TabToolTipText>Hier finden Sie die Tabellenspalten dieser Domain.</TabToolTipText>
</Panel1>
</Panels>
<Spalten>
<Anzahl>12</Anzahl>
<Codegenerator>
<ActiveInApplication>true</ActiveInApplication>
<AdditionalCreateConstraints></AdditionalCreateConstraints>
<Codegeneratoroptionen></Codegeneratoroptionen>
<Codeverzeichnis>platon/scheme</Codeverzeichnis>
<Codieren>false</Codieren>
<DynamicCode>true</DynamicCode>
<Inherited>false</Inherited>
<Kontextname></Kontextname>
<UniqueFormula></UniqueFormula>
</Codegenerator>
<Spalte0>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>DomainScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte0>
<Spalte1>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Active</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte1>
<Spalte10>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Gepr&uuml;ft</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>G</Mnemonic>
<Position>6</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>CheckBoxVerified</RessourceIdentifier>
<ToolTipText>Setzen Sie diese Flagge, wenn das Dom&auml;nenschema als gepr&uuml;ft gelten soll.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Verified</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte10>
<Spalte11>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Datenschema</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>D</Mnemonic>
<Position>5</Position>
<ReferenceWeight>massiv</ReferenceWeight>
<RessourceIdentifier>ComboBoxDataScheme</RessourceIdentifier>
<ToolTipText>Geben Sie hier das Datenschema an, f&uuml;r das der Domaintyp gelten soll.</ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar>Das Datenschema, f&uuml;r das Dom&auml;nentyp gelten soll.</Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>DataScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<Referenz>
<Direction0>RIGHT</Direction0>
<Direction1>RIGHT</Direction1>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Spalte>DataScheme</Spalte>
<Tabelle>DataScheme</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>RIGHT</Direction0>
<Direction1>RIGHT</Direction1>
<Name>Main</Name>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte11>
<Spalte2>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Kommentar</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>K</Mnemonic>
<Position>4</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldComment</RessourceIdentifier>
<ToolTipText>Hier finden Sie Platz f&uuml;r Kommentare zur Tabelle oder der Spezifikation.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Comment</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte2>
<Spalte3>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Deleted</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte3>
<Spalte4>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bezeichnung</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>B</Mnemonic>
<Position>1</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldDescription</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine eindeutige Bezeichnung f&uuml;r den Datensatz ein. </ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Description</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte4>
<Spalte5>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PTimestamp</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationDate</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte5>
<Spalte6>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PCName</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationPCName</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte6>
<Spalte7>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>true</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>PI:NAME:<NAME>END_PIModificationUser</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte7>
<Spalte8>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Spezifikation</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>S</Mnemonic>
<Position>3</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldSpecification</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine Spezifikation zum Domainschema an.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Specification</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte8>
<Spalte9>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>SQL-Typ</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>Q</Mnemonic>
<Position>2</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldSQLType</RessourceIdentifier>
<ToolTipText>Geben Sie hier den SQL-Typ an, der hinter dem Domainschema steht.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>SQLType</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte9>
</Spalten>
<Stereotype>
<Anzahl>0</Anzahl>
</Stereotype>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Name>Main</Name>
<X>500</X>
<Y>925</Y>
</View0>
</Views>
</Tabelle2>
<Tabelle3>
<Aufgehoben>false</Aufgehoben>
<Codegenerator>
<AuswahlMembers>
<Anzahl>11</Anzahl>
<Member0>
<Attribute>OPTIONAL</Attribute>
<Spalte>Description</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</Member0>
<Member1>
<Attribute>OPTIONAL</Attribute>
<Spalte>Description</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member1>
<Member10>
<Attribute>OPTIONAL</Attribute>
<Spalte>Specification</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</Member10>
<Member2>
<Attribute>OPTIONAL</Attribute>
<Spalte>Description</Spalte>
<Tabelle>DomainScheme</Tabelle>
</Member2>
<Member3>
<Attribute>OPTIONAL</Attribute>
<Spalte>SQLType</Spalte>
<Tabelle>DomainScheme</Tabelle>
</Member3>
<Member4>
<Attribute>OPTIONAL</Attribute>
<Spalte>Active</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</Member4>
<Member5>
<Attribute>OPTIONAL</Attribute>
<Spalte>Verified</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</Member5>
<Member6>
<Attribute>OPTIONAL</Attribute>
<Spalte>Request</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</Member6>
<Member7>
<Attribute>OPTIONAL</Attribute>
<Spalte>SinceVersion</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</Member7>
<Member8>
<Attribute>OPTIONAL</Attribute>
<Spalte>TilVersion</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</Member8>
<Member9>
<Attribute>OPTIONAL</Attribute>
<Spalte>DescriptionSpecificationSheet</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</Member9>
</AuswahlMembers>
<CompareMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>Description</Spalte>
</Member0>
</CompareMembers>
<Equalsmembers>
<Anzahl>4</Anzahl>
<Member0>
<Spalte>ColumnScheme</Spalte>
</Member0>
<Member1>
<Spalte>Deleted</Spalte>
</Member1>
<Member2>
<Spalte>Description</Spalte>
</Member2>
<Member3>
<Spalte>DomainScheme</Spalte>
</Member3>
</Equalsmembers>
<HashCodeMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>ColumnScheme</Spalte>
</Member0>
</HashCodeMembers>
<NReferenzen>
<Anzahl>0</Anzahl>
</NReferenzen>
<OrderMembers>
<Anzahl>2</Anzahl>
<Member0>
<Richtung>ASC</Richtung>
<Spalte>Description</Spalte>
<Tabelle>ColumnScheme</Tabelle>
</Member0>
<Member1>
<Richtung>ASC</Richtung>
<Spalte>Description</Spalte>
<Tabelle>TableScheme</Tabelle>
</Member1>
</OrderMembers>
<ToComboStringMembers>
<Anzahl>2</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
<Member1>
<Prefix></Prefix>
<Spalte>DomainScheme</Spalte>
<Suffix></Suffix>
</Member1>
</ToComboStringMembers>
<ToStringMembers>
<Anzahl>2</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
<Member1>
<Prefix>(</Prefix>
<Spalte>DomainScheme</Spalte>
<Suffix>)</Suffix>
</Member1>
</ToStringMembers>
</Codegenerator>
<Farben>
<Hintergrund>blaugrau</Hintergrund>
<Schrift>java.awt.Color[r=0,g=0,b=0]</Schrift>
</Farben>
<FirstGenerationDone>true</FirstGenerationDone>
<History></History>
<InDevelopment>false</InDevelopment>
<Kommentar>Diese Klasse enth&auml;lt Informationen &uuml;ber die Datenfelder des beschriebenen Datenmodells.</Kommentar>
<NMRelation>false</NMRelation>
<Name>ColumnScheme</Name>
<Options>
<Count>0</Count>
</Options>
<Panels>
<Anzahl>1</Anzahl>
<Panel0>
<PanelClass></PanelClass>
<PanelNumber>0</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Daten</TabTitle>
<TabToolTipText>Hier können Sie die Daten des Objektes warten.</TabToolTipText>
</Panel0>
</Panels>
<Spalten>
<Anzahl>19</Anzahl>
<Codegenerator>
<ActiveInApplication>true</ActiveInApplication>
<AdditionalCreateConstraints></AdditionalCreateConstraints>
<Codegeneratoroptionen></Codegeneratoroptionen>
<Codeverzeichnis>platon/scheme</Codeverzeichnis>
<Codieren>false</Codieren>
<DynamicCode>true</DynamicCode>
<Inherited>false</Inherited>
<Kontextname></Kontextname>
<UniqueFormula></UniqueFormula>
</Codegenerator>
<Spalte0>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>ColumnScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte0>
<Spalte1>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Active</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte1>
<Spalte10>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>R&uuml;ckfrage</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>6</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>CheckBoxRequest</RessourceIdentifier>
<ToolTipText>Setzen Sie diese Flagge, wenn zu dem Datenfeld eine R&uuml;ckfrage n&ouml;tig ist.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Request</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte10>
<Spalte11>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>R&uuml;ckfragenbeschreibung</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>7</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldRequestDescription</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie die Beschreibung der R&uuml;ckfrage hinterlegen.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>RequestDescription</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte11>
<Spalte12>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Token</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Seit Version</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>9</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldSinceVersion</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie die Version des Datenmodells angeben, ab der die Tabellenspalte Bestandteil des Datenmodells war.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>SinceVersion</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte12>
<Spalte13>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Spezifikation</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>S</Mnemonic>
<Position>3</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldSpecification</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine Spezifikation zum Datenfeld an.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Specification</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte13>
<Spalte14>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Token</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bis Version</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>10</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldTilVersion</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie die Version des Datenmodells angeben, bis zu der die Tabellenspalte ein Bestandteil desselben war.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>TilVersion</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte14>
<Spalte15>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Gepr&uuml;ft</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>G</Mnemonic>
<Position>5</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>CheckBoxVerified</RessourceIdentifier>
<ToolTipText>Setzen Sie diese Flagge, wenn das Tabellenspaltenschema als gepr&uuml;ft gelten soll.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Verified</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte15>
<Spalte16>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>DataScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<Referenz>
<Direction0>UP</Direction0>
<Direction1>RIGHT</Direction1>
<Offset0>25</Offset0>
<Offset1>50</Offset1>
<Spalte>DataScheme</Spalte>
<Tabelle>DataScheme</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>UP</Direction0>
<Direction1>RIGHT</Direction1>
<Name>Main</Name>
<Offset0>25</Offset0>
<Offset1>50</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte16>
<Spalte17>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>true</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Dom&auml;ne (Typ)</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>D</Mnemonic>
<Position>2</Position>
<ReferenceWeight>massiv</ReferenceWeight>
<RessourceIdentifier>ComboBoxDomainScheme</RessourceIdentifier>
<ToolTipText>Legen Sie hier einen Dom&auml;nentyp f&uuml;r das Datenfeld fest.</ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>DomainScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<Referenz>
<Direction0>DOWN</Direction0>
<Direction1>UP</Direction1>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Spalte>DomainScheme</Spalte>
<Tabelle>DomainScheme</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>DOWN</Direction0>
<Direction1>UP</Direction1>
<Name>Main</Name>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte17>
<Spalte18>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>true</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Tabelle</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>T</Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>ComboBoxTableScheme</RessourceIdentifier>
<ToolTipText>Hier finden Sie die Tabelle, zu der das Datenfeld geh&ouml;rt.</ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>TableScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<Referenz>
<Direction0>LEFT</Direction0>
<Direction1>RIGHT</Direction1>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Spalte>TableScheme</Spalte>
<Tabelle>TableScheme</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>LEFT</Direction0>
<Direction1>RIGHT</Direction1>
<Name>Main</Name>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte18>
<Spalte2>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Kommentar</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>K</Mnemonic>
<Position>4</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldComment</RessourceIdentifier>
<ToolTipText>Hier finden Sie Platz f&uuml;r Kommentare zur Tabelle oder der Spezifikation.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Comment</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte2>
<Spalte3>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Deleted</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>true</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte3>
<Spalte4>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>true</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bezeichnung</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>B</Mnemonic>
<Position>1</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldDescription</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine eindeutige Bezeichnung f&uuml;r den Datensatz ein. </ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Description</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte4>
<Spalte5>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bezeichnung (lt. Pflichtenheft)</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>11</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldDescriptionSpecificationSheet</RessourceIdentifier>
<ToolTipText>Hier k&ouml;nnen Sie eine Bezeichnung des Feldes im Pflichtenheft angeben, falls diese vom Namen des Datenbankenfeldes abweicht.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar>Bezeichnung lt. Pflichtenheft, falls diese abweicht.</Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>DescriptionSpecificationSheet</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte5>
<Spalte6>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PTimestamp</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationDate</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte6>
<Spalte7>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PCName</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationPCName</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte7>
<Spalte8>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>true</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationUser</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte8>
<Spalte9>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>true</Disabled>
<Domain>LongDescription</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Referenziert</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>3</Position>
<ReferenceWeight>massiv</ReferenceWeight>
<RessourceIdentifier>ComboBoxReferences</RessourceIdentifier>
<ToolTipText>Hier finden Sie einen Hinweis auf eine durch die Tabellenspalte referenzierte andere Tabellenspalte.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>ReferencesTo</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte9>
</Spalten>
<Stereotype>
<Anzahl>1</Anzahl>
</Stereotype>
<Stereotype0>Test</Stereotype0>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Name>Main</Name>
<X>500</X>
<Y>425</Y>
</View0>
</Views>
</Tabelle3>
<Tabelle4>
<Aufgehoben>false</Aufgehoben>
<Codegenerator>
<AuswahlMembers>
<Anzahl>4</Anzahl>
<Member0>
<Attribute>OPTIONAL</Attribute>
<Spalte>Description</Spalte>
<Tabelle>StereotypeScheme</Tabelle>
</Member0>
<Member1>
<Attribute>OPTIONAL</Attribute>
<Spalte>Active</Spalte>
<Tabelle>StereotypeScheme</Tabelle>
</Member1>
<Member2>
<Attribute>OPTIONAL</Attribute>
<Spalte>Verified</Spalte>
<Tabelle>StereotypeScheme</Tabelle>
</Member2>
<Member3>
<Attribute>OPTIONAL</Attribute>
<Spalte>Specification</Spalte>
<Tabelle>StereotypeScheme</Tabelle>
</Member3>
</AuswahlMembers>
<CompareMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>Description</Spalte>
</Member0>
</CompareMembers>
<Equalsmembers>
<Anzahl>6</Anzahl>
<Member0>
<Spalte>StereotypeScheme</Spalte>
</Member0>
<Member1>
<Spalte>Active</Spalte>
</Member1>
<Member2>
<Spalte>Deleted</Spalte>
</Member2>
<Member3>
<Spalte>Description</Spalte>
</Member3>
<Member4>
<Spalte>Specification</Spalte>
</Member4>
<Member5>
<Spalte>Comment</Spalte>
</Member5>
</Equalsmembers>
<HashCodeMembers>
<Anzahl>0</Anzahl>
</HashCodeMembers>
<NReferenzen>
<Anzahl>1</Anzahl>
<NReferenz0>
<Alterable>false</Alterable>
<DeleteConfirmationRequired>false</DeleteConfirmationRequired>
<Extensible>false</Extensible>
<Id>0</Id>
<Panel>1</Panel>
<PanelType>standard</PanelType>
<PermitCreate>false</PermitCreate>
<Spalte>StereotypeScheme</Spalte>
<Tabelle>StereotypeSchemeTableScheme</Tabelle>
</NReferenz0>
</NReferenzen>
<OrderMembers>
<Anzahl>1</Anzahl>
<Member0>
<Richtung>ASC</Richtung>
<Spalte>Description</Spalte>
<Tabelle>StereotypeScheme</Tabelle>
</Member0>
</OrderMembers>
<ToComboStringMembers>
<Anzahl>1</Anzahl>
<Member0>
<Prefix><< </Prefix>
<Spalte>Description</Spalte>
<Suffix> >></Suffix>
</Member0>
</ToComboStringMembers>
<ToStringMembers>
<Anzahl>1</Anzahl>
<Member0>
<Prefix><< </Prefix>
<Spalte>Description</Spalte>
<Suffix> >></Suffix>
</Member0>
</ToStringMembers>
</Codegenerator>
<Farben>
<Hintergrund>hellblau</Hintergrund>
<Schrift>java.awt.Color[r=0,g=0,b=0]</Schrift>
</Farben>
<FirstGenerationDone>true</FirstGenerationDone>
<History></History>
<InDevelopment>false</InDevelopment>
<Kommentar>:oD</Kommentar>
<NMRelation>false</NMRelation>
<Name>StereotypeScheme</Name>
<Options>
<Count>0</Count>
</Options>
<Panels>
<Anzahl>2</Anzahl>
<Panel0>
<PanelClass></PanelClass>
<PanelNumber>0</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Daten</TabTitle>
<TabToolTipText>Hier können Sie die Daten des Objektes warten.</TabToolTipText>
</Panel0>
<Panel1>
<PanelClass></PanelClass>
<PanelNumber>1</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Tabellen</TabTitle>
<TabToolTipText>Hier finden Sie die Tabellen, denen die Stereotype zugeordnet ist.</TabToolTipText>
</Panel1>
</Panels>
<Spalten>
<Anzahl>11</Anzahl>
<Codegenerator>
<ActiveInApplication>true</ActiveInApplication>
<AdditionalCreateConstraints></AdditionalCreateConstraints>
<Codegeneratoroptionen></Codegeneratoroptionen>
<Codeverzeichnis>platon/scheme</Codeverzeichnis>
<Codieren>false</Codieren>
<DynamicCode>true</DynamicCode>
<Inherited>false</Inherited>
<Kontextname></Kontextname>
<UniqueFormula></UniqueFormula>
</Codegenerator>
<Spalte0>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>StereotypeScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte0>
<Spalte1>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Active</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte1>
<Spalte10>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>true</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Datenschema</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>D</Mnemonic>
<Position>4</Position>
<ReferenceWeight>massiv</ReferenceWeight>
<RessourceIdentifier>ComboBoxDataScheme</RessourceIdentifier>
<ToolTipText>Geben Sie hier das Datenschema an, f&uuml;r das die Stereotype gelten soll.</ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar>Das Datenschema, in dem die Stereotype gelten soll.</Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>DataScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<Referenz>
<Direction0>LEFT</Direction0>
<Direction1>LEFT</Direction1>
<Offset0>25</Offset0>
<Offset1>75</Offset1>
<Spalte>DataScheme</Spalte>
<Tabelle>DataScheme</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>LEFT</Direction0>
<Direction1>LEFT</Direction1>
<Name>Main</Name>
<Offset0>25</Offset0>
<Offset1>75</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte10>
<Spalte2>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Kommentar</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>K</Mnemonic>
<Position>3</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldComment</RessourceIdentifier>
<ToolTipText>Hier finden Sie Platz f&uuml;r Kommentare zur Tabelle oder der Spezifikation.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Comment</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte2>
<Spalte3>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Deleted</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>true</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte3>
<Spalte4>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>true</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bezeichnung</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>B</Mnemonic>
<Position>1</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldDescription</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine eindeutige Bezeichnung f&uuml;r den Datensatz ein. </ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Description</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte4>
<Spalte5>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PTimestamp</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>true</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationDate</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte5>
<Spalte6>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PCName</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationPCName</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte6>
<Spalte7>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>true</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationUser</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte7>
<Spalte8>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Longtext</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Spezifikation</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>S</Mnemonic>
<Position>2</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldSpecification</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine Spezifikation zum Stereotypen ein.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Specification</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte8>
<Spalte9>
<AlterInBatch>true</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Gepr&uuml;ft</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>G</Mnemonic>
<Position>5</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>CheckBoxVerified</RessourceIdentifier>
<ToolTipText>Setzen Sie diese Flagge, wenn die Stereotypenbeschreibung als gepr&uuml;ft gelten soll.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Verified</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte9>
</Spalten>
<Stereotype>
<Anzahl>0</Anzahl>
</Stereotype>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Name>Main</Name>
<X>100</X>
<Y>1075</Y>
</View0>
</Views>
</Tabelle4>
<Tabelle5>
<Aufgehoben>false</Aufgehoben>
<Codegenerator>
<AuswahlMembers>
<Anzahl>1</Anzahl>
<Member0>
<Attribute>OPTIONAL</Attribute>
<Spalte>TableScheme</Spalte>
<Tabelle>StereotypeSchemeTableScheme</Tabelle>
</Member0>
</AuswahlMembers>
<CompareMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>TableScheme</Spalte>
</Member0>
</CompareMembers>
<Equalsmembers>
<Anzahl>3</Anzahl>
<Member0>
<Spalte>Active</Spalte>
</Member0>
<Member1>
<Spalte>Deleted</Spalte>
</Member1>
<Member2>
<Spalte>TableScheme</Spalte>
</Member2>
</Equalsmembers>
<HashCodeMembers>
<Anzahl>0</Anzahl>
</HashCodeMembers>
<NReferenzen>
<Anzahl>0</Anzahl>
</NReferenzen>
<OrderMembers>
<Anzahl>1</Anzahl>
<Member0>
<Richtung>ASC</Richtung>
<Spalte>TableScheme</Spalte>
<Tabelle>StereotypeSchemeTableScheme</Tabelle>
</Member0>
</OrderMembers>
<ToComboStringMembers>
<Anzahl>1</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>TableScheme</Spalte>
<Suffix></Suffix>
</Member0>
</ToComboStringMembers>
<ToStringMembers>
<Anzahl>1</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>TableScheme</Spalte>
<Suffix></Suffix>
</Member0>
</ToStringMembers>
</Codegenerator>
<Farben>
<Hintergrund>pastell-blau</Hintergrund>
<Schrift>java.awt.Color[r=0,g=0,b=0]</Schrift>
</Farben>
<FirstGenerationDone>true</FirstGenerationDone>
<History></History>
<InDevelopment>false</InDevelopment>
<Kommentar>:ob</Kommentar>
<NMRelation>false</NMRelation>
<Name>StereotypeSchemeTableScheme</Name>
<Options>
<Count>0</Count>
</Options>
<Panels>
<Anzahl>1</Anzahl>
<Panel0>
<PanelClass></PanelClass>
<PanelNumber>0</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Daten</TabTitle>
<TabToolTipText>Hier können Sie die Daten des Objektes warten.</TabToolTipText>
</Panel0>
</Panels>
<Spalten>
<Anzahl>7</Anzahl>
<Codegenerator>
<ActiveInApplication>true</ActiveInApplication>
<AdditionalCreateConstraints></AdditionalCreateConstraints>
<Codegeneratoroptionen></Codegeneratoroptionen>
<Codeverzeichnis>platon/scheme</Codeverzeichnis>
<Codieren>false</Codieren>
<DynamicCode>true</DynamicCode>
<Inherited>false</Inherited>
<Kontextname></Kontextname>
<UniqueFormula></UniqueFormula>
</Codegenerator>
<Spalte0>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Active</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte0>
<Spalte1>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Deleted</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte1>
<Spalte2>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PTimestamp</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>true</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationDate</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte2>
<Spalte3>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>PCName</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>LastModificationPCName</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte3>
<Spalte4>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText>-</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>true</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>PI:NAME:<NAME>END_PIUser</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>true</TechnicalField>
<Unique>false</Unique>
</Spalte4>
<Spalte5>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>StereotypeScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<Referenz>
<Direction0>DOWN</Direction0>
<Direction1>UP</Direction1>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Spalte>StereotypeScheme</Spalte>
<Tabelle>StereotypeScheme</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>DOWN</Direction0>
<Direction1>UP</Direction1>
<Name>Main</Name>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte5>
<Spalte6>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText> </ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>TableScheme</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<Referenz>
<Direction0>UP</Direction0>
<Direction1>DOWN</Direction1>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Spalte>TableScheme</Spalte>
<Tabelle>TableScheme</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>UP</Direction0>
<Direction1>DOWN</Direction1>
<Name>Main</Name>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte6>
</Spalten>
<Stereotype>
<Anzahl>0</Anzahl>
</Stereotype>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Name>Main</Name>
<X>100</X>
<Y>825</Y>
</View0>
</Views>
</Tabelle5>
<Tabelle6>
<Aufgehoben>false</Aufgehoben>
<Codegenerator>
<AuswahlMembers>
<Anzahl>2</Anzahl>
<Member0>
<Attribute>OPTIONAL</Attribute>
<Spalte>Description</Spalte>
<Tabelle>TestTabelle</Tabelle>
</Member0>
<Member1>
<Attribute>OPTIONAL</Attribute>
<Spalte>Token</Spalte>
<Tabelle>TestTabelle</Tabelle>
</Member1>
</AuswahlMembers>
<CompareMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>Description</Spalte>
</Member0>
</CompareMembers>
<Equalsmembers>
<Anzahl>4</Anzahl>
<Member0>
<Spalte>Id</Spalte>
</Member0>
<Member1>
<Spalte>Description</Spalte>
</Member1>
<Member2>
<Spalte>Deleted</Spalte>
</Member2>
<Member3>
<Spalte>Token</Spalte>
</Member3>
</Equalsmembers>
<HashCodeMembers>
<Anzahl>1</Anzahl>
<Member0>
<Spalte>Id</Spalte>
</Member0>
</HashCodeMembers>
<NReferenzen>
<Anzahl>0</Anzahl>
</NReferenzen>
<OrderMembers>
<Anzahl>1</Anzahl>
<Member0>
<Richtung>ASC</Richtung>
<Spalte>Description</Spalte>
<Tabelle>TestTabelle</Tabelle>
</Member0>
</OrderMembers>
<ToComboStringMembers>
<Anzahl>2</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
<Member1>
<Prefix> (</Prefix>
<Spalte>Token</Spalte>
<Suffix>)</Suffix>
</Member1>
</ToComboStringMembers>
<ToStringMembers>
<Anzahl>2</Anzahl>
<Member0>
<Prefix></Prefix>
<Spalte>Description</Spalte>
<Suffix></Suffix>
</Member0>
<Member1>
<Prefix> (</Prefix>
<Spalte>Token</Spalte>
<Suffix>)</Suffix>
</Member1>
</ToStringMembers>
</Codegenerator>
<Farben>
<Hintergrund>dunkelgr&uuml;n</Hintergrund>
<Schrift>schwarz</Schrift>
</Farben>
<FirstGenerationDone>false</FirstGenerationDone>
<History></History>
<InDevelopment>false</InDevelopment>
<Kommentar></Kommentar>
<NMRelation>false</NMRelation>
<Name>TestTabelle</Name>
<Options>
<Count>0</Count>
</Options>
<Panels>
<Anzahl>1</Anzahl>
<Panel0>
<PanelClass></PanelClass>
<PanelNumber>0</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Daten</TabTitle>
<TabToolTipText>Hier können Sie die Daten des Objekt warten</TabToolTipText>
</Panel0>
</Panels>
<Spalten>
<Anzahl>5</Anzahl>
<Codegenerator>
<ActiveInApplication>false</ActiveInApplication>
<AdditionalCreateConstraints></AdditionalCreateConstraints>
<Codegeneratoroptionen></Codegeneratoroptionen>
<Codeverzeichnis>.</Codeverzeichnis>
<Codieren>true</Codieren>
<DynamicCode>true</DynamicCode>
<Inherited>false</Inherited>
<Kontextname></Kontextname>
<UniqueFormula></UniqueFormula>
</Codegenerator>
<Spalte0>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Id</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte0>
<Spalte1>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Boolean</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue>0</IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Deleted</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte1>
<Spalte2>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>true</Editormember>
<LabelText>Bezeichnung</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>B</Mnemonic>
<Position>1</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldDescription</RessourceIdentifier>
<ToolTipText>Geben Sie hier eine eindeutige,aussagekr&auml;ftige Bezeichnung ein.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Description</Name>
<NotNull>true</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte2>
<Spalte3>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Token</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText>K&uuml;rzel</LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic>K</Mnemonic>
<Position>2</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier>TextFieldToken</RessourceIdentifier>
<ToolTipText>Geben Sie hier ein eindeutiges, aussagekr&auml;ftiges K&uuml;rzel ein.</ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>true</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Token</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>true</Unique>
</Spalte3>
<Spalte4>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History></History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Referenz</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<Referenz>
<Direction0>UP</Direction0>
<Direction1>DOWN</Direction1>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Spalte>DomainScheme</Spalte>
<Tabelle>DomainScheme</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>UP</Direction0>
<Direction1>DOWN</Direction1>
<Name>Main</Name>
<Offset0>25</Offset0>
<Offset1>25</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte4>
</Spalten>
<Stereotype>
<Anzahl>1</Anzahl>
</Stereotype>
<Stereotype0>Deactivatable</Stereotype0>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Name>Main</Name>
<X>500</X>
<Y>1275</Y>
</View0>
</Views>
</Tabelle6>
<Tabelle7>
<Aufgehoben>false</Aufgehoben>
<Codegenerator>
<AuswahlMembers>
<Anzahl>0</Anzahl>
</AuswahlMembers>
<CompareMembers>
<Anzahl>0</Anzahl>
</CompareMembers>
<Equalsmembers>
<Anzahl>0</Anzahl>
</Equalsmembers>
<HashCodeMembers>
<Anzahl>0</Anzahl>
</HashCodeMembers>
<NReferenzen>
<Anzahl>0</Anzahl>
</NReferenzen>
<OrderMembers>
<Anzahl>0</Anzahl>
</OrderMembers>
<ToComboStringMembers>
<Anzahl>0</Anzahl>
</ToComboStringMembers>
<ToStringMembers>
<Anzahl>0</Anzahl>
</ToStringMembers>
</Codegenerator>
<Farben>
<Hintergrund>pastell-gelb</Hintergrund>
<Schrift>schwarz</Schrift>
</Farben>
<FirstGenerationDone>false</FirstGenerationDone>
<History>@changed null - Added.</History>
<InDevelopment>false</InDevelopment>
<Kommentar></Kommentar>
<NMRelation>false</NMRelation>
<Name>MultiKeyTabelle</Name>
<Options>
<Count>0</Count>
</Options>
<Panels>
<Anzahl>1</Anzahl>
<Panel0>
<PanelClass></PanelClass>
<PanelNumber>0</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Daten</TabTitle>
<TabToolTipText>Hier können Sie die Daten des Objekt warten</TabToolTipText>
</Panel0>
</Panels>
<Spalten>
<Anzahl>2</Anzahl>
<Codegenerator>
<ActiveInApplication>false</ActiveInApplication>
<AdditionalCreateConstraints></AdditionalCreateConstraints>
<Codegeneratoroptionen></Codegeneratoroptionen>
<Codeverzeichnis>.</Codeverzeichnis>
<Codieren>true</Codieren>
<DynamicCode>true</DynamicCode>
<Inherited>false</Inherited>
<Kontextname></Kontextname>
<UniqueFormula></UniqueFormula>
</Codegenerator>
<Spalte0>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History>@changed null - Added.</History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Id0</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte0>
<Spalte1>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Token</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History>@changed null - Added.</History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Id1</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte1>
</Spalten>
<Stereotype>
<Anzahl>0</Anzahl>
</Stereotype>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Name>Main</Name>
<X>1075</X>
<Y>1275</Y>
</View0>
</Views>
</Tabelle7>
<Tabelle8>
<Aufgehoben>false</Aufgehoben>
<Codegenerator>
<AuswahlMembers>
<Anzahl>0</Anzahl>
</AuswahlMembers>
<CompareMembers>
<Anzahl>0</Anzahl>
</CompareMembers>
<Equalsmembers>
<Anzahl>0</Anzahl>
</Equalsmembers>
<HashCodeMembers>
<Anzahl>0</Anzahl>
</HashCodeMembers>
<NReferenzen>
<Anzahl>0</Anzahl>
</NReferenzen>
<OrderMembers>
<Anzahl>0</Anzahl>
</OrderMembers>
<ToComboStringMembers>
<Anzahl>0</Anzahl>
</ToComboStringMembers>
<ToStringMembers>
<Anzahl>0</Anzahl>
</ToStringMembers>
</Codegenerator>
<Farben>
<Hintergrund>goldgelb</Hintergrund>
<Schrift>schwarz</Schrift>
</Farben>
<FirstGenerationDone>false</FirstGenerationDone>
<History>@changed null - Added.</History>
<InDevelopment>false</InDevelopment>
<Kommentar></Kommentar>
<NMRelation>false</NMRelation>
<Name>MultiKeyReferenzTabelle</Name>
<Options>
<Count>0</Count>
</Options>
<Panels>
<Anzahl>1</Anzahl>
<Panel0>
<PanelClass></PanelClass>
<PanelNumber>0</PanelNumber>
<TabMnemonic>1</TabMnemonic>
<TabTitle>1.Daten</TabTitle>
<TabToolTipText>Hier können Sie die Daten des Objekt warten</TabToolTipText>
</Panel0>
</Panels>
<Spalten>
<Anzahl>3</Anzahl>
<Codegenerator>
<ActiveInApplication>false</ActiveInApplication>
<AdditionalCreateConstraints></AdditionalCreateConstraints>
<Codegeneratoroptionen></Codegeneratoroptionen>
<Codeverzeichnis>.</Codeverzeichnis>
<Codieren>true</Codieren>
<DynamicCode>true</DynamicCode>
<Inherited>false</Inherited>
<Kontextname></Kontextname>
<UniqueFormula></UniqueFormula>
</Codegenerator>
<Spalte0>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>true</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Ident</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>false</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History>@changed null - Added.</History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Id</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>true</PrimaryKey>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte0>
<Spalte1>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Description</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History>@changed null - Added.</History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Ref0</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<Referenz>
<Direction0>UP</Direction0>
<Direction1>UP</Direction1>
<Offset0>0</Offset0>
<Offset1>0</Offset1>
<Spalte>Id0</Spalte>
<Tabelle>MultiKeyTabelle</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>UP</Direction0>
<Direction1>UP</Direction1>
<Name>Main</Name>
<Offset0>0</Offset0>
<Offset1>0</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte1>
<Spalte2>
<AlterInBatch>false</AlterInBatch>
<Aufgehoben>false</Aufgehoben>
<CanBeReferenced>false</CanBeReferenced>
<Disabled>false</Disabled>
<Domain>Token</Domain>
<Editordescriptor>
<Editormember>false</Editormember>
<LabelText></LabelText>
<MaxCharacters>0</MaxCharacters>
<Mnemonic></Mnemonic>
<Position>0</Position>
<ReferenceWeight>keine</ReferenceWeight>
<RessourceIdentifier></RessourceIdentifier>
<ToolTipText></ToolTipText>
</Editordescriptor>
<ForeignKey>true</ForeignKey>
<Global>false</Global>
<GlobalId>false</GlobalId>
<HideReference>false</HideReference>
<History>@changed null - Added.</History>
<IndexSearchMember>false</IndexSearchMember>
<Indexed>false</Indexed>
<IndividualDefaultValue></IndividualDefaultValue>
<Kodiert>false</Kodiert>
<Kommentar></Kommentar>
<Konsistenz>
<Writeablemember>false</Writeablemember>
</Konsistenz>
<LastModificationField>false</LastModificationField>
<ListItemField>false</ListItemField>
<Name>Ref1</Name>
<NotNull>false</NotNull>
<PanelNumber>0</PanelNumber>
<Parameter></Parameter>
<PrimaryKey>false</PrimaryKey>
<Referenz>
<Direction0>UP</Direction0>
<Direction1>UP</Direction1>
<Offset0>0</Offset0>
<Offset1>0</Offset1>
<Spalte>Id1</Spalte>
<Tabelle>MultiKeyTabelle</Tabelle>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Direction0>UP</Direction0>
<Direction1>UP</Direction1>
<Name>Main</Name>
<Offset0>0</Offset0>
<Offset1>0</Offset1>
<Points>
<Anzahl>0</Anzahl>
</Points>
</View0>
</Views>
</Referenz>
<RemovedStateField>false</RemovedStateField>
<SequenceForKeyGeneration></SequenceForKeyGeneration>
<TechnicalField>false</TechnicalField>
<Unique>false</Unique>
</Spalte2>
</Spalten>
<Stereotype>
<Anzahl>0</Anzahl>
</Stereotype>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Name>Main</Name>
<X>1075</X>
<Y>1075</Y>
</View0>
</Views>
</Tabelle8>
</Tabellen>
<Views>
<Anzahl>1</Anzahl>
<View0>
<Beschreibung>Diese Sicht beinhaltet alle Tabellen des Schemas</Beschreibung>
<Name>Main</Name>
<ReferenzierteSpaltenAnzeigen>true</ReferenzierteSpaltenAnzeigen>
<Tabelle0>DataScheme</Tabelle0>
<Tabelle1>TableScheme</Tabelle1>
<Tabelle2>DomainScheme</Tabelle2>
<Tabelle3>ColumnScheme</Tabelle3>
<Tabelle4>StereotypeScheme</Tabelle4>
<Tabelle5>StereotypeSchemeTableScheme</Tabelle5>
<Tabelle6>TestTabelle</Tabelle6>
<Tabellenanzahl>7</Tabellenanzahl>
<TechnischeSpaltenVerstecken>false</TechnischeSpaltenVerstecken>
</View0>
</Views>
</Diagramm>
|
[
{
"context": "---------------------\n-- Copyright (c) 2006-2013, Maxim Reznik\n-- All rights reserved.\n--\n-- Redistribution an",
"end": 1052,
"score": 0.9998198747634888,
"start": 1040,
"tag": "NAME",
"value": "Maxim Reznik"
},
{
"context": "the distribution.\n-- * Neither the name of the Maxim Reznik, IE nor the names of its\n-- contributors ma",
"end": 1653,
"score": 0.9995496869087219,
"start": 1641,
"tag": "NAME",
"value": "Maxim Reznik"
}
] |
tools/xml2ayacc/encoding/encodings-read.ads
|
faelys/gela-asis
| 4 |
--------------------------------------------------------
-- E n c o d i n g s --
-- --
-- Tools for convertion strings between Unicode and --
-- national/vendor character sets. --
-- - - - - - - - - - --
-- Read copyright and license at the end of this file --
--------------------------------------------------------
with Encodings.Maps;
package Encodings.Read is
type Mapping
(Start : Character;
Ranges_Count : Maps.Range_Count;
Char_Count : Maps.Backward_Index)
is
record
Forward : Maps.Forward_Map (Start .. Character'Last);
Ranges : Maps.Wide_Ranges (1 .. Ranges_Count);
Backward : Maps.Backward_Map (1 .. Char_Count);
end record;
function Table (File_Name : String) return Mapping;
end Encodings.Read;
------------------------------------------------------------------------------
-- Copyright (c) 2006-2013, Maxim Reznik
-- 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 Maxim Reznik, 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 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.
------------------------------------------------------------------------------
|
28477
|
--------------------------------------------------------
-- E n c o d i n g s --
-- --
-- Tools for convertion strings between Unicode and --
-- national/vendor character sets. --
-- - - - - - - - - - --
-- Read copyright and license at the end of this file --
--------------------------------------------------------
with Encodings.Maps;
package Encodings.Read is
type Mapping
(Start : Character;
Ranges_Count : Maps.Range_Count;
Char_Count : Maps.Backward_Index)
is
record
Forward : Maps.Forward_Map (Start .. Character'Last);
Ranges : Maps.Wide_Ranges (1 .. Ranges_Count);
Backward : Maps.Backward_Map (1 .. Char_Count);
end record;
function Table (File_Name : String) return Mapping;
end Encodings.Read;
------------------------------------------------------------------------------
-- Copyright (c) 2006-2013, <NAME>
-- 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 <NAME>, 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 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.
------------------------------------------------------------------------------
| true |
--------------------------------------------------------
-- E n c o d i n g s --
-- --
-- Tools for convertion strings between Unicode and --
-- national/vendor character sets. --
-- - - - - - - - - - --
-- Read copyright and license at the end of this file --
--------------------------------------------------------
with Encodings.Maps;
package Encodings.Read is
type Mapping
(Start : Character;
Ranges_Count : Maps.Range_Count;
Char_Count : Maps.Backward_Index)
is
record
Forward : Maps.Forward_Map (Start .. Character'Last);
Ranges : Maps.Wide_Ranges (1 .. Ranges_Count);
Backward : Maps.Backward_Map (1 .. Char_Count);
end record;
function Table (File_Name : String) return Mapping;
end Encodings.Read;
------------------------------------------------------------------------------
-- Copyright (c) 2006-2013, PI:NAME:<NAME>END_PI
-- 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 PI:NAME:<NAME>END_PI, 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 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.
------------------------------------------------------------------------------
|
[
{
"context": "> Self.Destination,\n Message_Name => \"Ping\",\n Data => Empty_Tuple,\n ",
"end": 2631,
"score": 0.9732617139816284,
"start": 2627,
"tag": "NAME",
"value": "Ping"
}
] |
kv-avm-test-runners.adb
|
davidkristola/vole
| 4 |
with Ada.Unchecked_Deallocation;
with kv.avm.Log; use kv.avm.Log;
with kv.avm.Actor_Pool;
package body kv.avm.Test.Runners is
use Interfaces;
-----------------------------------------------------------------------------
procedure Execute
(Self : in out Base_Behavior_Type;
Runner : in out Runner_Type'CLASS) is
begin
Put_Line("Base_Behavior_Type for " & Runner.Image & ", Self.Remaining = " & Natural'IMAGE(Self.Remaining));
if Self.Remaining = 0 then
Do_It_Now(Base_Behavior_Type'CLASS(Self), Runner);
Self.Remaining := Self.Cycle_Time;
else
Self.Remaining := Self.Remaining - 1;
end if;
end Execute;
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
type Consume_After_X is new Base_Behavior_Type with null record;
type Consume_After_X_Access is access all Consume_After_X;
procedure Free is new Ada.Unchecked_Deallocation(Consume_After_X, Consume_After_X_Access);
-----------------------------------------------------------------------------
procedure Do_It_Now
(Self : in out Consume_After_X;
Runner : in out Runner_Type'CLASS) is
begin
Runner.Running := False;
end Do_It_Now;
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
type Send_After_X is new Base_Behavior_Type with
record
Destination : kv.avm.Actor_References.Actor_Reference_Type;
end record;
type Send_After_X_Access is access all Send_After_X;
procedure Free is new Ada.Unchecked_Deallocation(Send_After_X, Send_After_X_Access);
-----------------------------------------------------------------------------
procedure Execute
(Self : in out Send_After_X;
Runner : in out Runner_Type'CLASS) is
Machine : kv.avm.Control.Control_Access;
Empty_Tuple : aliased kv.avm.Tuples.Tuple_Type;
Message : kv.avm.Messages.Message_Type;
begin
Put_Line("Send_After_X for " & Runner.Image & ", Self.Remaining = " & Natural'IMAGE(Self.Remaining));
if Self.Remaining = 0 then
Machine := Runner.CPU.Get_Machine;
Empty_Tuple.Initialize;
Empty_Tuple.Fold_Empty;
Message.Initialize
(Source => kv.avm.Actor_References.Null_Reference,
Reply_To => kv.avm.Actor_References.Null_Reference,
Destination => Self.Destination,
Message_Name => "Ping",
Data => Empty_Tuple,
Future => kv.avm.Control.NO_FUTURE);
Machine.Post_Message
(Message => Message,
Status => Runner.Status); -- Important to pass this through
Self.Remaining := Self.Cycle_Time;
else
Runner.Status := kv.avm.Control.Active;
Self.Remaining := Self.Remaining - 1;
end if;
end Execute;
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
type Spawn_After_X is new Base_Behavior_Type with null record;
type Spawn_After_X_Access is access all Spawn_After_X;
procedure Free is new Ada.Unchecked_Deallocation(Spawn_After_X, Spawn_After_X_Access);
-----------------------------------------------------------------------------
procedure Do_It_Now
(Self : in out Spawn_After_X;
Runner : in out Runner_Type'CLASS) is
Machine : kv.avm.Control.Control_Access;
Actor : kv.avm.Actor_References.Actor_Reference_Type;
Empty_Tuple : aliased kv.avm.Tuples.Tuple_Type;
Status : kv.avm.Control.Status_Type;
Message : kv.avm.Messages.Message_Type;
begin
Machine := Runner.CPU.Get_Machine;
Machine.New_Actor("Test_A1", Actor);
Empty_Tuple.Initialize;
Empty_Tuple.Fold_Empty;
Message.Initialize
(Source => kv.avm.Actor_References.Null_Reference,
Reply_To => kv.avm.Actor_References.Null_Reference,
Destination => Actor,
Message_Name => "CONSTRUCTOR",
Data => Empty_Tuple,
Future => kv.avm.Control.NO_FUTURE);
Machine.Post_Message
(Message => Message,
Status => Status);
end Do_It_Now;
-----------------------------------------------------------------------------
procedure Initialize
(Self : in out Runner_Type;
ID : in Interfaces.Unsigned_32;
Next : in Runner_Access) is
Behavior : Consume_After_X_Access;
begin
Self.ID := ID;
Put_Line(Self.Image & ".Initialize");
Self.Next := kv.avm.Executables.Executable_Access(Next);
Behavior := new Consume_After_X;
Behavior.Cycle_Time := 3;
Behavior.Remaining := 3;
Self.Behavior := Behavior_Access(Behavior);
end Initialize;
-----------------------------------------------------------------------------
procedure Free_Behavior
(Self : in out Runner_Type) is
Free_Me : Consume_After_X_Access;
begin
if Self.Behavior /= null then
if Self.Behavior.all in Consume_After_X'CLASS then
Free_Me := Consume_After_X_Access(Self.Behavior);
Free(Free_Me);
Self.Behavior := null;
end if;
end if;
end Free_Behavior;
-----------------------------------------------------------------------------
procedure Set_Behavior_Send
(Self : in out Runner_Type;
Destination : in kv.avm.Actor_References.Actor_Reference_Type;
Cycle_Time : in Natural) is
Behavior : Send_After_X_Access;
begin
Self.Free_Behavior;
Behavior := new Send_After_X;
Behavior.Cycle_Time := Cycle_Time;
Behavior.Remaining := Cycle_Time;
Behavior.Destination := Destination;
Self.Behavior := Behavior_Access(Behavior);
end Set_Behavior_Send;
-----------------------------------------------------------------------------
procedure Set_Behavior_Spawn
(Self : in out Runner_Type;
Cycle_Time : in Natural) is
Behavior : Spawn_After_X_Access;
begin
Self.Free_Behavior;
Behavior := new Spawn_After_X;
Behavior.Cycle_Time := Cycle_Time;
Behavior.Remaining := Cycle_Time;
Self.Behavior := Behavior_Access(Behavior);
end Set_Behavior_Spawn;
-----------------------------------------------------------------------------
procedure Process_Message
(Self : in out Runner_Type;
Message : in kv.avm.Messages.Message_Type) is
begin
Put_Line(Self.Image & ".Process_Message " & Message.Image);
Self.Running := True;
Self.Last_Msg := Message;
end Process_Message;
-----------------------------------------------------------------------------
procedure Process_Gosub
(Self : access Runner_Type;
Tailcall : in Boolean;
Supercall : in Boolean;
Reply_To : in kv.avm.Actor_References.Actor_Reference_Type;
Method : in kv.avm.Registers.String_Type;
Data : access constant kv.avm.Memories.Register_Set_Type;
Future : in Interfaces.Unsigned_32) is
begin
Put_Line(Self.Image & ".Process_Gosub");
end Process_Gosub;
-----------------------------------------------------------------------------
function Can_Accept_Message_Now(Self : Runner_Type; Message : kv.avm.Messages.Message_Type) return Boolean is
begin
Put_Line(Self.Image & ".Can_Accept_Message_Now returning " & Boolean'IMAGE(not Self.Running));
return not Self.Running;
end Can_Accept_Message_Now;
-----------------------------------------------------------------------------
function Program_Counter
(Self : in Runner_Type) return Interfaces.Unsigned_32 is
begin
Put_Line(Self.Image & ".Program_Counter = " & Interfaces.Unsigned_32'IMAGE(Self.PC));
return Self.PC;
end Program_Counter;
-----------------------------------------------------------------------------
function Is_Running
(Self : in Runner_Type) return Boolean is
begin
Put_Line(Self.Image & ".Is_Running = " & Boolean'IMAGE(Self.Running));
return Self.Running;
end Is_Running;
-----------------------------------------------------------------------------
procedure Step
(Self : access Runner_Type;
Processor : access kv.avm.Processors.Processor_Type;
Status : out kv.avm.Control.Status_Type) is
begin
Put_Line(Self.Image & ".Step");
Self.CPU := Processor.all'ACCESS;
Self.PC := Self.PC + 1;
if Self.Behavior /= null then
Self.Behavior.Execute(Self.all);
end if;
Status := Self.Status;
end Step;
-----------------------------------------------------------------------------
procedure Process_Internal_Response
(Self : in out Runner_Type;
Answer : in kv.avm.Tuples.Tuple_Type) is
begin
Put_Line(Self.Image & ".Process_Internal_Response");
end Process_Internal_Response;
-----------------------------------------------------------------------------
procedure Resolve_Future
(Self : in out Runner_Type;
Answer : in kv.avm.Tuples.Tuple_Type;
Future : in Interfaces.Unsigned_32) is
begin
Put_Line(Self.Image & ".Resolve_Future");
end Resolve_Future;
-----------------------------------------------------------------------------
procedure Halt_Actor
(Self : in out Runner_Type) is
begin
Put_Line(Self.Image & ".Halt_Actor");
Self.Running := False;
end Halt_Actor;
-----------------------------------------------------------------------------
function Reachable(Self : Runner_Type) return kv.avm.Actor_References.Sets.Set is
begin
return kv.avm.Actor_References.Sets.Empty_Set;
end Reachable;
-----------------------------------------------------------------------------
function Image(Self : Runner_Type) return String is
Id_Img : constant String := Interfaces.Unsigned_32'IMAGE(Self.ID);
begin
return "Runner_"&Id_Img(2 .. Id_Img'LAST);
end Image;
-----------------------------------------------------------------------------
function Debug_Info(Self : Runner_Type) return String is
begin
return Self.Image & ".Debug_Info";
end Debug_Info;
-----------------------------------------------------------------------------
procedure New_Executable
(Self : in out Runner_Factory;
Actor : in kv.avm.Actors.Actor_Access;
Machine : in kv.avm.Control.Control_Access;
Executable : out kv.avm.Executables.Executable_Access;
Reference : out kv.avm.Actor_References.Actor_Reference_Type) is
Instance : Runner_Access;
begin
Put_Line("Runner_Factory.New_Executable");
Instance := new Runner_Type;
Self.Count := Self.Count + 1;
Instance.Initialize(Self.Count, Self.Head);
Self.Head := Instance;
kv.avm.Actor_Pool.Add(kv.avm.Executables.Executable_Access(Instance), Reference);
Executable := kv.avm.Executables.Executable_Access(Instance);
end New_Executable;
-----------------------------------------------------------------------------
function Get_Allocated_Count(Self : Runner_Factory) return Natural is
begin
return Natural(Self.Count);
end Get_Allocated_Count;
-----------------------------------------------------------------------------
function Runner_By_ID(Runner : Runner_Access; ID : Interfaces.Unsigned_32) return Runner_Access is
begin
if Runner.ID = ID then
return Runner;
else
return Runner_By_ID(Runner_Access(Runner.Next), ID);
end if;
end Runner_By_ID;
-----------------------------------------------------------------------------
function Get_Runner_By_ID(Self : Runner_Factory; ID : Interfaces.Unsigned_32) return Runner_Access is
begin
return Runner_By_ID(Self.Head, ID);
end Get_Runner_By_ID;
end kv.avm.Test.Runners;
|
29171
|
with Ada.Unchecked_Deallocation;
with kv.avm.Log; use kv.avm.Log;
with kv.avm.Actor_Pool;
package body kv.avm.Test.Runners is
use Interfaces;
-----------------------------------------------------------------------------
procedure Execute
(Self : in out Base_Behavior_Type;
Runner : in out Runner_Type'CLASS) is
begin
Put_Line("Base_Behavior_Type for " & Runner.Image & ", Self.Remaining = " & Natural'IMAGE(Self.Remaining));
if Self.Remaining = 0 then
Do_It_Now(Base_Behavior_Type'CLASS(Self), Runner);
Self.Remaining := Self.Cycle_Time;
else
Self.Remaining := Self.Remaining - 1;
end if;
end Execute;
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
type Consume_After_X is new Base_Behavior_Type with null record;
type Consume_After_X_Access is access all Consume_After_X;
procedure Free is new Ada.Unchecked_Deallocation(Consume_After_X, Consume_After_X_Access);
-----------------------------------------------------------------------------
procedure Do_It_Now
(Self : in out Consume_After_X;
Runner : in out Runner_Type'CLASS) is
begin
Runner.Running := False;
end Do_It_Now;
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
type Send_After_X is new Base_Behavior_Type with
record
Destination : kv.avm.Actor_References.Actor_Reference_Type;
end record;
type Send_After_X_Access is access all Send_After_X;
procedure Free is new Ada.Unchecked_Deallocation(Send_After_X, Send_After_X_Access);
-----------------------------------------------------------------------------
procedure Execute
(Self : in out Send_After_X;
Runner : in out Runner_Type'CLASS) is
Machine : kv.avm.Control.Control_Access;
Empty_Tuple : aliased kv.avm.Tuples.Tuple_Type;
Message : kv.avm.Messages.Message_Type;
begin
Put_Line("Send_After_X for " & Runner.Image & ", Self.Remaining = " & Natural'IMAGE(Self.Remaining));
if Self.Remaining = 0 then
Machine := Runner.CPU.Get_Machine;
Empty_Tuple.Initialize;
Empty_Tuple.Fold_Empty;
Message.Initialize
(Source => kv.avm.Actor_References.Null_Reference,
Reply_To => kv.avm.Actor_References.Null_Reference,
Destination => Self.Destination,
Message_Name => "<NAME>",
Data => Empty_Tuple,
Future => kv.avm.Control.NO_FUTURE);
Machine.Post_Message
(Message => Message,
Status => Runner.Status); -- Important to pass this through
Self.Remaining := Self.Cycle_Time;
else
Runner.Status := kv.avm.Control.Active;
Self.Remaining := Self.Remaining - 1;
end if;
end Execute;
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
type Spawn_After_X is new Base_Behavior_Type with null record;
type Spawn_After_X_Access is access all Spawn_After_X;
procedure Free is new Ada.Unchecked_Deallocation(Spawn_After_X, Spawn_After_X_Access);
-----------------------------------------------------------------------------
procedure Do_It_Now
(Self : in out Spawn_After_X;
Runner : in out Runner_Type'CLASS) is
Machine : kv.avm.Control.Control_Access;
Actor : kv.avm.Actor_References.Actor_Reference_Type;
Empty_Tuple : aliased kv.avm.Tuples.Tuple_Type;
Status : kv.avm.Control.Status_Type;
Message : kv.avm.Messages.Message_Type;
begin
Machine := Runner.CPU.Get_Machine;
Machine.New_Actor("Test_A1", Actor);
Empty_Tuple.Initialize;
Empty_Tuple.Fold_Empty;
Message.Initialize
(Source => kv.avm.Actor_References.Null_Reference,
Reply_To => kv.avm.Actor_References.Null_Reference,
Destination => Actor,
Message_Name => "CONSTRUCTOR",
Data => Empty_Tuple,
Future => kv.avm.Control.NO_FUTURE);
Machine.Post_Message
(Message => Message,
Status => Status);
end Do_It_Now;
-----------------------------------------------------------------------------
procedure Initialize
(Self : in out Runner_Type;
ID : in Interfaces.Unsigned_32;
Next : in Runner_Access) is
Behavior : Consume_After_X_Access;
begin
Self.ID := ID;
Put_Line(Self.Image & ".Initialize");
Self.Next := kv.avm.Executables.Executable_Access(Next);
Behavior := new Consume_After_X;
Behavior.Cycle_Time := 3;
Behavior.Remaining := 3;
Self.Behavior := Behavior_Access(Behavior);
end Initialize;
-----------------------------------------------------------------------------
procedure Free_Behavior
(Self : in out Runner_Type) is
Free_Me : Consume_After_X_Access;
begin
if Self.Behavior /= null then
if Self.Behavior.all in Consume_After_X'CLASS then
Free_Me := Consume_After_X_Access(Self.Behavior);
Free(Free_Me);
Self.Behavior := null;
end if;
end if;
end Free_Behavior;
-----------------------------------------------------------------------------
procedure Set_Behavior_Send
(Self : in out Runner_Type;
Destination : in kv.avm.Actor_References.Actor_Reference_Type;
Cycle_Time : in Natural) is
Behavior : Send_After_X_Access;
begin
Self.Free_Behavior;
Behavior := new Send_After_X;
Behavior.Cycle_Time := Cycle_Time;
Behavior.Remaining := Cycle_Time;
Behavior.Destination := Destination;
Self.Behavior := Behavior_Access(Behavior);
end Set_Behavior_Send;
-----------------------------------------------------------------------------
procedure Set_Behavior_Spawn
(Self : in out Runner_Type;
Cycle_Time : in Natural) is
Behavior : Spawn_After_X_Access;
begin
Self.Free_Behavior;
Behavior := new Spawn_After_X;
Behavior.Cycle_Time := Cycle_Time;
Behavior.Remaining := Cycle_Time;
Self.Behavior := Behavior_Access(Behavior);
end Set_Behavior_Spawn;
-----------------------------------------------------------------------------
procedure Process_Message
(Self : in out Runner_Type;
Message : in kv.avm.Messages.Message_Type) is
begin
Put_Line(Self.Image & ".Process_Message " & Message.Image);
Self.Running := True;
Self.Last_Msg := Message;
end Process_Message;
-----------------------------------------------------------------------------
procedure Process_Gosub
(Self : access Runner_Type;
Tailcall : in Boolean;
Supercall : in Boolean;
Reply_To : in kv.avm.Actor_References.Actor_Reference_Type;
Method : in kv.avm.Registers.String_Type;
Data : access constant kv.avm.Memories.Register_Set_Type;
Future : in Interfaces.Unsigned_32) is
begin
Put_Line(Self.Image & ".Process_Gosub");
end Process_Gosub;
-----------------------------------------------------------------------------
function Can_Accept_Message_Now(Self : Runner_Type; Message : kv.avm.Messages.Message_Type) return Boolean is
begin
Put_Line(Self.Image & ".Can_Accept_Message_Now returning " & Boolean'IMAGE(not Self.Running));
return not Self.Running;
end Can_Accept_Message_Now;
-----------------------------------------------------------------------------
function Program_Counter
(Self : in Runner_Type) return Interfaces.Unsigned_32 is
begin
Put_Line(Self.Image & ".Program_Counter = " & Interfaces.Unsigned_32'IMAGE(Self.PC));
return Self.PC;
end Program_Counter;
-----------------------------------------------------------------------------
function Is_Running
(Self : in Runner_Type) return Boolean is
begin
Put_Line(Self.Image & ".Is_Running = " & Boolean'IMAGE(Self.Running));
return Self.Running;
end Is_Running;
-----------------------------------------------------------------------------
procedure Step
(Self : access Runner_Type;
Processor : access kv.avm.Processors.Processor_Type;
Status : out kv.avm.Control.Status_Type) is
begin
Put_Line(Self.Image & ".Step");
Self.CPU := Processor.all'ACCESS;
Self.PC := Self.PC + 1;
if Self.Behavior /= null then
Self.Behavior.Execute(Self.all);
end if;
Status := Self.Status;
end Step;
-----------------------------------------------------------------------------
procedure Process_Internal_Response
(Self : in out Runner_Type;
Answer : in kv.avm.Tuples.Tuple_Type) is
begin
Put_Line(Self.Image & ".Process_Internal_Response");
end Process_Internal_Response;
-----------------------------------------------------------------------------
procedure Resolve_Future
(Self : in out Runner_Type;
Answer : in kv.avm.Tuples.Tuple_Type;
Future : in Interfaces.Unsigned_32) is
begin
Put_Line(Self.Image & ".Resolve_Future");
end Resolve_Future;
-----------------------------------------------------------------------------
procedure Halt_Actor
(Self : in out Runner_Type) is
begin
Put_Line(Self.Image & ".Halt_Actor");
Self.Running := False;
end Halt_Actor;
-----------------------------------------------------------------------------
function Reachable(Self : Runner_Type) return kv.avm.Actor_References.Sets.Set is
begin
return kv.avm.Actor_References.Sets.Empty_Set;
end Reachable;
-----------------------------------------------------------------------------
function Image(Self : Runner_Type) return String is
Id_Img : constant String := Interfaces.Unsigned_32'IMAGE(Self.ID);
begin
return "Runner_"&Id_Img(2 .. Id_Img'LAST);
end Image;
-----------------------------------------------------------------------------
function Debug_Info(Self : Runner_Type) return String is
begin
return Self.Image & ".Debug_Info";
end Debug_Info;
-----------------------------------------------------------------------------
procedure New_Executable
(Self : in out Runner_Factory;
Actor : in kv.avm.Actors.Actor_Access;
Machine : in kv.avm.Control.Control_Access;
Executable : out kv.avm.Executables.Executable_Access;
Reference : out kv.avm.Actor_References.Actor_Reference_Type) is
Instance : Runner_Access;
begin
Put_Line("Runner_Factory.New_Executable");
Instance := new Runner_Type;
Self.Count := Self.Count + 1;
Instance.Initialize(Self.Count, Self.Head);
Self.Head := Instance;
kv.avm.Actor_Pool.Add(kv.avm.Executables.Executable_Access(Instance), Reference);
Executable := kv.avm.Executables.Executable_Access(Instance);
end New_Executable;
-----------------------------------------------------------------------------
function Get_Allocated_Count(Self : Runner_Factory) return Natural is
begin
return Natural(Self.Count);
end Get_Allocated_Count;
-----------------------------------------------------------------------------
function Runner_By_ID(Runner : Runner_Access; ID : Interfaces.Unsigned_32) return Runner_Access is
begin
if Runner.ID = ID then
return Runner;
else
return Runner_By_ID(Runner_Access(Runner.Next), ID);
end if;
end Runner_By_ID;
-----------------------------------------------------------------------------
function Get_Runner_By_ID(Self : Runner_Factory; ID : Interfaces.Unsigned_32) return Runner_Access is
begin
return Runner_By_ID(Self.Head, ID);
end Get_Runner_By_ID;
end kv.avm.Test.Runners;
| true |
with Ada.Unchecked_Deallocation;
with kv.avm.Log; use kv.avm.Log;
with kv.avm.Actor_Pool;
package body kv.avm.Test.Runners is
use Interfaces;
-----------------------------------------------------------------------------
procedure Execute
(Self : in out Base_Behavior_Type;
Runner : in out Runner_Type'CLASS) is
begin
Put_Line("Base_Behavior_Type for " & Runner.Image & ", Self.Remaining = " & Natural'IMAGE(Self.Remaining));
if Self.Remaining = 0 then
Do_It_Now(Base_Behavior_Type'CLASS(Self), Runner);
Self.Remaining := Self.Cycle_Time;
else
Self.Remaining := Self.Remaining - 1;
end if;
end Execute;
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
type Consume_After_X is new Base_Behavior_Type with null record;
type Consume_After_X_Access is access all Consume_After_X;
procedure Free is new Ada.Unchecked_Deallocation(Consume_After_X, Consume_After_X_Access);
-----------------------------------------------------------------------------
procedure Do_It_Now
(Self : in out Consume_After_X;
Runner : in out Runner_Type'CLASS) is
begin
Runner.Running := False;
end Do_It_Now;
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
type Send_After_X is new Base_Behavior_Type with
record
Destination : kv.avm.Actor_References.Actor_Reference_Type;
end record;
type Send_After_X_Access is access all Send_After_X;
procedure Free is new Ada.Unchecked_Deallocation(Send_After_X, Send_After_X_Access);
-----------------------------------------------------------------------------
procedure Execute
(Self : in out Send_After_X;
Runner : in out Runner_Type'CLASS) is
Machine : kv.avm.Control.Control_Access;
Empty_Tuple : aliased kv.avm.Tuples.Tuple_Type;
Message : kv.avm.Messages.Message_Type;
begin
Put_Line("Send_After_X for " & Runner.Image & ", Self.Remaining = " & Natural'IMAGE(Self.Remaining));
if Self.Remaining = 0 then
Machine := Runner.CPU.Get_Machine;
Empty_Tuple.Initialize;
Empty_Tuple.Fold_Empty;
Message.Initialize
(Source => kv.avm.Actor_References.Null_Reference,
Reply_To => kv.avm.Actor_References.Null_Reference,
Destination => Self.Destination,
Message_Name => "PI:NAME:<NAME>END_PI",
Data => Empty_Tuple,
Future => kv.avm.Control.NO_FUTURE);
Machine.Post_Message
(Message => Message,
Status => Runner.Status); -- Important to pass this through
Self.Remaining := Self.Cycle_Time;
else
Runner.Status := kv.avm.Control.Active;
Self.Remaining := Self.Remaining - 1;
end if;
end Execute;
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
type Spawn_After_X is new Base_Behavior_Type with null record;
type Spawn_After_X_Access is access all Spawn_After_X;
procedure Free is new Ada.Unchecked_Deallocation(Spawn_After_X, Spawn_After_X_Access);
-----------------------------------------------------------------------------
procedure Do_It_Now
(Self : in out Spawn_After_X;
Runner : in out Runner_Type'CLASS) is
Machine : kv.avm.Control.Control_Access;
Actor : kv.avm.Actor_References.Actor_Reference_Type;
Empty_Tuple : aliased kv.avm.Tuples.Tuple_Type;
Status : kv.avm.Control.Status_Type;
Message : kv.avm.Messages.Message_Type;
begin
Machine := Runner.CPU.Get_Machine;
Machine.New_Actor("Test_A1", Actor);
Empty_Tuple.Initialize;
Empty_Tuple.Fold_Empty;
Message.Initialize
(Source => kv.avm.Actor_References.Null_Reference,
Reply_To => kv.avm.Actor_References.Null_Reference,
Destination => Actor,
Message_Name => "CONSTRUCTOR",
Data => Empty_Tuple,
Future => kv.avm.Control.NO_FUTURE);
Machine.Post_Message
(Message => Message,
Status => Status);
end Do_It_Now;
-----------------------------------------------------------------------------
procedure Initialize
(Self : in out Runner_Type;
ID : in Interfaces.Unsigned_32;
Next : in Runner_Access) is
Behavior : Consume_After_X_Access;
begin
Self.ID := ID;
Put_Line(Self.Image & ".Initialize");
Self.Next := kv.avm.Executables.Executable_Access(Next);
Behavior := new Consume_After_X;
Behavior.Cycle_Time := 3;
Behavior.Remaining := 3;
Self.Behavior := Behavior_Access(Behavior);
end Initialize;
-----------------------------------------------------------------------------
procedure Free_Behavior
(Self : in out Runner_Type) is
Free_Me : Consume_After_X_Access;
begin
if Self.Behavior /= null then
if Self.Behavior.all in Consume_After_X'CLASS then
Free_Me := Consume_After_X_Access(Self.Behavior);
Free(Free_Me);
Self.Behavior := null;
end if;
end if;
end Free_Behavior;
-----------------------------------------------------------------------------
procedure Set_Behavior_Send
(Self : in out Runner_Type;
Destination : in kv.avm.Actor_References.Actor_Reference_Type;
Cycle_Time : in Natural) is
Behavior : Send_After_X_Access;
begin
Self.Free_Behavior;
Behavior := new Send_After_X;
Behavior.Cycle_Time := Cycle_Time;
Behavior.Remaining := Cycle_Time;
Behavior.Destination := Destination;
Self.Behavior := Behavior_Access(Behavior);
end Set_Behavior_Send;
-----------------------------------------------------------------------------
procedure Set_Behavior_Spawn
(Self : in out Runner_Type;
Cycle_Time : in Natural) is
Behavior : Spawn_After_X_Access;
begin
Self.Free_Behavior;
Behavior := new Spawn_After_X;
Behavior.Cycle_Time := Cycle_Time;
Behavior.Remaining := Cycle_Time;
Self.Behavior := Behavior_Access(Behavior);
end Set_Behavior_Spawn;
-----------------------------------------------------------------------------
procedure Process_Message
(Self : in out Runner_Type;
Message : in kv.avm.Messages.Message_Type) is
begin
Put_Line(Self.Image & ".Process_Message " & Message.Image);
Self.Running := True;
Self.Last_Msg := Message;
end Process_Message;
-----------------------------------------------------------------------------
procedure Process_Gosub
(Self : access Runner_Type;
Tailcall : in Boolean;
Supercall : in Boolean;
Reply_To : in kv.avm.Actor_References.Actor_Reference_Type;
Method : in kv.avm.Registers.String_Type;
Data : access constant kv.avm.Memories.Register_Set_Type;
Future : in Interfaces.Unsigned_32) is
begin
Put_Line(Self.Image & ".Process_Gosub");
end Process_Gosub;
-----------------------------------------------------------------------------
function Can_Accept_Message_Now(Self : Runner_Type; Message : kv.avm.Messages.Message_Type) return Boolean is
begin
Put_Line(Self.Image & ".Can_Accept_Message_Now returning " & Boolean'IMAGE(not Self.Running));
return not Self.Running;
end Can_Accept_Message_Now;
-----------------------------------------------------------------------------
function Program_Counter
(Self : in Runner_Type) return Interfaces.Unsigned_32 is
begin
Put_Line(Self.Image & ".Program_Counter = " & Interfaces.Unsigned_32'IMAGE(Self.PC));
return Self.PC;
end Program_Counter;
-----------------------------------------------------------------------------
function Is_Running
(Self : in Runner_Type) return Boolean is
begin
Put_Line(Self.Image & ".Is_Running = " & Boolean'IMAGE(Self.Running));
return Self.Running;
end Is_Running;
-----------------------------------------------------------------------------
procedure Step
(Self : access Runner_Type;
Processor : access kv.avm.Processors.Processor_Type;
Status : out kv.avm.Control.Status_Type) is
begin
Put_Line(Self.Image & ".Step");
Self.CPU := Processor.all'ACCESS;
Self.PC := Self.PC + 1;
if Self.Behavior /= null then
Self.Behavior.Execute(Self.all);
end if;
Status := Self.Status;
end Step;
-----------------------------------------------------------------------------
procedure Process_Internal_Response
(Self : in out Runner_Type;
Answer : in kv.avm.Tuples.Tuple_Type) is
begin
Put_Line(Self.Image & ".Process_Internal_Response");
end Process_Internal_Response;
-----------------------------------------------------------------------------
procedure Resolve_Future
(Self : in out Runner_Type;
Answer : in kv.avm.Tuples.Tuple_Type;
Future : in Interfaces.Unsigned_32) is
begin
Put_Line(Self.Image & ".Resolve_Future");
end Resolve_Future;
-----------------------------------------------------------------------------
procedure Halt_Actor
(Self : in out Runner_Type) is
begin
Put_Line(Self.Image & ".Halt_Actor");
Self.Running := False;
end Halt_Actor;
-----------------------------------------------------------------------------
function Reachable(Self : Runner_Type) return kv.avm.Actor_References.Sets.Set is
begin
return kv.avm.Actor_References.Sets.Empty_Set;
end Reachable;
-----------------------------------------------------------------------------
function Image(Self : Runner_Type) return String is
Id_Img : constant String := Interfaces.Unsigned_32'IMAGE(Self.ID);
begin
return "Runner_"&Id_Img(2 .. Id_Img'LAST);
end Image;
-----------------------------------------------------------------------------
function Debug_Info(Self : Runner_Type) return String is
begin
return Self.Image & ".Debug_Info";
end Debug_Info;
-----------------------------------------------------------------------------
procedure New_Executable
(Self : in out Runner_Factory;
Actor : in kv.avm.Actors.Actor_Access;
Machine : in kv.avm.Control.Control_Access;
Executable : out kv.avm.Executables.Executable_Access;
Reference : out kv.avm.Actor_References.Actor_Reference_Type) is
Instance : Runner_Access;
begin
Put_Line("Runner_Factory.New_Executable");
Instance := new Runner_Type;
Self.Count := Self.Count + 1;
Instance.Initialize(Self.Count, Self.Head);
Self.Head := Instance;
kv.avm.Actor_Pool.Add(kv.avm.Executables.Executable_Access(Instance), Reference);
Executable := kv.avm.Executables.Executable_Access(Instance);
end New_Executable;
-----------------------------------------------------------------------------
function Get_Allocated_Count(Self : Runner_Factory) return Natural is
begin
return Natural(Self.Count);
end Get_Allocated_Count;
-----------------------------------------------------------------------------
function Runner_By_ID(Runner : Runner_Access; ID : Interfaces.Unsigned_32) return Runner_Access is
begin
if Runner.ID = ID then
return Runner;
else
return Runner_By_ID(Runner_Access(Runner.Next), ID);
end if;
end Runner_By_ID;
-----------------------------------------------------------------------------
function Get_Runner_By_ID(Self : Runner_Factory; ID : Interfaces.Unsigned_32) return Runner_Access is
begin
return Runner_By_ID(Self.Head, ID);
end Get_Runner_By_ID;
end kv.avm.Test.Runners;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.