4 How to add a new attribute (without WOK):
5 -----------------------------------------
7 This works only for simple types (ex: string)
9 example: add attribute FileType (string)
11 # new files (copied from files specific to ExternalFileDef attribute = string):
13 ? src/SALOMEDS/Handle_SALOMEDS_FileType.hxx <--- Handle_SALOMEDS_ExternalFileDef.hxx
14 ? src/SALOMEDS/SALOMEDS_AttributeFileType_i.cxx <--- SALOMEDS_AttributeExternalFileDef_i.cxx
15 ? src/SALOMEDS/SALOMEDS_AttributeFileType_i.hxx <--- SALOMEDS_AttributeExternalFileDef_i.hxx
16 ? src/SALOMEDS/SALOMEDS_FileType.cdl <--- SALOMEDS_ExternalFileDef.cdl
17 ? src/SALOMEDS/SALOMEDS_FileType.cxx <--- SALOMEDS_ExternalFileDef.cxx
18 ? src/SALOMEDS/SALOMEDS_FileType.hxx <--- SALOMEDS_ExternalFileDef.hxx
19 ? src/SALOMEDS/SALOMEDS_FileType.ixx <--- SALOMEDS_ExternalFileDef.ixx
20 ? src/SALOMEDS/SALOMEDS_FileType.jxx <--- SALOMEDS_ExternalFileDef.jxx
24 M idl/SALOMEDS_Attributes.idl
25 M src/SALOMEDS/Makefile.in
26 M src/SALOMEDS/SALOMEDS_SObject_i.cxx
27 M src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx
29 # detailled modifications:
32 change ExternalFileDef in FileType everywhere
33 - in SALOMEDS_FileType.cxx,
34 Standard_GUID (Global Universal IDentifier) must be changed.
35 To obtain a new GUID, it is possible to use guidgen.exe on windows (with visual C++).
37 - in src/SALOMEDS/Makefile.in,
39 SALOMEDS_FileType.cxx \
40 SALOMEDS_AttributeExternalFileDef_i.cxx \
42 - in src/SALOMEDS/SALOMEDS_SObject_i.cxx,
43 - in src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx,
44 - in idl/SALOMEDS_Attributes.idl,
45 find portions of code containing ExternalFileDef, duplicate and replace