irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

rsGetHierFromLeafId.cpp
Go to the documentation of this file.
1 #include "rcMisc.h"
5 
7 
9  rsComm_t* _comm,
10  get_hier_inp_t* _inp,
11  get_hier_out_t** _out ) {
12  if( !_comm || !_inp || !_out ) {
14  &_comm->rError,
16  "null input param(s)");
18  }
19 
20  ( *_out ) = ( get_hier_out_t* )malloc( sizeof( get_hier_out_t ) );
21 
22  std::string hier;
24  _inp->resc_id_,
25  hier );
26  if( !ret.ok() ) {
28  &_comm->rError,
30  ret.result().c_str() );
31  return ret.code();
32  }
33 
34  rstrcpy( (*_out)->hier_, hier.c_str(), MAX_NAME_LEN );
35 
36  return 0;
37 }
rsComm_t
Definition: rcConnect.h:145
SYS_INTERNAL_NULL_INPUT_ERR
@ SYS_INTERNAL_NULL_INPUT_ERR
Definition: rodsErrorTable.h:92
rsGetHierFromLeafId
int rsGetHierFromLeafId(rsComm_t *_comm, get_hier_inp_t *_inp, get_hier_out_t **_out)
Definition: rsGetHierFromLeafId.cpp:8
rcMisc.h
rsComm_t::rError
rError_t rError
Definition: rcConnect.h:158
irods::error::code
long long code() const
Definition: irods_error.cpp:194
get_hier_from_leaf_id.h
MAX_NAME_LEN
#define MAX_NAME_LEN
Definition: rodsDef.h:61
get_hier_out_t
Definition: get_hier_from_leaf_id.h:12
addRErrorMsg
int addRErrorMsg(rError_t *myError, int status, const char *msg)
Definition: rcMisc.cpp:121
STDOUT_STATUS
static const int STDOUT_STATUS
Definition: rcMisc.h:327
get_hier_inp_t::resc_id_
rodsLong_t resc_id_
Definition: get_hier_from_leaf_id.h:9
irods::error
Definition: irods_error.hpp:23
irods::resource_manager::leaf_id_to_hier
error leaf_id_to_hier(const rodsLong_t &, std::string &)
Definition: irods_resource_manager.cpp:1119
irods_resource_manager.hpp
irods::resource_manager
Definition: irods_resource_manager.hpp:30
resc_mgr
irods::resource_manager resc_mgr
Definition: irods_resource_manager.cpp:31
rsGetHierFromLeafId.hpp
get_hier_inp_t
Definition: get_hier_from_leaf_id.h:8
rstrcpy
char * rstrcpy(char *dest, const char *src, int maxLen)
Definition: stringOpr.cpp:51
irods::error::ok
bool ok()
Definition: irods_error.cpp:258
irods::error::result
std::string result() const
Definition: irods_error.cpp:201