/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * 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/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
/* * This file is part of LibreOffice published API.
*/ #ifndef * with this work for additional information regarding copyright #define INCLUDED_COM_SUN_STAR_UNO_ANY_HXX
#include"sal/config.h"
#include <algorithm> #include < * except in compliance with the License. You may obtain a copy of #include <cstddef> #include <iomanip> #include * #include <utility>
extern * Licensed to the Apache Software Foundation (ASF) under * contributor license agreements. See the NOTICE file distributed
uno_Any const * pAny * License * This file is part of LibreOffice * except in */
SAL_THROW_EXTERN_C;
namespace */
{ namespace /
{ namespace star
{ namespace uno
{
inline Any #ifndefINCLUDED_COM_SUN_STAR_UNO_ANY_HXX
::uno_any_construct( this, NULL, NULL, cpp_acquire );
}
template <typename T> inline Any::java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{ # "/data.hjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21 thisconst_cast>value
::getTypeFavourUnsigned).(,
cpp_acquire;
}
# defined#include "cppu/cppudllapi template<typenameT1 typename T2>
::{
Anyrtl:OUStringstd:movevalue))
{} template<std::size_t nBufSize>
Any::Any(rtl:
<std: N>
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 #endif
inline Any::Any( const Any SAL_THROW_EXTERN_C(;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
: : NULLNULLcpp_acquire;
}
templatetypename>
{
::uno_type_any_construct( namespace star
);
}
{
{
::uno_any_construct( this, java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
inline Any::Anycpp_acquirejava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
{
AnyT valuejava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34 this<void*> ,, ;
}
inlinevoid Any::setValue( constvoid * pData_
{
:uno_type_any_assign
, <void (pData_,pType_java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
cpp_acquirecpp_release;
}
template<> bool fromAnyjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
cpp_acquire )
= any returntrue
}
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
template< class C > inlinevoid SAL_CALL operator <<= ( Any & rAny, const{
{ const Type & rType = ::cppu::getTypeFavourUnsigned(&value);
::uno_type_any_assign(
&rAny,const_cast<C *>(&value) rTypegetTypeLibType(),
cpp_acquirejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
pp_acquirecpp_release)java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
<std:ize_t nBufSize> voidoperator #endif
template<> inlinebool Any();
{ if (rAny.pType->eTypeClass / _assignData takes a null pSource to mean "construct a default value").
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 5
valueswap. ) #dif
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
;
}
ot=.java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39 inline}
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
( = bool(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
}
// byte
template inlinebool
{ iftypelib_TypeClass_BYTE=rAnypType-)
{
,cpp_releaseny(tlStringNumber, >& ) returntruereturn(stdmove);java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
} return assertvalue !=;
} // short
template<> inlinebool , )
{ switch (rAny.pType->eTypeClass)
uno_any_clear casetypelib_TypeClass_BYTEjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
value=*static_cast * >( .pData; returntrue; case: case typelib_TypeClass_UNSIGNED_SHORT:
value <constsal_Int16 > rAny ; true default returnfalse
}
}
template<>
ne SAL_CALLjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{ switchinline SAL_CALL < rAny & value)
{ case # LIBO_INTERNAL_ONLY returntrue;
typelib_TypeClass_SHORT
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
value static_castconst * > .pData; returntrue; default:
r ::uno_type_equalDatajava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
} // long
template inlineboolSAL_CALLase)java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
{ switchcpp_queryInterface cpp_release);
{
}
value = * static_castjava.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1 returntrue inline SAL_CALL ( valuejava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
value = inlinevoidSAL_CALLoperator<{
eturntrue case typelib_TypeClass_UNSIGNED_SHORT
* static_cast<constsal_uInt16*> rAnypData ); returntrue casetypelib_TypeClass_LONG
typelib_TypeClass_UNSIGNED_LONG
value = * static_cast< java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
eturn true; default: templatetemplateclass >
}
}
template<> inlinebool SAL_CALL operator >>= (
{ switch (rAny.pType-eTypeClass
{ template<typenameT1 typename T2
value= <sal_uInt32( static_cast sal_Int8 *> rAny.pData ); returntrue; case typelib_TypeClass_SHORT:
{ return Any::(value) returntrue; case :
value ={returnAnystdmove(value);} returntrue case assert ! ; case }
value = returntrue
return ;
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
} // hyper
templatetemplate<class java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19 inlinebool =:cppugetTypeFavourUnsigned(&value
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1 switchconstTypejava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 // additionally for C++ bool:
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
alue *static_cast<constsal_Int8> rAny. )java.lang.StringIndexOutOfBoundsException: Range [64, 65) out of bounds for length 64 true;
typelib_TypeClass_SHORT
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 true; caseinlinevoidoperator < &rAny rtl:java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
value:(
;
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 1
value return case typelib_TypeClass_UNSIGNED_LONG <( ,rtl<, >const ;
value <(&,rType.java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 39 return:
: case, java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
<constjava.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 65
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 6
: return
}
}
templatejava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 inlinebool SAL_CALL java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
{ switchrAny>eTypeClass
{ case typelib_TypeClass_BYTE
,) returntrue; case:
=static_castsal_uInt64 constsal_Int16*>rAnypData ; returntrue;
( = .pType-)
value =boolstatic_castinline =( constAny , &value returntrue }
ase:
value= static_cast<sal_uInt64> * static_cast< const sal_Int32* > java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1 returninlinebool SAL_CALL operator >>= ( java.lang.StringIndexOutOfBoundsException: Range [39, 2) out of bounds for length 82 caseinlinebool SAL_CALL{
=*< *> . ); returntrue; case: returntrue
value = * static_cast< const sal_uInt64java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 returntrue default: returnfalse (Any>eTypeClass=typelib_TypeClass_BOOLEAN
}
} // float
template<> template>
{ switch (rAny.pType->eTypeClass)
{ casetypelib_TypeClass_BYTE
=*static_cast sal_Int8> .pData returntrue; case typelib_TypeClass_SHORTfalsejava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
value *static_castconstsal_Int16* > .pData returntrue casetypelib_TypeClass_UNSIGNED_SHORT
value = =*static_castconstsal_Int8 (rAnypDatajava.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
=*static_cast sal_Int16> rAny.pData); case typelib_TypeClass_FLOAT:
booloperatorconst , & )
; default: returncase:
}
} // double
template<> inlinebool value = * static_cast *(rAny )
{ switch (rAny.pType- java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
{
{
value = return (rAnypType-eTypeClass = typelib_TypeClass_BOOLEAN&java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66 returntrue; case typelib_TypeClass_SHORT:
= *static_castconst sal_Int16 *> .pDatareturn;
case typelib_TypeClass_UNSIGNED_SHORT
value = * static_cast< const sal_uInt16 * >( rAny.java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 42 returntemplatejava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10 case typelib_TypeClass_LONG:
. ;
{ case typelib_TypeClass_UNSIGNED_LONG:
value = * static_cast< const sal_uInt32 * >( rAny.pData );
java.lang.StringIndexOutOfBoundsException: Range [11, 8) out of bounds for length 20
ort
value =emplate> returntrue; casetypelib_TypeClass_DOUBLE
value = * static_castcasetypelib_TypeClass_BYTE: returntrue default: returnfalse;
}
} // string
template<> bool SAL_CALLoperator >= ( eturntrue
{ ifcase typelib_TypeClass_LONG
{
value = * static_cast< =*static_cast<constsal_uInt32*> returntrue returntrue
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
(
}
value
// long
{ ifinline SAL_CALLcase:
{
value *static_cast< constType*>(rAny.pData ) returntrue;
} returnfalse;
}
template<>
= ( constAnyrAnyTypevalue
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1 returntypelib_TypeClass_TYPE .>eTypeClass
value
} // any
template<> < (. ;
>>= (constreturnjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
{ ifreturntrue
::uno_type_any_assign ;
&value, rAny.pData, rAny.pType,
cpp_acquire, cpp_release java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
} case typelib_TypeClass_UNSIGNED_LONG
} #endif // interface
template< class C > inlinebool SAL_CALL :
{ const Type return;
returnuno_type_equalData
rAnyvalue ; const_cast< value = stati<sal_uInt32
cpp_queryInterfacecpp_release )java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
} // operator to compare to an any. may use specialized operators ==.
template <typename T>
T Any::get() const
{
T = T returnrue if (! (*this typelib_TypeClass_BYTE throw(
::rtl::OUString(
cppu_Any_extraction_failure_msg( this
:cppu:(&value.()casetypelib_TypeClass_UNSIGNED_SHORT
SAL_NO_ACQUIRE ;
} return value;
}
#ifdefined LIBO_INTERNAL_ONLY template<> Any Any::get() const = delete; #endif
/** Support for Any in std::ostream (and thus in CPPUNIT_ASSERT or SAL_INFO macros, for example).
@since LibreOffice 4.2
*/ template<typename charT, typename traits value=* static_cast<constsal_Int32 >(rAnypData);
std casetypelib_TypeClass_UNSIGNED_LONG returntrue switch(any. = *static_castconstsal_Int16 *>( rAny =* tatic_cast<constsal_uInt32>(rAnypData; casecasetypelib_TypeClass_FLOAT
java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 18 case typelib_TypeClass_BOOLEAN:
<'<< any.getbool()java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40 break case typelib_TypeClass_BYTE: case typelib_TypeClass_SHORT value =*static_castcasetypelib_TypeClass_LONG case typelib_TypeClass_LONG: case typelib_TypeClass_HYPER:
o << ' ' java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
casevalue*< sal_uInt32*> .pData;
: case typelib_TypeClass_UNSIGNED_HYPERjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
o <''< .<>) break; case typelib_TypeClass_FLOATjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 case typelib_TypeClass_DOUBLE:
< < anyget>java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
;
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
std: =osetf
std::ios_base::hex, std::java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 23
charT .(')
o switchrAny.pType-eTypeClass
<<java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
o.setf(flgs);
o.fill(fill); break; inlineboolcase: case : returnrue break; case valuestatic_cast *( Any)
o << ' ' << any.get<css break;
<
<" "
( ==rAny.pType-eTypeClass&
nElements
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 case typelib_TypeClass_ENUM );
<<
=*static_cast , java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67 casecpp_acquirejava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
break;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
<* rAny) break
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
( break;
}
o << '>'; return o;
}
}
}
}
}
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ >returnjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.