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