LCOV - code coverage report
Current view: top level - geom/cgm - TDSourceFeature.hpp (source / functions) Hit Total Coverage
Test: coverage_sk.info Lines: 2 4 50.0 %
Date: 2020-06-30 00:58:45 Functions: 1 2 50.0 %
Branches: 2 4 50.0 %

           Branch data     Line data    Source code
       1                 :            : //-Class: TDSourceFeature.hpp
       2                 :            : #ifndef TD_SOURCE_FEATURE_HPP
       3                 :            : #define TD_SOURCE_FEATURE_HPP
       4                 :            : 
       5                 :            : #include "ToolData.hpp"
       6                 :            : #include "CastTo.hpp"
       7                 :            : #include "CGMGeomConfigure.h"
       8                 :            : #include "GeometryFeatureEngine.hpp"
       9                 :            : 
      10                 :            : //! Source feature tool data
      11                 :            : class CUBIT_GEOM_EXPORT TDSourceFeature : public ToolData
      12                 :            : {
      13                 :            : public:
      14                 :            : 
      15                 :            :     TDSourceFeature(GeometryFeatureEngine::FeatureType type_in);
      16                 :            : 
      17                 :            :     //!Destructor
      18                 :            :     ~TDSourceFeature();
      19                 :            : 
      20                 :            :     //! Returns the source feature on this RefEntity
      21                 :          0 :     GeometryFeatureEngine::FeatureType source_feature()
      22                 :          0 :     {return sourceFeature;}
      23                 :            : 
      24                 :            :     //! Sets the source feature on this RefEntity
      25                 :            :     void source_feature(GeometryFeatureEngine::FeatureType type_in)
      26                 :            :     {sourceFeature = type_in;}
      27                 :            : 
      28                 :       1523 :     static int is_source_feature(const ToolData* td)
      29 [ +  - ][ -  + ]:       1523 :     {return (CAST_TO(td, const TDSourceFeature) != NULL);}
      30                 :            : private:
      31                 :            : 
      32                 :            :     GeometryFeatureEngine::FeatureType sourceFeature;
      33                 :            : };
      34                 :            : 
      35                 :            : #endif // TD_SOURCE_FEATURE_HPP

Generated by: LCOV version 1.11