Salome HOME
Join modifications from branch BR_DEBUG_3_2_0b1
[modules/yacs.git] / src / SALOMEDS / README_attributes
1
2 $Header$
3
4 How to add a new attribute (without WOK): 
5 -----------------------------------------
6
7 This works only for simple types (ex: string)
8
9 example: add attribute FileType (string)
10
11 # new files (copied from files specific to ExternalFileDef attribute = string):
12
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
21
22 # files modified:
23
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
28
29 # detailled modifications:
30
31 - in new files,
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++).
36
37 - in src/SALOMEDS/Makefile.in,
38 add under LIB_SRC = \
39                   SALOMEDS_FileType.cxx \
40                   SALOMEDS_AttributeExternalFileDef_i.cxx \
41
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
46