VR-Engage  2.2
Loading...
Searching...
No Matches
cigiEntityUnpublisher.h
Go to the documentation of this file.
1/*******************************************************************************
2** Copyright (c) 2024 MAK Technologies, Inc.
3** All rights reserved.
4*******************************************************************************/
5#pragma once
6
7//! @file cigiEntityUnpublisher.h
8//!
9//! @brief Specialized EntityPublisher sends Remove status and deletes itself upon
10//! confirmation of receipt.
11//!
12//! Allows for the immediate deletion of EntityPublishers while still assuring
13//! clean removal of CIGI Entities from the IG.
14//!
15//! EntityUnpublisher instances are automatically created by EntityPublishers when
16//! they are destroyed.
17
18#include "vreCigiHost/export.h"
20
21#include <CigiBaseEntityCtrl.h>
22
23namespace makVre
24{
25
26class CIGIHOST_DLL DtCigiEntityUnpublisher : public DtCigiPublisherTemplate<CigiBaseEntityCtrl, DtCigiEntityUnpublisher>
27{
28public:
30 virtual ~DtCigiEntityUnpublisher() override {}
31
32 virtual void setCigiId(Cigi_uint16 id);
33 virtual Cigi_uint16 cigiId() const;
34
35 virtual bool isDirty() const override;
36 virtual void receiptConfirmed() override;
37
38 virtual bool init() override;
39};
40
41} // namespace makVre
Base class for Publishers creating CIGI entities.
DtCigiEntityUnpublisher()
Definition cigiEntityUnpublisher.h:29
virtual void receiptConfirmed() override
Called when the IG reports receiving the last frame in which this Pulisher wrote data during publish(...
virtual ~DtCigiEntityUnpublisher() override
Definition cigiEntityUnpublisher.h:30
virtual Cigi_uint16 cigiId() const
virtual bool init() override
virtual void setCigiId(Cigi_uint16 id)
virtual bool isDirty() const override
Contains the DLL export macro.
#define CIGIHOST_DLL
Definition export.h:20
Include export definitions for this library.
Definition glsVreMessageUtil.h:49