Line |
Branch |
Exec |
Source |
1 |
|
|
/* |
2 |
|
|
* Copyright (c) 2024 Muhammad Nawaz |
3 |
|
|
* Licensed under the MIT License. See LICENSE file for more information. |
4 |
|
|
*/ |
5 |
|
|
// [ END OF LICENSE c6bd0f49d040fca8d8a9cb05868e66aa63f0e2e0 ] |
6 |
|
|
|
7 |
|
|
#ifndef PRIMITIVE_DESERIALIZER_HPP |
8 |
|
|
#define PRIMITIVE_DESERIALIZER_HPP |
9 |
|
|
#include "deserializers/base_deserializer.hpp" |
10 |
|
|
|
11 |
|
|
class PrimitiveDeserializer final: public BaseDeserializer |
12 |
|
|
{ |
13 |
|
|
public: |
14 |
|
|
explicit PrimitiveDeserializer(const std::string& param_name, char start, bool skip_name, PrimitiveType param_type); |
15 |
|
|
|
16 |
|
|
std::string Deserialize(const char* beg, const char* const end) override; |
17 |
|
80 |
~PrimitiveDeserializer() override = default; |
18 |
|
|
|
19 |
|
|
private: |
20 |
|
|
const PrimitiveType param_type_; |
21 |
|
|
}; |
22 |
|
|
|
23 |
|
|
#endif // PRIMITIVE_DESERIALIZER_HPP |
24 |
|
|
|