BRL-CAD
setup.cpp
Go to the documentation of this file.
1 /* S E T U P . C P P
2  * BRL-CAD
3  *
4  * Copyright (c) 2015 United States Government as represented by
5  * the U.S. Army Research Laboratory.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public License
9  * version 2.1 as published by the Free Software Foundation.
10  *
11  * This library is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this file; see the file named COPYING for more
18  * information.
19  */
20 /** @file setup.cpp
21  *
22  * Registration of libgcv static plugins.
23  *
24  */
25 
26 
27 #include "common.h"
28 
29 #include "gcv_private.h"
30 
31 
32 #define TOKENPASTE(prefix, suffix) prefix ## suffix
33 #define TOKENPASTE2(prefix, suffix) TOKENPASTE(prefix, suffix)
34 #define PLUGIN(name) \
35  extern "C" gcv_plugin_info name; \
36  static const RegisterPlugin TOKENPASTE2(plugin_, __LINE__)((name))
37 
38 
40 {
41 public:
42  RegisterPlugin(const gcv_plugin_info &info);
43 };
44 
45 
47 {
48  gcv_plugin_register(&info);
49 }
50 
51 
52 // gcv static plugins
53 
60 
61 
62 // Local Variables:
63 // tab-width: 8
64 // mode: C++
65 // c-basic-offset: 4
66 // indent-tabs-mode: t
67 // c-file-style: "stroustrup"
68 // End:
69 // ex: shiftwidth=4 tabstop=8
const struct gcv_plugin_info gcv_plugin_conv_obj_write
Definition: obj_write.c:189
const struct gcv_plugin_info gcv_plugin_conv_brlcad
Definition: brlcad.c:81
void gcv_plugin_register(const struct gcv_plugin_info *plugin_info)
Definition: plugin.c:55
Header file for the BRL-CAD common definitions.
RegisterPlugin(const gcv_plugin_info &info)
Definition: setup.cpp:46
const struct gcv_plugin_info gcv_plugin_conv_stl_read
Definition: stl_read.c:656
const struct gcv_plugin_info gcv_plugin_conv_fastgen4_read
const struct gcv_plugin_info gcv_plugin_conv_vrml_write
Definition: vrml_write.c:769
const struct gcv_plugin_info gcv_plugin_conv_stl_write
Definition: stl_write.c:513
#define PLUGIN(name)
Definition: setup.cpp:34