2#include <NDEVR/Dictionary.h>
3#include <NDEVR/JSONNode.h>
4#include <NDEVR/String.h>
52 def.second.toJSON(node[def.first]);
69 #define _i(id, def) (IconDefinition(id, def))
A hash-based key-value store, useful for quick associative lookups. Key features include:
Definition Dictionary.h:61
Stores information about many different icons.
Definition IconManager.h:46
Dictionary< String, IconDefinition > m_icons
Definition IconManager.h:67
void toJSON(JSONNode &node) const
Definition IconManager.h:48
void addIcon(const IconDefinition &definition)
Definition IconManager.h:62
void fromJSON(const JSONNode &node)
Definition IconManager.h:55
JavaScript Object Notation or JSON is an open - standard file format that uses human - readable text ...
Definition JSONParser.h:60
decltype(auto) getAs() const
Definition JSONParser.h:201
const Buffer< JSONNode * > & children() const
Definition JSONParser.h:245
The core String class for the NDEVR API.
Definition String.h:69
Information for displaying a particular icon.
Definition IconManager.h:12
String icon_id
Definition IconManager.h:37
String default_draw_operation
Definition IconManager.h:38
IconDefinition(const String &id, const String &def)
Definition IconManager.h:18
IconDefinition(const JSONNode &node)
Definition IconManager.h:23
IconDefinition(const String &def)
Definition IconManager.h:13
void toJSON(JSONNode &node) const
Definition IconManager.h:27
void fromJSON(const JSONNode &node)
Definition IconManager.h:32