SVCS - English Documentation
Loading...
Searching...
No Matches
Event.hxx
Go to the documentation of this file.
1
13#pragma once
14
15#include <string>
16
30 * которые поддерживают операции СКВ.
31 */
32namespace svcs::services {
33
35 * @english
36 * @brief Structure describing an event published by the VCS core.
37 * @details This is the "message" that the Subject (Publisher, e.g., Repository)
38 * sends to all its Observers.
39 *
40 * @russian
41 * @brief Структура, описывающая событие, опубликованное ядром VCS.
42 * @details Это "сообщение", которое Subject (Издатель, например, Repository)
43 * отправляет всем своим Observers.
44 */
45struct Event {
53 enum Type {
62
71
80
89
98
107
116
125
134
143
152
161
168
170
188
197
206
215
224
233
242
251 };
252
260 Type type;
261
269 std::string details;
270
280 std::string source_name;
281};
282
283}
Service layer components and infrastructure services.
Structure describing an event published by the VCS core.
Definition Event.hxx:30
Type
Types of events that can be published.
Definition Event.hxx:35
@ STAGE_SUCCESS
File staging operation completed successfully.
Definition Event.hxx:58
@ NETWORK_SEND
Data has been sent over network.
Definition Event.hxx:142
@ PROTOCOL_SUCCESS
Protocol operation completed successfully.
Definition Event.hxx:130
@ INDEX_UPDATE
Index has been updated.
Definition Event.hxx:82
@ DEBUG_MESSAGE
Debug message for development purposes.
Definition Event.hxx:106
@ OBJECT_TRANSFER
Object transfer in progress.
Definition Event.hxx:154
@ RUNTIME_ERROR
Runtime error that may allow continued execution.
Definition Event.hxx:46
@ PROTOCOL_ERROR
Protocol operation encountered an error.
Definition Event.hxx:136
@ PROTOCOL_START
Protocol operation has started.
Definition Event.hxx:124
@ COMMIT_CREATED
New commit has been created.
Definition Event.hxx:88
@ REFERENCE_UPDATE
Reference (branch/tag) has been updated.
Definition Event.hxx:160
@ OBJECT_WRITE_SUCCESS
Object write operation completed successfully.
Definition Event.hxx:70
@ GENERAL_INFO
General informational message.
Definition Event.hxx:94
@ ERROR_MESSAGE
Error message for user notification.
Definition Event.hxx:112
@ SAVE_SUCCESS
Save (commit) operation completed successfully.
Definition Event.hxx:64
@ OBJECT_READ_SUCCESS
Object read operation completed successfully.
Definition Event.hxx:76
@ WARNING_MESSAGE
Warning message for potential issues.
Definition Event.hxx:118
@ NEGOTIATION_PHASE
Protocol negotiation phase in progress.
Definition Event.hxx:166
@ FATAL_ERROR
Fatal error that causes application termination.
Definition Event.hxx:40
@ REPOSITORY_INIT_SUCCESS
Repository initialization completed successfully.
Definition Event.hxx:52
@ HELP_MESSAGE
Help message for user assistance.
Definition Event.hxx:100
@ NETWORK_RECEIVE
Data has been received over network.
Definition Event.hxx:148
std::string source_name
Source of the event (e.g., "main", "InitCommand", "Repository").
Definition Event.hxx:186
std::string details
Detailed description or payload (e.g., object hash).
Definition Event.hxx:179
Type type
The type of event that occurred.
Definition Event.hxx:173