9 #ifndef LIBPMEMOBJ_CPP_CTL_HPP
10 #define LIBPMEMOBJ_CPP_CTL_HPP
12 #include <libpmemobj/ctl.h>
28 ctl_get_detail(PMEMobjpool *pool,
const std::string &name)
33 int ret = pmemobj_ctl_getU(pool, name.c_str(), &tmp);
35 int ret = pmemobj_ctl_get(pool, name.c_str(), &tmp);
45 ctl_set_detail(PMEMobjpool *pool,
const std::string &name, T arg)
48 int ret = pmemobj_ctl_setU(pool, name.c_str(), &arg);
50 int ret = pmemobj_ctl_set(pool, name.c_str(), &arg);
60 ctl_exec_detail(PMEMobjpool *pool,
const std::string &name, T arg)
63 int ret = pmemobj_ctl_execU(pool, name.c_str(), &arg);
65 int ret = pmemobj_ctl_exec(pool, name.c_str(), &arg);
69 .with_pmemobj_errormsg();
77 ctl_get_detail(PMEMobjpool *pool,
const std::wstring &name)
81 int ret = pmemobj_ctl_getW(pool, name.c_str(), &tmp);
90 ctl_set_detail(PMEMobjpool *pool,
const std::wstring &name, T arg)
92 int ret = pmemobj_ctl_setW(pool, name.c_str(), &arg);
101 ctl_exec_detail(PMEMobjpool *pool,
const std::wstring &name, T arg)
103 int ret = pmemobj_ctl_execW(pool, name.c_str(), &arg);
106 .with_pmemobj_errormsg();
Custom ctl error class.
Definition: pexceptions.hpp:206
Persistent memory namespace.
Definition: allocation_flag.hpp:15