includes.cxx (ff7655f0) includes.cxx (9d8e7fba)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 251 unchanged lines hidden (view full) ---

260}
261
262void Includes::dumpInclude(
263 FileStream & out, rtl::OString const & registryType, bool hpp,
264 rtl::OString const & suffix)
265{
266 static char const * extension[2] = { "hdl", "hpp" };
267 out << "#include \"" << registryType;
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 251 unchanged lines hidden (view full) ---

260}
261
262void Includes::dumpInclude(
263 FileStream & out, rtl::OString const & registryType, bool hpp,
264 rtl::OString const & suffix)
265{
266 static char const * extension[2] = { "hdl", "hpp" };
267 out << "#include \"" << registryType;
268 if (suffix.getLength() > 0) {
268 if ( !suffix.isEmpty() ) {
269 out << "/" << suffix;
270 }
271 out << "." << extension[hpp] << "\"\n";
272}
273
274bool Includes::isInterfaceType(rtl::OString const & registryType) const {
275 return m_manager.getTypeClass(registryType) == RT_TYPE_INTERFACE;
276}
269 out << "/" << suffix;
270 }
271 out << "." << extension[hpp] << "\"\n";
272}
273
274bool Includes::isInterfaceType(rtl::OString const & registryType) const {
275 return m_manager.getTypeClass(registryType) == RT_TYPE_INTERFACE;
276}