|
Porytiles
|
A specification for operands required or produced by orchestration operations. More...
#include <operand_declaration.hpp>
Public Member Functions | |
| OperandDeclaration (std::string key, const std::type_index type) | |
| Constructs an operand declaration with the specified key and type. | |
| const std::string & | key () const |
| Gets the operand's unique identifier. | |
| const std::type_index & | expected_type () const |
| Gets the expected type information for this operand. | |
| const std::string & | description () const |
| Gets the human-readable description of this operand. | |
| void | set_description (const std::string &desc) |
| Sets a custom description for this operand. | |
A specification for operands required or produced by orchestration operations.
OperandDeclaration provides a POD-like class that Operations use to declare input and output operand metadata. Each declaration specifies a key name, expected type, and optional human-readable description. This enables the orchestration framework to validate that OperandDeclaration contents match Operation requirements at runtime.
Definition at line 17 of file operand_declaration.hpp.
|
inline |
Constructs an operand declaration with the specified key and type.
The constructor initializes the description to match the given key. The description setter provides a way to update this OperandDeclaration with a custom description.
| key | The unique identifier for this operand |
| type | The expected C++ type represented as std::type_index |
Definition at line 29 of file operand_declaration.hpp.
|
inline |
Gets the human-readable description of this operand.
Definition at line 59 of file operand_declaration.hpp.
|
inline |
Gets the expected type information for this operand.
Definition at line 49 of file operand_declaration.hpp.
|
inline |
Gets the operand's unique identifier.
Definition at line 39 of file operand_declaration.hpp.
|
inline |
Sets a custom description for this operand.
| desc | The new description text to associate with this operand |
Definition at line 69 of file operand_declaration.hpp.