www.mooseframework.org
RdgTestApp.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 #include "RdgTestApp.h"
11 #include "RdgApp.h"
12 #include "Moose.h"
13 #include "AppFactory.h"
14 #include "MooseSyntax.h"
15 
16 template <>
17 InputParameters
19 {
20  InputParameters params = validParams<RdgApp>();
21  return params;
22 }
23 
24 registerKnownLabel("RdgTestApp");
25 
26 RdgTestApp::RdgTestApp(InputParameters parameters) : MooseApp(parameters)
27 {
29  _factory, _action_factory, _syntax, getParam<bool>("allow_test_objects"));
30 }
31 
33 
34 void
35 RdgTestApp::registerAll(Factory & f, ActionFactory & af, Syntax & s, bool use_test_objs)
36 {
37  RdgApp::registerAll(f, af, s);
38  if (use_test_objs)
39  {
40  Registry::registerObjectsTo(f, {"RdgTestApp"});
41  Registry::registerActionsTo(af, {"RdgTestApp"});
42  }
43 }
44 
45 void
47 {
48  registerApp(RdgApp);
49  registerApp(RdgTestApp);
50 }
51 
52 void
53 RdgTestApp::registerObjects(Factory & factory)
54 {
55  Registry::registerObjectsTo(factory, {"RdgTestApp"});
56 }
57 
58 void
59 RdgTestApp::associateSyntax(Syntax & /*syntax*/, ActionFactory & action_factory)
60 {
61  Registry::registerActionsTo(action_factory, {"RdgTestApp"});
62 }
63 
64 void
65 RdgTestApp::registerExecFlags(Factory & /*factory*/)
66 {
67 }
68 
69 extern "C" void
70 RdgTestApp__registerAll(Factory & f, ActionFactory & af, Syntax & s)
71 {
72  RdgTestApp::registerAll(f, af, s);
73 }
74 extern "C" void
76 {
78 }
RdgTestApp::associateSyntax
static void associateSyntax(Syntax &syntax, ActionFactory &action_factory)
Definition: RdgTestApp.C:59
RdgTestApp::registerObjects
static void registerObjects(Factory &factory)
Definition: RdgTestApp.C:53
RdgTestApp::registerExecFlags
static void registerExecFlags(Factory &factory)
Definition: RdgTestApp.C:65
RdgApp
Definition: RdgApp.h:19
RdgTestApp::~RdgTestApp
virtual ~RdgTestApp()
Definition: RdgTestApp.C:32
RdgTestApp__registerAll
void RdgTestApp__registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: RdgTestApp.C:70
RdgTestApp::registerApps
static void registerApps()
Definition: RdgTestApp.C:46
RdgTestApp.h
RdgTestApp::RdgTestApp
RdgTestApp(InputParameters parameters)
Definition: RdgTestApp.C:26
registerKnownLabel
registerKnownLabel("RdgTestApp")
validParams< RdgTestApp >
InputParameters validParams< RdgTestApp >()
Definition: RdgTestApp.C:18
RdgApp::registerAll
static void registerAll(Factory &f, ActionFactory &af, Syntax &s)
Definition: RdgApp.C:39
RdgTestApp__registerApps
void RdgTestApp__registerApps()
Definition: RdgTestApp.C:75
RdgTestApp
Definition: RdgTestApp.h:19
RdgTestApp::registerAll
static void registerAll(Factory &f, ActionFactory &af, Syntax &s, bool use_test_objs=false)
Definition: RdgTestApp.C:35
validParams< RdgApp >
InputParameters validParams< RdgApp >()
Definition: RdgApp.C:17
RdgApp.h