Language

The Free and Open Productivity Suite
Apache OpenOffice 4.1.10 released

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: star :: test :: performance ::

interface XPerformanceTest
Description
A performance test object has to be implemented in a special way, that:
  • queryInterface() execution times remain (nearly) static
  • functions kept simple, thus there is (nearly) no execution time of the function itself
  • no dynamic data is ever returned except of createObject(), so return 0, empty strings etc.
The interface is divided into three sections:
  • measuring asynchron/ synchron calls
  • complex data calls with/out return value; in/out parameters
  • single data types like long, float, string etc.
  • method calls versa attribute calls
  • raising RuntimeException

Methods' Summary
async  
sync  
complex_in  
complex_inout  
complex_oneway  
complex_noreturn  
createObject  
getLong  
setLong  
getHyper  
setHyper  
getFloat  
setFloat  
getDouble  
setDouble  
getString  
setString  
getInterface  
setInterface  
getAny  
setAny  
getSequence  
setSequence  
getStruct  
setStruct  
raiseRuntimeException  
Attributes' Summary
Long_attr  
Hyper_attr  
Float_attr  
Double_attr  
String_attr  
Interface_attr  
Any_attr  
Sequence_attr  
Struct_attr  
Methods' Details
async
[oneway] void
async();

sync
void
sync();

complex_in
ComplexTypes
complex_in( [in] ComplexTypes  aVal );

complex_inout
ComplexTypes
complex_inout( [inout] ComplexTypes  aVal );

complex_oneway
[oneway] void
complex_oneway( [in] ComplexTypes  aVal );

complex_noreturn
void
complex_noreturn( [in] ComplexTypes  aVal );

createObject
XPerformanceTest
createObject();

getLong
long
getLong();

setLong
void
setLong( [in] long  n );

getHyper
hyper
getHyper();

setHyper
void
setHyper( [in] hyper  n );

getFloat
float
getFloat();

setFloat
void
setFloat( [in] float  f );

getDouble
double
getDouble();

setDouble
void
setDouble( [in] double  f );

getString
string
getString();

setString
void
setString( [in] string  s );

getInterface
::com::sun::star::uno::XInterface
getInterface();

setInterface
void
setInterface( [in] ::com::sun::star::uno::XInterface  x );

getAny
any
getAny();

setAny
void
setAny( [in] any  a );

getSequence
sequence< ::com::sun::star::uno::XInterface >
getSequence();

setSequence
void
setSequence( [in] sequence< ::com::sun::star::uno::XInterface >  seq );

getStruct
ComplexTypes
getStruct();

setStruct
void
setStruct( [in] ComplexTypes  c );

raiseRuntimeException
void
raiseRuntimeException();

Attributes' Details
Long_attr
long Long_attr;
Hyper_attr
hyper Hyper_attr;
Float_attr
float Float_attr;
Double_attr
double Double_attr;
String_attr
string String_attr;
Interface_attr
::com::sun::star::uno::XInterface Interface_attr;
Any_attr
any Any_attr;
Sequence_attr
sequence< ::com::sun::star::uno::XInterface > Sequence_attr;
Struct_attr
ComplexTypes Struct_attr;
Top of Page

Apache Software Foundation

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

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