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
30namespace fawkes {
31
32class MongoDBConnCreator;
33
35{
36public:
38
39 virtual void init(Thread *thread);
40 virtual void finalize(Thread *thread);
41
42private:
43 MongoDBConnCreator *conn_creator_;
44};
45
46} // end namespace fawkes
47
48#endif
Aspect initializer/finalizer base class.
Definition: inifin.h:34
MongoDBAspect initializer/finalizer.
MongoDBAspectIniFin(MongoDBConnCreator *conn_creator)
Constructor.
virtual void finalize(Thread *thread)
Finalize thread.
virtual void init(Thread *thread)
Initialize thread.
Interface for a MongoDB connection creator.
Thread class encapsulation of pthreads.
Definition: thread.h:46
Fawkes library namespace.