Пример #1
0
 MetadataNode addOrUpdate(const std::string& lname, const T& value,
     const std::string& descrip)
 {
     MetadataNode m = addOrUpdate(lname, value);
     m_impl->m_descrip = descrip;
     return m;
 }
static void updateRegisters(RegistersData* data, PDReader* reader) {
    PDReaderIterator it;

    if (PDRead_find_array(reader, &it, "registers", 0) == PDReadStatus_NotFound)
        return;

    while (PDRead_get_next_entry(reader, &it)) {
        const char* name = "";
        char registerValue[ValueSize];

        PDRead_find_string(reader, &name, "name", it);
        getRegisterString(registerValue, reader, it);

        addOrUpdate(data, name, registerValue);
    }
}