To work with revision control, you must write an .xml file for every class which contains the description of the read/write process of the object data (similar to the dwgIn()/dwgOut() methods). If the class is not described, you cannot merge its changes and cannot properly compress subsequent revisions of the object in the database.
First, the TD_Tf module must be loaded before scheme registration. After, use ::odTfInitialize(pHostApp); to initialize the module functionality. The scheme file must be placed within the folder that contains other binary files. For example, to register the scheme:
OdString schemeName = L"MyScheme.txds"; //xml scheme
::odrxRegisterSchema(schemeName);
or
OdString schemeName = L"MyScheme.tsbf"; //binary scheme
::odrxRegisterSchema(schemeName);
To convert an xml scheme to binary format, use:
::odrxConvertSchema(L"MyScheme.txds");
Binary scheme is saved in the same folder and under the same name as the original.
To work with the XML scheme, use these tags:
The next attributes are used:
xs:hexBinary
element type.xs:hexBinary
element type.The following are the types of elements (<xs:element name="..." type="___ "/>):
Note: Values of elements that are marked with attributes "oda:isArrayLength" or "oda:isCondition" are stored in the cache with a key (a key is a string that is taken from the attribute "name" in the tag).
Note: All names for the <xs:element> tag must be unique.
Copyright © 2002 – 2022. Open Design Alliance. All rights reserved.
|