void Cell::initializeDef (matvar_t *defStructure) { int dim = -1; def d; char *variable = new char [11]; double *auxD = NULL; int *el = NULL; assert (variable != NULL); strcpy (variable, "w"); readNumber (defStructure, variable, &auxD, &dim); for (int i = 0; i < dim; i++) d.w[i] = auxD[i]; delete[] auxD; strcpy (variable, "blocklabel"); readNumber (defStructure, variable, &el, &dim); d.blocklabel = el[0]; delete[] el; strcpy (variable, "flip"); d.flip = readLogical (defStructure, variable); strcpy (variable, "symmetric"); d.symmetric = readString (defStructure, variable)[0]; setDef (d); delete[] variable; }
shared_ptr<IfcLogical> IfcLogical::createObjectFromSTEP( const std::wstring& arg, const std::map<int,shared_ptr<BuildingEntity> >& map ) { if( arg.compare( L"$" ) == 0 ) { return shared_ptr<IfcLogical>(); } if( arg.compare( L"*" ) == 0 ) { return shared_ptr<IfcLogical>(); } shared_ptr<IfcLogical> type_object( new IfcLogical() ); readLogical( arg, type_object->m_value ); return type_object; }
shared_ptr<IfcLogical> IfcLogical::createObjectFromSTEP( const std::wstring& arg ) { // read TYPE if( arg.compare( L"$" ) == 0 ) { return shared_ptr<IfcLogical>(); } else if( arg.compare( L"*" ) == 0 ) { return shared_ptr<IfcLogical>(); } shared_ptr<IfcLogical> type_object( new IfcLogical() ); readLogical( arg, type_object->m_value ); return type_object; }