本文整理汇总了C++中readEntityReferenceList函数的典型用法代码示例。如果您正苦于以下问题:C++ readEntityReferenceList函数的具体用法?C++ readEntityReferenceList怎么用?C++ readEntityReferenceList使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了readEntityReferenceList函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: readEntityReferenceList
void IfcRationalBSplineCurveWithKnots::readStepArguments( const std::vector<std::wstring>& args, const std::map<int,shared_ptr<BuildingEntity> >& map )
{
const size_t num_args = args.size();
if( num_args != 9 ){ std::stringstream err; err << "Wrong parameter count for entity IfcRationalBSplineCurveWithKnots, expecting 9, having " << num_args << ". Entity ID: " << m_entity_id << std::endl; throw BuildingException( err.str().c_str() ); }
m_Degree = IfcInteger::createObjectFromSTEP( args[0], map );
readEntityReferenceList( args[1], m_ControlPointsList, map );
m_CurveForm = IfcBSplineCurveForm::createObjectFromSTEP( args[2], map );
m_ClosedCurve = IfcLogical::createObjectFromSTEP( args[3], map );
m_SelfIntersect = IfcLogical::createObjectFromSTEP( args[4], map );
readTypeOfIntegerList( args[5], m_KnotMultiplicities );
readTypeOfRealList( args[6], m_Knots );
m_KnotSpec = IfcKnotType::createObjectFromSTEP( args[7], map );
readTypeOfRealList( args[8], m_WeightsData );
}
示例2: readEntityReference
void IfcReinforcementDefinitionProperties::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<Ifc2x3Entity> >& map )
{
const int num_args = (int)args.size();
if( num_args<6 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcReinforcementDefinitionProperties, expecting 6, having " << num_args << ". Object id: " << getId() << std::endl; throw Ifc2x3Exception( strserr.str().c_str() ); }
#ifdef _DEBUG
if( num_args>6 ){ std::cout << "Wrong parameter count for entity IfcReinforcementDefinitionProperties, expecting 6, having " << num_args << ". Object id: " << getId() << std::endl; }
#endif
m_GlobalId = IfcGloballyUniqueId::readStepData( args[0] );
readEntityReference( args[1], m_OwnerHistory, map );
m_Name = IfcLabel::readStepData( args[2] );
m_Description = IfcText::readStepData( args[3] );
m_DefinitionType = IfcLabel::readStepData( args[4] );
readEntityReferenceList( args[5], m_ReinforcementSectionDefinitions, map );
}
示例3: readEntityReference
void IfcSectionReinforcementProperties::readStepArguments( const std::vector<std::string>& args, const std::map<int,shared_ptr<IfcPPEntity> >& map )
{
const int num_args = (int)args.size();
if( num_args<6 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcSectionReinforcementProperties, expecting 6, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcPPException( strserr.str().c_str() ); }
#ifdef _DEBUG
if( num_args>6 ){ std::cout << "Wrong parameter count for entity IfcSectionReinforcementProperties, expecting 6, having " << num_args << ". Object id: " << getId() << std::endl; }
#endif
m_LongitudinalStartPosition = IfcLengthMeasure::createObjectFromStepData( args[0] );
m_LongitudinalEndPosition = IfcLengthMeasure::createObjectFromStepData( args[1] );
m_TransversePosition = IfcLengthMeasure::createObjectFromStepData( args[2] );
m_ReinforcementRole = IfcReinforcingBarRoleEnum::createObjectFromStepData( args[3] );
readEntityReference( args[4], m_SectionDefinition, map );
readEntityReferenceList( args[5], m_CrossSectionReinforcementDefinitions, map );
}
示例4: readEntityReference
void IfcRelReferencedInSpatialStructure::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<IfcBridgeEntity> >& map )
{
const int num_args = (int)args.size();
if( num_args<6 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcRelReferencedInSpatialStructure, expecting 6, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcBridgeException( strserr.str().c_str() ); }
#ifdef _DEBUG
if( num_args>6 ){ std::cout << "Wrong parameter count for entity IfcRelReferencedInSpatialStructure, expecting 6, having " << num_args << ". Object id: " << getId() << std::endl; }
#endif
m_GlobalId = IfcGloballyUniqueId::readStepData( args[0] );
readEntityReference( args[1], m_OwnerHistory, map );
m_Name = IfcLabel::readStepData( args[2] );
m_Description = IfcText::readStepData( args[3] );
readEntityReferenceList( args[4], m_RelatedElements, map );
readEntityReference( args[5], m_RelatingStructure, map );
}
示例5: readIntValue
void IfcBSplineCurve::readStepArguments( const std::vector<std::wstring>& args, const boost::unordered_map<int,shared_ptr<IfcPPEntity> >& map )
{
const int num_args = (int)args.size();
if( num_args != 5 ){ std::stringstream err; err << "Wrong parameter count for entity IfcBSplineCurve, expecting 5, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); }
readIntValue( args[0], m_Degree );
readEntityReferenceList( args[1], m_ControlPointsList, map );
m_CurveForm = IfcBSplineCurveForm::createObjectFromSTEP( args[2] );
if( boost::iequals( args[3], L".F." ) ) { m_ClosedCurve = LOGICAL_FALSE; }
else if( boost::iequals( args[3], L".T." ) ) { m_ClosedCurve = LOGICAL_TRUE; }
else if( boost::iequals( args[3], L".U." ) ) { m_ClosedCurve = LOGICAL_UNKNOWN; }
if( boost::iequals( args[4], L".F." ) ) { m_SelfIntersect = LOGICAL_FALSE; }
else if( boost::iequals( args[4], L".T." ) ) { m_SelfIntersect = LOGICAL_TRUE; }
else if( boost::iequals( args[4], L".U." ) ) { m_SelfIntersect = LOGICAL_UNKNOWN; }
}
示例6: readEntityReference
void IfcContext::readStepArguments( const std::vector<std::wstring>& args, const boost::unordered_map<int,shared_ptr<IfcPPEntity> >& map )
{
const int num_args = (int)args.size();
if( num_args != 9 ){ std::stringstream err; err << "Wrong parameter count for entity IfcContext, expecting 9, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); }
m_GlobalId = IfcGloballyUniqueId::createObjectFromSTEP( args[0] );
readEntityReference( args[1], m_OwnerHistory, map );
m_Name = IfcLabel::createObjectFromSTEP( args[2] );
m_Description = IfcText::createObjectFromSTEP( args[3] );
m_ObjectType = IfcLabel::createObjectFromSTEP( args[4] );
m_LongName = IfcLabel::createObjectFromSTEP( args[5] );
m_Phase = IfcLabel::createObjectFromSTEP( args[6] );
readEntityReferenceList( args[7], m_RepresentationContexts, map );
readEntityReference( args[8], m_UnitsInContext, map );
}
示例7: readEntityReference
void IfcRelConnectsWithRealizingElements::readStepArguments( const std::vector<std::wstring>& args, const std::map<int,shared_ptr<BuildingEntity> >& map )
{
const size_t num_args = args.size();
if( num_args != 9 ){ std::stringstream err; err << "Wrong parameter count for entity IfcRelConnectsWithRealizingElements, expecting 9, having " << num_args << ". Entity ID: " << m_entity_id << std::endl; throw BuildingException( err.str().c_str() ); }
m_GlobalId = IfcGloballyUniqueId::createObjectFromSTEP( args[0], map );
readEntityReference( args[1], m_OwnerHistory, map );
m_Name = IfcLabel::createObjectFromSTEP( args[2], map );
m_Description = IfcText::createObjectFromSTEP( args[3], map );
readEntityReference( args[4], m_ConnectionGeometry, map );
readEntityReference( args[5], m_RelatingElement, map );
readEntityReference( args[6], m_RelatedElement, map );
readEntityReferenceList( args[7], m_RealizingElements, map );
m_ConnectionType = IfcLabel::createObjectFromSTEP( args[8], map );
}
示例8: readEntityReferenceList
void IfcPhysicalComplexQuantity::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<IfcAlignmentP6Entity> >& map )
{
const int num_args = (int)args.size();
if( num_args<6 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcPhysicalComplexQuantity, expecting 6, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcAlignmentP6Exception( strserr.str().c_str() ); }
#ifdef _DEBUG
if( num_args>6 ){ std::cout << "Wrong parameter count for entity IfcPhysicalComplexQuantity, expecting 6, having " << num_args << ". Object id: " << getId() << std::endl; }
#endif
m_Name = IfcLabel::readStepData( args[0] );
m_Description = IfcText::readStepData( args[1] );
readEntityReferenceList( args[2], m_HasQuantities, map );
m_Discrimination = IfcLabel::readStepData( args[3] );
m_Quality = IfcLabel::readStepData( args[4] );
m_Usage = IfcLabel::readStepData( args[5] );
}
示例9: readEntityReference
void IfcTypeResource::readStepArguments( const std::vector<std::wstring>& args, const boost::unordered_map<int,shared_ptr<IfcPPEntity> >& map )
{
const int num_args = (int)args.size();
if( num_args != 9 ){ std::stringstream err; err << "Wrong parameter count for entity IfcTypeResource, expecting 9, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); }
m_GlobalId = IfcGloballyUniqueId::createObjectFromSTEP( args[0] );
readEntityReference( args[1], m_OwnerHistory, map );
m_Name = IfcLabel::createObjectFromSTEP( args[2] );
m_Description = IfcText::createObjectFromSTEP( args[3] );
m_ApplicableOccurrence = IfcIdentifier::createObjectFromSTEP( args[4] );
readEntityReferenceList( args[5], m_HasPropertySets, map );
m_Identification = IfcIdentifier::createObjectFromSTEP( args[6] );
m_LongDescription = IfcText::createObjectFromSTEP( args[7] );
m_ResourceType = IfcLabel::createObjectFromSTEP( args[8] );
}
示例10: readEntityReferenceList
void IfcIrregularTimeSeries::readStepArguments( const std::vector<std::wstring>& args, const std::map<int,shared_ptr<BuildingEntity> >& map )
{
const size_t num_args = args.size();
if( num_args != 9 ){ std::stringstream err; err << "Wrong parameter count for entity IfcIrregularTimeSeries, expecting 9, having " << num_args << ". Entity ID: " << m_entity_id << std::endl; throw BuildingException( err.str().c_str() ); }
m_Name = IfcLabel::createObjectFromSTEP( args[0], map );
m_Description = IfcText::createObjectFromSTEP( args[1], map );
m_StartTime = IfcDateTime::createObjectFromSTEP( args[2], map );
m_EndTime = IfcDateTime::createObjectFromSTEP( args[3], map );
m_TimeSeriesDataType = IfcTimeSeriesDataTypeEnum::createObjectFromSTEP( args[4], map );
m_DataOrigin = IfcDataOriginEnum::createObjectFromSTEP( args[5], map );
m_UserDefinedDataOrigin = IfcLabel::createObjectFromSTEP( args[6], map );
m_Unit = IfcUnit::createObjectFromSTEP( args[7], map );
readEntityReferenceList( args[8], m_Values, map );
}
示例11: readIntValue
void IfcBezierCurve::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<Ifc2x3Entity> >& map )
{
const int num_args = (int)args.size();
if( num_args<5 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcBezierCurve, expecting 5, having " << num_args << ". Object id: " << getId() << std::endl; throw Ifc2x3Exception( strserr.str().c_str() ); }
#ifdef _DEBUG
if( num_args>5 ){ std::cout << "Wrong parameter count for entity IfcBezierCurve, expecting 5, having " << num_args << ". Object id: " << getId() << std::endl; }
#endif
readIntValue( args[0], m_Degree );
readEntityReferenceList( args[1], m_ControlPointsList, map );
m_CurveForm = IfcBSplineCurveForm::readStepData( args[2] );
if( _stricmp( args[3].c_str(), ".F." ) == 0 ) { m_ClosedCurve = false; }
else if( _stricmp( args[3].c_str(), ".T." ) == 0 ) { m_ClosedCurve = true; }
if( _stricmp( args[4].c_str(), ".F." ) == 0 ) { m_SelfIntersect = false; }
else if( _stricmp( args[4].c_str(), ".T." ) == 0 ) { m_SelfIntersect = true; }
}
示例12: readEntityReferenceList
void IfcShapeAspect::readStepArguments( const std::vector<std::string>& args, const std::map<int,shared_ptr<IfcPPEntity> >& map )
{
const int num_args = (int)args.size();
if( num_args<5 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcShapeAspect, expecting 5, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcPPException( strserr.str().c_str() ); }
#ifdef _DEBUG
if( num_args>5 ){ std::cout << "Wrong parameter count for entity IfcShapeAspect, expecting 5, having " << num_args << ". Object id: " << getId() << std::endl; }
#endif
readEntityReferenceList( args[0], m_ShapeRepresentations, map );
m_Name = IfcLabel::createObjectFromStepData( args[1] );
m_Description = IfcText::createObjectFromStepData( args[2] );
if( _stricmp( args[3].c_str(), ".F." ) == 0 ) { m_ProductDefinitional = LOGICAL_FALSE; }
else if( _stricmp( args[3].c_str(), ".T." ) == 0 ) { m_ProductDefinitional = LOGICAL_TRUE; }
else if( _stricmp( args[3].c_str(), ".U." ) == 0 ) { m_ProductDefinitional = LOGICAL_UNKNOWN; }
m_PartOfProductDefinitionShape = IfcProductRepresentationSelect::createObjectFromStepData( args[4], map );
}
示例13: readEntityReference
void IfcComplexPropertyTemplate::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<IfcBridgeEntity> >& map )
{
const int num_args = (int)args.size();
if( num_args<7 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcComplexPropertyTemplate, expecting 7, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcBridgeException( strserr.str().c_str() ); }
#ifdef _DEBUG
if( num_args>7 ){ std::cout << "Wrong parameter count for entity IfcComplexPropertyTemplate, expecting 7, having " << num_args << ". Object id: " << getId() << std::endl; }
#endif
m_GlobalId = IfcGloballyUniqueId::readStepData( args[0] );
readEntityReference( args[1], m_OwnerHistory, map );
m_Name = IfcLabel::readStepData( args[2] );
m_Description = IfcText::readStepData( args[3] );
m_UsageName = IfcLabel::readStepData( args[4] );
m_TemplateType = IfcComplexPropertyTemplateTypeEnum::readStepData( args[5] );
readEntityReferenceList( args[6], m_HasPropertyTemplates, map );
}
示例14: readEntityReference
void IfcRelAssignsToControl::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<IfcAlignmentP6Entity> >& map )
{
const int num_args = (int)args.size();
if( num_args<7 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcRelAssignsToControl, expecting 7, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcAlignmentP6Exception( strserr.str().c_str() ); }
#ifdef _DEBUG
if( num_args>7 ){ std::cout << "Wrong parameter count for entity IfcRelAssignsToControl, expecting 7, having " << num_args << ". Object id: " << getId() << std::endl; }
#endif
m_GlobalId = IfcGloballyUniqueId::readStepData( args[0] );
readEntityReference( args[1], m_OwnerHistory, map );
m_Name = IfcLabel::readStepData( args[2] );
m_Description = IfcText::readStepData( args[3] );
readEntityReferenceList( args[4], m_RelatedObjects, map );
m_RelatedObjectsType = IfcObjectTypeEnum::readStepData( args[5] );
readEntityReference( args[6], m_RelatingControl, map );
}
示例15: readEntityReference
void IfcReinforcingBarType::readStepData( std::vector<std::string>& args, const std::map<int,shared_ptr<IfcAlignmentP6Entity> >& map )
{
const int num_args = (int)args.size();
if( num_args<16 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcReinforcingBarType, expecting 16, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcAlignmentP6Exception( strserr.str().c_str() ); }
#ifdef _DEBUG
if( num_args>16 ){ std::cout << "Wrong parameter count for entity IfcReinforcingBarType, expecting 16, having " << num_args << ". Object id: " << getId() << std::endl; }
#endif
m_GlobalId = IfcGloballyUniqueId::readStepData( args[0] );
readEntityReference( args[1], m_OwnerHistory, map );
m_Name = IfcLabel::readStepData( args[2] );
m_Description = IfcText::readStepData( args[3] );
m_ApplicableOccurrence = IfcIdentifier::readStepData( args[4] );
readEntityReferenceList( args[5], m_HasPropertySets, map );
readEntityReferenceList( args[6], m_RepresentationMaps, map );
m_Tag = IfcLabel::readStepData( args[7] );
m_ElementType = IfcLabel::readStepData( args[8] );
m_PredefinedType = IfcReinforcingBarTypeEnum::readStepData( args[9] );
m_NominalDiameter = IfcPositiveLengthMeasure::readStepData( args[10] );
m_CrossSectionArea = IfcAreaMeasure::readStepData( args[11] );
m_BarLength = IfcPositiveLengthMeasure::readStepData( args[12] );
m_BarSurface = IfcReinforcingBarSurfaceEnum::readStepData( args[13] );
m_BendingShapeCode = IfcLabel::readStepData( args[14] );
readSelectList( args[15], m_BendingParameters, map );
}