Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 95 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.
 

#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 98 of file RDaos.hxx.

◆ ObjClassId() [2/2]

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

Definition at line 99 of file RDaos.hxx.

Member Function Documentation

◆ IsUnknown()

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

Definition at line 101 of file RDaos.hxx.

◆ ToString()

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

Definition at line 58 of file RDaos.cxx.

Member Data Documentation

◆ fCid

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

Definition at line 96 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 108 of file RDaos.hxx.

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

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