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)  

user.cpp
Go to the documentation of this file.
1 #include "user.hpp"
2 
3 #include "json.hpp"
4 
6 
8 {
9  inline namespace v1
10  {
11  user::user(std::string name, std::optional<std::string> zone)
12  : name{std::move(name)}
13  , zone{zone ? *zone : ""}
14  {
15  }
16 
17  auto user::operator==(const user& other) const noexcept -> bool
18  {
19  return other.name == name && other.zone == zone;
20  }
21 
22  auto user::operator!=(const user& other) const noexcept -> bool
23  {
24  return !(*this == other);
25  }
26 
27  auto user::operator<(const user& other) const noexcept -> bool
28  {
29  return name < other.name && zone < other.zone;
30  }
31 
32  auto operator<<(std::ostream& out, const user& user) -> std::ostream&
33  {
34  return out << json{{"name", user.name}, {"zone", user.zone}}.dump();
35  }
36  } // namespace v1
37 } // namespace irods::experimental::administration
38 
json
nlohmann::json json
Definition: user.cpp:5
irods::experimental::administration::v1::user::user
user(std::string name, std::optional< std::string > zone=std::nullopt)
Definition: user.cpp:11
irods::experimental::administration::v1::user
Definition: user.hpp:13
json
nlohmann::json json
Definition: group.cpp:5
generate_iadmin_commands_for_41_to_42_upgrade.name
name
Definition: generate_iadmin_commands_for_41_to_42_upgrade.py:23
irods::experimental::administration::v1::user::operator<
auto operator<(const user &other) const noexcept -> bool
Definition: user.cpp:27
user.hpp
irods::experimental::administration::v1::user::zone
std::string zone
Definition: user.hpp:21
irods::experimental::administration::v1::user::operator!=
auto operator!=(const user &other) const noexcept -> bool
Definition: user.cpp:22
irods::experimental::filesystem::client::move
auto move(rcComm_t &_comm, const path &_old_p, const path &_new_p) -> void
Definition: filesystem.cpp:881
irods::experimental::administration
Definition: group.hpp:8
irods::experimental::administration::v1::operator<<
auto operator<<(std::ostream &out, const group &user) -> std::ostream &
Definition: group.cpp:31
irods::experimental::administration::v1::user::name
std::string name
Definition: user.hpp:20
irods::experimental::administration::v1::user::operator==
auto operator==(const user &other) const noexcept -> bool
Definition: user.cpp:17
manual_cleanup.out
out
Definition: manual_cleanup.py:29