Subversion Repositories public

Rev

Rev 33 | Rev 37 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33 Rev 35
Line 3... Line 3...
3
/**
3
/**
4
 * \file inotify-cxx.cpp
4
 * \file inotify-cxx.cpp
5
 *
5
 *
6
 * inotify C++ interface
6
 * inotify C++ interface
7
 *
7
 *
8
 * Copyright (C) 2006 Lukas Jelinek <lukas@aiken.cz>
8
 * Copyright (C) 2006, 2007 Lukas Jelinek <lukas@aiken.cz>
9
 *
9
 *
10
 * This program is free software; you can redistribute it and/or
10
 * This program is free software; you can redistribute it and/or
11
 * modify it under the terms of one of the following licenses:
11
 * modify it under the terms of one of the following licenses:
12
 *
12
 *
13
 * \li 1. X11-style license (see LICENSE-X11)
13
 * \li 1. X11-style license (see LICENSE-X11)
Line 143... Line 143...
143
    }
143
    }
144
    if (IsType(uValue, IN_CLOSE)) {
144
    if (IsType(uValue, IN_CLOSE)) {
145
      DUMP_SEP;
145
      DUMP_SEP;
146
      rStr.append("IN_CLOSE");
146
      rStr.append("IN_CLOSE");
147
    }
147
    }
-
 
148
-
 
149
#ifdef IN_MOVE_SELF
-
 
150
    if (IsType(uValue, IN_MOVE_SELF)) {
-
 
151
      DUMP_SEP;
-
 
152
      rStr.append("IN_MOVE_SELF");    
-
 
153
    }
-
 
154
#endif // IN_MOVE_SELF
-
 
155
   
148
    else {
156
    else {
149
      if (IsType(uValue, IN_CLOSE_WRITE)) {
157
      if (IsType(uValue, IN_CLOSE_WRITE)) {
150
        DUMP_SEP;
158
        DUMP_SEP;
151
        rStr.append("IN_CLOSE_WRITE");
159
        rStr.append("IN_CLOSE_WRITE");
152
      }
160
      }
Line 202... Line 210...
202
  if (IsType(uValue, IN_ONLYDIR)) {
210
  if (IsType(uValue, IN_ONLYDIR)) {
203
    DUMP_SEP;
211
    DUMP_SEP;
204
    rStr.append("IN_ONLYDIR");
212
    rStr.append("IN_ONLYDIR");
205
  }
213
  }
206
#endif // IN_ONLYDIR
214
#endif // IN_ONLYDIR
207
-
 
208
#ifdef IN_MOVE_SELF
-
 
209
  if (IsType(uValue, IN_MOVE_SELF)) {
-
 
210
    DUMP_SEP;
-
 
211
    rStr.append("IN_MOVE_SELF");    
-
 
212
  }
-
 
213
#endif // IN_MOVE_SELF
-
 
214
}
215
}
215
216
216
void InotifyEvent::DumpTypes(std::string& rStr) const
217
void InotifyEvent::DumpTypes(std::string& rStr) const
217
{
218
{
218
  DumpTypes(m_uMask, rStr);
219
  DumpTypes(m_uMask, rStr);