PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::source::detail::LiveSourceIdentity Struct Reference

#include <live_source_identity.hpp>

Data Structures

struct  Spelling
 

Public Types

enum class  Shape : std::uint8_t {
  Source ,
  PairFamily ,
  Bracket ,
  CloseId ,
  ShortHold ,
  CurrentExit ,
  MarginRevival ,
  Cover ,
  Spelling ,
  SeparatedFamily ,
  Unverified
}
 

Public Member Functions

bool matches (std::string_view key, std::string_view source, std::string_view from) const noexcept
 

Static Public Member Functions

static bool consume (std::string_view &key, std::string_view part) noexcept
 
static bool consume_number (std::string_view &key, std::uint64_t value) noexcept
 
static bool read_number (std::string_view key, std::uint64_t &value) noexcept
 
static bool consume_pair (std::string_view &key, std::string_view source, std::string_view from) noexcept
 
static LiveSourceIdentity capture (std::string_view key, std::string_view source, std::string_view from)
 

Data Fields

std::uint64_t number = 0
 
Shape shape = Shape::Unverified
 
std::uint8_t family = 0
 
std::uint8_t spelling = 0
 

Static Public Attributes

static constexpr std::array< Spelling, 11 > spellings
 

Detailed Description

Definition at line 18 of file live_source_identity.hpp.

Member Enumeration Documentation

◆ Shape

enum class pineforge::source::detail::LiveSourceIdentity::Shape : std::uint8_t
strong
Enumerator
Source 
PairFamily 
Bracket 
CloseId 
ShortHold 
CurrentExit 
MarginRevival 
Cover 
Spelling 
SeparatedFamily 
Unverified 

Definition at line 24 of file live_source_identity.hpp.

Member Function Documentation

◆ consume()

static bool pineforge::source::detail::LiveSourceIdentity::consume ( std::string_view & key,
std::string_view part )
inlinestaticnoexcept

Definition at line 51 of file live_source_identity.hpp.

Referenced by capture(), consume_number(), consume_pair(), and matches().

◆ consume_number()

static bool pineforge::source::detail::LiveSourceIdentity::consume_number ( std::string_view & key,
std::uint64_t value )
inlinestaticnoexcept

Definition at line 56 of file live_source_identity.hpp.

References consume().

Referenced by matches().

◆ read_number()

static bool pineforge::source::detail::LiveSourceIdentity::read_number ( std::string_view key,
std::uint64_t & value )
inlinestaticnoexcept

Definition at line 63 of file live_source_identity.hpp.

Referenced by capture().

◆ consume_pair()

static bool pineforge::source::detail::LiveSourceIdentity::consume_pair ( std::string_view & key,
std::string_view source,
std::string_view from )
inlinestaticnoexcept

Definition at line 68 of file live_source_identity.hpp.

References consume().

Referenced by capture(), and matches().

◆ matches()

bool pineforge::source::detail::LiveSourceIdentity::matches ( std::string_view key,
std::string_view source,
std::string_view from ) const
inlinenoexcept

◆ capture()

static LiveSourceIdentity pineforge::source::detail::LiveSourceIdentity::capture ( std::string_view key,
std::string_view source,
std::string_view from )
inlinestatic

Field Documentation

◆ spellings

std::array<Spelling, 11> pineforge::source::detail::LiveSourceIdentity::spellings
inlinestaticconstexpr
Initial value:
{{
{"__margin_call__", false},
{"__pine_close_all", false},
{"__tv_money_margin_path__", false},
{"__margin_follow_up__", false},
{"__margin_priced_opening__", false},
{"__margin_waypoint__", false},
{"__intraday_loss_close__", false},
{"__intraday_cap_close__", false},
{"__pine_close_site__", true},
{"__pine_close_flush__", true},
{"__margin_revival__", true},
}}

Definition at line 32 of file live_source_identity.hpp.

Referenced by capture(), and matches().

◆ number

std::uint64_t pineforge::source::detail::LiveSourceIdentity::number = 0

Definition at line 46 of file live_source_identity.hpp.

Referenced by capture(), and matches().

◆ shape

Shape pineforge::source::detail::LiveSourceIdentity::shape = Shape::Unverified

Definition at line 47 of file live_source_identity.hpp.

Referenced by capture(), and matches().

◆ family

std::uint8_t pineforge::source::detail::LiveSourceIdentity::family = 0

Definition at line 48 of file live_source_identity.hpp.

Referenced by capture(), and matches().

◆ spelling

std::uint8_t pineforge::source::detail::LiveSourceIdentity::spelling = 0

Definition at line 49 of file live_source_identity.hpp.

Referenced by capture(), and matches().


The documentation for this struct was generated from the following file: