WSF
WsfVideoMessage.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2003-2015 The Boeing Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11
12#ifndef WSFVIDEOMESSAGE_HPP
13#define WSFVIDEOMESSAGE_HPP
14
15#include "wsf_export.h"
16
17#include <memory>
18
19class UtScriptClass;
20class UtScriptTypes;
21class WsfImage;
22#include "WsfMessage.hpp"
23
28
30{
31public:
32 WsfVideoMessage(WsfPlatform* aPlatformPtr, const WsfImage& aImagePtr);
33
34 ~WsfVideoMessage() override = default;
35
37 WsfMessage* Clone() const override;
38
39 const char* GetScriptClassName() const override;
40
41 static std::unique_ptr<UtScriptClass> CreateScriptClass(const std::string& aClassName, UtScriptTypes* aScriptTypesPtr);
42
44 static WsfStringId GetTypeId();
45 static const char* GetMessageType();
46
48 WsfStringId GetComponentNameId() const override;
50 WsfStringId GetComponentTypeId() const override;
52 WsfStringId GetComponentModeId() const override;
53
54 // Return the pointer to the frame. This pointer is valid ONLY during the
55 // processing of the message. If you need to retain the information then
56 // you must clone the Image!
57
58 WsfImage* GetImage() const { return mImagePtr.get(); }
59
60protected:
61 WsfVideoMessage(const WsfVideoMessage& aSrc) = default; // For Clone()
63
64private:
65 ut::CloneablePtr<WsfImage> mImagePtr;
66};
67
68#endif
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition WsfStringId.hpp:23
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
Definition WsfImage.hpp:36
virtual WsfStringId GetComponentModeId() const
Definition WsfMessage.hpp:180
WsfMessage(WsfStringId aType)
Constructor for XIO (de)serialization.
Definition WsfMessage.cpp:25
const char * GetScriptClassName() const override
Definition WsfMessage.cpp:235
static WsfStringId GetTypeId()
Definition WsfMessage.cpp:159
virtual WsfMessage * Clone() const
Definition WsfMessage.cpp:150
virtual WsfStringId GetComponentNameId() const
Definition WsfMessage.hpp:176
virtual WsfStringId GetComponentTypeId() const
Definition WsfMessage.hpp:178
Platforms represent a entity within the simulation.
Definition WsfPlatform.hpp:115
WsfVideoMessage & operator=(const WsfVideoMessage &)=delete
static const char * GetMessageType()
Definition WsfVideoMessage.cpp:78
WsfVideoMessage(WsfPlatform *aPlatformPtr, const WsfImage &aImagePtr)
Definition WsfVideoMessage.cpp:27
WsfVideoMessage(const WsfVideoMessage &aSrc)=default
~WsfVideoMessage() override=default
static std::unique_ptr< UtScriptClass > CreateScriptClass(const std::string &aClassName, UtScriptTypes *aScriptTypesPtr)
Definition WsfVideoMessage.cpp:67
WsfImage * GetImage() const
Definition WsfVideoMessage.hpp:58
Copyrights Multiple, All Rights Reserved