Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation
ImportExport.h
Go to the documentation of this file.
1 #ifndef QPID_IMPORTEXPORT_H
2 #define QPID_IMPORTEXPORT_H
3 
4 /*
5  * Licensed to the Apache Software Foundation (ASF) under one
6  * or more contributor license agreements. See the NOTICE file
7  * distributed with this work for additional information
8  * regarding copyright ownership. The ASF licenses this file
9  * to you under the Apache License, Version 2.0 (the
10  * "License"); you may not use this file except in compliance
11  * with the License. You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing,
16  * software distributed under the License is distributed on an
17  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18  * KIND, either express or implied. See the License for the
19  * specific language governing permissions and limitations
20  * under the License.
21  */
22 
23 //
24 // This header file defines the following macros for the control of library/DLL
25 // import and export:
26 //
27 // QPID_EXPORT - Export declaration for Methods
28 // QPID_CLASS_EXPORT - Export declaration for Classes
29 // QPID_INLINE_EXPORT - Export declaration for Inline methods
30 //
31 // QPID_IMPORT - Import declaration for Methods
32 // QPID_CLASS_IMPORT - Import declaration for Classes
33 // QPID_INLINE_IMPORT - Import declaration for Inline methods
34 //
35 
36 #if defined(WIN32) && !defined(QPID_DECLARE_STATIC)
37  //
38  // Import and Export definitions for Windows:
39  //
40 # define QPID_EXPORT __declspec(dllexport)
41 # define QPID_IMPORT __declspec(dllimport)
42 # ifdef _MSC_VER
43  //
44  // Specific to the Microsoft compiler:
45  //
46 # define QPID_CLASS_EXPORT
47 # define QPID_CLASS_IMPORT
48 # define QPID_INLINE_EXPORT QPID_EXPORT
49 # define QPID_INLINE_IMPORT QPID_IMPORT
50 # else
51  //
52  // Specific to non-Microsoft compilers (mingw32):
53  //
54 # define QPID_CLASS_EXPORT QPID_EXPORT
55 # define QPID_CLASS_IMPORT QPID_IMPORT
56 # define QPID_INLINE_EXPORT
57 # define QPID_INLINE_IMPORT
58 # endif
59 #else
60  //
61  // Non-Windows (Linux, etc.) definitions:
62  //
63 #if __GNUC__ >= 4
64 # define QPID_EXPORT __attribute ((visibility ("default")))
65 #else
66 # define QPID_EXPORT
67 #endif
68 # define QPID_IMPORT
69 # define QPID_CLASS_EXPORT QPID_EXPORT
70 # define QPID_CLASS_IMPORT QPID_IMPORT
71 # define QPID_INLINE_EXPORT QPID_EXPORT
72 # define QPID_INLINE_IMPORT QPID_IMPORT
73 #endif
74 
75 #endif

Qpid C++ API Reference
Generated on Tue Oct 28 2014 for Qpid C++ Client API by doxygen 1.8.5