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_hierarchy_parser.hpp
Go to the documentation of this file.
1 #ifndef _HIERARCHY_PARSER_HPP_
2 #define _HIERARCHY_PARSER_HPP_
3 
4 #include "irods_error.hpp"
5 
6 #include <vector>
7 #include <string>
8 
9 namespace irods {
10 
15  public:
16  typedef std::vector<std::string> resc_list_t;
17  typedef resc_list_t::const_iterator const_iterator;
18 
20  hierarchy_parser( void );
21 
23  explicit hierarchy_parser( const std::string& _hier );
24 
27 
28  virtual ~hierarchy_parser();
29 
32 
34  error set_string( const std::string& _resc_hier );
35 
40  error str( std::string& _ret_string, const std::string& _term_resc = "" ) const;
41 
46  std::string str(const std::string& _term_resc = "") const;
47 
49  error add_child( const std::string& _resc );
50 
52  error first_resc( std::string& _ret_resc ) const;
53 
55  std::string first_resc() const;
56 
58  error last_resc( std::string& _ret_resc ) const;
59 
61  std::string last_resc() const;
62 
64  error next( const std::string& _current, std::string& _ret_resc ) const;
65 
67  std::string next(const std::string& _current) const;
68 
70  error num_levels( int& levels ) const;
71 
73  int num_levels() const;
74 
76  const_iterator begin( void ) const;
77 
79  const_iterator end( void ) const;
80 
82  static const std::string& delimiter( void );
83 
85  bool resc_in_hier( const std::string& _resc ) const;
86 
87  private:
89  };
90 }; // namespace irods
91 
92 #endif // _HIERARCHY_PARSER_HPP_
irods::hierarchy_parser::operator=
hierarchy_parser & operator=(const hierarchy_parser &parser)
Definition: irods_hierarchy_parser.cpp:204
irods::hierarchy_parser
Definition: irods_hierarchy_parser.hpp:14
irods::hierarchy_parser::last_resc
std::string last_resc() const
Definition: irods_hierarchy_parser.cpp:129
irods::hierarchy_parser::hierarchy_parser
hierarchy_parser(void)
Definition: irods_hierarchy_parser.cpp:13
deploy_schemas_locally.parser
parser
Definition: deploy_schemas_locally.py:59
irods::hierarchy_parser::add_child
error add_child(const std::string &_resc)
Definition: irods_hierarchy_parser.cpp:88
irods::hierarchy_parser::resc_in_hier
bool resc_in_hier(const std::string &_resc) const
Definition: irods_hierarchy_parser.cpp:214
irods::hierarchy_parser::resc_list_t
std::vector< std::string > resc_list_t
Definition: irods_hierarchy_parser.hpp:16
irods
Definition: apiHandler.hpp:35
irods::hierarchy_parser::num_levels
int num_levels() const
Definition: irods_hierarchy_parser.cpp:192
irods::hierarchy_parser::~hierarchy_parser
virtual ~hierarchy_parser()
Definition: irods_hierarchy_parser.cpp:32
irods::hierarchy_parser::set_string
error set_string(const std::string &_resc_hier)
Definition: irods_hierarchy_parser.cpp:36
irods::hierarchy_parser::delimiter
static const std::string & delimiter(void)
Definition: irods_hierarchy_parser.cpp:210
irods::error
Definition: irods_error.hpp:23
irods::hierarchy_parser::end
const_iterator end(void) const
Definition: irods_hierarchy_parser.cpp:200
irods::hierarchy_parser::str
error str(std::string &_ret_string, const std::string &_term_resc="") const
Definition: irods_hierarchy_parser.cpp:46
irods::hierarchy_parser::next
error next(const std::string &_current, std::string &_ret_resc) const
Definition: irods_hierarchy_parser.cpp:136
irods::hierarchy_parser::first_resc
std::string first_resc() const
Definition: irods_hierarchy_parser.cpp:122
irods_error.hpp
irods::hierarchy_parser::resc_list_
resc_list_t resc_list_
Definition: irods_hierarchy_parser.hpp:88
irods::hierarchy_parser::const_iterator
resc_list_t::const_iterator const_iterator
Definition: irods_hierarchy_parser.hpp:17
irods::hierarchy_parser::begin
const_iterator begin(void) const
Definition: irods_hierarchy_parser.cpp:196