MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / SamplesMessage

Class SamplesMessage

include/Suscan/Messages/SamplesMessage.h:28–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27namespace Suscan {
28 class SamplesMessage: public Message {
29 private:
30 struct suscan_analyzer_sample_batch_msg *message = nullptr; // Convenience reference
31
32 public:
33 InspectorId
34 getInspectorId(void) const
35 {
36 if (this->message == nullptr)
37 return 999999999;
38
39 return static_cast<InspectorId>(this->message->inspector_id);
40 }
41
42 unsigned int
43 getCount(void) const
44 {
45 if (this->message == nullptr)
46 return 0;
47
48 return this->message->sample_count;
49 }
50
51 const SUCOMPLEX *
52 getSamples(void) const
53 {
54 if (this->message == nullptr)
55 return nullptr;
56
57 return this->message->samples;
58 }
59
60 SamplesMessage();
61 SamplesMessage(struct suscan_analyzer_sample_batch_msg *msg);
62 };
63};
64
65#endif // MESSAGES_SAMPLES_MESSAGE_H

Callers 1

captureMessageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected