summaryrefslogtreecommitdiff
path: root/cppu/inc/cppu/Shield.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'cppu/inc/cppu/Shield.hxx')
-rw-r--r--cppu/inc/cppu/Shield.hxx84
1 files changed, 0 insertions, 84 deletions
diff --git a/cppu/inc/cppu/Shield.hxx b/cppu/inc/cppu/Shield.hxx
deleted file mode 100644
index a381967abaee..000000000000
--- a/cppu/inc/cppu/Shield.hxx
+++ /dev/null
@@ -1,84 +0,0 @@
-/* -*- 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 .
- */
-
-#ifndef INCLUDED_cppu_Shield_hxx
-#define INCLUDED_cppu_Shield_hxx
-
-#include <cppu/Map.hxx>
-
-
-namespace cssu = com::sun::star::uno;
-
-namespace cppu
-{
- /** Helpers for mapping objects relative to the thread-safe and current environments.
- (http://wiki.services.openoffice.org/wiki/Uno/Cpp/Spec/Shield_Helpers)
- */
-
-
- /** Maps an object from the current to the thread-safe Environment, returns mapped object.
-
- @param pT the object to be mapped
- @return the mapped object
- @since UDK 3.2.7
- */
- template<class T> inline T * shield(T * pT)
- {
- return mapOut(pT, cssu::Environment(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(CPPU_STRINGIFY(CPPU_ENV)))));
- }
-
- /** Maps an object from the thread-safe Environment to the current one, returns mapped object.
-
- @param pT the object to be mapped
- @return the mapped object
- @since UDK 3.2.7
- */
- template<class T> inline T * unshield(T * pT)
- {
- return mapIn(pT, cssu::Environment(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(CPPU_STRINGIFY(CPPU_ENV)))));
- }
-
-
- /** Maps an any from the current to the thread-safe Environment, fills the passed any.
-
- @param any the any to be mapped
- @param res the target any
- @since UDK 3.2.7
- */
- inline void shieldAny(cssu::Any const & any, cssu::Any * res)
- {
- mapOutAny(any, res, cssu::Environment(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(CPPU_STRINGIFY(CPPU_ENV)))));
- }
-
-
- /** Maps an any from the thread-safe Environment to the current one, fills the passed any.
-
- @param any the any to be mapped
- @param res the target any
- @since UDK 3.2.7
- */
- inline void unshieldAny(cssu::Any const & any, cssu::Any * res)
- {
- mapInAny(any, res, cssu::Environment(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(CPPU_STRINGIFY(CPPU_ENV)))));
- }
-}
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */