Collections of BERTL libraries
class_software.h@3:1708f20fd55b, 2016-04-18 (annotated)
- Committer:
- DongExpander
- Date:
- Mon Apr 18 12:48:42 2016 +0000
- Revision:
- 3:1708f20fd55b
- Parent:
- 2:4a9ed5ca8a9a
Feature; Added initialize()
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
DongExpander | 2:4a9ed5ca8a9a | 1 | #ifndef class_software |
DongExpander | 2:4a9ed5ca8a9a | 2 | |
DongExpander | 2:4a9ed5ca8a9a | 3 | #define MAX_LOG 100 |
DongExpander | 2:4a9ed5ca8a9a | 4 | |
DongExpander | 2:4a9ed5ca8a9a | 5 | #define class_software |
DongExpander | 2:4a9ed5ca8a9a | 6 | |
DongExpander | 2:4a9ed5ca8a9a | 7 | class Logfile { |
DongExpander | 2:4a9ed5ca8a9a | 8 | //functions |
DongExpander | 2:4a9ed5ca8a9a | 9 | public: |
DongExpander | 2:4a9ed5ca8a9a | 10 | Logfile(); |
DongExpander | 2:4a9ed5ca8a9a | 11 | Logfile(int lenght); |
DongExpander | 2:4a9ed5ca8a9a | 12 | void push(unsigned char input); |
DongExpander | 2:4a9ed5ca8a9a | 13 | unsigned char last(); |
DongExpander | 2:4a9ed5ca8a9a | 14 | unsigned char at(int pos); |
DongExpander | 2:4a9ed5ca8a9a | 15 | //variables |
DongExpander | 2:4a9ed5ca8a9a | 16 | private: |
DongExpander | 2:4a9ed5ca8a9a | 17 | unsigned char array[MAX_LOG]; |
DongExpander | 2:4a9ed5ca8a9a | 18 | int array_lenght; |
DongExpander | 2:4a9ed5ca8a9a | 19 | }; |
DongExpander | 2:4a9ed5ca8a9a | 20 | |
DongExpander | 2:4a9ed5ca8a9a | 21 | #endif |
DongExpander | 2:4a9ed5ca8a9a | 22 |