Skip to content

C implementation of a basic state design pattern

License

Notifications You must be signed in to change notification settings

LouisVallat/statelib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

State Library {#mainpage}

Project homepage

web site

About

C implementation of a basic state design pattern

Each state of the machine is associated to a function. The function must take a void * and return an int. The return value is use for transition between state (functions).

Author

Julien Allali ([email protected])

Compilation

Compilation of the project is done using cmake.

First create a build directory:

mkdir build

then run cmake from this directory:

cd build
cmake ..

and compile with make:

make
make doc

optionaly, you can install the library using:

make install

the install directory can be specified when calling cmake:

cmake -DCMAKE_INSTALL_PREFIX:PATH=$HOME/usr

Example

You will find examples into the demos directory

API

See [the documentation here](@ref state.h)

About

C implementation of a basic state design pattern

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 47.6%
  • C 45.3%
  • CMake 7.1%