| 128 | |
| 129 | template <class T> |
| 130 | bool SetValue(const T& value) { |
| 131 | switch (CurrentState) { |
| 132 | case START: |
| 133 | Value.SetValue(value); |
| 134 | break; |
| 135 | case AFTER_MAP_KEY: |
| 136 | ValuesStack.back()->InsertValue(Key, value); |
| 137 | CurrentState = IN_MAP; |
| 138 | break; |
| 139 | case IN_ARRAY: |
| 140 | ValuesStack.back()->AppendValue(value); |
| 141 | break; |
| 142 | case IN_MAP: |
| 143 | case FINISH: |
| 144 | return false; |
| 145 | default: |
| 146 | ythrow yexception() << "TParserCallbacks::SetValue invalid enum"; |
| 147 | } |
| 148 | return true; |
| 149 | } |
| 150 | |
| 151 | bool OpenComplexValue(EJsonValueType type); |
| 152 | bool CloseComplexValue(); |
nothing calls this directly
no test coverage detected