Chi-Tech
chi_material_property.cc
Go to the documentation of this file.
1
#include "
chi_material_property.h
"
2
3
#include "
ChiObjectFactory.h
"
4
5
namespace
chi
6
{
7
8
RegisterChiObject
(chi_objects,
MaterialProperty
);
9
10
InputParameters
MaterialProperty::GetInputParameters
()
11
{
12
InputParameters
params =
ChiObject::GetInputParameters
();
13
14
params.
AddRequiredParameter
<std::string>(
15
"name"
,
"Text name associated with this property"
);
16
17
return
params;
18
}
19
20
MaterialProperty::MaterialProperty
(
const
chi::InputParameters
& params)
21
: name_(params.GetParamValue<std::string>(
"name"
))
22
{
23
}
24
25
const
std::string&
MaterialProperty::TextName
()
const
{
return
name_
; }
26
27
}
// namespace chi_objects
ChiObjectFactory.h
chi_material_property.h
ChiObject::GetInputParameters
static chi::InputParameters GetInputParameters()
Definition:
ChiObject.cc:4
chi::InputParameters
Definition:
input_parameters.h:23
chi::InputParameters::AddRequiredParameter
void AddRequiredParameter(const std::string &name, const std::string &doc_string)
Definition:
input_parameters.h:125
chi::MaterialProperty
Definition:
chi_material_property.h:11
chi::MaterialProperty::TextName
const std::string & TextName() const
Definition:
chi_material_property.cc:25
chi::MaterialProperty::MaterialProperty
MaterialProperty(const chi::InputParameters ¶ms)
Definition:
chi_material_property.cc:20
chi::MaterialProperty::name_
const std::string name_
Definition:
chi_material_property.h:13
chi::MaterialProperty::GetInputParameters
static chi::InputParameters GetInputParameters()
Definition:
chi_material_property.cc:10
chi
Definition:
chi_runtime.h:53
chi::RegisterChiObject
RegisterChiObject(chi, KBAGraphPartitioner)
framework
materials
chi_material_property.cc
Generated by
1.9.3