Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
sysio::trace_api::command_registration Struct Reference

#include <cmd_registration.hpp>

Collaboration diagram for sysio::trace_api::command_registration:

Public Member Functions

 command_registration (std::string name, std::string slug, command_fn func)
 

Public Attributes

std::string name
 
std::string slug
 
command_fn func
 
command_registration_next
 

Static Public Attributes

static command_registration_list = nullptr
 

Detailed Description

basic initialization time linked list for registering commands

Definition at line 20 of file cmd_registration.hpp.

Constructor & Destructor Documentation

◆ command_registration()

sysio::trace_api::command_registration::command_registration ( std::string name,
std::string slug,
command_fn func )
inline

Definition at line 21 of file cmd_registration.hpp.

22 :name(std::move(name))
23 ,slug(std::move(slug))
24 ,func(std::move(func))
25 {
26 _next = _list;
27 _list = this;
28 }
static command_registration * _list

Member Data Documentation

◆ _list

command_registration * command_registration::_list = nullptr
static

Definition at line 35 of file cmd_registration.hpp.

◆ _next

command_registration* sysio::trace_api::command_registration::_next

Definition at line 33 of file cmd_registration.hpp.

◆ func

command_fn sysio::trace_api::command_registration::func

Definition at line 32 of file cmd_registration.hpp.

◆ name

std::string sysio::trace_api::command_registration::name

Definition at line 30 of file cmd_registration.hpp.

◆ slug

std::string sysio::trace_api::command_registration::slug

Definition at line 31 of file cmd_registration.hpp.


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