Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE

Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA

See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-----------------------------------------

How to add a new attribute (without WOK): 
-----------------------------------------

This works only for simple types (ex: string)

example: add attribute FileType (string)

# new files (copied from files specific to ExternalFileDef attribute = string):

? src/SALOMEDS/Handle_SALOMEDS_FileType.hxx      <---  Handle_SALOMEDS_ExternalFileDef.hxx
? src/SALOMEDS/SALOMEDS_AttributeFileType_i.cxx  <---  SALOMEDS_AttributeExternalFileDef_i.cxx
? src/SALOMEDS/SALOMEDS_AttributeFileType_i.hxx  <---  SALOMEDS_AttributeExternalFileDef_i.hxx
? src/SALOMEDS/SALOMEDS_FileType.cdl             <---  SALOMEDS_ExternalFileDef.cdl
? src/SALOMEDS/SALOMEDS_FileType.cxx             <---  SALOMEDS_ExternalFileDef.cxx
? src/SALOMEDS/SALOMEDS_FileType.hxx             <---  SALOMEDS_ExternalFileDef.hxx
? src/SALOMEDS/SALOMEDS_FileType.ixx             <---  SALOMEDS_ExternalFileDef.ixx
? src/SALOMEDS/SALOMEDS_FileType.jxx             <---  SALOMEDS_ExternalFileDef.jxx

# files modified:

M idl/SALOMEDS_Attributes.idl
M src/SALOMEDS/Makefile.in
M src/SALOMEDS/SALOMEDS_SObject_i.cxx
M src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx

# detailled modifications:

- in new files,
change ExternalFileDef in FileType everywhere
- in SALOMEDS_FileType.cxx,
Standard_GUID (Global Universal IDentifier) must be changed.
To obtain a new GUID, it is possible to use guidgen.exe on windows (with visual C++).

- in src/SALOMEDS/Makefile.in,
add under LIB_SRC = \
		  SALOMEDS_FileType.cxx \
	          SALOMEDS_AttributeExternalFileDef_i.cxx \

- in src/SALOMEDS/SALOMEDS_SObject_i.cxx,
- in src/SALOMEDS/SALOMEDS_StudyBuilder_i.cxx,
- in idl/SALOMEDS_Attributes.idl,
find portions of code containing ExternalFileDef, duplicate and replace

