Thomas Krijnen
048f77cfed
Getting closer to working SPF again
2025-02-24 20:46:29 +01:00
Thomas Krijnen
da4e86a1d5
Exploration of using rocksdb as file+instance storage
2025-02-21 16:12:16 +01:00
Thomas Krijnen
638b2c59ea
Catch string encoding errors and set status #5992
2025-01-23 16:20:06 +01:00
Thomas Krijnen
c37fd6ae0b
Don't throw exception but set to $ when encountering invalid instance name #5680
2025-01-15 10:08:31 +01:00
Thomas Krijnen
dbdc2add81
Parsing file with trailing comment fails
2024-11-14 21:57:27 +01:00
Thomas Krijnen
2c22421889
Don't consume token on invalid entity typename #5504
2024-09-29 19:15:29 +02:00
Thomas Krijnen
a9ca4e7366
Mark status when parsing is terminated
2024-09-23 15:24:28 +02:00
Thomas Krijnen
e4d1118124
Manually write out if-statements instead of visit with if-constexpr #5444
2024-09-23 15:10:37 +02:00
Thomas Krijnen
5a44a8e325
Defensiveness against invalid data
2024-09-11 20:13:50 +02:00
Thomas Krijnen
12318fbfc2
Handle storage of nullptr as a proper Blank type in variant #5308
2024-09-05 14:38:57 +02:00
Andrej730
151244ae79
ifcopenshell.file() to create valid ifc header by default #5246
...
Valid type for author and organization is 'LIST [ 1 : ? ] OF STRING (256)'
2024-09-02 17:04:55 +05:00
Thomas Krijnen
d80bcd1a94
Unify variant storage ( #5118 )
2024-08-23 20:29:07 +02:00
Thomas Krijnen
4ad426a5c5
Update IfcParse.cpp #4998
2024-07-17 09:45:34 +02:00
Richard Brice
585eeb283a
emits * for derived entities instead of $
...
Validation service 0.6.4 started giving errors for entities with derived types where $ was used. The correct coding is *.
2024-07-10 12:51:27 -07:00
Thomas Krijnen
1e60454951
centralize attribute setting templates for size object reduction
2024-05-12 19:36:01 +02:00
Thomas Krijnen
90c7a9435c
Fix #4070 don't increment aggregate length on invalid members
2024-04-18 10:45:22 +02:00
Thomas Krijnen
4f64b658b0
don't fail on null guid for rooted element deletion #2796
2024-04-16 11:10:44 +02:00
Dirk Olbrich
47a2971c65
ifcparse: fix clang-tidy warning readability-identifier-length
2024-03-06 09:25:02 +01:00
Dirk Olbrich
eea9a14722
ifcparse: unify private member variables name to use trailing underscore
2024-03-06 09:25:02 +01:00
Dirk Olbrich
8b145248c6
ifcparse: fix clang-tidy warning readability-qualified-auto
2024-03-06 09:25:02 +01:00
Dirk Olbrich
c29e7b32ad
ifcparse: fix clang-tidy warning readability-implicit-bool-conversion
2024-03-06 09:25:02 +01:00
Dirk Olbrich
9f40674d91
ifcparse: fix clang-tidy warning readability-else-after-return
2024-03-06 09:25:02 +01:00
Dirk Olbrich
b264408d85
ifcparse: fix clang-tidy warnung unused-includes
2024-03-06 09:25:02 +01:00
Dirk Olbrich
616a96972a
clang-format: align license blocks
...
- split up some very long lines
2023-10-12 12:39:16 +02:00
Dirk Olbrich
63177a7c35
clang-format: format test
2023-10-12 12:39:16 +02:00
Shohei Kunimatsu
1767b09bbc
Fix wrong attribute name usage (ValueComponent -> UnitComponent) in IfcFile::getUnit
2023-09-14 09:14:00 +02:00
Thomas Krijnen
2174fda88d
#2704 keep track of simple types by iden to free later
2023-01-28 14:21:52 +01:00
Otso Alho
d005524c4c
catch missing instances one by one. do not throw away whole relation.
2022-11-10 14:18:50 +01:00
Thomas Krijnen
c1aca6ba8c
#2517 Don't free parsed simple types as part of parent entity, but at file destruction
2022-10-20 20:30:48 +02:00
Thomas Krijnen
f012286eda
#2408 ifcopenshell.file.get_inverse(with_attribute_indices)
2022-10-20 13:35:02 +02:00
Thomas Krijnen
8dab1810c7
#2486 #1861 Don't fail on overwriting header values
2022-10-11 10:48:53 +02:00
Thomas Krijnen
94ba1a121d
#2486 store provenance to file also in simple type instances
2022-10-08 15:16:53 +02:00
Thomas Krijnen
3d82791a99
#1861 update globalid map on attribute change
2022-10-05 13:03:52 +02:00
Thomas Krijnen
f68db3d3be
Fixes after 698c708bf6
2022-10-04 12:38:40 +02:00
Thomas Krijnen
be805a3e96
Fixes after 698c708bf6
2022-10-04 11:14:13 +02:00
Thomas Krijnen
ca5249a179
More resiliance against wrong attribute counts
2022-10-03 14:05:08 +02:00
Thomas Krijnen
698c708bf6
Reduce heap allocations during parse by reusing vector for top level instances
2022-10-03 14:04:42 +02:00
Thomas Krijnen
084151ed4c
Augment invalid entity message with offset in file
2022-10-03 14:03:53 +02:00
Thomas Krijnen
c56c7288e3
Clarify wrong attribute count message
2022-10-03 14:03:04 +02:00
Thomas Krijnen
b5f4c8218d
#2358 fix header entity parsing in case of too few fields
2022-08-24 11:57:06 +02:00
Thomas Krijnen
5a636a925b
#2244 file.add() Don't fail on project without unit info
2022-06-21 14:15:59 +02:00
Adrien SCHVALBERG
e5b3455533
Fix memory leak for HeaderEntity instances:
...
the getArgumentCount() call in IfcEntityInstanceData destructor isn't virtually dispatched so it returns 0 instead of correct number of arguments => memory leak
added IfcEntityInstanceData::clearArguments() which clears all arguments and resets the attributes_ field to nullptr
Remove unnecessary copy in IfcEntityInstanceData::setArgument() when argument is created at the call site (no more leak of original argument)
Fix memory leak in IfcFile: delete entities from both byid and entity_file_map
2022-05-08 10:21:46 +02:00
Thomas Krijnen
2985bba157
#650 Unsure about 1b5c20e14f
2022-03-19 20:18:12 +00:00
Thomas Krijnen
1b5c20e14f
#650 fclose()
2022-03-19 14:45:19 +01:00
Dion Moult
ebe5460a9f
Fix segfault thanks to aothms.
2021-12-02 09:28:04 +01:00
Dion Moult
01bc29c5b2
Purge by_ref_cached_
2021-12-02 09:28:04 +01:00
Dion Moult
5ad6d455f9
get_total_inverses now efficiently gets the full number of references to an entity
2021-12-02 09:28:04 +01:00
Dion Moult
cef1c86f6d
Experimental get_inverse_cardinality proposal. See #1904 .
2021-12-02 09:28:04 +01:00
Thomas Krijnen
0504556e7a
#1885 consider schema type when copying attribute values
2021-11-19 09:38:28 +01:00
Thomas Krijnen
cd965fd4a9
todo note re #1769
2021-10-03 09:00:59 +02:00