|
OpenPine C++ API
C++ wrapper for the OpenPine Pine Script VM
|
Wrapper for a timeframe script input. More...
#include <input_time_frame.hpp>
Public Member Functions | |
| InputTimeFrame (const ffi::InputTimeFrame &data, const ffi::Input *input=nullptr) | |
| Constructs from FFI data and optional handle for optionAt(). | |
| int64_t | id () const |
| Input ID. | |
| bool | isChartDefault () const |
| Whether the default is "use chart timeframe". | |
| std::optional< TimeFrame > | defaultValue () const |
| Default timeframe (quantity + unit). | |
| 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 timeframe string at the given index. | |
Friends | |
| class | openpine::ScriptInput |
Wrapper for a timeframe script input.
String views are valid only while the ScriptInfo/Instance is alive.
Definition at line 27 of file input_time_frame.hpp.
|
inline |
Constructs from FFI data and optional handle for optionAt().
Definition at line 30 of file input_time_frame.hpp.
|
inline |
Whether the input is active.
Definition at line 64 of file input_time_frame.hpp.
|
inline |
Whether the input requires confirmation.
Definition at line 68 of file input_time_frame.hpp.
|
inline |
Default timeframe (quantity + unit).
Definition at line 41 of file input_time_frame.hpp.
|
inline |
Display bitmask.
Definition at line 62 of file input_time_frame.hpp.
|
inline |
Optional group name.
Definition at line 58 of file input_time_frame.hpp.
References openpine::detail::optRefToView().
|
inline |
Input ID.
Definition at line 34 of file input_time_frame.hpp.
|
inline |
Optional inline group name.
Definition at line 54 of file input_time_frame.hpp.
References openpine::detail::optRefToView().
|
inline |
Whether the default is "use chart timeframe".
Definition at line 36 of file input_time_frame.hpp.
|
inline |
Option timeframe string at the given index.
| index | Zero-based option index (must be < optionsLength()). |
Definition at line 75 of file input_time_frame.hpp.
References openpine::detail::optRefToView().
|
inline |
Number of options (for optionAt()).
Definition at line 66 of file input_time_frame.hpp.
|
inline |
Optional title.
Definition at line 46 of file input_time_frame.hpp.
References openpine::detail::optRefToView().
|
inline |
Optional tooltip.
Definition at line 50 of file input_time_frame.hpp.
References openpine::detail::optRefToView().
|
friend |
Definition at line 85 of file input_time_frame.hpp.