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_re_namespaceshelper.cpp
Go to the documentation of this file.
2 
4 std::vector<std::string> NamespacesHelper::namespaces {};
5 
7  if (!_instance) {
9 
10  const auto& re_namespace_set = irods::get_server_property< const std::vector< boost::any >& >( irods::CFG_RE_NAMESPACE_SET_KW );
11  for ( const auto& el : re_namespace_set ) {
12  namespaces.push_back( boost::any_cast< const std::string& >( el ) );
13  }
14  }
15 
16  return _instance;
17 }
18 
19 std::vector<std::string> NamespacesHelper::getNamespaces() {
20  return namespaces;
21 }
NamespacesHelper::Instance
static NamespacesHelper * Instance()
Definition: irods_re_namespaceshelper.cpp:6
NamespacesHelper
Definition: irods_re_namespaceshelper.hpp:11
NamespacesHelper::getNamespaces
std::vector< std::string > getNamespaces()
Definition: irods_re_namespaceshelper.cpp:19
irods_re_namespaceshelper.hpp
NamespacesHelper::namespaces
static std::vector< std::string > namespaces
Definition: irods_re_namespaceshelper.hpp:19
NamespacesHelper::_instance
static NamespacesHelper * _instance
Definition: irods_re_namespaceshelper.hpp:17
NamespacesHelper::NamespacesHelper
NamespacesHelper()
Definition: irods_re_namespaceshelper.hpp:17
irods::CFG_RE_NAMESPACE_SET_KW
const std::string CFG_RE_NAMESPACE_SET_KW("rule_engine_namespaces")