Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Sometimes, even being BRAVE is an act of compulsion than choice. By: @_9lean_

Preface

If you're reading this preface, you must be having a few questions in your mind. The most probable question would be "What the hell is this mini eBook and that too on a very small and specific topic?"

Well, the question is valid and I'll try to justify my position on writing mini eBook(s) on small topics of considerable importance (in my honest opinion).

The boost library (www.boost.org) is one of the best C++ libraries available as of today. It's not only the best, but is a mammoth collection of helper functions for all weather problems.

Many new additions in the C++11 onwards are taken directly from the boost library (e.g Smart Pointers)

Boost has its own library documentation and boost::statechart is no exception. The official tutorial is present here

The official tutorial is good enough in itself. Nevertheless, I have felt the absence of something simpler which I'm trying to create as part of this mini eBook.

The intention of writing this mini eBook is to have a handy guide for anyone exploring or writing code using the boost statechart library.

I've tried to cover most of the API(s) and scenarios for creating a descent state machine. I've deliberately spent more space in coding examples than textual explanations with the hope that these will help you to understand things better.

All code written here are compilable and works with most of the recent C++ compilers, including g++, Clang & Windows. I've also tested the code by running the same on Linux, Windows & MacOS.