Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of rtc_class by
DateString.h@8:54a6f83a2339, 2015-04-23 (annotated)
- Committer:
- bulmecisco
- Date:
- Thu Apr 23 10:43:38 2015 +0000
- Revision:
- 8:54a6f83a2339
- Parent:
- 7:1e1e0af5d32e
- Child:
- 9:83be0e4edb52
5. Ueberladene Methoden in Klasse Date und using::GetDay in Klasse Datestring
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| bulmecisco | 8:54a6f83a2339 | 1 | // DateString.h Version 0.4 |
| bulmecisco | 7:1e1e0af5d32e | 2 | // https://developer.mbed.org/teams/HIMBED_3AHELI/code/rtc_func/wiki/Klasse-DateString-von-Date-ableiten |
| bulmecisco | 7:1e1e0af5d32e | 3 | |
| bulmecisco | 6:ebe2350041f1 | 4 | #include "mbed.h" |
| bulmecisco | 6:ebe2350041f1 | 5 | #include "const.h" |
| bulmecisco | 6:ebe2350041f1 | 6 | #include "Date.h" |
| bulmecisco | 6:ebe2350041f1 | 7 | #include "string" |
| bulmecisco | 6:ebe2350041f1 | 8 | |
| bulmecisco | 6:ebe2350041f1 | 9 | #ifndef DATESTRING_H |
| bulmecisco | 6:ebe2350041f1 | 10 | #define DATESTRING_H |
| bulmecisco | 6:ebe2350041f1 | 11 | class DateString : public Date // DateString abgeleitet von Date |
| bulmecisco | 6:ebe2350041f1 | 12 | { |
| bulmecisco | 6:ebe2350041f1 | 13 | public: |
| bulmecisco | 8:54a6f83a2339 | 14 | uint8_t GetDay(); // 2. Methode ueberschreiben |
| bulmecisco | 8:54a6f83a2339 | 15 | |
| bulmecisco | 8:54a6f83a2339 | 16 | uint8_t GetNextDay(); // 4. Definieren neuer Methoden |
| bulmecisco | 8:54a6f83a2339 | 17 | using Date::GetDay; |
| bulmecisco | 6:ebe2350041f1 | 18 | }; |
| bulmecisco | 6:ebe2350041f1 | 19 | |
| bulmecisco | 6:ebe2350041f1 | 20 | #endif |
