Sille Van Landschoot / Mbed 2 deprecated m3Dpi-helloworld

Dependencies:   m3Dpi mbed-rtos mbed MbedJSONValue

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers jsonReporter.h Source File

jsonReporter.h

00001 #pragma once
00002 
00003 #include "reporter.h"
00004 #include "MbedJSONValue.h"
00005 
00006 class JsonReporter : public Reporter
00007 {
00008 public:
00009     JsonReporter(mbed::Stream* _out, const char _id[]) : Reporter(_out, _id) {};
00010 
00011     virtual void time(time_t seconds);
00012     virtual void distance(m3dpi::Distance distance);
00013     virtual void acceleration(m3dpi::Acceleration acc);
00014     virtual void direction(m3dpi::Direction direction);
00015     virtual void rotation(m3dpi::Rotation rotation);
00016     
00017 protected:
00018     MbedJSONValue* jsonFactory();
00019     void print(MbedJSONValue* json);
00020 };