|
OpenPine C++ API
C++ wrapper for the OpenPine Pine Script VM
|
Wrapper for a session script input. More...
#include <input_session.hpp>
Public Member Functions | |
| InputSession (const ffi::InputSession &data, const ffi::Input *input=nullptr) | |
| Constructs from FFI data and optional handle for optionAt(). | |
| int64_t | id () const |
| Input ID. | |
| std::string_view | defaultValue () const |
| Default session string. | |
| std::optional< std::string_view > | title () const |
| Optional title. | |
| std::optional< std::string_view > | tooltip () const |
| Optional tooltip. | |
| std::optional< std::string_view > | inlineGroup () const |
| Optional inline group name. | |
| std::optional< std::string_view > | group () const |
| Optional group name. | |
| uint64_t | display () const |
| Display bitmask. | |
| bool | active () const |
| Whether the input is active. | |
| uintptr_t | optionsLength () const |
| Number of options (for optionAt()). | |
| bool | confirm () const |
| Whether the input requires confirmation. | |
| std::optional< std::string_view > | optionAt (uintptr_t index) const |
| Option session string at the given index. | |
Friends | |
| class | openpine::ScriptInput |
Wrapper for a session script input.
String views are valid only while the ScriptInfo/Instance is alive.
Definition at line 27 of file input_session.hpp.
|
inline |
Constructs from FFI data and optional handle for optionAt().
Definition at line 30 of file input_session.hpp.
|
inline |
Whether the input is active.
Definition at line 57 of file input_session.hpp.
|
inline |
Whether the input requires confirmation.
Definition at line 61 of file input_session.hpp.
|
inline |
Default session string.
Definition at line 35 of file input_session.hpp.
References openpine::detail::refToView().
|
inline |
Display bitmask.
Definition at line 55 of file input_session.hpp.
|
inline |
Optional group name.
Definition at line 51 of file input_session.hpp.
References openpine::detail::optRefToView().
|
inline |
Input ID.
Definition at line 33 of file input_session.hpp.
|
inline |
Optional inline group name.
Definition at line 47 of file input_session.hpp.
References openpine::detail::optRefToView().
|
inline |
Option session string at the given index.
| index | Zero-based option index (must be < optionsLength()). |
Definition at line 68 of file input_session.hpp.
References openpine::detail::optRefToView().
|
inline |
Number of options (for optionAt()).
Definition at line 59 of file input_session.hpp.
|
inline |
Optional title.
Definition at line 39 of file input_session.hpp.
References openpine::detail::optRefToView().
|
inline |
Optional tooltip.
Definition at line 43 of file input_session.hpp.
References openpine::detail::optRefToView().
|
friend |
Definition at line 78 of file input_session.hpp.