Audacity 3.2.0
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
audacity::sentry::Message Struct Referencefinal

A DTO for the Sentry Message interface. More...

#include <SentryReport.h>

Collaboration diagram for audacity::sentry::Message:
[legend]

Public Member Functions

MessageAddParam (AnonymizedMessage value)
 Add a parameter to the Message. More...
 

Static Public Member Functions

static Message Create (AnonymizedMessage message)
 Create a new Message. More...
 

Public Attributes

AnonymizedMessage Value
 A string, possibly with s placeholders, containing the message. More...
 
std::vector< AnonymizedMessageParams
 Values for the placeholders. More...
 

Detailed Description

A DTO for the Sentry Message interface.

Definition at line 48 of file SentryReport.h.

Member Function Documentation

◆ AddParam()

Message & audacity::sentry::Message::AddParam ( AnonymizedMessage  value)

Add a parameter to the Message.

Definition at line 249 of file SentryReport.cpp.

250{
251 Params.emplace_back(std::move(value));
252 return *this;
253}
std::vector< AnonymizedMessage > Params
Values for the placeholders.
Definition: SentryReport.h:53

References Params.

◆ Create()

Message audacity::sentry::Message::Create ( AnonymizedMessage  message)
static

Create a new Message.

Definition at line 244 of file SentryReport.cpp.

245{
246 return { std::move(message) };
247}

Member Data Documentation

◆ Params

std::vector<AnonymizedMessage> audacity::sentry::Message::Params

Values for the placeholders.

Definition at line 53 of file SentryReport.h.

Referenced by AddParam(), and audacity::sentry::Report::ReportImpl::ReportImpl().

◆ Value

AnonymizedMessage audacity::sentry::Message::Value

A string, possibly with s placeholders, containing the message.

Definition at line 51 of file SentryReport.h.

Referenced by audacity::sentry::Report::ReportImpl::ReportImpl().


The documentation for this struct was generated from the following files: