加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
generated.mako.cpp 1.41 KB
一键复制 编辑 原始数据 按行查看 历史
Matt Spinler 提交于 2021-02-11 13:41 . associations: Add conditions support
## This file is a template. The comment below is emitted
## into the rendered file; feel free to edit this file.
// This file was auto generated. Do not edit.
#include "config.h"
#include "manager.hpp"
#include "utils.hpp"
#include "functor.hpp"
% for i in interfaces:
#include <${i.header()}>
% endfor
#include "gen_serialization.hpp"
namespace phosphor
{
namespace inventory
{
namespace manager
{
using namespace std::literals::string_literals;
const Manager::Makers Manager::_makers{
% for i in interfaces:
{
"${str(i)}",
std::make_tuple(
MakeInterface<
ServerObject<
${i.namespace()}>>::op,
AssignInterface<
ServerObject<
${i.namespace()}>>::op,
SerializeInterface<
ServerObject<
${i.namespace()}>, SerialOps>::op,
DeserializeInterface<
ServerObject<
${i.namespace()}>, SerialOps>::op
#ifdef CREATE_ASSOCIATIONS
, GetPropertyValue<
ServerObject<
${i.namespace()}>>::op
#endif
)
},
% endfor
};
const Manager::Events Manager::_events{
% for e in events:
{
% if e.description:
// ${e.description.strip()}
% endif
${e.call(loader, indent=indent +2)},
},
%endfor
};
} // namespace manager
} // namespace inventory
} // namespace phosphor
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化