/* -*- 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 .
*/
void Includes::add(OString const & entityName) {
sal_Int32 k;
std::vector< OString > args;
OUString n(b2u(codemaker::UnoType::decompose(entityName, &k, &args))); if (k != 0) {
m_includeSequence = true;
} switch (m_manager->getSort(n)) { case codemaker::UnoType::Sort::Boolean: case codemaker::UnoType::Sort::Byte: case codemaker::UnoType::Sort::Short: case codemaker::UnoType::Sort::UnsignedShort: case codemaker::UnoType::Sort::Long: case codemaker::UnoType::Sort::UnsignedLong: case codemaker::UnoType::Sort::Hyper: case codemaker::UnoType::Sort::UnsignedHyper: case codemaker::UnoType::Sort::Char:
m_includeSalTypesH = true; break; case codemaker::UnoType::Sort::Float: case codemaker::UnoType::Sort::Double: break; case codemaker::UnoType::Sort::String:
m_includeRtlUstringHxx = true; break; case codemaker::UnoType::Sort::Type:
m_includeType = true; break; case codemaker::UnoType::Sort::Any:
m_includeAny = true; break; case codemaker::UnoType::Sort::PolymorphicStructTemplate: for (const OString& arg : args)
{
add(arg);
}
[[fallthrough]]; case codemaker::UnoType::Sort::Sequence: case codemaker::UnoType::Sort::Enum: case codemaker::UnoType::Sort::PlainStruct: case codemaker::UnoType::Sort::Exception: case codemaker::UnoType::Sort::Interface: case codemaker::UnoType::Sort::Typedef:
m_map.emplace(n, Dependencies::KIND_NORMAL); break; default: throw CannotDumpException( "unexpected type \"" + b2u(entityName)
+ "\" in call to codemaker::cppumaker::Includes::add");
}
}
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 ist noch experimentell.