update dev300-m58
[ooovba.git] / stoc / source / registry_tdprovider / functiondescription.hxx
blob76edc6a986655540332c9069c433ca64de984e00
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: functiondescription.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef INCLUDED_stoc_source_registry_tdprovider_functiondescription_hxx
32 #define INCLUDED_stoc_source_registry_tdprovider_functiondescription_hxx
34 #include "com/sun/star/uno/Reference.hxx"
35 #include "com/sun/star/uno/Sequence.hxx"
36 #include "osl/mutex.hxx"
37 #include "sal/types.h"
39 namespace com { namespace sun { namespace star {
40 namespace container {
41 class XHierarchicalNameAccess;
43 namespace reflection {
44 class XCompoundTypeDescription;
46 } } }
47 namespace typereg { class Reader; }
49 namespace stoc { namespace registry_tdprovider {
51 class FunctionDescription {
52 public:
53 FunctionDescription(
54 com::sun::star::uno::Reference<
55 com::sun::star::container::XHierarchicalNameAccess > const &
56 manager,
57 com::sun::star::uno::Sequence< sal_Int8 > const & bytes,
58 sal_uInt16 index);
60 ~FunctionDescription();
62 com::sun::star::uno::Sequence<
63 com::sun::star::uno::Reference<
64 com::sun::star::reflection::XCompoundTypeDescription > >
65 getExceptions() const;
67 protected:
68 typereg::Reader getReader() const;
70 com::sun::star::uno::Reference<
71 com::sun::star::container::XHierarchicalNameAccess > m_manager;
72 com::sun::star::uno::Sequence< sal_Int8 > m_bytes;
73 sal_uInt16 m_index;
75 mutable osl::Mutex m_mutex;
76 mutable com::sun::star::uno::Sequence<
77 com::sun::star::uno::Reference<
78 com::sun::star::reflection::XCompoundTypeDescription > >
79 m_exceptions;
80 mutable bool m_exceptionsInit;
82 private:
83 FunctionDescription(FunctionDescription &); // not implemented
84 void operator =(FunctionDescription); // not implemented
87 } }
89 #endif