LCOV - code coverage report
Current view: top level - src/tags - variable.cpp (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 43 0.0 %
Date: 2019-05-08 03:46:12 Functions: 0 17 0.0 %

          Line data    Source code
       1             : #include "variable.hpp"
       2             : 
       3             : namespace qtreports
       4             : {
       5             :     namespace detail
       6             :     {
       7           0 :         Variable::Variable() :
       8             :             m_className("QString"),
       9             :             m_resetType(VariableResetType::Report),
      10             :             m_incrementType(VariableIncrementType::None),
      11           0 :             m_calculation(VariableCalculation::Count)
      12             :         {
      13             : 
      14           0 :         }
      15             : 
      16           0 :         const QVariant& Variable::getValue() const
      17             :         {
      18           0 :             return m_value;
      19             :         }
      20             : 
      21           0 :         const QString& Variable::getExpression() const
      22             :         {
      23           0 :             return m_expression;
      24             :         }
      25             : 
      26           0 :         const QString& Variable::getClassName() const
      27             :         {
      28           0 :             return m_className;
      29             :         }
      30             : 
      31           0 :         const QString& Variable::getResetGroup() const
      32             :         {
      33           0 :             return m_resetGroup;
      34             :         }
      35             : 
      36           0 :         const QString& Variable::getIncrementGroup() const
      37             :         {
      38           0 :             return m_incrementGroup;
      39             :         }
      40             : 
      41           0 :         VariableResetType Variable::getResetType() const
      42             :         {
      43           0 :             return m_resetType;
      44             :         }
      45             : 
      46           0 :         VariableIncrementType Variable::getIncrementType() const
      47             :         {
      48           0 :             return m_incrementType;
      49             :         }
      50             : 
      51           0 :         VariableCalculation Variable::getCalculation() const
      52             :         {
      53           0 :             return m_calculation;
      54             :         }
      55             : 
      56           0 :         void Variable::setValue(const QVariant& value)
      57             :         {
      58           0 :             m_value = value;
      59           0 :         }
      60             : 
      61           0 :         void Variable::setExpression(const QString& expression)
      62             :         {
      63           0 :             m_expression = expression;
      64           0 :         }
      65             : 
      66           0 :         void Variable::setClassName(const QString& className)
      67             :         {
      68           0 :             m_className = className;
      69           0 :         }
      70             : 
      71           0 :         void Variable::setResetGroup(const QString& resetGroup)
      72             :         {
      73           0 :             m_resetGroup = resetGroup;
      74           0 :         }
      75             : 
      76           0 :         void Variable::setIncrementGroup(const QString& incrementGroup)
      77             :         {
      78           0 :             m_incrementGroup = incrementGroup;
      79           0 :         }
      80             : 
      81           0 :         void Variable::setResetType(VariableResetType resetType)
      82             :         {
      83           0 :             m_resetType = resetType;
      84           0 :         }
      85             : 
      86           0 :         void Variable::setIncrementType(VariableIncrementType incrementType)
      87             :         {
      88           0 :             m_incrementType = incrementType;
      89           0 :         }
      90             : 
      91           0 :         void Variable::setCalculation(VariableCalculation calculation)
      92             :         {
      93           0 :             m_calculation = calculation;
      94           0 :         }
      95             :     }
      96             : }

Generated by: LCOV version 1.14-2-gaa56a43