29 for(
size_t i = 0; i < len; ++i )
45 fprintf(stderr,
"[Warning]: No mesh tag %s value for global/mesh tag\n", name.c_str());
52 :
TagInfo( name,
size, type, default_value, default_value_size )
114 const void** data_ptrs,
115 int* data_lengths )
const
135 for(
size_t i = 0; i < num_entities; ++i )
139 if( data_lengths ) data_lengths[i] = len;
165 if( num_entities > 0 )
168 const unsigned char* bytes =
reinterpret_cast< const unsigned char*
>( data );
181 else if( range.
empty() )
191 void const*
const* data_ptrs,
192 const int* data_lengths )
198 if( num_entities > 0 )
200 mValue.resize( data_lengths[num_entities - 1] );
201 memcpy( &
mValue[0], data_ptrs[num_entities - 1],
mValue.size() );
219 const void* value_ptr,
226 if( num_entities > 0 )
228 mValue.resize( value_len );
229 memcpy( &
mValue[0], value_ptr, value_len );
246 size_t num_entities )
250 if( num_entities )
mValue.clear();
299 return ( 0 == h ) && ( !
mValue.empty() );