Itasca C++ Interface
Loading...
Searching...
No Matches
izonedata.h
Go to the documentation of this file.
1#pragma once
2// izonedata.h
3
4#include "module/interface/idata.h"
5
11namespace block {
12 class IZoneThing;
13
21 class IZoneData {
22 public:
23 // signals
25 shared::Signal<const string &> propertyChanged;
26 shared::Signal<bool> propertyActiveChanged;
27 shared::Signal<const StringList &> propertiesAvailableChanged;
28
29 virtual const itascaxd::IData *getIData() const = 0;
30 virtual itascaxd::IData *getIData() = 0;
31
33 virtual string getProperty() const = 0;
35 virtual bool getPropertyActive() const = 0;
39 virtual double getData(const IZoneThing *z, uint32 thread=0, uint32 block=0) const = 0;
42 virtual QList<uint> getInterestedIn() const = 0;
44 virtual void destroy() = 0;
45
48 virtual void setProperty(const string &s) = 0;
49
50 virtual void initializeMultithreading(uint32 threads) = 0;
51 };
52} // namespace block
53// EoF
Definition idef.h:50
Definition basestring.h:89
Access to zone scalar data in a generic way. This class maintains a list of scalar data (sxx,...
Definition izonedata.h:21
virtual QList< uint > getInterestedIn() const =0
shared::Signal< const string & > propertyChanged
This SIGNAL is sent when the property name changes, used when retrieving zone properties.
Definition izonedata.h:25
virtual void setProperty(const string &s)=0
virtual void destroy()=0
Destroys this object safely across interface boundaries.
virtual double getData(const IZoneThing *z, uint32 thread=0, uint32 block=0) const =0
Retrieves scalar data from the zone, depending on the current index and property data.
virtual StringList getPropertiesAvailable() const =0
Returns list of available properties.
virtual string getProperty() const =0
Returns the name of the property value being retrieved if the current data is Zone Property.
virtual bool getPropertyActive() const =0
Returns TRUE if the current data index is a Zone Property.
This is the interface for ZoneThing, a class that holds extra data not in the fortran arrays....
Definition izonething.h:35
Definition idata.h:16