Пример #1
0
Variant::data_type View::PropertyType( const IsoString& property ) const
{
   uint64 type = 0;
   if ( (*API->View->GetViewPropertyAttributes)( ModuleHandle(), handle, property.c_str(), 0/*flags*/, &type ) == api_false )
      throw APIFunctionError( "GetViewPropertyAttributes" );
   return VariantTypeFromAPIPropertyType( type );
}
Пример #2
0
static api_bool APIPropertyEnumerationCallback( const char* id, uint64 type, void* data )
{
   reinterpret_cast<ImagePropertyDescriptionArray*>( data )->Append(
         ImagePropertyDescription( id, VariantTypeFromAPIPropertyType( type ) ) );
   return api_true;
}