Skip to content
This repository has been archived by the owner on Feb 10, 2022. It is now read-only.
/ qface-store Public archive

Generator based on the QFace library for redux store concept

License

Notifications You must be signed in to change notification settings

Pelagicore/qface-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Store Generator

The generator generates the store library and a store for each module. Each store can be included in your project as a static libray.

  • A store takes the last name of the module a the store name.
  • For each interface a sub store is created.
  • Each sub store contains its own operations.
  • All operations of the interface are exposed on the sub store
  • All properties of the interface form the state of the store
  • All signals can be used to inform the user about an event. The event needs to be triggered by an operation.
  • The state is immutable
  • The store state is the modules store state combined with all sub store states combined
  • A state is a QSharedData class
  • The store has only one reducer function. This might call an internal reducer function of the sub-store if required.