Skip to content

Commit b7e4024

Browse files
authored
Merge pull request #4123 from iguessthislldo/igtd/rm-ace-pre-post
Remove Many Uses of `ace/pre.h` and `ace/post.h`
2 parents a80e240 + f9c705f commit b7e4024

File tree

17 files changed

+86
-114
lines changed

17 files changed

+86
-114
lines changed

dds/DCPS/Comparator_T.h

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
11
/*
2-
*
3-
*
42
* Distributed under the OpenDDS License.
53
* See: http://www.opendds.org/license.html
64
*/
75

86
#ifndef OPENDDS_DCPS_COMPARATOR_T_H
97
#define OPENDDS_DCPS_COMPARATOR_T_H
108

11-
#include /**/ "ace/pre.h"
12-
13-
#if !defined (ACE_LACKS_PRAGMA_ONCE)
14-
# pragma once
15-
#endif /* ACE_LACKS_PRAGMA_ONCE */
16-
17-
#include "ace/OS_NS_string.h"
9+
#include <ace/config-macros.h>
10+
#ifndef ACE_LACKS_PRAGMA_ONCE
11+
# pragma once
12+
#endif
1813

1914
#include "RcHandle_T.h"
2015
#include "RcObject.h"
2116
#include "RakeData.h"
2217

18+
#include <ace/OS_NS_string.h>
19+
2320
OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
2421

2522
namespace OpenDDS {

dds/DCPS/DataCollector_T.h

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
11
/*
2-
*
3-
*
42
* Distributed under the OpenDDS License.
53
* See: http://www.opendds.org/license.html
64
*/
75

86
#ifndef OPENDDS_DCPS_DATACOLLECTOR_T_H
97
#define OPENDDS_DCPS_DATACOLLECTOR_T_H
108

11-
// Needed here to avoid the pragma below when necessary.
12-
#include /**/ "ace/pre.h"
13-
#include /**/ "ace/config-all.h"
14-
15-
#if !defined (ACE_LACKS_PRAGMA_ONCE)
16-
#pragma once
17-
#endif /* ACE_LACKS_PRAGMA_ONCE */
9+
#include <ace/config-macros.h>
10+
#ifndef ACE_LACKS_PRAGMA_ONCE
11+
# pragma once
12+
#endif
1813

1914
#include "PoolAllocator.h"
2015
#include "SafetyProfileStreams.h"
@@ -126,6 +121,4 @@ OPENDDS_END_VERSIONED_NAMESPACE_DECL
126121
#pragma implementation ("DataCollector_T.cpp")
127122
#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
128123

129-
#include /**/ "ace/post.h"
130-
131124
#endif /* DATA_COLLECTOR_H */

dds/DCPS/GroupRakeData.h

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,23 @@
11
/*
2-
*
3-
*
42
* Distributed under the OpenDDS License.
53
* See: http://www.opendds.org/license.html
64
*/
75

86
#ifndef OPENDDS_DCPS_GROUPRAKEDATA_H
97
#define OPENDDS_DCPS_GROUPRAKEDATA_H
108

11-
#include /**/ "ace/pre.h"
12-
#include "dcps_export.h"
13-
14-
#if !defined (ACE_LACKS_PRAGMA_ONCE)
15-
# pragma once
16-
#endif /* ACE_LACKS_PRAGMA_ONCE */
9+
#include <ace/config-macros.h>
10+
#ifndef ACE_LACKS_PRAGMA_ONCE
11+
# pragma once
12+
#endif
1713

18-
#include "dds/DdsDcpsSubscriptionC.h"
19-
#include "dds/DdsDcpsInfrastructureC.h"
2014
#include "RakeData.h"
2115
#include "Comparator_T.h"
22-
2316
#include "PoolAllocator.h"
17+
#include "dcps_export.h"
18+
19+
#include <dds/DdsDcpsSubscriptionC.h>
20+
#include <dds/DdsDcpsInfrastructureC.h>
2421

2522
OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
2623

dds/DCPS/RakeData.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
/*
2-
*
3-
*
42
* Distributed under the OpenDDS License.
53
* See: http://www.opendds.org/license.html
64
*/
75

86
#ifndef OPENDDS_DCPS_RAKEDATA_H
97
#define OPENDDS_DCPS_RAKEDATA_H
108

11-
#include /**/ "ace/pre.h"
12-
#include "dcps_export.h"
139
#include "ReceivedDataElementList.h"
1410
#include "SubscriptionInstance.h"
11+
#include "dcps_export.h"
1512

16-
#if !defined (ACE_LACKS_PRAGMA_ONCE)
17-
# pragma once
18-
#endif /* ACE_LACKS_PRAGMA_ONCE */
13+
#ifndef ACE_LACKS_PRAGMA_ONCE
14+
# pragma once
15+
#endif
1916

2017
OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
2118

dds/DCPS/RakeResults_T.h

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
11
/*
2-
*
3-
*
42
* Distributed under the OpenDDS License.
53
* See: http://www.opendds.org/license.html
64
*/
75

86
#ifndef OPENDDS_DCPS_RAKERESULTS_T_H
97
#define OPENDDS_DCPS_RAKERESULTS_T_H
108

11-
#include /**/ "ace/pre.h"
12-
13-
#if !defined (ACE_LACKS_PRAGMA_ONCE)
14-
# pragma once
15-
#endif /* ACE_LACKS_PRAGMA_ONCE */
9+
#include <ace/config-macros.h>
10+
#ifndef ACE_LACKS_PRAGMA_ONCE
11+
# pragma once
12+
#endif
1613

17-
#include "dds/DdsDcpsSubscriptionC.h"
1814
#include "Comparator_T.h"
1915
#include "PoolAllocator.h"
2016
#include "RakeData.h"
2117
#include "TypeSupportImpl.h"
2218

19+
#include <dds/DdsDcpsSubscriptionC.h>
20+
2321
OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
2422

2523
namespace OpenDDS {
@@ -126,6 +124,4 @@ OPENDDS_END_VERSIONED_NAMESPACE_DECL
126124
#include "RakeResults_T.cpp"
127125
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
128126

129-
#include /**/ "ace/post.h"
130-
131127
#endif /* RAKERESULTS_H */

dds/DCPS/ZeroCopyAllocator_T.h

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
/*
2-
*
3-
*
42
* Distributed under the OpenDDS License.
53
* See: http://www.opendds.org/license.html
64
*/
75

86
#ifndef OPENDDS_DCPS_ZEROCOPYALLOCATOR_T_H
97
#define OPENDDS_DCPS_ZEROCOPYALLOCATOR_T_H
108

11-
#include /**/ "ace/pre.h"
12-
#include "ace/Malloc_Base.h" /* Need ACE_Allocator */
13-
// not needed export for templates #include "dcps_export.h"
9+
#include <ace/config-macros.h>
10+
#ifndef ACE_LACKS_PRAGMA_ONCE
11+
# pragma once
12+
#endif
1413

15-
#if !defined (ACE_LACKS_PRAGMA_ONCE)
16-
# pragma once
17-
#endif /* ACE_LACKS_PRAGMA_ONCE */
14+
#include <dds/Versioned_Namespace.h>
1815

19-
#include "dds/Versioned_Namespace.h"
16+
#include <ace/Malloc_Base.h> /* Need ACE_Allocator */
2017

2118
OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
2219

@@ -83,6 +80,4 @@ OPENDDS_END_VERSIONED_NAMESPACE_DECL
8380
#pragma implementation ("ZeroCopyAllocator_T.cpp")
8481
#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
8582

86-
#include /**/ "ace/post.h"
87-
8883
#endif /* ZEROCOPYALLOCATOR_H */

dds/DCPS/ZeroCopySeq_T.h

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
/*
2-
*
3-
*
42
* Distributed under the OpenDDS License.
53
* See: http://www.opendds.org/license.html
64
*/
75

86
#ifndef OPENDDS_DCPS_ZEROCOPYSEQ_T_H
97
#define OPENDDS_DCPS_ZEROCOPYSEQ_T_H
108

11-
#if !defined (ACE_LACKS_PRAGMA_ONCE)
12-
# pragma once
13-
#endif /* ACE_LACKS_PRAGMA_ONCE */
14-
15-
#include /**/ "ace/pre.h"
9+
#include <ace/config-macros.h>
10+
#ifndef ACE_LACKS_PRAGMA_ONCE
11+
# pragma once
12+
#endif
1613

1714
#include "ZeroCopySeqBase.h"
1815
#include "ZeroCopyAllocator_T.h"
16+
1917
#include <ace/Vector_T.h>
2018

2119
OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
@@ -233,6 +231,4 @@ TAO_END_VERSIONED_NAMESPACE_DECL
233231
#pragma implementation ("ZeroCopySeq_T.cpp")
234232
#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
235233

236-
#include /**/ "ace/post.h"
237-
238234
#endif /* ZEROCOPYSEQ_H */

dds/DCPS/transport/framework/DataLinkCleanupTask.h

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
/*
2-
*
3-
*
42
* Distributed under the OpenDDS License.
53
* See: http://www.opendds.org/license.html
64
*/
75

86
#ifndef OPENDDS_DCPS_TRANSPORT_FRAMEWORK_DATALINKCLEANUPTASK_H
97
#define OPENDDS_DCPS_TRANSPORT_FRAMEWORK_DATALINKCLEANUPTASK_H
108

11-
#include /**/ "ace/pre.h"
12-
139
#include "QueueTaskBase_T.h"
1410
#include "DataLink.h"
1511
#include "DataLink_rch.h"
1612

17-
#if !defined (ACE_LACKS_PRAGMA_ONCE)
18-
# pragma once
19-
#endif /* ACE_LACKS_PRAGMA_ONCE */
13+
#ifndef ACE_LACKS_PRAGMA_ONCE
14+
# pragma once
15+
#endif
2016

2117
OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
2218

@@ -46,6 +42,4 @@ class OpenDDS_Dcps_Export DataLinkCleanupTask : public QueueTaskBase <DataLink_r
4642

4743
OPENDDS_END_VERSIONED_NAMESPACE_DECL
4844

49-
#include /**/ "ace/post.h"
50-
5145
#endif /* OPENDDS_DCPS_DATALINKCLEANUP_H */

dds/DCPS/transport/tcp/Tcp.h

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
/*
2-
*
3-
*
42
* Distributed under the OpenDDS License.
53
* See: http://www.opendds.org/license.html
64
*/
75

86
#ifndef OPENDDS_DCPS_TRANSPORT_TCP_TCP_H
97
#define OPENDDS_DCPS_TRANSPORT_TCP_TCP_H
108

11-
#include /**/ "ace/pre.h"
12-
139
#include "Tcp_export.h"
14-
#include "ace/Service_Object.h"
15-
#include "ace/Service_Config.h"
16-
#include "dds/Versioned_Namespace.h"
1710

18-
#if !defined (ACE_LACKS_PRAGMA_ONCE)
19-
# pragma once
20-
#endif /* ACE_LACKS_PRAGMA_ONCE */
11+
#include <dds/Versioned_Namespace.h>
12+
13+
#include <ace/Service_Object.h>
14+
#include <ace/Service_Config.h>
15+
16+
#ifndef ACE_LACKS_PRAGMA_ONCE
17+
# pragma once
18+
#endif
2119

2220
OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
2321

@@ -37,6 +35,4 @@ static Tcp_Initializer tcp_initializer;
3735

3836
OPENDDS_END_VERSIONED_NAMESPACE_DECL
3937

40-
#include /**/ "ace/post.h"
41-
4238
#endif /* OPENDDS_TCP_H */

dds/DCPS/transport/tcp/TcpLoader.h

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
11
/*
2-
*
3-
*
42
* Distributed under the OpenDDS License.
53
* See: http://www.opendds.org/license.html
64
*/
75

86
#ifndef OPENDDS_DCPS_TRANSPORT_TCP_TCPLOADER_H
97
#define OPENDDS_DCPS_TRANSPORT_TCP_TCPLOADER_H
10-
#include /**/ "ace/pre.h"
118

129
#include "Tcp_export.h"
1310

14-
#include "ace/Service_Object.h"
15-
#include "ace/Service_Config.h"
11+
#include <dds/Versioned_Namespace.h>
1612

17-
#if !defined (ACE_LACKS_PRAGMA_ONCE)
18-
# pragma once
19-
#endif /* ACE_LACKS_PRAGMA_ONCE */
13+
#include <ace/Service_Object.h>
14+
#include <ace/Service_Config.h>
2015

21-
#include "dds/Versioned_Namespace.h"
16+
#ifndef ACE_LACKS_PRAGMA_ONCE
17+
# pragma once
18+
#endif
2219

2320
OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
2421

@@ -44,5 +41,4 @@ ACE_FACTORY_DECLARE(OpenDDS_Tcp, TcpLoader)
4441

4542
OPENDDS_END_VERSIONED_NAMESPACE_DECL
4643

47-
#include /**/ "ace/post.h"
4844
#endif /* TCP_LOADER_H */

0 commit comments

Comments
 (0)