Debian Codegraph @

testtools/source/bridgetest/idl/com/sun/star/test/performance/XPerformanceTest.idl

raw
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20 module com
21 {
22 module sun
23 {
24 module star
25 {
26 module test
27 {
28 module performance
29 {
30
31 /** struct of simple types to be carried
32 */
33 published struct SimpleTypes
34 {
35 boolean Bool;
36 char Char;
37 byte Byte;
38 short Short;
39 unsigned short UShort;
40 long Long;
41 unsigned long ULong;
42 hyper Hyper;
43 unsigned hyper UHyper;
44 float Float;
45 double Double;
46 };
47 /** struct ComplexTypes adding Sequence, String, Interface, Any to SimpleTypes
48 */
49 published struct ComplexTypes : SimpleTypes
50 {
51 sequence< long > Sequence;
52 string String;
53 com::sun::star::uno::XInterface Interface;
54 any Any;
55 };
56
57 /** A performance test object has to be implemented in a special way, that:
58 <ul>
59 <li>queryInterface() execution times remain (nearly) static</li>
60 <li>functions kept simple, thus there is (nearly) no execution time of the function itself</li>
61 <li>no dynamic data is ever returned except of createObject(), so return 0, empty strings etc.</li>
62 </ul>
63 The interface is divided into three sections:
64 <ul>
65 <li>measuring asynchron/ synchron calls</li>
66 <li>complex data calls with/out return value; in/out parameters</li>
67 <li>single data types like long, float, string etc.</li>
68 <li>method calls versa attribute calls</li>
69 <li>raising RuntimeException</li>
70 </ul>
71 */
72 published interface XPerformanceTest : com::sun::star::uno::XInterface
73 {
74 void async();
75 void sync();
76
77 ComplexTypes complexIn( [in] ComplexTypes aVal );
78 ComplexTypes complexInout( [inout] ComplexTypes aVal );
79
80 void complexOneway( [in] ComplexTypes aVal );
81 void complexNoreturn( [in] ComplexTypes aVal );
82
83 XPerformanceTest createObject();
84
85 [attribute] long Long_attr;
86 [attribute] hyper Hyper_attr;
87 [attribute] float Float_attr;
88 [attribute] double Double_attr;
89 [attribute] string String_attr;
90 [attribute] com::sun::star::uno::XInterface Interface_attr;
91 [attribute] any Any_attr;
92 [attribute] sequence< com::sun::star::uno::XInterface > Sequence_attr;
93 [attribute] ComplexTypes Struct_attr;
94
95 long getLong();
96 void setLong( [in] long n );
97 hyper getHyper();
98 void setHyper( [in] hyper n );
99 float getFloat();
100 void setFloat( [in] float f );
101 double getDouble();
102 void setDouble( [in] double f );
103 string getString();
104 void setString( [in] string s );
105 com::sun::star::uno::XInterface getInterface();
106 void setInterface( [in] com::sun::star::uno::XInterface x );
107 any getAny();
108 void setAny( [in] any a );
109 sequence< com::sun::star::uno::XInterface > getSequence();
110 void setSequence( [in] sequence< com::sun::star::uno::XInterface > seq );
111 ComplexTypes getStruct();
112 void setStruct( [in] ComplexTypes c );
113
114 void raiseRuntimeException();
115 };
116
117
118 };
119 };
120 };
121 };
122 };
123
124 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */