Enzo
Loading...
Searching...
No Matches
Context.h
1#pragma once
2
3#include "Engine/Types.h"
4#include "Engine/Operator/NodePacket.h"
5
6namespace enzo::nt
7{
8 class NetworkManager;
9}
10
11namespace enzo::op
12{
20{
21public:
22 Context(enzo::nt::OpId opId, enzo::nt::NetworkManager& networkManager);
23 enzo::NodePacket cloneInputPacket(unsigned int inputIndex);
24 bool hasInput(unsigned int inputIndex);
25 bt::floatT evalFloatParm(const char* parmName, const unsigned int index=0) const;
26 bt::intT evalIntParm(const char* parmName, const unsigned int index=0) const;
27 bt::boolT evalBoolParm(const char* parmName, const unsigned int index=0) const;
28 bt::String evalStringParm(const char* parmName, const unsigned int index=0) const;
29private:
30 enzo::nt::OpId opId_;
31 enzo::nt::NetworkManager& networkManager_;
32
33};
34}
Basic attribute, parameter, and node types for Enzo.
uint64_t OpId
The unique ID assigned to each node in the network.
Definition Types.h:87
Definition NodePacket.h:8
The central coordinator of the engine's node system.
Definition NetworkManager.h:27
Provides network context for the cookOp function.
Definition Context.h:20