-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add component * Fix format ERaString...
- Loading branch information
Showing
28 changed files
with
876 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name=ERa | ||
version=1.4.2 | ||
version=1.4.3 | ||
author=EoH Ltd | ||
license=MIT | ||
maintainer=EoH Ltd <info@eoh.io> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#ifndef INC_ERA_COMPONENT_HPP_ | ||
#define INC_ERA_COMPONENT_HPP_ | ||
|
||
#include <stdint.h> | ||
#include <stddef.h> | ||
|
||
class ERaComponent | ||
{ | ||
public: | ||
ERaComponent() | ||
: next(NULL) | ||
{} | ||
virtual ~ERaComponent() | ||
{} | ||
|
||
virtual void begin() = 0; | ||
virtual void run() = 0; | ||
|
||
ERaComponent* getNext() const { | ||
return this->next; | ||
} | ||
|
||
void setNext(ERaComponent& component) { | ||
this->next = &component; | ||
} | ||
|
||
void setNext(ERaComponent* component) { | ||
this->next = component; | ||
} | ||
|
||
protected: | ||
private: | ||
ERaComponent* next; | ||
}; | ||
|
||
#endif /* INC_ERA_COMPONENT_HPP_ */ |
Oops, something went wrong.