SVCS - English Documentation
Loading...
Searching...
No Matches
svcs::test::cli::mocks::Event Struct Reference

Structure describing an event published by the VCS core. More...

#include <Event.hxx>

Public Types

enum  Type {
  FATAL_ERROR , RUNTIME_ERROR , REPOSITORY_INIT_SUCCESS , STAGE_SUCCESS ,
  SAVE_SUCCESS , OBJECT_WRITE_SUCCESS , OBJECT_READ_SUCCESS , INDEX_UPDATE ,
  COMMIT_CREATED , GENERAL_INFO , HELP_MESSAGE , DEBUG_MESSAGE ,
  ERROR_MESSAGE , WARNING_MESSAGE , PROTOCOL_START , PROTOCOL_SUCCESS ,
  PROTOCOL_ERROR , NETWORK_SEND , NETWORK_RECEIVE , OBJECT_TRANSFER ,
  REFERENCE_UPDATE , NEGOTIATION_PHASE
}
 Types of events that can be published. More...

Public Attributes

Type type
 The type of event that occurred.
std::string details
 Detailed description or payload (e.g., object hash).
std::string source_name
 Source of the event (e.g., "main", "InitCommand", "Repository").

Detailed Description

Structure describing an event published by the VCS core.

This is the "message" that the Subject (Publisher, e.g., Repository) sends to all its Observers.

Member Enumeration Documentation

◆ Type

Types of events that can be published.

Enumerator
FATAL_ERROR 

Fatal error that causes application termination.

RUNTIME_ERROR 

Runtime error that may allow continued execution.

REPOSITORY_INIT_SUCCESS 

Repository initialization completed successfully.

STAGE_SUCCESS 

File staging operation completed successfully.

SAVE_SUCCESS 

Save (commit) operation completed successfully.

OBJECT_WRITE_SUCCESS 

Object write operation completed successfully.

OBJECT_READ_SUCCESS 

Object read operation completed successfully.

INDEX_UPDATE 

Index has been updated.

COMMIT_CREATED 

New commit has been created.

GENERAL_INFO 

General informational message.

HELP_MESSAGE 

Help message for user assistance.

DEBUG_MESSAGE 

Debug message for development purposes.

ERROR_MESSAGE 

Error message for user notification.

WARNING_MESSAGE 

Warning message for potential issues.

PROTOCOL_START 

Protocol operation has started.

PROTOCOL_SUCCESS 

Protocol operation completed successfully.

PROTOCOL_ERROR 

Protocol operation encountered an error.

NETWORK_SEND 

Data has been sent over network.

NETWORK_RECEIVE 

Data has been received over network.

OBJECT_TRANSFER 

Object transfer in progress.

REFERENCE_UPDATE 

Reference (branch/tag) has been updated.

NEGOTIATION_PHASE 

Protocol negotiation phase in progress.

Member Data Documentation

◆ source_name

std::string svcs::services::Event::source_name

Source of the event (e.g., "main", "InitCommand", "Repository").

Added to support three-argument aggregate initialization in notify() calls.


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