86 template<
typename TPrototypeType>
88 const std::string ModuleName,
89 const std::string ProcessName,
90 TPrototypeType rProcessPrototype)
92 const std::string all_path = std::string(
"Processes.All.") + ProcessName;
93 RegisterPrototype(all_path, rProcessPrototype);
94 const std::string module_path = std::string(
"Processes.") + ModuleName + std::string(
".") + ProcessName;
95 RegisterPrototype(module_path, rProcessPrototype);
98 template<
typename TPrototypeType>
100 const std::string ModuleName,
101 const std::string OperationName,
102 TPrototypeType rOperationPrototype)
104 const std::string all_path = std::string(
"Operations.All.") + OperationName;
105 RegisterPrototype(all_path, rOperationPrototype);
106 const std::string module_path = std::string(
"Operations.") + ModuleName + std::string(
".") + OperationName;
107 RegisterPrototype(module_path, rOperationPrototype);
110 template<
typename TPrototypeType>
112 const std::string ModuleName,
113 const std::string ControllerName,
114 TPrototypeType rControllerPrototype)
116 const std::string all_path = std::string(
"Controllers.All.") + ControllerName;
117 RegisterPrototype(all_path, rControllerPrototype);
118 const std::string module_path = std::string(
"Controllers.") + ModuleName + std::string(
".") + ControllerName;
119 RegisterPrototype(module_path, rControllerPrototype);
162 template<
typename TPrototypeType>
163 static void RegisterPrototype(
164 const std::string RegistryEntryName,
165 TPrototypeType rPrototype)
168 auto& r_item = Registry::AddItem<RegistryItem>(RegistryEntryName);
169 r_item.AddItem<TPrototypeType>(
"Prototype", rPrototype);
171 KRATOS_ERROR <<
"'" << RegistryEntryName <<
"' is already registered." << std::endl;
Kratos registry auxiliaries This static class collect all the auxiliary functions to be used to regis...
Definition: registry_auxiliaries.h:56
static void RegisterOperationWithPrototype(const std::string ModuleName, const std::string OperationName, TPrototypeType rOperationPrototype)
Definition: registry_auxiliaries.h:99
static void RegisterControllerWithPrototype(const std::string ModuleName, const std::string ControllerName, TPrototypeType rControllerPrototype)
Definition: registry_auxiliaries.h:111
RegistryAuxiliaries()=delete
Default constructor.
RegistryAuxiliaries(RegistryAuxiliaries const &rOther)=delete
Copy constructor.
~RegistryAuxiliaries()=delete
Destructor.
KRATOS_CLASS_POINTER_DEFINITION(RegistryAuxiliaries)
Pointer definition of Registry.
static void RegisterProcessWithPrototype(const std::string ModuleName, const std::string ProcessName, TPrototypeType rProcessPrototype)
Definition: registry_auxiliaries.h:87
static bool HasItem(std::string const &rItemFullName)
Definition: registry.cpp:88
#define KRATOS_ERROR
Definition: exception.h:161
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21