22 #ifndef HYPERSPACE_FILEHANDLECALLBACK_H
23 #define HYPERSPACE_FILEHANDLECALLBACK_H
32 virtual void attr_set(
const std::string &name) {
33 std::cout <<
"ATTR SET " << name << std::endl;
35 virtual void attr_del(
const std::string &name) {
36 std::cout <<
"ATTR DEL " << name << std::endl;
39 std::cout <<
"CHILD NODE ADDED " << name << std::endl;
42 std::cout <<
"CHILD NODE REMOVED " << name << std::endl;
46 std::cout <<
"LOCK ACQUIRED shared" << std::endl;
48 std::cout <<
"LOCK ACQUIRED exclusive" << std::endl;
50 std::cout <<
"LOCK ACQUIRED " << mode << std::endl;
52 virtual void lock_released() { std::cout <<
"LOCK RELEASED" << std::endl; }
57 #endif // HYPERSPACE_FILEHANDLECALLBACK_H
virtual void lock_released()
Invoked when a lock gets released on the file associated with the registered handle.
virtual void child_node_removed(const std::string &name)
Invoked when an attribute gets deleted from the file associated with the registered handle...
FileHandleCallback(uint32_t event_mask)
virtual void child_node_added(const std::string &name)
Invoked when a child node gets added to the directory associated with the registered handle...
virtual void lock_acquired(uint32_t mode)
Invoked when a lock gets acquired on the file associated with the registered handle.
virtual void attr_del(const std::string &name)
Invoked when an attribute gets deleted from the file associated with the registered handle...
virtual void attr_set(const std::string &name)
Invoked when an attribute gets set on the file associated with the registered handle.