LCOV - code coverage report
Current view: top level - xml2cmp/source/xcd - xmltree.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 7 11 63.6 %
Date: 2012-08-25 Functions: 12 15 80.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 6 12 50.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 X2C_XMLTREE_HXX
      21                 :            : #define X2C_XMLTREE_HXX
      22                 :            : 
      23                 :            : 
      24                 :            : 
      25                 :            : // USED SERVICES
      26                 :            :     // BASE CLASSES
      27                 :            : #include "xmlelem.hxx"
      28                 :            :     // COMPONENTS
      29                 :            : #include "../support/sistr.hxx"
      30                 :            : #include "../support/list.hxx"
      31                 :            :     // PARAMETERS
      32                 :            : 
      33                 :            : 
      34                 :            : class CompDescrList;
      35                 :            : 
      36         [ -  + ]:          2 : class ModuleDescription : public SequenceElement
      37                 :            : {
      38                 :            :   public:
      39                 :            :                         ModuleDescription();
      40                 :            : 
      41                 :            :     const Simstr &      ModuleName() const;
      42                 :            :     void                Get_SupportedServices(    /// @return also the children of component-description.
      43                 :            :                             List< const MultipleTextElement * > &
      44                 :            :                                                 o_rServices ) const;
      45                 :            :     void                Get_Types(
      46                 :            :                             List< const MultipleTextElement * > &
      47                 :            :                                                 o_rTypes ) const;
      48                 :            :     void                Get_ServiceDependencies(
      49                 :            :                             List< const MultipleTextElement * > &
      50                 :            :                                                 o_rServices ) const;
      51                 :            :   private:
      52                 :            :     SglTextElement *    pModuleName;
      53                 :            :     CompDescrList *     pCdList;
      54                 :            :     MultipleTextElement *
      55                 :            :                         pTypes;
      56                 :            :     MultipleTextElement *
      57                 :            :                         pServiceDependencies;
      58                 :            : };
      59                 :            : 
      60                 :            : 
      61         [ -  + ]:         36 : class ComponentDescription : public SequenceElement
      62                 :            : {
      63                 :            :   public:
      64                 :            :                         ComponentDescription();
      65                 :            : 
      66                 :            :     const Simstr &      ComponentName() const   { return pComponentName->Data(); }
      67                 :            :     const MultipleTextElement &
      68                 :          0 :                         SupportedServices() const
      69                 :          0 :                                                 { return *pSupportedServices; }
      70                 :            :     const MultipleTextElement &
      71                 :         18 :                         Types() const           { return *pTypes; }
      72                 :            :     const MultipleTextElement &
      73                 :          0 :                         ServiceDependencies() const
      74                 :          0 :                                                 { return *pServiceDependencies; }
      75                 :            :   private:
      76                 :            :     SglTextElement *    pComponentName;
      77                 :            :     MultipleTextElement *
      78                 :            :                         pSupportedServices;
      79                 :            :     MultipleTextElement *
      80                 :            :                         pTypes;
      81                 :            :     MultipleTextElement *
      82                 :            :                         pServiceDependencies;
      83                 :            : };
      84                 :            : 
      85         [ -  + ]:          4 : class CompDescrList : public ListElement
      86                 :            : {
      87                 :            :   public:
      88                 :            :                         CompDescrList();
      89                 :            :     virtual void        Write2Html(
      90                 :            :                             HtmlCreator &       io_rHC ) const;
      91                 :            :     virtual XmlElement *
      92                 :            :                         Create_and_Add_NewElement();
      93                 :            : 
      94                 :            :     void                Get_SupportedServices(
      95                 :            :                             List< const MultipleTextElement * > &
      96                 :            :                                                 o_rResult ) const;
      97                 :            :     void                Get_Types(
      98                 :            :                             List< const MultipleTextElement * > &
      99                 :            :                                                 o_rResult ) const;
     100                 :            :     void                Get_ServiceDependencies(
     101                 :            :                             List< const MultipleTextElement * > &
     102                 :            :                                                 o_rResult ) const;
     103                 :            :   private:
     104                 :            :     List< ComponentDescription * >
     105                 :            :                         aCDs;
     106                 :            : };
     107                 :            : 
     108         [ -  + ]:          4 : class MdName : public SglTextElement
     109                 :            : {
     110                 :            :   public:
     111                 :            :                         MdName();
     112                 :            :     virtual void        Write2Html(
     113                 :            :                             HtmlCreator &       io_rHC ) const;
     114                 :            : };
     115                 :            : 
     116         [ -  + ]:         36 : class CdName : public SglTextElement
     117                 :            : {
     118                 :            :   public:
     119                 :            :                         CdName();
     120                 :            :     virtual void        Write2Html(
     121                 :            :                             HtmlCreator &       io_rHC ) const;
     122                 :            : };
     123                 :            : 
     124         [ -  + ]:         36 : class SupportedService : public MultipleTextElement
     125                 :            : {
     126                 :            :   public:
     127                 :            :                         SupportedService();
     128                 :            : };
     129                 :            : 
     130                 :            : 
     131                 :            : // IMPLEMENTATION
     132                 :            : 
     133                 :            : 
     134                 :            : #endif
     135                 :            : 
     136                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10