Wrap around a daos_oclass_id_t
.
An object class describes the schema of data distribution and protection.
Public Member Functions | |
ObjClassId (const std::string &name) | |
ObjClassId (daos_oclass_id_t cid) | |
bool | IsUnknown () const |
std::string | ToString () const |
Public Attributes | |
daos_oclass_id_t | fCid |
Static Public Attributes | |
static constexpr std::size_t | kOCNameMaxLength = 64 |
This limit is currently not defined in any header and any call to daos_oclass_id2name() within DAOS uses a stack-allocated buffer whose length varies from 16 to 50, e.g. | |
#include <ROOT/RDaos.hxx>
|
inline |
|
inline |
|
inline |
std::string ROOT::Experimental::Detail::RDaosObject::ObjClassId::ToString | ( | ) | const |
daos_oclass_id_t ROOT::Experimental::Detail::RDaosObject::ObjClassId::fCid |
|
staticconstexpr |
This limit is currently not defined in any header and any call to daos_oclass_id2name()
within DAOS uses a stack-allocated buffer whose length varies from 16 to 50, e.g.
https://github.com/daos-stack/daos/blob/master/src/utils/daos_dfs_hdlr.c#L78
. As discussed with the development team, 64 is a reasonable limit.