/**
* @brief The MediaEvent struct defines media event for plugins communication via Media Framework event loop.
* Event is sent as serialized data. Also could be transfered via TransportService.
*
* Should not be used in plugins directly, convert it to StrongMediaEvent.
* Don't create this events in new code.
* @see com::clarion::media::Event
* @deprecated
*/
struct MediaEvent
{
eMediaEvents evID; /**< Event type identifier*/
int priority; /**< Event priority, defined by eMediaEventPriority enum*/
u_int32_t index; /**< Set by Media Framework for event object identification*/
char* payload; /**< Media event owns payload, so payload to have only trivial destructor.
This payload is processed by Serializer and Deserializer helpers.*/
size_t payloadSize; /**< Payload size in bytes, used by deserializer. */
//initialization and cleanup
MediaEvent() : evID (MEDIAE_START), priority(0), index(0), payload(nullptr), payloadSize(0) {}
~MediaEvent() { delete [] payload;}
//make it non copyable and non moveable
//force to use heap
MediaEvent(const MediaEvent&) = delete;
MediaEvent(const MediaEvent&&) = delete;
MediaEvent& operator = (const MediaEvent&) = delete;
MediaEvent& operator = (const MediaEvent&&) = delete;
};
比如这一句MediaEvent(const MediaEvent&&) = delete;
中的&&
和= delete
表示啥?