wavelength 1.0.0
Loading...
Searching...
No Matches
dnasstatusmsg.h
Go to the documentation of this file.
1#pragma once
2
3#ifdef VIDEO_STANDARD_PAL
4
5#include "msg/message.h"
7#include "os/mem.h"
8
16class DNASStatusMsg : public Message {
17public:
23 ~DNASStatusMsg() override = default;
24
31 void *operator new(size_t nSize) {
32 return PoolMemAlloc(static_cast<int>(nSize), "DNASStatusMsg", 0);
33 }
34
40 void operator delete(void *pBlock) {
41 PoolMemFree(pBlock);
42 }
43
51 explicit DNASStatusMsg(int nRunning) : mRunning(nRunning) {
52 }
53
60 Message *Clone() override;
61
68 int Type() override;
69
76 const char *GetName() const override;
77
79 int GetRunning() const {
80 return mRunning;
81 }
82
83private:
84 int mRunning;
85};
86
87#endif
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
virtual const char * GetName() const =0
Report this message's class name.
virtual int Type()=0
Report this message's registered identity.
virtual Message * Clone()=0
Produce a heap copy of this message.
void * PoolMemAlloc(int nSize, const char *pszTag, int nAlign)
Allocate a block from the pool heaps and bill it to a tag.
void PoolMemFree(void *pBlock)
Return a block PoolMemAlloc() handed out to the pool heap that owns it.