@@ -99,9 +99,8 @@ private:
9999 }
100100
101101 %pythoncode %{
102- if _newclass:
103- # Hide the getters with read-only property implementations
104- header = property (header)
102+ # Hide the getters with read-only property implementations
103+ header = property (header)
105104 %}
106105}
107106
@@ -346,62 +345,58 @@ private:
346345
347346%extend IfcParse::IfcSpfHeader {
348347 %pythoncode %{
349- if _newclass:
350- # Hide the getters with read-only property implementations
351- file_description = property (file_description)
352- file_name = property (file_name)
353- file_schema = property (file_schema)
348+ # Hide the getters with read-only property implementations
349+ file_description = property (file_description)
350+ file_name = property (file_name)
351+ file_schema = property (file_schema)
354352 %}
355353};
356354
357355%extend IfcParse::FileDescription {
358356 %pythoncode %{
359- if _newclass:
360- # Hide the getters with read-write property implementations
361- __swig_getmethods__[" description" ] = description
362- __swig_setmethods__[" description" ] = description
363- description = property (description, description)
364- __swig_getmethods__[" implementation_level" ] = implementation_level
365- __swig_setmethods__[" implementation_level" ] = implementation_level
366- implementation_level = property (implementation_level, implementation_level)
357+ # Hide the getters with read-write property implementations
358+ __swig_getmethods__[" description" ] = description
359+ __swig_setmethods__[" description" ] = description
360+ description = property (description, description)
361+ __swig_getmethods__[" implementation_level" ] = implementation_level
362+ __swig_setmethods__[" implementation_level" ] = implementation_level
363+ implementation_level = property (implementation_level, implementation_level)
367364 %}
368365};
369366
370367%extend IfcParse::FileName {
371368 %pythoncode %{
372- if _newclass:
373- # Hide the getters with read-write property implementations
374- __swig_getmethods__[" name" ] = name
375- __swig_setmethods__[" name" ] = name
376- name = property (name, name)
377- __swig_getmethods__[" time_stamp" ] = time_stamp
378- __swig_setmethods__[" time_stamp" ] = time_stamp
379- time_stamp = property (time_stamp, time_stamp)
380- __swig_getmethods__[" author" ] = author
381- __swig_setmethods__[" author" ] = author
382- author = property (author, author)
383- __swig_getmethods__[" organization" ] = organization
384- __swig_setmethods__[" organization" ] = organization
385- organization = property (organization, organization)
386- __swig_getmethods__[" preprocessor_version" ] = preprocessor_version
387- __swig_setmethods__[" preprocessor_version" ] = preprocessor_version
388- preprocessor_version = property (preprocessor_version, preprocessor_version)
389- __swig_getmethods__[" originating_system" ] = originating_system
390- __swig_setmethods__[" originating_system" ] = originating_system
391- originating_system = property (originating_system, originating_system)
392- __swig_getmethods__[" authorization" ] = authorization
393- __swig_setmethods__[" authorization" ] = authorization
394- authorization = property (authorization, authorization)
369+ # Hide the getters with read-write property implementations
370+ __swig_getmethods__[" name" ] = name
371+ __swig_setmethods__[" name" ] = name
372+ name = property (name, name)
373+ __swig_getmethods__[" time_stamp" ] = time_stamp
374+ __swig_setmethods__[" time_stamp" ] = time_stamp
375+ time_stamp = property (time_stamp, time_stamp)
376+ __swig_getmethods__[" author" ] = author
377+ __swig_setmethods__[" author" ] = author
378+ author = property (author, author)
379+ __swig_getmethods__[" organization" ] = organization
380+ __swig_setmethods__[" organization" ] = organization
381+ organization = property (organization, organization)
382+ __swig_getmethods__[" preprocessor_version" ] = preprocessor_version
383+ __swig_setmethods__[" preprocessor_version" ] = preprocessor_version
384+ preprocessor_version = property (preprocessor_version, preprocessor_version)
385+ __swig_getmethods__[" originating_system" ] = originating_system
386+ __swig_setmethods__[" originating_system" ] = originating_system
387+ originating_system = property (originating_system, originating_system)
388+ __swig_getmethods__[" authorization" ] = authorization
389+ __swig_setmethods__[" authorization" ] = authorization
390+ authorization = property (authorization, authorization)
395391 %}
396392};
397393
398394%extend IfcParse::FileSchema {
399395 %pythoncode %{
400- if _newclass:
401- # Hide the getters with read-write property implementations
402- __swig_getmethods__[" schema_identifiers" ] = schema_identifiers
403- __swig_setmethods__[" schema_identifiers" ] = schema_identifiers
404- schema_identifiers = property (schema_identifiers, schema_identifiers)
396+ # Hide the getters with read-write property implementations
397+ __swig_getmethods__[" schema_identifiers" ] = schema_identifiers
398+ __swig_setmethods__[" schema_identifiers" ] = schema_identifiers
399+ schema_identifiers = property (schema_identifiers, schema_identifiers)
405400 %}
406401};
407402
0 commit comments