Slick Sim 0.10.1
Exchange simulator that shadows real venues for risk-free strategy testing
Loading...
Searching...
No Matches
slick::sim::cli::Command Struct Reference

One command, as the CLI server hands it to the thread that runs it. More...

#include <cli/cli_endpoint.hpp>

Collaboration diagram for slick::sim::cli::Command:

Public Member Functions

std::string_view arg_view () const noexcept

Public Attributes

uint64_t ticket
 The server's id for the request, echoed in the reply.
CliCommandType command
uint8_t flag
char arg [sizeof(CliRequestMessage::arg)]
 NUL-padded, as on the wire.

Detailed Description

One command, as the CLI server hands it to the thread that runs it.

Definition at line 56 of file cli_endpoint.hpp.

Member Function Documentation

◆ arg_view()

std::string_view slick::sim::cli::Command::arg_view ( ) const
inlinenodiscardnoexcept

Definition at line 62 of file cli_endpoint.hpp.

References arg.

Referenced by slick::sim::cli::serve_rejects(), and slick::sim::cli::toggle_id().

Member Data Documentation

◆ arg

char slick::sim::cli::Command::arg[sizeof(CliRequestMessage::arg)]

NUL-padded, as on the wire.

Definition at line 60 of file cli_endpoint.hpp.

Referenced by arg_view().

◆ command

CliCommandType slick::sim::cli::Command::command

◆ flag

uint8_t slick::sim::cli::Command::flag

Definition at line 59 of file cli_endpoint.hpp.

Referenced by slick::sim::cli::serve_rejects(), and slick::sim::cli::toggle_id().

◆ ticket

uint64_t slick::sim::cli::Command::ticket

The server's id for the request, echoed in the reply.

Definition at line 57 of file cli_endpoint.hpp.


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