5 #include <zk/config.hpp>
50 std::ostream& operator<<(std::ostream&,
const get_result&);
52 std::string to_string(
const get_result&);
58 using children_list_type = std::vector<std::string>;
67 const children_list_type&
children() const & {
return _children; }
68 children_list_type&
children() & {
return _children; }
69 children_list_type
children() && {
return std::move(_children); }
79 children_list_type _children;
83 std::ostream& operator<<(std::ostream&,
const get_children_result&);
85 std::string to_string(
const get_children_result&);
97 explicit operator bool()
const {
return bool(_stat); }
98 bool operator!()
const {
return !_stat; }
103 const optional<zk::stat>&
stat()
const {
return _stat; }
104 optional<zk::stat>&
stat() {
return _stat; }
108 optional<zk::stat> _stat;
111 std::ostream& operator<<(std::ostream&,
const exists_result&);
113 std::string to_string(
const exists_result&);
127 const std::string&
name() const & {
return _name; }
128 std::string&
name() & {
return _name; }
129 std::string
name() && {
return std::move(_name); }
136 std::ostream& operator<<(std::ostream&,
const create_result&);
138 std::string to_string(
const create_result&);
158 std::ostream& operator<<(std::ostream&,
const set_result&);
160 std::string to_string(
const set_result&);
189 std::ostream& operator<<(std::ostream&,
const get_acl_result&);
191 std::string to_string(
const get_acl_result&);
219 std::ostream& operator<<(std::ostream&,
const event&);
221 std::string to_string(
const event&);
237 get_result
initial() && {
return std::move(_initial); }
242 const future<event>&
next() const & {
return _next; }
243 future<event>&
next() & {
return _next; }
244 future<event>
next() && {
return std::move(_next); }
252 std::ostream& operator<<(std::ostream&,
const watch_result&);
254 std::string to_string(
const watch_result&);
270 get_children_result
initial() && {
return std::move(_initial); }
275 const future<event>&
next() const & {
return _next; }
276 future<event>&
next() & {
return _next; }
277 future<event>
next() && {
return std::move(_next); }
281 get_children_result _initial;
285 std::ostream& operator<<(std::ostream&,
const watch_children_result&);
287 std::string to_string(
const watch_children_result&);
303 exists_result
initial() && {
return std::move(_initial); }
308 const future<event>&
next() const & {
return _next; }
309 future<event>&
next() & {
return _next; }
310 future<event>
next() && {
return std::move(_next); }
314 exists_result _initial;
318 std::ostream& operator<<(std::ostream&,
const watch_exists_result&);
320 std::string to_string(
const watch_exists_result&);
Data delivered when a watched event triggers.
state
Enumeration of states the client may be at when a watch triggers.
const zk::stat & stat() const
const future< event > & next() const &
The result type of client::get_acl.
The result type of client::watch_exists.
const get_result & initial() const &
The result type of client::create.
const zk::stat & stat() const
Imports of optional and nullopt_t types, as well as the nullopt constexpr.
The result type of client::exists.
const buffer & data() const &
The result type of client::watch.
const zk::acl & acl() const &
The result type of client::watch_children.
const zk::stat & stat() const
Statistics about a ZooKeeper entry, similar to the UNIX stat structure.
const children_list_type & children() const &
const optional< zk::stat > & stat() const
const get_children_result & initial() const &
const exists_result & initial() const &
const future< event > & next() const &
Controls the import of future and promise types.
The result type of client::set.
const zk::state & state() const
The state of the connection when the event occurred.
const std::string & name() const &
event_type
Enumeration of types of events that may occur.
An access control list is a wrapper around acl_rule instances.
Controls the buffer type.
The result type of client::get_children.
const future< event > & next() const &
const stat & parent_stat() const
ZKPP_BUFFER_TYPE buffer
The buffer type.
The result type of client::get.
const event_type & type() const
The type of event that occurred.