LCOV - code coverage report
Current view: top level - pencil/include/draw - draw_relationship_label.inl (source / functions) Hit Total Coverage
Test: crystal-facet-uml_v1.57.0_covts Lines: 0 31 0.0 %
Date: 2024-04-07 11:14:42 Functions: 0 3 0.0 %

          Line data    Source code
       1             : /* File: draw_relationship_label.inl; Copyright and License: see below */
       2             : 
       3             : #include "u8/u8_log.h"
       4             : #include <assert.h>
       5             : 
       6           0 : static inline void draw_relationship_label_init( draw_relationship_label_t *this_ )
       7             : {
       8           0 :     draw_stereotype_image_init( &((*this_).image_renderer) );
       9           0 : }
      10             : 
      11           0 : static inline void draw_relationship_label_destroy( draw_relationship_label_t *this_ )
      12             : {
      13           0 :     draw_stereotype_image_destroy( &((*this_).image_renderer) );
      14           0 : }
      15             : 
      16           0 : static inline char const * draw_relationship_label_private_stereotype_from_type( const draw_relationship_label_t *this_,
      17             :                                                                                  data_relationship_type_t rel_type )
      18             : {
      19           0 :     char const * result = "";
      20           0 :     switch ( rel_type )
      21             :     {
      22           0 :         case DATA_RELATIONSHIP_TYPE_UML_EXTEND:
      23             :         {
      24           0 :             result = "extends";
      25             :         }
      26           0 :         break;
      27             : 
      28           0 :         case DATA_RELATIONSHIP_TYPE_UML_INCLUDE:
      29             :         {
      30           0 :             result = "includes";
      31             :         }
      32           0 :         break;
      33             : 
      34           0 :         case DATA_RELATIONSHIP_TYPE_UML_DEPLOY:
      35             :         {
      36           0 :             result = "deploy";
      37             :         }
      38           0 :         break;
      39             : 
      40           0 :         case DATA_RELATIONSHIP_TYPE_UML_MANIFEST:
      41             :         {
      42           0 :             result = "manifest";
      43             :         }
      44           0 :         break;
      45             : 
      46           0 :         case DATA_RELATIONSHIP_TYPE_UML_REFINE:
      47             :         {
      48           0 :             result = "refine";
      49             :         }
      50           0 :         break;
      51             : 
      52           0 :         case DATA_RELATIONSHIP_TYPE_UML_TRACE:
      53             :         {
      54           0 :             result = "trace";
      55             :         }
      56           0 :         break;
      57             : 
      58           0 :         default:
      59             :         {
      60             :             /* other types do not show a stereotype label */
      61           0 :             result = "";
      62             :         }
      63           0 :         break;
      64             :     }
      65           0 :     return result;
      66             : }
      67             : 
      68             : 
      69             : /*
      70             : Copyright 2019-2024 Andreas Warnke
      71             : 
      72             : Licensed under the Apache License, Version 2.0 (the "License");
      73             : you may not use this file except in compliance with the License.
      74             : You may obtain a copy of the License at
      75             : 
      76             :     http://www.apache.org/licenses/LICENSE-2.0
      77             : 
      78             : Unless required by applicable law or agreed to in writing, software
      79             : distributed under the License is distributed on an "AS IS" BASIS,
      80             : WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      81             : See the License for the specific language governing permissions and
      82             : limitations under the License.
      83             : */

Generated by: LCOV version 1.16