inline void metaOutput::inputs(std::vector<u16>& input) const { // The start address of inputs in the EEPROM is composed of: cu32 address = // the _itemAddress _itemAddress + // size of the IO point _nameSize + // the size of the address property sizeof(u16) + // the size of the timeout ON property sizeof(u16) + // the size of the timeout OFF property sizeof(u16) + // the size of the input count property sizeof(u16); inputReader(input, address, inputCount()); }
int jsonToGraph(char *path, Graph *graph) { JsonParser *parser; g_type_init(); parser = json_parser_new(); if(inputReader(path, parser) == EXIT_SUCCESS) { if(inputTransform(parser, graph) == EXIT_FAILURE) { g_object_unref (parser); return EXIT_FAILURE; } } else { g_object_unref (parser); return EXIT_FAILURE; } g_object_unref (parser); return EXIT_SUCCESS; }
ConsoleTerminal::~ConsoleTerminal() { delete inputReader(); delete outputWriter(); }