Fawkes API  Fawkes Development Version
mongodb_inifin.h
1 
2 /***************************************************************************
3  * mongodb_inifin.h - Fawkes MongoDBAspect initializer/finalizer
4  *
5  * Created: Mon Dec 06 21:12:05 2010
6  * Copyright 2006-2017 Tim Niemueller [www.niemueller.de]
7  ****************************************************************************/
8 
9 /* This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version. A runtime exception applies to
13  * this software (see LICENSE.GPL_WRE file mentioned below for details).
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Library General Public License for more details.
19  *
20  * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
21  */
22 
23 #ifndef _PLUGINS_MONGODB_ASPECT_MONGODB_INIFIN_H_
24 #define _PLUGINS_MONGODB_ASPECT_MONGODB_INIFIN_H_
25 
26 #include <aspect/inifins/inifin.h>
27 
28 #include <vector>
29 
30 namespace fawkes {
31 
32 class MongoDBConnCreator;
33 
34 class MongoDBAspectIniFin : public AspectIniFin
35 {
36 public:
37  MongoDBAspectIniFin(MongoDBConnCreator *conn_creator);
38 
39  virtual void init(Thread *thread);
40  virtual void finalize(Thread *thread);
41 
42 private:
43  MongoDBConnCreator *conn_creator_;
44 };
45 
46 } // end namespace fawkes
47 
48 #endif
fawkes::MongoDBConnCreator
Definition: mongodb_conncreator.h:42
fawkes::MongoDBAspectIniFin::MongoDBAspectIniFin
MongoDBAspectIniFin(MongoDBConnCreator *conn_creator)
Constructor.
Definition: mongodb_inifin.cpp:47
fawkes::MongoDBAspectIniFin::finalize
virtual void finalize(Thread *thread)
Definition: mongodb_inifin.cpp:75
fawkes
fawkes::MongoDBAspectIniFin::init
virtual void init(Thread *thread)
Definition: mongodb_inifin.cpp:54
fawkes::Thread
Definition: thread.h:45