LCOV - code coverage report
Current view: top level - include/actions - MooseObjectAction.h (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 3 3 100.0 %
Date: 2025-07-17 01:28:37 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //* This file is part of the MOOSE framework
       2             : //* https://mooseframework.inl.gov
       3             : //*
       4             : //* All rights reserved, see COPYRIGHT for full restrictions
       5             : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
       6             : //*
       7             : //* Licensed under LGPL 2.1, please see LICENSE for details
       8             : //* https://www.gnu.org/licenses/lgpl-2.1.html
       9             : 
      10             : #pragma once
      11             : 
      12             : #include "Action.h"
      13             : 
      14             : #include <string>
      15             : 
      16             : class MooseObjectAction : public Action
      17             : {
      18             : public:
      19             :   static InputParameters validParams();
      20             : 
      21             :   MooseObjectAction(const InputParameters & params);
      22             : 
      23             :   using Action::addRelationshipManagers;
      24             :   virtual void addRelationshipManagers(Moose::RelationshipManagerType when_type) override;
      25             : 
      26             :   /**
      27             :    * Retrieve the parameters of the object to be created by this action
      28             :    */
      29     3328975 :   InputParameters & getObjectParams() { return _moose_object_pars; }
      30             : 
      31             :   /**
      32             :    * Constant version of retrieving the parameters of the object to be created by this action
      33             :    */
      34       75960 :   const InputParameters & getObjectParams() const { return _moose_object_pars; }
      35             : 
      36             :   /**
      37             :    * Return the object type to be created
      38             :    */
      39       43845 :   const std::string & getMooseObjectType() const { return _type; }
      40             : 
      41             : protected:
      42             :   /// The Object type that is being created
      43             :   std::string _type;
      44             : 
      45             :   /// The parameters for the object to be created
      46             :   InputParameters _moose_object_pars;
      47             : };

Generated by: LCOV version 1.14