NDEVR
API Documentation
DesignChangeListener.h
1#pragma once
2#include <NDEVR/DesignObject.h>
3namespace NDEVR
4{
5 class DesignObject;
11 {
12 public:
18 virtual void onPropertyChanged(DesignObject& target, NDPO prop) = 0;
19 };
20
25 {
26 public:
33 void onPropertyChanged(uint04 id, DesignObject& target, NDPO prop)
34 {
35 m_change_listeners[id]->onPropertyChanged(target, prop);
36 }
37 protected:
39 };
40}
The equivelent of std::vector but with a bit more control.
Definition Buffer.hpp:58
A low-level database object that can be used to access general stored properties within the NDEVR Mod...
Listens for a change of a particular property to a given target (DEPRECIATED).
virtual void onPropertyChanged(DesignObject &target, NDPO prop)=0
Called when a property on the target DesignObject has changed.
Used to listen for changes to properties (DEPRECIATED).
void onPropertyChanged(uint04 id, DesignObject &target, NDPO prop)
Dispatches a property change notification to the listener at the given index.
Buffer< PropertyChangeListener * > m_change_listeners
Collection of registered property change listeners.
The primary namespace for the NDEVR SDK.
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
NDPO
NDPO - NDEVR Design Property Object: Values stored in the property database.