text: /* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */
  
  #include <sstream>
  #include <limits>
  #include <map>
  #include "ifcpp/reader/ReaderUtil.h"
  #include "ifcpp/writer/WriterUtil.h"
  #include "ifcpp/model/BasicTypes.h"
  #include "ifcpp/model/BuildingException.h"
  #include "ifcpp/IFC4/include/IfcPlateTypeEnum.h"
  
  // TYPE IfcPlateTypeEnum = ENUMERATION OF	(CURTAIN_PANEL	,SHEET	,USERDEFINED	,NOTDEFINED);
  shared_ptr<BuildingObject> IfcPlateTypeEnum::getDeepCopy( BuildingCopyOptions& options )
  {
  	shared_ptr<IfcPlateTypeEnum> copy_self( new IfcPlateTypeEnum() );
  	copy_self->m_enum = m_enum;
  	return copy_self;
  }
  void IfcPlateTypeEnum::getStepParameter( std::stringstream& stream, bool is_select_type ) const
  {
  	if( is_select_type ) { stream << "IFCPLATETYPEENUM("; }
  	switch( m_enum )
  	{
  		case ENUM_CURTAIN_PANEL:	stream << ".CURTAIN_PANEL."; break;
  		case ENUM_SHEET:	stream << ".SHEET."; break;
  		case ENUM_USERDEFINED:	stream << ".USERDEFINED."; break;
  		case ENUM_NOTDEFINED:	stream << ".NOTDEFINED."; break;
  	}
  	if( is_select_type ) { stream << ")"; }
  }
  const std::wstring IfcPlateTypeEnum::toString() const
  {
  	switch( m_enum ) 
  	{
  		case ENUM_CURTAIN_PANEL:	return L"CURTAIN_PANEL";
  		case ENUM_SHEET:	return L"SHEET";
  		case ENUM_USERDEFINED:	return L"USERDEFINED";
  		case ENUM_NOTDEFINED:	return L"NOTDEFINED";
  	}
  	return L"";
  }
  shared_ptr<IfcPlateTypeEnum> IfcPlateTypeEnum::createObjectFromSTEP( const std::wstring& arg, const std::map<int,shared_ptr<BuildingEntity> >& map )
  {
  	if( arg.compare( L"$" ) == 0 ) { return shared_ptr<IfcPlateTypeEnum>(); }
  	if( arg.compare( L"*" ) == 0 ) { return shared_ptr<IfcPlateTypeEnum>(); }
  	shared_ptr<IfcPlateTypeEnum> type_object( new IfcPlateTypeEnum() );
  	if( boost::iequals( arg, L".CURTAIN_PANEL." ) )
  	{
  		type_object->m_enum = IfcPlateTypeEnum::ENUM_CURTAIN_PANEL;
  	}
  	else if( boost::iequals( arg, L".SHEET." ) )
  	{
  		type_object->m_enum = IfcPlateTypeEnum::ENUM_SHEET;
  	}
  	else if( boost::iequals( arg, L".USERDEFINED." ) )
  	{
  		type_object->m_enum = IfcPlateTypeEnum::ENUM_USERDEFINED;
  	}
  	else if( boost::iequals( arg, L".NOTDEFINED." ) )
  	{
  		type_object->m_enum = IfcPlateTypeEnum::ENUM_NOTDEFINED;
  	}
  	return type_object;
  }
  