Language:

The Free and Open Productivity Suite
Apache OpenOffice 4.1.4 released

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous


Global Functions in Namespace cppu
in Sourcefile proptypehlp.h


convertPropertyValue

template< typename target >


void convertPropertyValue(
target & value,
::com::sun::star::uno::Any & a );

virtual abstract const volatile template static inline C-linkage
NO NO NO NO YES NO YES NO

Description
Converts the value stored in an any to a concrete C++ type. The function does the same as the operator >>= () at the Any class, except that it throws an IllegalArgumentException in case of failures (the value cannot be extracted without data loss )

convertPropertyValue
void convertPropertyValue(
sal_Int64 & target,
const ::com::sun::star::uno::Any & source )
throw( ::com::sun::star::lang::IllegalArgumentException );

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO

Summary
conversion of basic types

convertPropertyValue
void convertPropertyValue(
sal_uInt64 & target,
const ::com::sun::star::uno::Any & source )
throw( ::com::sun::star::lang::IllegalArgumentException );

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


convertPropertyValue
void convertPropertyValue(
sal_Int32 & target,
const ::com::sun::star::uno::Any & source )
throw( ::com::sun::star::lang::IllegalArgumentException );

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


convertPropertyValue
void convertPropertyValue(
sal_uInt32 & target,
const ::com::sun::star::uno::Any & source )
throw( ::com::sun::star::lang::IllegalArgumentException );

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


convertPropertyValue
void convertPropertyValue(
sal_Int16 & target,
const ::com::sun::star::uno::Any & source )
throw( ::com::sun::star::lang::IllegalArgumentException );

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


convertPropertyValue
void convertPropertyValue(
sal_uInt16 & target,
const ::com::sun::star::uno::Any & source )
throw( ::com::sun::star::lang::IllegalArgumentException );

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


convertPropertyValue
void convertPropertyValue(
sal_Int8 & target,
const ::com::sun::star::uno::Any & source )
throw( ::com::sun::star::lang::IllegalArgumentException );

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


convertPropertyValue
void convertPropertyValue(
float & target,
const ::com::sun::star::uno::Any & source )
throw( ::com::sun::star::lang::IllegalArgumentException );

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


convertPropertyValue
void convertPropertyValue(
double & target,
const ::com::sun::star::uno::Any & source )
throw( ::com::sun::star::lang::IllegalArgumentException );

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


convertPropertyValue
void convertPropertyValue(
::rtl::OUString & target,
const ::com::sun::star::uno::Any & source )
throw( ::com::sun::star::lang::IllegalArgumentException );

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO YES NO


Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache and the Apache feather logo are trademarks of The Apache Software Foundation. OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.