19 #include <stk_util/util/string_case_compare.hpp> 20 #include <stk_mesh/base/MetaData.hpp> 27 Property<void>::~Property() {}
30 MetaData::get_property_base(
const std::string & name ,
31 const std::type_info & type ,
34 PropertyBase * p = NULL ;
36 std::vector< PropertyBase * >::const_iterator i ;
37 for ( i = m_properties.begin() ;
41 if ( i != m_properties.end() ) {
42 const bool error_type = ( (*i)->m_type != type );
43 const bool error_size = size && ( (*i)->m_size != size );
45 ThrowErrorMsgIf( error_type,
46 "For property name " << name <<
": " <<
47 " actual_type(" << (*i)->m_type.name() <<
48 ") != request_type(" << type.name() <<
")");
50 ThrowErrorMsgIf( error_size,
51 "For property name " << name <<
": " <<
52 " actual_size(" << (*i)->m_size <<
53 ") != request_size(" << size <<
")") ;
bool not_equal_case(const char *lhs, const char *rhs)
Case-insensitive inequality compare.