本文整理汇总了C++中IfcPPException函数的典型用法代码示例。如果您正苦于以下问题:C++ IfcPPException函数的具体用法?C++ IfcPPException怎么用?C++ IfcPPException使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了IfcPPException函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: readStepArguments
void IfcStructuralAnalysisModel::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 != 10 ){ std::stringstream err; err << "Wrong parameter count for entity IfcStructuralAnalysisModel, expecting 10, 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_PredefinedType = IfcAnalysisModelTypeEnum::createObjectFromSTEP( args[5] );
readEntityReference( args[6], m_OrientationOf2DPlane, map );
readEntityReferenceList( args[7], m_LoadedBy, map );
readEntityReferenceList( args[8], m_HasResults, map );
readEntityReference( args[9], m_SharedPlacement, map );
}
示例2: readStepArguments
void IfcFillAreaStyle::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 != 3 ){ std::stringstream err; err << "Wrong parameter count for entity IfcFillAreaStyle, expecting 3, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); }
m_Name = IfcLabel::createObjectFromSTEP( args[0] );
readSelectList( args[1], m_FillStyles, map );
if( boost::iequals( args[2], L".F." ) ) { m_ModelorDraughting = false; }
else if( boost::iequals( args[2], L".T." ) ) { m_ModelorDraughting = true; }
}
示例3: readStepArguments
void IfcActuator::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 IfcActuator, 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] );
readEntityReference( args[5], m_ObjectPlacement, map );
readEntityReference( args[6], m_Representation, map );
m_Tag = IfcIdentifier::createObjectFromSTEP( args[7] );
m_PredefinedType = IfcActuatorTypeEnum::createObjectFromSTEP( args[8] );
}
示例4: readStepArguments
void IfcStairFlight::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 != 13 ){ std::stringstream err; err << "Wrong parameter count for entity IfcStairFlight, expecting 13, 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] );
readEntityReference( args[5], m_ObjectPlacement, map );
readEntityReference( args[6], m_Representation, map );
m_Tag = IfcIdentifier::createObjectFromSTEP( args[7] );
readIntValue( args[8], m_NumberOfRiser );
readIntValue( args[9], m_NumberOfTreads );
m_RiserHeight = IfcPositiveLengthMeasure::createObjectFromSTEP( args[10] );
m_TreadLength = IfcPositiveLengthMeasure::createObjectFromSTEP( args[11] );
m_PredefinedType = IfcStairFlightTypeEnum::createObjectFromSTEP( args[12] );
}
示例5: readStepArguments
void IfcRectangularTrimmedSurface::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 != 7 ){ std::stringstream err; err << "Wrong parameter count for entity IfcRectangularTrimmedSurface, expecting 7, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); }
readEntityReference( args[0], m_BasisSurface, map );
m_U1 = IfcParameterValue::createObjectFromSTEP( args[1] );
m_V1 = IfcParameterValue::createObjectFromSTEP( args[2] );
m_U2 = IfcParameterValue::createObjectFromSTEP( args[3] );
m_V2 = IfcParameterValue::createObjectFromSTEP( args[4] );
m_Usense = IfcBoolean::createObjectFromSTEP( args[5] );
m_Vsense = IfcBoolean::createObjectFromSTEP( args[6] );
}
示例6: readStepArguments
void IfcQuantitySet::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 != 4 ){ std::stringstream err; err << "Wrong parameter count for entity IfcQuantitySet, expecting 4, 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] );
}
示例7: readStepArguments
void IfcTShapeProfileDef::readStepArguments( const std::vector<std::wstring>& args, const map_t<int,shared_ptr<IfcPPEntity> >& map )
{
const auto num_args = args.size();
if( num_args != 12 ){ std::stringstream err; err << "Wrong parameter count for entity IfcTShapeProfileDef, expecting 12, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); }
m_ProfileType = IfcProfileTypeEnum::createObjectFromSTEP( args[0] );
m_ProfileName = IfcLabel::createObjectFromSTEP( args[1] );
readEntityReference( args[2], m_Position, map );
m_Depth = IfcPositiveLengthMeasure::createObjectFromSTEP( args[3] );
m_FlangeWidth = IfcPositiveLengthMeasure::createObjectFromSTEP( args[4] );
m_WebThickness = IfcPositiveLengthMeasure::createObjectFromSTEP( args[5] );
m_FlangeThickness = IfcPositiveLengthMeasure::createObjectFromSTEP( args[6] );
m_FilletRadius = IfcNonNegativeLengthMeasure::createObjectFromSTEP( args[7] );
m_FlangeEdgeRadius = IfcNonNegativeLengthMeasure::createObjectFromSTEP( args[8] );
m_WebEdgeRadius = IfcNonNegativeLengthMeasure::createObjectFromSTEP( args[9] );
m_WebSlope = IfcPlaneAngleMeasure::createObjectFromSTEP( args[10] );
m_FlangeSlope = IfcPlaneAngleMeasure::createObjectFromSTEP( args[11] );
}
示例8: readStepArguments
void IfcQuantityTime::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 IfcQuantityTime, expecting 5, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); }
m_Name = IfcLabel::createObjectFromSTEP( args[0] );
m_Description = IfcText::createObjectFromSTEP( args[1] );
readEntityReference( args[2], m_Unit, map );
m_TimeValue = IfcTimeMeasure::createObjectFromSTEP( args[3] );
m_Formula = IfcLabel::createObjectFromSTEP( args[4] );
}
示例9: readStepArguments
void IfcMedicalDeviceType::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<10 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcMedicalDeviceType, expecting 10, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcPPException( strserr.str().c_str() ); }
#ifdef _DEBUG
if( num_args>10 ){ std::cout << "Wrong parameter count for entity IfcMedicalDeviceType, expecting 10, having " << num_args << ". Object id: " << getId() << std::endl; }
#endif
m_GlobalId = IfcGloballyUniqueId::createObjectFromStepData( args[0] );
readEntityReference( args[1], m_OwnerHistory, map );
m_Name = IfcLabel::createObjectFromStepData( args[2] );
m_Description = IfcText::createObjectFromStepData( args[3] );
m_ApplicableOccurrence = IfcIdentifier::createObjectFromStepData( args[4] );
readEntityReferenceList( args[5], m_HasPropertySets, map );
readEntityReferenceList( args[6], m_RepresentationMaps, map );
m_Tag = IfcLabel::createObjectFromStepData( args[7] );
m_ElementType = IfcLabel::createObjectFromStepData( args[8] );
m_PredefinedType = IfcMedicalDeviceTypeEnum::createObjectFromStepData( args[9] );
}
示例10: readStepArguments
void IfcPropertyListValue::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 != 4 ){ std::stringstream err; err << "Wrong parameter count for entity IfcPropertyListValue, expecting 4, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); }
m_Name = IfcIdentifier::createObjectFromSTEP( args[0] );
m_Description = IfcText::createObjectFromSTEP( args[1] );
readSelectList( args[2], m_ListValues, map );
m_Unit = IfcUnit::createObjectFromSTEP( args[3], map );
}
示例11: readStepArguments
void IfcTask::readStepArguments( const std::vector<std::wstring>& args, const map_t<int,shared_ptr<IfcPPEntity> >& map )
{
const auto num_args = args.size();
if( num_args != 13 ){ std::stringstream err; err << "Wrong parameter count for entity IfcTask, expecting 13, 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_Identification = IfcIdentifier::createObjectFromSTEP( args[5] );
m_LongDescription = IfcText::createObjectFromSTEP( args[6] );
m_Status = IfcLabel::createObjectFromSTEP( args[7] );
m_WorkMethod = IfcLabel::createObjectFromSTEP( args[8] );
m_IsMilestone = IfcBoolean::createObjectFromSTEP( args[9] );
m_Priority = IfcInteger::createObjectFromSTEP( args[10] );
readEntityReference( args[11], m_TaskTime, map );
m_PredefinedType = IfcTaskTypeEnum::createObjectFromSTEP( args[12] );
}
示例12: readStepArguments
void IfcMaterialProfileSetUsageTapering::readStepArguments( const std::vector<std::wstring>& args, const map_t<int,shared_ptr<IfcPPEntity> >& map )
{
const auto num_args = args.size();
if( num_args != 5 ){ std::stringstream err; err << "Wrong parameter count for entity IfcMaterialProfileSetUsageTapering, expecting 5, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); }
readEntityReference( args[0], m_ForProfileSet, map );
m_CardinalPoint = IfcCardinalPointReference::createObjectFromSTEP( args[1] );
m_ReferenceExtent = IfcPositiveLengthMeasure::createObjectFromSTEP( args[2] );
readEntityReference( args[3], m_ForProfileEndSet, map );
m_CardinalEndPoint = IfcCardinalPointReference::createObjectFromSTEP( args[4] );
}
示例13: readStepArguments
void IfcOrganization::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 IfcOrganization, expecting 5, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); }
m_Identification = IfcIdentifier::createObjectFromSTEP( args[0] );
m_Name = IfcLabel::createObjectFromSTEP( args[1] );
m_Description = IfcText::createObjectFromSTEP( args[2] );
readEntityReferenceList( args[3], m_Roles, map );
readEntityReferenceList( args[4], m_Addresses, map );
}
示例14: readStepArguments
void IfcBSplineSurfaceWithKnots::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<12 ){ std::stringstream strserr; strserr << "Wrong parameter count for entity IfcBSplineSurfaceWithKnots, expecting 12, having " << num_args << ". Object id: " << getId() << std::endl; throw IfcPPException( strserr.str().c_str() ); }
#ifdef _DEBUG
if( num_args>12 ){ std::cout << "Wrong parameter count for entity IfcBSplineSurfaceWithKnots, expecting 12, having " << num_args << ". Object id: " << getId() << std::endl; }
#endif
readIntValue( args[0], m_UDegree );
readIntValue( args[1], m_VDegree );
readEntityReferenceList2D( args[2], m_ControlPointsList, map );
m_SurfaceForm = IfcBSplineSurfaceForm::createObjectFromStepData( args[3] );
if( _stricmp( args[4].c_str(), ".F." ) == 0 ) { m_UClosed = LOGICAL_FALSE; }
else if( _stricmp( args[4].c_str(), ".T." ) == 0 ) { m_UClosed = LOGICAL_TRUE; }
else if( _stricmp( args[4].c_str(), ".U." ) == 0 ) { m_UClosed = LOGICAL_UNKNOWN; }
if( _stricmp( args[5].c_str(), ".F." ) == 0 ) { m_VClosed = LOGICAL_FALSE; }
else if( _stricmp( args[5].c_str(), ".T." ) == 0 ) { m_VClosed = LOGICAL_TRUE; }
else if( _stricmp( args[5].c_str(), ".U." ) == 0 ) { m_VClosed = LOGICAL_UNKNOWN; }
if( _stricmp( args[6].c_str(), ".F." ) == 0 ) { m_SelfIntersect = LOGICAL_FALSE; }
else if( _stricmp( args[6].c_str(), ".T." ) == 0 ) { m_SelfIntersect = LOGICAL_TRUE; }
else if( _stricmp( args[6].c_str(), ".U." ) == 0 ) { m_SelfIntersect = LOGICAL_UNKNOWN; }
readIntList( args[7], m_UMultiplicities );
readIntList( args[8], m_VMultiplicities );
readTypeOfRealList( args[9], m_UKnots );
readTypeOfRealList( args[10], m_VKnots );
m_KnotSpec = IfcKnotType::createObjectFromStepData( args[11] );
}
示例15: readStepArguments
void IfcNamedUnit::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 != 2 ){ std::stringstream err; err << "Wrong parameter count for entity IfcNamedUnit, expecting 2, having " << num_args << ". Entity ID: " << m_id << std::endl; throw IfcPPException( err.str().c_str() ); }
readEntityReference( args[0], m_Dimensions, map );
m_UnitType = IfcUnitEnum::createObjectFromSTEP( args[1] );
}