DDS-PSM-C++  1.0
ISO C++ API for OpenSplice DDS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
macros.hpp
Go to the documentation of this file.
1 #ifndef OMG_DDS_CORE_DETAIL_MACROS_HPP_
2 #define OMG_DDS_CORE_DETAIL_MACROS_HPP_
3 
4 /* Copyright 2010, Object Management Group, Inc.
5  * Copyright 2010, PrismTech, Corp.
6  * Copyright 2010, Real-Time Innovations, Inc.
7  * All rights reserved.
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * 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, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  */
21 
22 #include <iostream>
23 #include <boost/static_assert.hpp>
24 #include <string.h>
25 
26 // == Constants
27 #define OMG_DDS_DEFAULT_STATE_BIT_COUNT_DETAIL (size_t)16
28 #define OMG_DDS_DEFAULT_STATUS_COUNT_DETAIL (size_t)16
29 // ==========================================================================
30 
31 // == Static Assert
32 #define OMG_DDS_STATIC_ASSERT_DETAIL BOOST_STATIC_ASSERT
33 // ==========================================================================
34 
35 // Logging Macros
36 #define OMG_DDS_LOG_DETAIL(kind, msg) \
37  std::cout << "[" << kind << "]: " << msg << std::endl;
38 // ==========================================================================
39 
40 
41 // DLL Export Macros
42 
43 #ifdef _WIN32 // This is defined for 32/64 bit Windows
44 # define OMG_DDS_API_DETAIL __declspec(dllexport)
45 #else
46 # define OMG_DDS_API_DETAIL
47 #endif
48 
49 // ==========================================================================
50 
51 
52 
53 #endif /* OMG_DDS_CORE_MACROS_HPP_*/