Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
jwellbelove committed Jul 12, 2018
1 parent 5279ea1 commit 8f22244
Show file tree
Hide file tree
Showing 6 changed files with 93 additions and 4 deletions.
4 changes: 1 addition & 3 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 jwellbelove
https://github.com/ETLCPP/etl
http://www.etlcpp.com
Copyright (c) 2016 jwellbelove, https://github.com/ETLCPP/etl, http://www.etlcpp.com

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Embedded Template Library (ETL)
-------------------------

AppVeyor [![Build status](https://ci.appveyor.com/api/projects/status/b7jgecv7unqjw4u0/branch/master?svg=true)](https://ci.appveyor.com/project/jwellbelove/etl/branch/master)
AppVeyor [![Build status](https://ci.appveyor.com/api/projects/status/b7jgecv7unqjw4u0/branch/master?svg=true)](https://ci.appveyor.com/project/jwellbelove/etl/branch/master) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)

**Motivation**

Expand Down
70 changes: 70 additions & 0 deletions include/etl/fsm.h
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,10 @@ namespace etl
}

protected:

~fsm_state()
{
}

inline TContext& get_fsm_context() const
{
Expand Down Expand Up @@ -451,6 +455,10 @@ namespace etl
}

protected:

~fsm_state()
{
}

inline TContext& get_fsm_context() const
{
Expand Down Expand Up @@ -511,6 +519,10 @@ namespace etl
}

protected:

~fsm_state()
{
}

inline TContext& get_fsm_context() const
{
Expand Down Expand Up @@ -570,6 +582,10 @@ namespace etl
}

protected:

~fsm_state()
{
}

inline TContext& get_fsm_context() const
{
Expand Down Expand Up @@ -627,6 +643,10 @@ namespace etl
}

protected:

~fsm_state()
{
}

inline TContext& get_fsm_context() const
{
Expand Down Expand Up @@ -683,6 +703,10 @@ namespace etl
}

protected:

~fsm_state()
{
}

inline TContext& get_fsm_context() const
{
Expand Down Expand Up @@ -738,6 +762,10 @@ namespace etl
}

protected:

~fsm_state()
{
}

inline TContext& get_fsm_context() const
{
Expand Down Expand Up @@ -792,6 +820,10 @@ namespace etl
}

protected:

~fsm_state()
{
}

inline TContext& get_fsm_context() const
{
Expand Down Expand Up @@ -844,6 +876,10 @@ namespace etl
}

protected:

~fsm_state()
{
}

inline TContext& get_fsm_context() const
{
Expand Down Expand Up @@ -895,6 +931,10 @@ namespace etl
}

protected:

~fsm_state()
{
}

inline TContext& get_fsm_context() const
{
Expand Down Expand Up @@ -945,6 +985,10 @@ namespace etl
}

protected:

~fsm_state()
{
}

inline TContext& get_fsm_context() const
{
Expand Down Expand Up @@ -994,6 +1038,10 @@ namespace etl
}

protected:

~fsm_state()
{
}

inline TContext& get_fsm_context() const
{
Expand Down Expand Up @@ -1041,6 +1089,10 @@ namespace etl
}

protected:

~fsm_state()
{
}

inline TContext& get_fsm_context() const
{
Expand Down Expand Up @@ -1087,6 +1139,10 @@ namespace etl
}

protected:

~fsm_state()
{
}

inline TContext& get_fsm_context() const
{
Expand Down Expand Up @@ -1132,6 +1188,10 @@ namespace etl
}

protected:

~fsm_state()
{
}

inline TContext& get_fsm_context() const
{
Expand Down Expand Up @@ -1176,6 +1236,10 @@ namespace etl
}

protected:

~fsm_state()
{
}

inline TContext& get_fsm_context() const
{
Expand Down Expand Up @@ -1216,6 +1280,12 @@ namespace etl
: ifsm_state(STATE_ID)
{
}

protected:

~fsm_state()
{
}

inline TContext& get_fsm_context() const
{
Expand Down
14 changes: 14 additions & 0 deletions include/etl/fsm_generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,10 @@ namespace etl
cog.outl("")
cog.outl("protected:")
cog.outl("")
cog.outl(" ~fsm_state()")
cog.outl(" {")
cog.outl(" }")
cog.outl("")
cog.outl(" inline TContext& get_fsm_context() const")
cog.outl(" {")
cog.outl(" return static_cast<TContext&>(ifsm_state::get_fsm_context());")
Expand Down Expand Up @@ -484,6 +488,10 @@ namespace etl
cog.outl("")
cog.outl("protected:")
cog.outl("")
cog.outl(" ~fsm_state()")
cog.outl(" {")
cog.outl(" }")
cog.outl("")
cog.outl(" inline TContext& get_fsm_context() const")
cog.outl(" {")
cog.outl(" return static_cast<TContext&>(ifsm_state::get_fsm_context());")
Expand Down Expand Up @@ -538,6 +546,12 @@ namespace etl
cog.outl(" {")
cog.outl(" }")
cog.outl("")
cog.outl("protected:")
cog.outl("")
cog.outl(" ~fsm_state()")
cog.outl(" {")
cog.outl(" }")
cog.outl("")
cog.outl(" inline TContext& get_fsm_context() const")
cog.outl(" {")
cog.outl(" return static_cast<TContext&>(ifsm_state::get_fsm_context());")
Expand Down
6 changes: 6 additions & 0 deletions include/etl/observer.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@ namespace etl
}
}

protected:

~observable()
{
}

private:

/// The list of observers.
Expand Down
1 change: 1 addition & 0 deletions library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name=Embedded Template Library
version=10.21.2
author= John Wellbelove <[email protected]>
maintainer=John Wellbelove <[email protected]>
license=MIT
sentence=A C++ template library tailored for embedded systems.
paragraph=Requires some support from STL. See http://andybrown.me.uk/2011/01/15/the-standard-template-library-stl-for-avr-with-c-streams/ or https://github.com/mike-matera/ArduinoSTL.git for Arduino.
category=Other
Expand Down

0 comments on commit 8f22244

Please sign in to comment.