LCOV - code coverage report
Current view: top level - codemaker/source/cppumaker - includes.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 18 18 100.0 %
Date: 2012-08-25 Functions: 17 17 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     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                 :        972 :     void addAny() { m_includeAny = true; }
      41                 :      15636 :     void addReference() { m_includeReference = true; }
      42                 :        636 :     void addSequence() { m_includeSequence = true; }
      43                 :      11120 :     void addType() { m_includeType = true; }
      44                 :      14188 :     void addCppuMacrosHxx() { m_includeCppuMacrosHxx = true; }
      45                 :      15516 :     void addCppuUnotypeHxx() { m_includeCppuUnotypeHxx = true; }
      46                 :            :     void addOslDoublecheckedlockingH()
      47                 :            :         { m_includeOslDoublecheckedlockingH = true; }
      48                 :      10194 :     void addOslMutexHxx() { m_includeOslMutexHxx = true; }
      49                 :         12 :     void addRtlStrbufHxx() { m_includeRtlStrbufHxx = true; }
      50                 :         12 :     void addRtlStringH() { m_includeRtlStringH = true; }
      51                 :         12 :     void addRtlTextencH() { m_includeRtlTextencH = true; }
      52                 :         12 :     void addRtlUstrbufHxx() { m_includeRtlUstrbufHxx = true; }
      53                 :       2156 :     void addRtlUstringH() { m_includeRtlUstringH = true; }
      54                 :       2168 :     void addRtlUstringHxx() { m_includeRtlUstringHxx = true; }
      55                 :      10194 :     void addRtlInstanceHxx() { m_includeRtlInstanceHxx = true; }
      56                 :       1842 :     void addSalTypesH() { m_includeSalTypesH = true; }
      57                 :       1842 :     void addTypelibTypeclassH() { m_includeTypelibTypeclassH = true; }
      58                 :       1842 :     void addTypelibTypedescriptionH()
      59                 :       1842 :         { m_includeTypelibTypedescriptionH = true; }
      60                 :            :     void dump(FileStream & out, rtl::OString const * companionHdl);
      61                 :            : 
      62                 :            :     static void dumpInclude(
      63                 :            :         FileStream & out, rtl::OString const & registryType, bool hpp,
      64                 :            :         rtl::OString const & suffix = rtl::OString());
      65                 :            : 
      66                 :            : private:
      67                 :            :     Includes(Includes &); // not implemented
      68                 :            :     void operator =(Includes); // not implemented;
      69                 :            : 
      70                 :            :     bool isInterfaceType(rtl::OString const & registryType) const;
      71                 :            : 
      72                 :            :     TypeManager const & m_manager;
      73                 :            :     codemaker::Dependencies::Map m_map;
      74                 :            :     bool m_hpp;
      75                 :            :     bool m_includeAny;
      76                 :            :     bool m_includeReference;
      77                 :            :     bool m_includeSequence;
      78                 :            :     bool m_includeType;
      79                 :            :     bool m_includeCppuMacrosHxx;
      80                 :            :     bool m_includeCppuUnotypeHxx;
      81                 :            :     bool m_includeOslDoublecheckedlockingH;
      82                 :            :     bool m_includeOslMutexHxx;
      83                 :            :     bool m_includeRtlStrbufHxx;
      84                 :            :     bool m_includeRtlStringH;
      85                 :            :     bool m_includeRtlTextencH;
      86                 :            :     bool m_includeRtlUstrbufHxx;
      87                 :            :     bool m_includeRtlUstringH;
      88                 :            :     bool m_includeRtlUstringHxx;
      89                 :            :     bool m_includeRtlInstanceHxx;
      90                 :            :     bool m_includeSalTypesH;
      91                 :            :     bool m_includeTypelibTypeclassH;
      92                 :            :     bool m_includeTypelibTypedescriptionH;
      93                 :            : };
      94                 :            : 
      95                 :            : } }
      96                 :            : 
      97                 :            : #endif // INCLUDED_CODEMAKER_SOURCE_CPPUMAKER_INCLUDES_HXX
      98                 :            : 
      99                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10