VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
exampleEmbeddedSystemLocalNetIf.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
9 
11  "example-embedded-system-net-interface";
12 
13 namespace makVrf
14 {
16  class DtExampleEmbeddedSystemStateComponent;
17 }
18 
23 {
24 public:
25 
31  makVrf::DtVrlinkNetworkInterface* objectManager, bool publishObject = true);
32 
35 
39  virtual bool init(const makVrf::DtStateComponent* stateComponent);
40 
44  virtual DtString type() const;
45 
53 
56  virtual bool wantsToCreatePublisher() const;
57 
60  virtual bool isLocal() const
61  {
62  return true;
63  }
64 
65 protected:
68  virtual void updatePublisher();
69 
74 
75 private:
78 
81 
84 
85 protected:
88 };
Local network interface for example embedded system objects. Handles network communication for locall...
Definition: exampleEmbeddedSystemLocalNetIf.h:22
const makVrf::DtExampleEmbeddedSystemStateComponent * myExEmbeddedSystemComponent
Pointer to the embedded system state component for accessing local state data.
Definition: exampleEmbeddedSystemLocalNetIf.h:87
DtSimObjectNetInterface()
default constructor
const DtStateData * vrfObject() const
Definition: simObjectNetInterface.h:233
virtual bool isLocal() const
Indicates this is a local network interface.
Definition: exampleEmbeddedSystemLocalNetIf.h:60
virtual ~DtExampleEmbeddedSystemLocalNetInterface()
Virtual destructor for proper cleanup.
virtual bool publishObject() const override
Definition: localStateComponentNetInterface.h:55
static DtSimObjectNetInterface * creator(makVrf::DtStateData *vrfObject, makVrf::DtVrlinkNetworkInterface *mgr, bool publishObject)
Factory creator method for instantiating local network interfaces.
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:513
virtual bool init(const makVrf::DtStateComponent *stateComponent)
Initializes the state component for this interface.
const DtExampleEmbeddedSystemLocalNetInterface & operator=(const DtSimObjectNetInterface &orig)
Assignment operator - not implemented.
virtual DtString type() const
Returns the type identifier for this network interface. Overridden to provide custom type identificat...
virtual void updatePublisher()
Copies data from the VRF state component into the VR-Link state repository. Called when local state n...
Definition: localStateComponentNetInterface.h:22
Definition: stateComponent.h:52
Base interface class for the example embedded system state component. Defines the common interface us...
Definition: exampleEmbeddedSystemStateComponent.h:65
virtual bool wantsToCreatePublisher() const
Indicates whether this interface wants to create a publisher.
const char DtExampleEmbeddedSystemLocalNetInterfaceType[]
Definition: exampleEmbeddedSystemLocalNetIf.h:10
DtExampleEmbeddedSystemLocalNetInterface()
Default constructor - not implemented.
virtual DtObjectPublisher * createPublisher(const makVrf::DtExampleEmbeddedSystemStateComponent *stateComponent)
Creates the publisher for this component.

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)