Slick Trader 0.11.0
Multi-broker algorithmic trading engine with plugin strategies and a live web dashboard
Loading...
Searching...
No Matches
slick::trader::StatusLatch Class Reference

#include <slick-trader/brokers/common/connector_support.hpp>

Collaboration diagram for slick::trader::StatusLatch:

Public Types

enum class  Component : uint8_t { MARKET_DATA , ORDER }

Public Member Functions

 StatusLatch (BrokerId broker, Component component) noexcept
bool update (bool up, std::string_view who, std::string_view up_text, std::string_view down_text)
void reset ()
bool up () const noexcept

Detailed Description

Definition at line 39 of file connector_support.hpp.

Member Enumeration Documentation

◆ Component

enum class slick::trader::StatusLatch::Component : uint8_t
strong
Enumerator
MARKET_DATA 
ORDER 

Definition at line 41 of file connector_support.hpp.

Constructor & Destructor Documentation

◆ StatusLatch()

slick::trader::StatusLatch::StatusLatch ( BrokerId broker,
Component component )
inlinenoexcept

Definition at line 43 of file connector_support.hpp.

Member Function Documentation

◆ reset()

void slick::trader::StatusLatch::reset ( )
inline

Definition at line 58 of file connector_support.hpp.

◆ up()

bool slick::trader::StatusLatch::up ( ) const
inlinenodiscardnoexcept

Definition at line 64 of file connector_support.hpp.

Referenced by update().

◆ update()

bool slick::trader::StatusLatch::update ( bool up,
std::string_view who,
std::string_view up_text,
std::string_view down_text )
inline

Definition at line 46 of file connector_support.hpp.

References up().


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