ETSI STF525 / Internal Testing test suite This project provides an internal testing test suite and its associated Test Adapter/Codec

http_layer.hh
Go to the documentation of this file.
1
11 #pragma once
12
13 #include <memory>
14
15 #include "t_layer.hh"
16
17 #include "HttpCodec.hh"
18
19 namespace LibItsHttp__TypesAndValues {
20 class HeaderLines;
21 }
22
23 class OCTETSTRING;
24
29 class http_layer : public layer {
30 Params _params;
31 HttpCodec _codec;
32 std::unique_ptr<LibItsHttp__TypesAndValues::HeaderLines> _headers;
33
34 public:
35
41 http_layer() : layer(), _params(), _headers(nullptr) {};
48 http_layer(const std::string& p_type, const std::string& p_param);
52 virtual ~http_layer() { _headers.reset(nullptr); };
53
61 virtual void send_data(OCTETSTRING& data, Params& params);
69 virtual void receive_data(OCTETSTRING& data, Params& info);
70 }; // End of class http_layer
71
layer
Forward declaration of TITAN class.
Definition: layer.hh:29
LibItsHttp__TypesAndValues
Definition: http_layer.hh:19
http_layer::http_layer
http_layer()
Specialised constructor Create a new instance of the http_layer class.
Definition: http_layer.hh:41
http_layer
Forward declaration of TITAN class.
Definition: http_layer.hh:29
http_layer::_headers
std::unique_ptr< LibItsHttp__TypesAndValues::HeaderLines > _headers
Definition: http_layer.hh:32
http_layer::_codec
HttpCodec _codec
Definition: http_layer.hh:31
Params
This class provides basic functionalities for an ITS dictionary.
Definition: Params.hh:21
HttpCodec
Definition: HttpCodec.hh:18
http_layer::~http_layer
virtual ~http_layer()
Default destructor.
Definition: http_layer.hh:52
HttpCodec.hh
http_layer::_params
Params _params
Definition: http_layer.hh:30
t_layer.hh
Header file for ITS abstract protocol layer definition.