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.
Dependencies: m3Dpi mbed-rtos mbed MbedJSONValue
lib/jsonReporter.h@13:d6374484b953, 2015-12-19 (annotated)
- Committer:
- sillevl
- Date:
- Sat Dec 19 15:27:15 2015 +0000
- Revision:
- 13:d6374484b953
- Parent:
- 11:ccb8653e285f
add binary reporter;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| sillevl | 7:9068fc754a0b | 1 | #pragma once |
| sillevl | 7:9068fc754a0b | 2 | |
| sillevl | 11:ccb8653e285f | 3 | #include "reporter.h" |
| sillevl | 7:9068fc754a0b | 4 | #include "MbedJSONValue.h" |
| sillevl | 7:9068fc754a0b | 5 | |
| sillevl | 11:ccb8653e285f | 6 | class JsonReporter : public Reporter |
| sillevl | 7:9068fc754a0b | 7 | { |
| sillevl | 7:9068fc754a0b | 8 | public: |
| sillevl | 13:d6374484b953 | 9 | JsonReporter(mbed::Stream* _out, const char _id[]) : Reporter(_out, _id) {}; |
| sillevl | 11:ccb8653e285f | 10 | |
| sillevl | 11:ccb8653e285f | 11 | virtual void time(time_t seconds); |
| sillevl | 11:ccb8653e285f | 12 | virtual void distance(m3dpi::Distance distance); |
| sillevl | 11:ccb8653e285f | 13 | virtual void acceleration(m3dpi::Acceleration acc); |
| sillevl | 11:ccb8653e285f | 14 | virtual void direction(m3dpi::Direction direction); |
| sillevl | 11:ccb8653e285f | 15 | virtual void rotation(m3dpi::Rotation rotation); |
| sillevl | 11:ccb8653e285f | 16 | |
| sillevl | 11:ccb8653e285f | 17 | protected: |
| sillevl | 7:9068fc754a0b | 18 | MbedJSONValue* jsonFactory(); |
| sillevl | 7:9068fc754a0b | 19 | void print(MbedJSONValue* json); |
| sillevl | 7:9068fc754a0b | 20 | }; |
