20#ifndef INCLUDED_CLI_URE_SOURCE_UNO_BRIDGE_CLI_BASE_H
21#define INCLUDED_CLI_URE_SOURCE_UNO_BRIDGE_CLI_BASE_H
32#include "rtl/ustring.hxx"
33#include "typelib/typedescription.hxx"
41System::Type^
mapUnoType(typelib_TypeDescriptionReference
const * pTD);
42typelib_TypeDescriptionReference*
mapCliType(System::Type^ cliType);
50 "unoidl.com.sun.star.uno.XInterface");
51 static System::String^
sObject= gcnew System::String(
"System.Object");
52 static System::String^
sType= gcnew System::String(
"System.Type");
53 static System::String^
sUnoidl= gcnew System::String(
"unoidl.");
54 static System::String^
sVoid= gcnew System::String(
"System.Void");
55 static System::String^
sAny= gcnew System::String(
"uno.Any");
56 static System::String^
sArArray= gcnew System::String(
"System.Array[]");
57 static System::String^
sBoolean= gcnew System::String(
"System.Boolean");
58 static System::String^
sChar= gcnew System::String(
"System.Char");
59 static System::String^
sByte= gcnew System::String(
"System.Byte");
60 static System::String^
sInt16= gcnew System::String(
"System.Int16");
61 static System::String^
sUInt16= gcnew System::String(
"System.UInt16");
62 static System::String^
sInt32= gcnew System::String(
"System.Int32");
63 static System::String^
sUInt32= gcnew System::String(
"System.UInt32");
64 static System::String^
sInt64= gcnew System::String(
"System.Int64");
65 static System::String^
sUInt64= gcnew System::String(
"System.UInt64");
66 static System::String^
sString= gcnew System::String(
"System.String");
67 static System::String^
sSingle= gcnew System::String(
"System.Single");
68 static System::String^
sDouble= gcnew System::String(
"System.Double");
69 static System::String^
sArBoolean= gcnew System::String(
"System.Boolean[]");
70 static System::String^
sArChar= gcnew System::String(
"System.Char[]");
71 static System::String^
sArByte= gcnew System::String(
"System.Byte[]");
72 static System::String^
sArInt16= gcnew System::String(
"System.Int16[]");
73 static System::String^
sArUInt16= gcnew System::String(
"System.UInt16[]");
74 static System::String^
sArInt32= gcnew System::String(
"System.Int32[]");
75 static System::String^
sArUInt32= gcnew System::String(
"System.UInt32[]");
76 static System::String^
sArInt64= gcnew System::String(
"System.Int64[]");
77 static System::String^
sArUInt64= gcnew System::String(
"System.UInt64[]");
78 static System::String^
sArString= gcnew System::String(
"System.String[]");
79 static System::String^
sArSingle= gcnew System::String(
"System.Single[]");
80 static System::String^
sArDouble= gcnew System::String(
"System.Double[]");
81 static System::String^
sArType= gcnew System::String(
"System.Type[]");
82 static System::String^
sArObject= gcnew System::String(
"System.Object[]");
83 static System::String^
sBrackets= gcnew System::String(
"[]");
87 static System::String^
usXInterface =
"com.sun.star.uno.XInterface";
88 static System::String^
usVoid =
"void";
89 static System::String^
usType =
"type";
90 static System::String^
usAny =
"any";
92 static System::String^
usBool =
"boolean";
93 static System::String^
usByte =
"byte";
94 static System::String^
usChar =
"char";
96 static System::String^
usUShort =
"unsigned short";
97 static System::String^
usLong =
"long";
98 static System::String^
usULong =
"unsigned long";
100 static System::String^
usUHyper =
"unsigned hyper";
118 inline static void *
operator new (
size_t nSize )
119 {
return std::malloc( nSize ); }
120 inline static void operator delete (
void * mem )
121 { std::free( mem ); }
122 inline static void *
operator new ( size_t,
void * mem )
124 inline static void operator delete (
void *,
void * )
127 static inline std::unique_ptr< rtl_mem >
allocate( std::size_t
bytes );
132 void *
p = std::malloc(
bytes );
135 return std::unique_ptr< rtl_mem >( (
rtl_mem *)
p );
147 inline explicit TypeDescr( typelib_TypeDescriptionReference * td_ref );
149 { TYPELIB_DANGER_RELEASE(
m_td ); }
158 TYPELIB_DANGER_GET( &
m_td, td_ref );
162 "cannot get comprehensive type description for " +
163 OUString::unacquired(&td_ref->pTypeName) );
typelib_TypeDescription * get() const
TypeDescr & operator=(TypeDescr const &)=delete
TypeDescr(TypeDescr const &)=delete
typelib_TypeDescription * m_td
struct _typelib_TypeDescription typelib_TypeDescription
System::Type loadCliType(System::String ^ typeName)
OUString mapCliString(System::String ^ data)
System::String mapUnoTypeName(rtl_uString const *typeName)
Otherwise a leading "unoidl." is removed.
System::Type mapUnoType(typelib_TypeDescription const *pTD)
System::String mapUnoString(rtl_uString const *data)
Maps uno types to dot net types.
typelib_TypeDescriptionReference * mapCliType(System::Type^ cliType)
Returns an acquired td.
std::vector< sal_uInt8 > bytes
BridgeRuntimeError(OUString const &message)
static System::String sArUInt32
static System::String usHyper
static System::String sChar
static System::String sDouble
static System::String sAttributeGet
static System::String sArByte
static System::String sArObject
static System::String sArType
static System::String sArInt64
static System::String usShort
static System::String usBrackets
static System::String sArUInt16
static System::String usXInterface
static System::String sType
static System::String sInt32
static System::String sInt64
static System::String sArString
static System::String usVoid
static System::String usULong
static System::String usUHyper
static System::String sArDouble
static System::String usLong
static System::String usDouble
static System::String sUInt16
static System::String sAttributeSet
static System::String sAny
static System::String sUnoidl
static System::String sSingle
static System::String sString
static System::String sArInt16
static System::String usType
static System::String sArSingle
static System::String usByte
static System::String sArBoolean
static System::String usBool
static System::String sArUInt64
static System::String sBoolean
static System::String sArArray
static System::String usUShort
static System::String sUInt64
static System::String sBrackets
static System::String sObject
static System::String usString
static System::String usChar
static System::String sXInterfaceName
static System::String sVoid
static System::String usAny
static System::String sArInt32
static System::String sInt16
static System::String sByte
static System::String sUInt32
static System::String usFloat
static System::String sArChar
static std::unique_ptr< rtl_mem > allocate(std::size_t bytes)