Skip to content

Commit 60f306d

Browse files
authored
Misc bmqa::Messages: Do not include bmqp (#805)
Signed-off-by: Yuan Jing Vincent Yan <yyan82@bloomberg.net>
1 parent 0085576 commit 60f306d

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/groups/bmq/bmqa/bmqa_message.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include <bmqimp_queue.h>
2525
#include <bmqp_event.h>
2626
#include <bmqp_eventutil.h>
27+
#include <bmqp_messageproperties.h>
2728
#include <bmqp_protocolutil.h>
2829
#include <bmqp_queueid.h>
2930
#include <bmqt_resultcode.h>

src/groups/bmq/bmqa/bmqa_message.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
// BMQ
6161

6262
#include <bmqa_queueid.h>
63-
#include <bmqp_messageproperties.h>
6463
#include <bmqt_compressionalgorithmtype.h>
6564
#include <bmqt_correlationid.h>
6665
#include <bmqt_messageguid.h>
@@ -81,6 +80,9 @@ namespace BloombergLP {
8180
namespace bmqimp {
8281
class Event;
8382
}
83+
namespace bmqp {
84+
class MessageProperties_Schema;
85+
}
8486

8587
namespace bmqa {
8688

@@ -118,7 +120,8 @@ struct MessageImpl {
118120
/// SubscriptionHandle this message is associated with
119121
bmqt::SubscriptionHandle d_subscriptionHandle;
120122

121-
bmqp::MessageProperties::SchemaPtr d_schema_sp;
123+
/// Schema pointer
124+
bsl::shared_ptr<const bmqp::MessageProperties_Schema> d_schema_sp;
122125

123126
#ifdef BMQ_ENABLE_MSG_GROUPID
124127
/// Optional GroupId this message is associated with

0 commit comments

Comments
 (0)