1------------------------------------------------------------------------------ 2-- -- 3-- Matreshka Project -- 4-- -- 5-- Ada Modeling Framework -- 6-- -- 7-- Runtime Library Component -- 8-- -- 9------------------------------------------------------------------------------ 10-- -- 11-- Copyright © 2012, Vadim Godunko <vgodunko@gmail.com> -- 12-- All rights reserved. -- 13-- -- 14-- Redistribution and use in source and binary forms, with or without -- 15-- modification, are permitted provided that the following conditions -- 16-- are met: -- 17-- -- 18-- * Redistributions of source code must retain the above copyright -- 19-- notice, this list of conditions and the following disclaimer. -- 20-- -- 21-- * Redistributions in binary form must reproduce the above copyright -- 22-- notice, this list of conditions and the following disclaimer in the -- 23-- documentation and/or other materials provided with the distribution. -- 24-- -- 25-- * Neither the name of the Vadim Godunko, IE nor the names of its -- 26-- contributors may be used to endorse or promote products derived from -- 27-- this software without specific prior written permission. -- 28-- -- 29-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- 30-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- 31-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- 32-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- 33-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- 34-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- 35-- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- 36-- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- 37-- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- 38-- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- 39-- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- 40-- -- 41------------------------------------------------------------------------------ 42-- $Revision: 3402 $ $Date: 2012-11-13 11:13:41 +0400 (Tue, 13 Nov 2012) $ 43------------------------------------------------------------------------------ 44-- Helper subprograms for element modification notification. 45------------------------------------------------------------------------------ 46with Matreshka.Internals.Strings; 47 48package AMF.Internals.Tables.Primitive_Types_Notification is 49 50 procedure Notify_Attribute_Set 51 (Element : AMF.Internals.AMF_Element; 52 Property : AMF.Internals.CMOF_Element; 53 Old_Value : Boolean; 54 New_Value : Boolean); 55 56 procedure Notify_Attribute_Set 57 (Element : AMF.Internals.AMF_Element; 58 Property : AMF.Internals.CMOF_Element; 59 Old_Value : AMF.Optional_Boolean; 60 New_Value : AMF.Optional_Boolean); 61 62 procedure Notify_Attribute_Set 63 (Element : AMF.Internals.AMF_Element; 64 Property : AMF.Internals.CMOF_Element; 65 Old_Value : Matreshka.Internals.Strings.Shared_String_Access; 66 New_Value : Matreshka.Internals.Strings.Shared_String_Access); 67 68 procedure Notify_Attribute_Set 69 (Element : AMF.Internals.AMF_Element; 70 Property : AMF.Internals.CMOF_Element; 71 Old_Value : Integer; 72 New_Value : Integer); 73 74 procedure Notify_Attribute_Set 75 (Element : AMF.Internals.AMF_Element; 76 Property : AMF.Internals.CMOF_Element; 77 Old_Value : AMF.Optional_Integer; 78 New_Value : AMF.Optional_Integer); 79 80 procedure Notify_Attribute_Set 81 (Element : AMF.Internals.AMF_Element; 82 Property : AMF.Internals.CMOF_Element; 83 Old_Value : AMF.Unlimited_Natural; 84 New_Value : AMF.Unlimited_Natural); 85 86 procedure Notify_Attribute_Set 87 (Element : AMF.Internals.AMF_Element; 88 Property : AMF.Internals.CMOF_Element; 89 Old_Value : AMF.Optional_Unlimited_Natural; 90 New_Value : AMF.Optional_Unlimited_Natural); 91 92 procedure Notify_Attribute_Set 93 (Element : AMF.Internals.AMF_Element; 94 Property : AMF.Internals.CMOF_Element; 95 Old_Value : AMF.Real; 96 New_Value : AMF.Real); 97 98 procedure Notify_Attribute_Set 99 (Element : AMF.Internals.AMF_Element; 100 Property : AMF.Internals.CMOF_Element; 101 Old_Value : AMF.Optional_Real; 102 New_Value : AMF.Optional_Real); 103 104end AMF.Internals.Tables.Primitive_Types_Notification; 105