# Introduction

#### <a class="anchor" id="bkmrk--5"></a>CGI Studio Courier Overview

<div class="contents" id="bkmrk-courier-framework-im"><div class="contents"><div class="textblock">

- [Courier](http://dev.doc.cgistudio.at/APILINK/namespace_courier.html) framework implements Model-View-Control architecture pattern.
- It has defined extension points for 3rd party state machine integration.
- [Courier](http://dev.doc.cgistudio.at/APILINK/namespace_courier.html) is focusing on Message Handling and Data Binding.
- Depends on CGI Studio [Candera](http://dev.doc.cgistudio.at/APILINK/namespace_candera.html "&#91;DataBinding&#95;RefTypeSample&#93;") graphics functionality.

</div></div></div>#### <a class="anchor" id="bkmrk--6"></a>Message Handling

<div class="contents" id="bkmrk-it-defines-the-infor"><div class="contents"><div class="textblock">

- It defines the information flow in the system.
- Additionally it supports XML based message definition and C++ code generation.
- Static and dynamic message distribution path definition.

</div></div></div>#### <a class="anchor" id="bkmrk--7"></a>Data Binding

<div class="contents" id="bkmrk-it-binds-model-data-"><div class="contents"><div class="textblock">

- It binds model data items to visual entities in the view component (i.e. widget properties).
- Changes in the data model trigger automatic update of bound entities in the user interface.

</div></div></div>#### <a class="anchor" id="bkmrk--8"></a>Model-View-Controller

For details on this well known pattern please refer to the following explanation: [MVC](http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller).

<div class="contents" id="bkmrk-view-controls-cgi-st"><div class="contents"><div class="contents"><div class="textblock">

- View 
    - Controls CGI Studio [Candera](http://dev.doc.cgistudio.at/APILINK/namespace_candera.html "&#91;DataBinding&#95;RefTypeSample&#93;") rendering engine
    - Supports multiple, hierarchical view objects

- Controller 
    - Embedding of state machine
    - Mapping of [Courier](http://dev.doc.cgistudio.at/APILINK/namespace_courier.html) messages to state machine events

- Model 
    - Data management logic (application specific)
    - Generic interface to data items for DataBinding function

</div></div></div></div><div drawio-diagram="2741"><img src="https://doc316en.candera.eu/uploads/images/drawio/2023-02/drawing-4-1677475134.png" alt=""/></div>

<div class="contents" id="bkmrk--0"><div class="contents"><div class="textblock">  
</div></div></div>The MVC pattern plus additional components are reflected by the following [Courier](http://dev.doc.cgistudio.at/APILINK/namespace_courier.html) classes:

<div drawio-diagram="2740"><img src="https://doc316en.candera.eu/uploads/images/drawio/2023-02/drawing-4-1677475118.png" alt=""/></div>

<div class="contents" id="bkmrk--2"><div class="contents"><div class="textblock">  
</div></div></div>#### <a class="anchor" id="bkmrk--11"></a>Courier Message Lifecycle

<div drawio-diagram="2739"><img src="https://doc316en.candera.eu/uploads/images/drawio/2023-02/drawing-4-1677475105.png" alt=""/></div>