LCOV - code coverage report
Current view: top level - libreoffice/codemaker/source/cppumaker - includes.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 19 19 100.0 %
Date: 2012-12-27 Functions: 18 18 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #ifndef INCLUDED_CODEMAKER_SOURCE_CPPUMAKER_INCLUDES_HXX
      21             : #define INCLUDED_CODEMAKER_SOURCE_CPPUMAKER_INCLUDES_HXX
      22             : 
      23             : #include "codemaker/dependencies.hxx"
      24             : #include "rtl/ustring.hxx"
      25             : 
      26             : class FileStream;
      27             : class TypeManager;
      28             : 
      29             : namespace codemaker { namespace cppumaker {
      30             : 
      31             : class Includes {
      32             : public:
      33             :     Includes(
      34             :         TypeManager const & manager,
      35             :         codemaker::Dependencies const & dependencies, bool hpp);
      36             : 
      37             :     ~Includes();
      38             : 
      39             :     void add(rtl::OString const & registryType);
      40         755 :     void addCassert() { m_includeCassert = true; }
      41         514 :     void addAny() { m_includeAny = true; }
      42        8217 :     void addReference() { m_includeReference = true; }
      43         343 :     void addSequence() { m_includeSequence = true; }
      44        5601 :     void addType() { m_includeType = true; }
      45        7126 :     void addCppuMacrosHxx() { m_includeCppuMacrosHxx = true; }
      46        7925 :     void addCppuUnotypeHxx() { m_includeCppuUnotypeHxx = true; }
      47             :     void addOslDoublecheckedlockingH()
      48             :         { m_includeOslDoublecheckedlockingH = true; }
      49        5162 :     void addOslMutexHxx() { m_includeOslMutexHxx = true; }
      50          10 :     void addRtlStrbufHxx() { m_includeRtlStrbufHxx = true; }
      51           6 :     void addRtlStringH() { m_includeRtlStringH = true; }
      52          10 :     void addRtlTextencH() { m_includeRtlTextencH = true; }
      53           6 :     void addRtlUstrbufHxx() { m_includeRtlUstrbufHxx = true; }
      54        1157 :     void addRtlUstringH() { m_includeRtlUstringH = true; }
      55        1167 :     void addRtlUstringHxx() { m_includeRtlUstringHxx = true; }
      56        5162 :     void addRtlInstanceHxx() { m_includeRtlInstanceHxx = true; }
      57         841 :     void addSalTypesH() { m_includeSalTypesH = true; }
      58         841 :     void addTypelibTypeclassH() { m_includeTypelibTypeclassH = true; }
      59         841 :     void addTypelibTypedescriptionH()
      60         841 :         { m_includeTypelibTypedescriptionH = true; }
      61             :     void dump(FileStream & out, rtl::OString const * companionHdl);
      62             : 
      63             :     static void dumpInclude(
      64             :         FileStream & out, rtl::OString const & registryType, bool hpp,
      65             :         rtl::OString const & suffix = rtl::OString());
      66             : 
      67             : private:
      68             :     Includes(Includes &); // not implemented
      69             :     void operator =(Includes); // not implemented;
      70             : 
      71             :     bool isInterfaceType(rtl::OString const & registryType) const;
      72             : 
      73             :     TypeManager const & m_manager;
      74             :     codemaker::Dependencies::Map m_map;
      75             :     bool m_hpp;
      76             :     bool m_includeCassert;
      77             :     bool m_includeAny;
      78             :     bool m_includeReference;
      79             :     bool m_includeSequence;
      80             :     bool m_includeType;
      81             :     bool m_includeCppuMacrosHxx;
      82             :     bool m_includeCppuUnotypeHxx;
      83             :     bool m_includeOslDoublecheckedlockingH;
      84             :     bool m_includeOslMutexHxx;
      85             :     bool m_includeRtlStrbufHxx;
      86             :     bool m_includeRtlStringH;
      87             :     bool m_includeRtlTextencH;
      88             :     bool m_includeRtlUstrbufHxx;
      89             :     bool m_includeRtlUstringH;
      90             :     bool m_includeRtlUstringHxx;
      91             :     bool m_includeRtlInstanceHxx;
      92             :     bool m_includeSalTypesH;
      93             :     bool m_includeTypelibTypeclassH;
      94             :     bool m_includeTypelibTypedescriptionH;
      95             : };
      96             : 
      97             : } }
      98             : 
      99             : #endif // INCLUDED_CODEMAKER_SOURCE_CPPUMAKER_INCLUDES_HXX
     100             : 
     101             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10