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_MACROS_HPP_
2 #define OMG_DDS_CORE_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 
23 
24 // == Static Assert =========================================================
25 #define OMG_DDS_STATIC_ASSERT OMG_DDS_STATIC_ASSERT_DETAIL
26 // ==========================================================================
27 
28 
29 // == Logging Macros ========================================================
30 #define OMG_DDS_LOG(kind, msg) OMG_DDS_LOG_DETAIL(kind, msg)
31 // ==========================================================================
32 
33 
34 // == State Width Constants =================================================
35 /* By default, there can be up to 32 unique statuses. However, a
36  * DDS implementation may extend this number if necessary.
37  */
38 #define OMG_DDS_DEFAULT_STATE_BIT_COUNT OMG_DDS_DEFAULT_STATE_BIT_COUNT_DETAIL
39 #define OMG_DDS_DEFAULT_STATUS_COUNT OMG_DDS_DEFAULT_STATUS_COUNT_DETAIL
40 
41 #ifndef OMG_DDS_STATE_BIT_COUNT
42 #define OMG_DDS_STATE_BIT_COUNT OMG_DDS_DEFAULT_STATE_BIT_COUNT
43 #endif // !defined(OMG_DDS_STATE_BIT_COUNT)
44 
45 #ifndef OMG_DDS_STATUS_COUNT
46 #define OMG_DDS_STATUS_COUNT OMG_DDS_DEFAULT_STATUS_COUNT
47 #endif // !defined(OMG_DDS_STATUS_COUNT)
48 // ==========================================================================
49 
50 
51 // == DLL Export Macros =====================================================
52 #define OMG_DDS_API OMG_DDS_API_DETAIL
53 // ==========================================================================
54 
55 
56 #endif /* OMG_DDS_CORE_MACROS_HPP_*/