Main Page | Class List | File List | Class Members | File Members

inotify-cxx.h File Reference

inotify C++ interface header More...

#include <string>
#include <deque>
#include <map>
#include <sys/inotify.h>
#include <sys/inotify-syscalls.h>

Go to the source code of this file.

Classes

class  InotifyException
 Class for inotify exceptions. More...
class  InotifyEvent
 inotify event class More...
class  InotifyWatch
 inotify watch class More...
class  Inotify
 inotify class More...

Defines

#define INOTIFY_EVENT_SIZE   (sizeof(struct inotify_event))
 Event struct size.
#define INOTIFY_BUFLEN   (1024 * (INOTIFY_EVENT_SIZE + 16))
 Event buffer length.
#define IN_EXC_MSG(msg)   (std::string(__PRETTY_FUNCTION__) + ": " + msg)
 Helper macro for creating exception messages.

Typedefs

typedef std::map< int32_t,
InotifyWatch * > 
IN_WATCH_MAP
 Mapping from watch descriptors to watch objects.
typedef std::map< std::string,
InotifyWatch * > 
IN_WP_MAP
 Mapping from paths to watch objects.


Detailed Description

inotify C++ interface header

inotify C++ interface

Copyright (C) 2006 Lukas Jelinek, <lukas@aiken.cz>

This program is free software; you can redistribute it and/or modify it under the terms of one of the following licenses:

If you want to help with choosing the best license for you, please visit http://www.gnu.org/licenses/license-list.html.

Define Documentation

#define IN_EXC_MSG msg   )     (std::string(__PRETTY_FUNCTION__) + ": " + msg)
 

Helper macro for creating exception messages.

It prepends the message by the function name.

#define INOTIFY_BUFLEN   (1024 * (INOTIFY_EVENT_SIZE + 16))
 

Event buffer length.

#define INOTIFY_EVENT_SIZE   (sizeof(struct inotify_event))
 

Event struct size.


Typedef Documentation

typedef std::map<int32_t, InotifyWatch*> IN_WATCH_MAP
 

Mapping from watch descriptors to watch objects.

typedef std::map<std::string, InotifyWatch*> IN_WP_MAP
 

Mapping from paths to watch objects.


Generated on Fri Oct 13 23:27:08 2006 for inotify-cxx by  doxygen 1.4.4