CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
range_condition_header_value.h
1
2#pragma once
3
4#include <system/date_time_offset.h>
5#include <system/icloneable.h>
6#include <system/nullable.h>
7#include <system/object.h>
8#include <system/shared_ptr.h>
9
10#include <net/http/headers/entity_tag_header_value.h>
11
12namespace System { namespace Net { namespace Http { namespace Headers {
13
18class ASPOSECPP_SHARED_CLASS RangeConditionHeaderValue : public System::ICloneable
19{
24
26 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
28 ASPOSECPP_SHARED_RTTI_INFO_DECL();
29
30public:
33 ASPOSECPP_SHARED_API Nullable<DateTimeOffset> get_Date();
37
40 ASPOSECPP_SHARED_API RangeConditionHeaderValue(DateTimeOffset date);
46 ASPOSECPP_SHARED_API RangeConditionHeaderValue(String entityTag);
47
49 ASPOSECPP_SHARED_API String ToString() const override;
51 ASPOSECPP_SHARED_API bool Equals(System::SharedPtr<Object> obj) override;
53 ASPOSECPP_SHARED_API int32_t GetHashCode() const override;
57 ASPOSECPP_SHARED_API static System::SharedPtr<RangeConditionHeaderValue> Parse(String input);
62 ASPOSECPP_SHARED_API static bool TryParse(String input, System::SharedPtr<RangeConditionHeaderValue>& parsedValue);
68 ASPOSECPP_SHARED_API static int32_t GetRangeConditionLength(String input, int32_t startIndex, System::SharedPtr<Object>& parsedValue);
69
70private:
75
79 MEMBER_FUNCTION_MAKE_OBJECT(RangeConditionHeaderValue, CODEPORTING_ARGS(System::SharedPtr<RangeConditionHeaderValue> source), CODEPORTING_ARGS(source));
80
83 MEMBER_FUNCTION_MAKE_OBJECT(RangeConditionHeaderValue, CODEPORTING_ARGS(), CODEPORTING_ARGS());
84
86 System::SharedPtr<Object> Clone() override;
87};
88
89}}}} // namespace System::Net::Http::Headers
Contains the date and time of day relative to Coordinated Universal Time. Objects of this class shoul...
Definition: date_time_offset.h:16
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 'If-Range' header. Objects of this class should only be allocated using Sys...
Definition: range_condition_header_value.h:19
bool Equals(System::SharedPtr< Object > obj) override
Compares objects using C# Object.Equals semantics.
System::SharedPtr< EntityTagHeaderValue > get_EntityTag()
Returns an 'ETag' header value.
Nullable< DateTimeOffset > get_Date()
Returns a date value.
String ToString() const override
Analog of C# Object.ToString() method. Enables converting custom objects to string.
RangeConditionHeaderValue(System::SharedPtr< EntityTagHeaderValue > entityTag)
Constructs a new instance.
static System::SharedPtr< RangeConditionHeaderValue > Parse(String input)
Converts a passed string to an instance of the RangeConditionHeaderValue class.
RangeConditionHeaderValue(DateTimeOffset date)
Constructs a new instance.
static int32_t GetRangeConditionLength(String input, int32_t startIndex, System::SharedPtr< Object > &parsedValue)
Converts a passed string from the specified index to an instance of the RangeConditionHeaderValue cla...
static bool TryParse(String input, System::SharedPtr< RangeConditionHeaderValue > &parsedValue)
Tries to convert a passed string to an instance of the RangeConditionHeaderValue class.
int32_t GetHashCode() const override
Analog of C# Object.GetHashCode() method. Enables hashing of custom objects.
RangeConditionHeaderValue(String entityTag)
Constructs a new instance.
Forward declaration.
Definition: nullable.h:74
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
Definition: db_command.h:9