CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
transfer_coding_header_value.h
1
2#pragma once
3
4#include <system/collections/icollection.h>
5#include <system/icloneable.h>
6#include <system/object.h>
7#include <system/shared_ptr.h>
8
9#include <net/http/headers/name_value_header_value.h>
10
11namespace System { namespace Net { namespace Http { namespace Headers {
12
17class ASPOSECPP_SHARED_CLASS TransferCodingHeaderValue : public virtual System::ICloneable
18{
23
25 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
27 ASPOSECPP_SHARED_RTTI_INFO_DECL();
28
29public:
32 ASPOSECPP_SHARED_API String get_Value();
37
39 ASPOSECPP_SHARED_API TransferCodingHeaderValue();
42 ASPOSECPP_SHARED_API TransferCodingHeaderValue(String value);
43
47 ASPOSECPP_SHARED_API static System::SharedPtr<TransferCodingHeaderValue> Parse(String input);
52 ASPOSECPP_SHARED_API static bool TryParse(String input, System::SharedPtr<TransferCodingHeaderValue>& parsedValue);
60 ASPOSECPP_SHARED_API static int32_t
61 GetTransferCodingLength(String input, int32_t startIndex,
62 const HeaderFunc<System::SharedPtr<TransferCodingHeaderValue>>& transferCodingCreator,
65 ASPOSECPP_SHARED_API String ToString() const override;
67 ASPOSECPP_SHARED_API bool Equals(System::SharedPtr<Object> obj) override;
69 ASPOSECPP_SHARED_API int32_t GetHashCode() const override;
70
71protected:
75 MEMBER_FUNCTION_MAKE_OBJECT(TransferCodingHeaderValue, CODEPORTING_ARGS(System::SharedPtr<TransferCodingHeaderValue> source), CODEPORTING_ARGS(source));
76
77private:
81 String _value;
82
84 System::SharedPtr<Object> Clone() override;
85};
86
87}}}} // namespace System::Net::Http::Headers
Defies a method that enables object cloning - creating a copy of an object. Objects of this class sho...
Definition: icloneable.h:16
Represents a value of the 'Accept-Encoding' header. Objects of this class should only be allocated us...
Definition: transfer_coding_header_value.h:18
System::SharedPtr< Collections::Generic::ICollection< System::SharedPtr< NameValueHeaderValue > > > get_Parameters()
Returns the parameters.
String ToString() const override
Analog of C# Object.ToString() method. Enables converting custom objects to string.
static int32_t GetTransferCodingLength(String input, int32_t startIndex, const HeaderFunc< System::SharedPtr< TransferCodingHeaderValue > > &transferCodingCreator, System::SharedPtr< TransferCodingHeaderValue > &parsedValue)
Converts a passed string from the specified index to an instance of the TransferCodingHeaderValue cla...
bool Equals(System::SharedPtr< Object > obj) override
Compares objects using C# Object.Equals semantics.
TransferCodingHeaderValue(String value)
Constructs a new instance.
static bool TryParse(String input, System::SharedPtr< TransferCodingHeaderValue > &parsedValue)
Tries to convert a passed string to an instance of the TransferCodingHeaderValue class.
static System::SharedPtr< TransferCodingHeaderValue > Parse(String input)
Converts a passed string to an instance of the TransferCodingHeaderValue class.
int32_t GetHashCode() const override
Analog of C# Object.GetHashCode() method. Enables hashing of custom objects.
TransferCodingHeaderValue(System::SharedPtr< TransferCodingHeaderValue > source)
The copy constructor.
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
System::MulticastDelegate< TResult()> HeaderFunc
Definition: http_headers.h:24
Definition: db_command.h:9