Logo ROOT  
Reference Guide
ROOT::Experimental::Detail::RDaosObject::ObjClassId Struct Reference

Wrap around a daos_oclass_id_t.

An object class describes the schema of data distribution and protection.

Definition at line 94 of file RDaos.hxx.

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. More...
 

#include <ROOT/RDaos.hxx>

Constructor & Destructor Documentation

◆ ObjClassId() [1/2]

ROOT::Experimental::Detail::RDaosObject::ObjClassId::ObjClassId ( daos_oclass_id_t  cid)
inline

Definition at line 97 of file RDaos.hxx.

◆ ObjClassId() [2/2]

ROOT::Experimental::Detail::RDaosObject::ObjClassId::ObjClassId ( const std::string &  name)
inline

Definition at line 98 of file RDaos.hxx.

Member Function Documentation

◆ IsUnknown()

bool ROOT::Experimental::Detail::RDaosObject::ObjClassId::IsUnknown ( ) const
inline

Definition at line 100 of file RDaos.hxx.

◆ ToString()

std::string ROOT::Experimental::Detail::RDaosObject::ObjClassId::ToString ( ) const

Definition at line 59 of file RDaos.cxx.

Member Data Documentation

◆ fCid

daos_oclass_id_t ROOT::Experimental::Detail::RDaosObject::ObjClassId::fCid

Definition at line 95 of file RDaos.hxx.

◆ kOCNameMaxLength

constexpr std::size_t ROOT::Experimental::Detail::RDaosObject::ObjClassId::kOCNameMaxLength = 64
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.

Definition at line 107 of file RDaos.hxx.

Collaboration diagram for ROOT::Experimental::Detail::RDaosObject::ObjClassId:
[legend]

The documentation for this struct was generated from the following files: