summaryrefslogtreecommitdiffstats
path: root/udkapi/com/sun/star/reflection/XDump.idl
blob: fac2a48eafc544b8d9525c0b2c8694adf4039bf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

module com {  module sun {  module star {  module reflection {

/** Dump any UNOIDL value as a string.

    Mainly useful for logging and debugging purposes.

    @since LibreOffice 7.6
*/
interface XDump {
    /** Dump a UNOIDL value as a string.

        This just dumps the value itself, without any further decoration.

        @param value  any UNOIDL value

        @returns a string representation of the given value
     */
    string dumpValue([in] any value);

    /** Dump the value of a UNOIDL ANY as a string.

        This dumps the type and value of the given ANY.

        @param value  any UNOIDL ANY

        @returns a string representation of the given ANY
     */
    string dumpAny([in] any value);

    /** Dump a numeric UNOIDL value, interpreted relative to a UNOIDL constants group, as a string.

        @param constantsGroup  the name (in dotted notation, as supported by
        /singletons/theTypeDescriptionManager) of a UNOIDL constants group

        @param value  a UNOIDL value of type BOOLEAN, BYTE, SHORT, UNSIGNED SHORT, LONG, UNSIGNED
        LONG, HYPER, UNSIGNED HYPER, FLOAT, or DOUBLE

        @returns a string representation of the given numeric value

        @throws com::sun::star::lang::IllegalArgumentException  if the constantsGroup argument does
        not represent a UNOIDL constants group or the value argument is of wrong type
     */
    string dumpConstant([in] string constantsGroup, [in] any value)
        raises (com::sun::star::lang::IllegalArgumentException);
};

}; }; }; };

/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */