CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
range_item_header_value.h
1
2#pragma once
3
4#include <cstdint>
5#include <system/collections/icollection.h>
6#include <system/icloneable.h>
7#include <system/nullable.h>
8#include <system/object.h>
9#include <system/shared_ptr.h>
10#include <system/string.h>
11
12namespace System { namespace Net { namespace Http { namespace Headers {
13
18class ASPOSECPP_SHARED_CLASS RangeItemHeaderValue : public System::ICloneable
19{
24
26 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
28 ASPOSECPP_SHARED_RTTI_INFO_DECL();
29
30public:
33 ASPOSECPP_SHARED_API Nullable<int64_t> get_From();
36 ASPOSECPP_SHARED_API Nullable<int64_t> get_To();
37
42
44 ASPOSECPP_SHARED_API String ToString() const override;
46 ASPOSECPP_SHARED_API bool Equals(System::SharedPtr<Object> obj) override;
48 ASPOSECPP_SHARED_API int32_t GetHashCode() const override;
55 ASPOSECPP_SHARED_API static int32_t GetRangeItemListLength(
56 String input, int32_t startIndex,
63 ASPOSECPP_SHARED_API static int32_t GetRangeItemLength(String input, int32_t startIndex,
65
66private:
71
75 MEMBER_FUNCTION_MAKE_OBJECT(RangeItemHeaderValue, CODEPORTING_ARGS(System::SharedPtr<RangeItemHeaderValue> source), CODEPORTING_ARGS(source));
76
78 System::SharedPtr<Object> Clone() override;
79};
80
81}}}} // namespace System::Net::Http::Headers
Interface of collection of elements. Objects of this class should only be allocated using System::Mak...
Definition: icollection.h:20
Defies a method that enables object cloning - creating a copy of an object. Objects of this class sho...
Definition: icloneable.h:16
Represents a range of bytes in a value of the 'Range' header. Objects of this class should only be al...
Definition: range_item_header_value.h:19
static int32_t GetRangeItemListLength(String input, int32_t startIndex, System::SharedPtr< Collections::Generic::ICollection< System::SharedPtr< RangeItemHeaderValue > > > rangeCollection)
Converts a passed string from the specified position to the collection of the RangeItemHeaderValue-cl...
Nullable< int64_t > get_To()
Returns a position at which data sending must stop.
bool Equals(System::SharedPtr< Object > obj) override
Compares objects using C# Object.Equals semantics.
static int32_t GetRangeItemLength(String input, int32_t startIndex, System::SharedPtr< RangeItemHeaderValue > &parsedValue)
Converts a passed string from the specified index to an instance of the RangeItemHeaderValue class.
Nullable< int64_t > get_From()
Returns a position at which data sending must start.
int32_t GetHashCode() const override
Analog of C# Object.GetHashCode() method. Enables hashing of custom objects.
String ToString() const override
Analog of C# Object.ToString() method. Enables converting custom objects to string.
RangeItemHeaderValue(Nullable< int64_t > from, Nullable< int64_t > to)
Constructs a new instance.
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