Flutter Engine
The Flutter Engine
|
#include <DMJsonWriter.h>
Classes | |
struct | BitmapResult |
Static Public Member Functions | |
static void | AddBitmapResult (const BitmapResult &) |
static void | DumpJson (const char *dir, CommandLineFlags::StringArray key, CommandLineFlags::StringArray properties) |
static bool | ReadJson (const char *path, void(*callback)(BitmapResult)) |
Class for collecting results from DM and writing to a json file. All methods are thread-safe.
Definition at line 20 of file DMJsonWriter.h.
|
static |
Add a result to the end of the list of results.
Definition at line 31 of file DMJsonWriter.cpp.
|
static |
Write all collected results to the file dir/dm.json.
Definition at line 36 of file DMJsonWriter.cpp.
|
static |
Read JSON file at path written by DumpJson, calling callback for each BitmapResult recorded in the file. Return success.
Definition at line 106 of file DMJsonWriter.cpp.