1、 Reference number ISO 10303-24:2001(E) ISO 2001INTERNATIONAL STANDARD ISO 10303-24 First edition 2001-12-15 Industrial automation systems and integration Product data representation and exchange Part 24: Implementation methods: C language binding of standard data access interface Systmes dautomatisa
2、tion industrielle et intgration Reprsentation et change de donnes de produits Partie 24: Mthode de mise en application: Liant de langage C linterface daccs aux donnes normalises ISO 10303-24:2001(E) PDF disclaimer This PDF file may contain embedded typefaces. In accordance with Adobes licensing poli
3、cy, this file may be printed or viewed but shall not be edited unless the typefaces which are embedded are licensed to and installed on the computer performing the editing. In downloading this file, parties accept therein the responsibility of not infringing Adobes licensing policy. The ISO Central
4、Secretariat accepts no liability in this area. Adobe is a trademark of Adobe Systems Incorporated. Details of the software products used to create this PDF file can be found in the General Info relative to the file; the PDF-creation parameters were optimized for printing. Every care has been taken t
5、o ensure that the file is suitable for use by ISO member bodies. In the unlikely event that a problem relating to it is found, please inform the Central Secretariat at the address given below. ISO 2001 All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or
6、utilized in any form or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from either ISO at the address below or ISOs member body in the country of the requester. ISO copyright office Case postale 56 CH-1211 Geneva 20 Tel. + 41 22 749 01 11
7、Fax + 41 22 749 09 47 E-mail copyrightiso.ch Web www.iso.ch Printed in Switzerland ii ISO 2001 All rights reservedISO 10303-24:2001(E) ISO2001Allrightsreserved iii Contents page 1Scope. 1 2Normativereferences.1 3Terms,definitions,andabbreviations. . 2 3.1TermsdefinedinISO103031. . 2 3.2Termsdefinedi
8、nISO1030311. . 2 3.3TermsdefinedinISO1030322. . 3 3.4Otherdefinitions. . 3 3.5Abbreviations . 4 4OverviewoftheClanguagelatebindingofSDAI. 5 4.1Languagebindings . 5 4.2Conformance. 5 4.3Useoflatebindingfunctions . . 5 4.3.1Invalidparametervalues. .5 4.3.2Errorhandling. . 5 4.3.3Memorymanagement. 5 4.
9、3.4TheSDAIheaderfile. . 6 4.3.5Macros . 6 4.4Namingandtypographicalconventions. 6 5Constantsanddatatypedefinitions . . 7 5.1Standarderrorcodes. . 7 5.2EXPRESSconstants. 7 5.3EXPRESSdatatypes.7 5.3.1Bitdatatype. 7 5.3.2EXPRESSsimpledatatypes . 8 5.3.3Enumerationdatatype. .9 5.3.4Selectdatatype. 9 5.3
10、.5Entitydatatype. . 10 5.3.6Aggregatedatatypes . .1 0 5.4SDAIdatatypes . . 10 5.4.1SDAIprimitivedatatypes .1 0 5.4.2SDAIentitydatatypes. .1 1 5.4.3Iteratordatatype. . 13 5.4.4Nonpersistentlistdatatype . 13 5.4.5Querysourcedatatype . 13 5.4.6SDAIaccesstypedatatype . 13 5.5Clatebindingspecificdatatype
11、s . . 13 5.5.1Attributedatablockdatatype. 1 4 5.5.2Aggregateindexdatatype .1 4 5.5.3Errorcodedatatype. . 14 5.5.4Errorhandlerdatatype . .1 4 5.5.5Transactioncommitmodedatatype. 15 5.5.6NULLidentifierdatatype .1 5ISO 10303-24:2001(E) iv ISO2001Allrightsreserved 6ClatebindingfunctionsoftheSDAIoperatio
12、ns. .1 5 6.1Environmentoperations . 16 6.1.1Opensession. . 16 6.1.2Clatebindingspecificarithmeticoperations . 16 6.1.3Clatebindingspecificerrorhandlingoperations. 17 6.1.4Clatebindingspecificinstanceoperations . 18 6.2Sessionoperations. . 19 6.2.1Recordevent. . 19 6.2.2Seteventrecording . . 19 6.2.3
13、Closesession. . 20 6.2.4Openrepository . . 20 6.2.5Starttransactionreadwriteorreadonlyaccess. 21 6.2.6Breaktransaction . . 22 6.2.7Endtransactionaccess. .2 2 6.2.8Createnonpersistentlist . .2 3 6.2.9Deletenonpersistentlist . .2 3 6.2.10SDAIquery. . 24 6.2.11Clatebindingspecificrecordingoperations .
14、25 6.2.12Clatebindingspecificattributedatablockoperations.26 6.3Repositoryoperations. . 29 6.3.1CreateSDAImodel . 29 6.3.2Createschemainstance. 30 6.3.3Closerepository. . 31 6.4Schemainstanceoperations . . 31 6.4.1Deleteschemainstance. 31 6.4.2Renameschemainstance. 32 6.4.3AddSDAImodel. .3 3 6.4.4Re
15、moveSDAImodel . 34 6.4.5Validateglobalrule . . 34 6.4.6Validateuniquenessrule. 35 6.4.7Validateinstancereferencedomain. 36 6.4.8Validateschemainstance. 37 6.4.9Isvalidationcurrent. . 38 6.4.10Schemainstanceoperationsforconvenience . 39 6.5SDAImodeloperations . . 40 6.5.1DeleteSDAImodel . 40 6.5.2Ren
16、ameSDAImodel . 41 6.5.3StartSDAImodelaccess. 4 2 6.5.4PromoteSDAImodeltoreadwriteaccess . 42 6.5.5EndSDAImodelaccess. 43 6.5.6Getentitydefinition. . 44 6.5.7Createentityinstance. . 44 6.5.8Undochanges . . 45 6.5.9Savechanges. . 46 6.5.10SDAImodeloperationsforconvenience . 46 6.6Scopeoperations . . 48 6.6.1Addtoscope . . 48 6.6.2Isscopeowner . .49 6.6.3Getscope . . 49ISO 10303-24:2001(E) ISO2001Allrightsreserved v 6.6.4Removefromscope. 50 6.6.5Addtoexportlist . . 51 6.6.6Removefromexportlist. 51 6.6.7Scopeddelete. . 52 6.6.8ScopedcopyinsameSDAImodel.