~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/event_observer.h

  • Committer: Monty Taylor
  • Date: 2011-02-13 17:26:39 UTC
  • mfrom: (2157.2.2 give-in-to-pkg-config)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110213172639-nhy7i72sfhoq13ms
Merged in pkg-config fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
#ifndef DRIZZLED_PLUGIN_EVENT_OBSERVER_H
44
44
#define DRIZZLED_PLUGIN_EVENT_OBSERVER_H
45
45
 
46
 
#include <drizzled/plugin/plugin.h>
 
46
#include "drizzled/plugin/plugin.h"
 
47
#include "drizzled/session.h"
47
48
 
48
49
#include <string>
49
50
 
50
 
#include <drizzled/visibility.h>
 
51
#include "drizzled/visibility.h"
51
52
 
52
53
namespace drizzled
53
54
{
295
296
  // Call all the event observers that are registered for this event.
296
297
  virtual bool callEventObservers();
297
298
  
298
 
  static bool hasEvents(Session &in_session);
 
299
  static bool hasEvents(Session &in_session) { return (in_session.getSessionObservers() != NULL);}
299
300
};
300
301
 
301
302
//-----
336
337
  // Call all the event observers that are registered for this event.
337
338
  virtual bool callEventObservers();
338
339
  
339
 
  static bool hasEvents(Table &in_table);
 
340
  static bool hasEvents(Table &in_table) { return (in_table.getMutableShare()->getTableObservers() != NULL);}
340
341
};
341
342
 
342
343
//-----