| 128 | } |
| 129 | |
| 130 | LSError ParamArchive::Serialize(const RStringB& name, bool& value, int minVersion) |
| 131 | { |
| 132 | if (_version < minVersion) |
| 133 | { |
| 134 | return LSOK; |
| 135 | } |
| 136 | if (_saving) |
| 137 | { |
| 138 | _entry->Add(name, value); |
| 139 | } |
| 140 | else |
| 141 | { |
| 142 | if (_pass != PassFirst) |
| 143 | { |
| 144 | return LSOK; |
| 145 | } |
| 146 | ParamEntry* entry = _entry->FindEntry(name); |
| 147 | if (!entry) |
| 148 | ON_ERROR(LSNoEntry, name); |
| 149 | int intValue = *entry; |
| 150 | value = intValue != 0; |
| 151 | } |
| 152 | return LSOK; |
| 153 | } |
| 154 | |
| 155 | LSError ParamArchive::Serialize(const RStringB& name, int& value, int minVersion) |
| 156 | { |
no test coverage detected