diff options
author | Matt Spinler <spinler@us.ibm.com> | 2017-09-28 13:02:32 -0500 |
---|---|---|
committer | Matt Spinler <spinler@us.ibm.com> | 2017-10-11 09:25:04 -0500 |
commit | 35108a774758099abb80299c8732b830418fa2ad (patch) | |
tree | 7507db4a7dd2e4c76eb4dc731f1e19fcbb53a075 /cooling-type | |
parent | 956a0a5ada59c937f9360939a25196c4c1e526aa (diff) | |
download | phosphor-fan-presence-35108a774758099abb80299c8732b830418fa2ad.tar.gz phosphor-fan-presence-35108a774758099abb80299c8732b830418fa2ad.zip |
monitor: Update YAML parser to handle trust groups
It creates a list of group creator lambdas based on
the information in the monitor YAML file.
These lambdas are called by the manager class to create
the trust group instances.
A real life example is:
const std::vector<CreateGroupFunction> trustGroups
{
{
[]()
{
std::vector<std::string> names{
"fan0_1",
"fan1_1",
"fan2_1",
"fan3_1",
};
return std::make_unique<NonzeroSpeed>(names);
}
},
};
Change-Id: Ia883df35efb86242aae2f8ed7d1714e94e65a6e6
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'cooling-type')
0 files changed, 0 insertions, 0 deletions