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)  

irods_resource_redirect.hpp
Go to the documentation of this file.
1 #ifndef __IRODS_RESOURCE_REDIRECT_HPP__
2 #define __IRODS_RESOURCE_REDIRECT_HPP__
3 
4 // =-=-=-=-=-=-=-
5 // irods includes
6 #include "rsGlobalExtern.hpp"
7 
8 // =-=-=-=-=-=-=-
9 #include "irods_file_object.hpp"
10 #include "irods_log.hpp"
11 
12 namespace irods {
13 
14  const std::string CREATE_OPERATION( "CREATE" );
15  const std::string WRITE_OPERATION( "WRITE" );
16  const std::string OPEN_OPERATION( "OPEN" );
17  const std::string UNLINK_OPERATION( "UNLINK" );
18 
19 
20 // check C++11 support
21 #if __cplusplus > 199711L
23  const std::string&, // requested operation to consider
24  rsComm_t*, // current agent connection
25  dataObjInp_t*, // data inp struct for data object in question
26  std::string&, // out going selected resource hierarchy
27  dataObjInfo_t** _data_obj_info = nullptr );
28 
30  const std::string&, // requested operation to consider
31  rsComm_t*, // current agent connection
32  dataObjInp_t*, // data inp struct for data object in question
33  std::string&, // out going selected resource hierarchy
34  rodsServerHost_t*&, // selected host for redirection if necessary
35  int&, // flag stating LOCAL_HOST or REMOTE_HOST
36  dataObjInfo_t** _data_obj_info = nullptr );
37 
38 #else
40  const std::string&, // requested operation to consider
41  rsComm_t*, // current agent connection
42  dataObjInp_t*, // data inp struct for data object in question
43  std::string&, // out going selected resource hierarchy
44  dataObjInfo_t** _data_obj_info = NULL );
45 
47  const std::string&, // requested operation to consider
48  rsComm_t*, // current agent connection
49  dataObjInp_t*, // data inp struct for data object in question
50  std::string&, // out going selected resource hierarchy
51  rodsServerHost_t*&, // selected host for redirection if necessary
52  int&, // flag stating LOCAL_HOST or REMOTE_HOST
53  dataObjInfo_t** _data_obj_info = NULL );
54 #endif
55 
56 bool is_hier_in_obj_info_list(const std::string&, dataObjInfo_t*);
57 
58 }; // namespace irods
59 
60 #endif // __IRODS_RESOURCE_REDIRECT_HPP__
61 
62 
63 
NULL
#define NULL
Definition: rodsDef.h:70
rsComm_t
Definition: rcConnect.h:145
irods_file_object.hpp
irods::resolve_resource_hierarchy
error resolve_resource_hierarchy(const std::string &, rsComm_t *, dataObjInp_t *, std::string &, dataObjInfo_t **_data_obj_info=0)
Definition: irods_resource_redirect.cpp:505
irods::resource_redirect
error resource_redirect(const std::string &, rsComm_t *, dataObjInp_t *, std::string &, rodsServerHost_t *&, int &, dataObjInfo_t **_data_obj_info=0)
Definition: irods_resource_redirect.cpp:786
rsGlobalExtern.hpp
irods::OPEN_OPERATION
const std::string OPEN_OPERATION("OPEN")
irods
Definition: apiHandler.hpp:35
DataObjInp
Definition: dataObjInpOut.h:65
irods::error
Definition: irods_error.hpp:23
irods::is_hier_in_obj_info_list
bool is_hier_in_obj_info_list(const std::string &, dataObjInfo_t *)
Definition: irods_resource_redirect.cpp:425
rodsServerHost
Definition: rodsConnect.h:62
irods::WRITE_OPERATION
const std::string WRITE_OPERATION("WRITE")
DataObjInfo
Definition: objInfo.h:129
irods::CREATE_OPERATION
const std::string CREATE_OPERATION("CREATE")
irods::UNLINK_OPERATION
const std::string UNLINK_OPERATION("UNLINK")
irods_log.hpp