| 138 | } |
| 139 | |
| 140 | void IfcSpfHeader::read() { |
| 141 | readTerminal(ISO_10303_21, TRAILING_SEMICOLON); |
| 142 | readTerminal(HEADER, TRAILING_SEMICOLON); |
| 143 | |
| 144 | // | The header section of every exchange structure shall contain one |
| 145 | // | instance of each of the following entities: file_description, file_name, |
| 146 | // | and file_schema, and they shall appear in that order. Instances of |
| 147 | // | file_population, section_language and section_context may appear after |
| 148 | // | file_schema. If instances of user-defined header section entities are |
| 149 | // | present, they shall appear after the header section entity instances |
| 150 | // | defined in this section. |
| 151 | // |
| 152 | // ISO 10303-21 Second edition 2002-01-15 p. 16 |
| 153 | |
| 154 | readTerminal(Header_section_schema::file_description::Class().name_uc(), NONE); |
| 155 | delete file_description_; |
| 156 | file_description_ = new Header_section_schema::file_description(read_from_spf_file(storage_, &Header_section_schema::file_description::Class())); |
| 157 | file_description_->file_ = file_; |
| 158 | readSemicolon(); |
| 159 | |
| 160 | readTerminal(Header_section_schema::file_name::Class().name_uc(), NONE); |
| 161 | delete file_name_; |
| 162 | file_name_ = new Header_section_schema::file_name(read_from_spf_file(storage_, &Header_section_schema::file_name::Class())); |
| 163 | file_name_->file_ = file_; |
| 164 | readSemicolon(); |
| 165 | |
| 166 | readTerminal(Header_section_schema::file_schema::Class().name_uc(), NONE); |
| 167 | delete file_schema_; |
| 168 | file_schema_ = new Header_section_schema::file_schema(read_from_spf_file(storage_, &Header_section_schema::file_schema::Class())); |
| 169 | file_schema_->file_ = file_; |
| 170 | readSemicolon(); |
| 171 | } |
| 172 | |
| 173 | bool IfcSpfHeader::tryRead() { |
| 174 | try { |
nothing calls this directly
no test coverage detected