|
OpenPine C++ API
C++ wrapper for the OpenPine Pine Script VM
|
Wrapper for a single script input (borrowed from ScriptInfo). More...
#include <script_input.hpp>
Public Member Functions | |
| ScriptInput (const ffi::Input *p) | |
| Constructs a wrapper around an opaque input handle. | |
| std::optional< inputs::InputInt > | asInt () const |
| Gets the input as integer type. | |
| std::optional< inputs::InputFloat > | asFloat () const |
| Gets the input as float type. | |
| std::optional< inputs::InputBool > | asBool () const |
| Gets the input as boolean type. | |
| std::optional< inputs::InputColor > | asColor () const |
| Gets the input as color type. | |
| std::optional< inputs::InputString > | asString () const |
| Gets the input as string type. | |
| std::optional< inputs::InputPrice > | asPrice () const |
| Gets the input as price type. | |
| std::optional< inputs::InputSymbol > | asSymbol () const |
| Gets the input as symbol type. | |
| std::optional< inputs::InputTimeFrame > | asTimeFrame () const |
| Gets the input as timeframe type. | |
| std::optional< inputs::InputSource > | asSource () const |
| Gets the input as source type. | |
| std::optional< inputs::InputEnum > | asEnum () const |
| Gets the input as enum type. | |
| std::optional< inputs::InputSession > | asSession () const |
| Gets the input as session type. | |
| std::optional< inputs::InputTime > | asTime () const |
| Gets the input as time type. | |
| std::optional< inputs::InputTextArea > | asTextArea () const |
| Gets the input as text area type. | |
Wrapper for a single script input (borrowed from ScriptInfo).
Use asInt(), asFloat(), etc. to get the typed payload. The pointer is valid only while the ScriptInfo (and its Instance) is alive.
Definition at line 30 of file script_input.hpp.
|
inlineexplicit |
Constructs a wrapper around an opaque input handle.
| p | Pointer from ScriptInfo::inputAt() or the C ABI. |
Definition at line 39 of file script_input.hpp.
|
inline |
Gets the input as boolean type.
Definition at line 65 of file script_input.hpp.
|
inline |
Gets the input as color type.
Definition at line 75 of file script_input.hpp.
|
inline |
Gets the input as enum type.
Definition at line 135 of file script_input.hpp.
|
inline |
Gets the input as float type.
Definition at line 55 of file script_input.hpp.
|
inline |
Gets the input as integer type.
Definition at line 45 of file script_input.hpp.
|
inline |
Gets the input as price type.
Definition at line 95 of file script_input.hpp.
|
inline |
Gets the input as session type.
Definition at line 145 of file script_input.hpp.
|
inline |
Gets the input as source type.
Definition at line 125 of file script_input.hpp.
|
inline |
Gets the input as string type.
Definition at line 85 of file script_input.hpp.
|
inline |
Gets the input as symbol type.
Definition at line 105 of file script_input.hpp.
|
inline |
Gets the input as text area type.
Definition at line 165 of file script_input.hpp.
|
inline |
Gets the input as time type.
Definition at line 155 of file script_input.hpp.
|
inline |
Gets the input as timeframe type.
Definition at line 115 of file script_input.hpp.