-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Restructuring folder/names with new vision
- Loading branch information
Showing
18 changed files
with
197 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
12 changes: 8 additions & 4 deletions
12
src/dispatcher/polykerma.dispatcher.pas → ...hing/polykerma.dispatching.dispatcher.pas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
unit PolyKerma.Dispatching.Interfaces; | ||
|
||
{$mode objfpc}{$H+} | ||
|
||
interface | ||
|
||
uses | ||
{$IFDEF FPC_DOTTEDUNITS} | ||
System.Classes | ||
{$ELSE FPC_DOTTEDUNITS} | ||
Classes | ||
{$ENDIF FPC_DOTTEDUNITS} | ||
, PolyKerma.Modules.Interfaces | ||
; | ||
|
||
type | ||
{ IDispatcher } | ||
IDispatcher = Interface | ||
['{1CD54522-D37B-486E-9181-A97CCF768DE9}'] | ||
function Register(const AChannel: String; const AModule: IModule): Boolean; | ||
procedure Post(const AMessage: IMessage); | ||
procedure ProcessMessage(const AMessage: IMessage); | ||
end; | ||
|
||
{ IMessage } | ||
IMessage = Interface | ||
['{62E0D2A6-6AEE-42DF-BADD-D210BA7A2BD1}'] | ||
function GetChannel: String; | ||
|
||
function GetPayload: String; | ||
procedure SetPayload(const APayload: String); | ||
|
||
property Channel: String | ||
read GetChannel; | ||
property Payload: String | ||
read GetPayload | ||
write SetPayload; | ||
end; | ||
|
||
implementation | ||
|
||
end. |
11 changes: 8 additions & 3 deletions
11
src/messages/polykerma.messages.message.pas → ...atching/polykerma.dispatching.message.pas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
unit PolyKerma.Dispatching; | ||
|
||
{$mode objfpc}{$H+} | ||
|
||
interface | ||
|
||
(*uses | ||
{$IFDEF FPC_DOTTEDUNITS} | ||
System.Classes | ||
{$ELSE FPC_DOTTEDUNITS} | ||
Classes | ||
{$ENDIF FPC_DOTTEDUNITS} | ||
;*) | ||
|
||
const | ||
cChannelControllerOut = 'controller.out'; | ||
cChannelControllerIn = 'controller.in'; | ||
cChannelCommsOut = 'comms.out'; | ||
cChannelCommsIn = 'comms.in'; | ||
cChannelModelOut = 'model.out'; | ||
cChannelModelIn = 'model.in'; | ||
|
||
{ #todo -ogcarreno -cexample : Remove after testing } | ||
cChannelModuleOut = 'module.out'; | ||
cChannelModuleIn = 'module.in'; | ||
|
||
implementation | ||
|
||
end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
unit PolyKerma.Logging.Interfaces; | ||
|
||
{$mode ObjFPC}{$H+} | ||
|
||
interface | ||
|
||
uses | ||
{$IFDEF FPC_DOTTEDUNITS} | ||
System.Classes | ||
{$ELSE FPC_DOTTEDUNITS} | ||
Classes | ||
{$ENDIF FPC_DOTTEDUNITS} | ||
; | ||
|
||
|
||
implementation | ||
|
||
end. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
unit PolyKerma.Logging.Logger; | ||
|
||
{$mode ObjFPC}{$H+} | ||
|
||
interface | ||
|
||
uses | ||
{$IFDEF FPC_DOTTEDUNITS} | ||
System.Classes | ||
, System.SysUtils | ||
, System.DateUtils | ||
{$ELSE FPC_DOTTEDUNITS} | ||
Classes | ||
, SysUtils | ||
, DateUtils | ||
{$ENDIF FPC_DOTTEDUNITS} | ||
; | ||
|
||
implementation | ||
|
||
end. | ||
|
2 changes: 1 addition & 1 deletion
2
src/logger/polykerma.logger.pas → src/logging/polykerma.logging.pas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
unit PolyKerma.Logger; | ||
unit PolyKerma.Logging; | ||
|
||
{$mode ObjFPC}{$H+} | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.