@@ -71,32 +71,14 @@ namespace Aws
71
71
EventStreamHeader (
72
72
const struct aws_event_stream_header_value_pair &header,
73
73
Crt::Allocator *allocator = Crt::g_allocator);
74
- EventStreamHeader (const Crt::String &name, bool value);
75
- EventStreamHeader (const Crt::String &name, int8_t value);
76
- EventStreamHeader (const Crt::String &name, int16_t value);
77
- EventStreamHeader (const Crt::String &name, int32_t value);
78
- EventStreamHeader (const Crt::String &name, int64_t value);
79
- EventStreamHeader (const Crt::String &name, Crt::DateTime &value);
80
74
EventStreamHeader (
81
75
const Crt::String &name,
82
76
const Crt::String &value,
83
77
Crt::Allocator *allocator = Crt::g_allocator) noexcept ;
84
- EventStreamHeader (const Crt::String &name, Crt::ByteBuf &value);
85
- EventStreamHeader (const Crt::String &name, Crt::UUID value);
86
78
87
- HeaderValueType GetHeaderValueType ();
88
79
Crt::String GetHeaderName () const noexcept ;
89
- void SetHeaderName (const Crt::String &);
90
-
91
- bool GetValueAsBoolean (bool &);
92
- bool GetValueAsByte (int8_t &);
93
- bool GetValueAsShort (int16_t &);
94
- bool GetValueAsInt (int32_t &);
95
- bool GetValueAsLong (int64_t &);
96
- bool GetValueAsTimestamp (Crt::DateTime &);
80
+
97
81
bool GetValueAsString (Crt::String &) const noexcept ;
98
- bool GetValueAsBytes (Crt::ByteBuf &);
99
- bool GetValueAsUUID (Crt::UUID &);
100
82
101
83
const struct aws_event_stream_header_value_pair *GetUnderlyingHandle () const ;
102
84
@@ -229,6 +211,8 @@ namespace Aws
229
211
class AWS_EVENTSTREAMRPC_API ConnectionLifecycleHandler
230
212
{
231
213
public:
214
+ virtual ~ConnectionLifecycleHandler () noexcept = default ;
215
+
232
216
/* *
233
217
* This callback is only invoked upon receiving a CONNECT_ACK with the
234
218
* CONNECTION_ACCEPTED flag set by the server. Therefore, once this callback
@@ -300,7 +284,7 @@ namespace Aws
300
284
* the TERMINATE_STREAM flag, or when the connection shuts down.
301
285
*/
302
286
virtual void OnContinuationClosed () = 0;
303
- virtual ~ClientContinuationHandler () noexcept ;
287
+ virtual ~ClientContinuationHandler () noexcept = default ;
304
288
305
289
private:
306
290
friend class ClientContinuation ;
@@ -352,7 +336,6 @@ namespace Aws
352
336
* @return True if the continuation has been closed, false otherwise.
353
337
*/
354
338
bool IsClosed () noexcept ;
355
- void Release () noexcept ;
356
339
357
340
/* *
358
341
* Send message on the continuation.
@@ -394,7 +377,7 @@ namespace Aws
394
377
{
395
378
public:
396
379
AbstractShapeBase () noexcept ;
397
- virtual ~AbstractShapeBase () noexcept ;
380
+ virtual ~AbstractShapeBase () noexcept = default ;
398
381
static void s_customDeleter (AbstractShapeBase *shape) noexcept ;
399
382
virtual void SerializeToJsonObject (Crt::JsonObject &payloadObject) const = 0;
400
383
virtual Crt::String GetModelName () const noexcept = 0;
@@ -409,7 +392,7 @@ namespace Aws
409
392
class AWS_EVENTSTREAMRPC_API OperationError : public AbstractShapeBase
410
393
{
411
394
public:
412
- explicit OperationError () noexcept ;
395
+ explicit OperationError () noexcept = default ;
413
396
static void s_customDeleter (OperationError *shape) noexcept ;
414
397
virtual void SerializeToJsonObject (Crt::JsonObject &payloadObject) const override ;
415
398
virtual Crt::Optional<Crt::String> GetMessage () noexcept = 0;
@@ -423,6 +406,8 @@ namespace Aws
423
406
class AWS_EVENTSTREAMRPC_API StreamResponseHandler
424
407
{
425
408
public:
409
+ virtual ~StreamResponseHandler () noexcept = default ;
410
+
426
411
/* *
427
412
* Invoked when stream is closed, so no more messages will be received.
428
413
*/
@@ -523,6 +508,7 @@ namespace Aws
523
508
{
524
509
/* An interface shared by all operations for retrieving the response object given the model name. */
525
510
public:
511
+ virtual ~ResponseRetriever () noexcept = default ;
526
512
virtual ExpectedResponseFactory GetInitialResponseFromModelName (
527
513
const Crt::String &modelName) const noexcept = 0;
528
514
virtual ExpectedResponseFactory GetStreamingResponseFromModelName (
@@ -534,6 +520,7 @@ namespace Aws
534
520
class AWS_EVENTSTREAMRPC_API ServiceModel
535
521
{
536
522
public:
523
+ virtual ~ServiceModel () noexcept = default ;
537
524
virtual Crt::ScopedResource<OperationError> AllocateOperationErrorFromPayload (
538
525
const Crt::String &errorModelName,
539
526
Crt::StringView stringView,
@@ -548,6 +535,8 @@ namespace Aws
548
535
public:
549
536
OperationModelContext (const ServiceModel &serviceModel) noexcept ;
550
537
538
+ virtual ~OperationModelContext () noexcept = default ;
539
+
551
540
/* *
552
541
* Parse the given string into an initial response object.
553
542
* @param stringView String to parse the response from.
@@ -662,9 +651,6 @@ namespace Aws
662
651
std::future<RpcError> Activate (
663
652
const AbstractShapeBase *shape,
664
653
OnMessageFlushCallback onMessageFlushCallback) noexcept ;
665
- std::future<RpcError> SendStreamEvent (
666
- AbstractShapeBase *shape,
667
- OnMessageFlushCallback onMessageFlushCallback) noexcept ;
668
654
669
655
/* *
670
656
* Returns the canonical model name associated with this operation across any client language.
0 commit comments