INotify.h
Go to the documentation of this file.
#ifndef __INotify_h__
# define __INotify_h__
#include "includes"
#include "Socket.h"
namespace core {
class INotify : Socket {
public:
INotify(EPoll &ePoll);
~INotify();
int addWatch(std::string watch);
void removeWatch(int wd);
void onDataReceived(char *buffer, int len) override;
virtual void inAccess(std::string name) {}
virtual void inAttrib(std::string name) {}
virtual void inCloseWrite(std::string name) {}
virtual void inCloseNoWrite(std::string name) {}
virtual void inCreate(std::string name) {}
virtual void inDelete(std::string name) {}
virtual void inDeleteSelf(std::string name) {}
virtual void inModify(std::string name) {}
virtual void inMoveSelf(std::string name) {}
virtual void inMovedFrom(std::string name) {}
virtual void inMovedTo(std::string name) {}
virtual void inOpen(std::string name) {}
};
}
#endif
core::Socket::ePoll
EPoll & ePoll
Definition: Socket.h:117
core::EPoll
Definition: EPoll.h:31
core::INotify::inMoveSelf
virtual void inMoveSelf(std::string name)
Definition: INotify.h:28
core::INotify::inAttrib
virtual void inAttrib(std::string name)
Definition: INotify.h:21
core::INotify::inAccess
virtual void inAccess(std::string name)
Definition: INotify.h:20
core::INotify::inCloseNoWrite
virtual void inCloseNoWrite(std::string name)
Definition: INotify.h:23
core::INotify::inCloseWrite
virtual void inCloseWrite(std::string name)
Definition: INotify.h:22
core::INotify::onDataReceived
void onDataReceived(char *buffer, int len) override
Definition: INotify.cpp:22
core::INotify::inModify
virtual void inModify(std::string name)
Definition: INotify.h:27
core::Socket
Definition: Socket.h:33
core::INotify::inMovedTo
virtual void inMovedTo(std::string name)
Definition: INotify.h:30
core
Definition: Command.cpp:5
core::INotify::addWatch
int addWatch(std::string watch)
Definition: INotify.cpp:14
core::INotify::inDelete
virtual void inDelete(std::string name)
Definition: INotify.h:25
core::INotify::inDeleteSelf
virtual void inDeleteSelf(std::string name)
Definition: INotify.h:26
core::INotify::removeWatch
void removeWatch(int wd)
Definition: INotify.cpp:18
core::INotify::~INotify
~INotify()
Definition: INotify.cpp:10
core::INotify::inCreate
virtual void inCreate(std::string name)
Definition: INotify.h:24
core::Object::name
std::string name
Definition: Object.h:12
core::INotify::INotify
INotify(EPoll &ePoll)
Definition: INotify.cpp:6
core::INotify::inMovedFrom
virtual void inMovedFrom(std::string name)
Definition: INotify.h:29
core::INotify::inOpen
virtual void inOpen(std::string name)
Definition: INotify.h:31
core::INotify
Definition: INotify.h:9
Socket.h