CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
uri_builder.h
1
3#ifndef _uri_builder_h
4#define _uri_builder_h
5
6#include "fwd.h"
7#include "system/object.h"
8#include "system/string.h"
9#include "system/uri.h"
10#include "system/exceptions.h"
11
12namespace System {
13
18class ASPOSECPP_SHARED_CLASS UriBuilder : public Object
19{
20public:
22 ASPOSECPP_SHARED_API UriBuilder(const String& uri);
24 ASPOSECPP_SHARED_API UriBuilder(const SharedPtr<Uri>& uri);
26 ASPOSECPP_SHARED_API String get_Scheme() const;
29 ASPOSECPP_SHARED_API void set_Scheme(const String& value);
31 ASPOSECPP_SHARED_API String ToString() const override;
33 ASPOSECPP_SHARED_API SharedPtr<Uri> get_Uri() const;
36 ASPOSECPP_SHARED_API void set_Port(int value);
37
38private:
40 SharedPtr<Uri> m_uri;
41};
42
43}
44
45#endif // _uri_builder_h
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
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
Provides methods to construct and modify universial resource identifiers (URIs). Objects of this clas...
Definition: uri_builder.h:19
UriBuilder(const SharedPtr< Uri > &uri)
Constructs a UriBuilder object that represents that represents the specified URI.
void set_Port(int value)
Sets the sets the port number of the URI.
String ToString() const override
Returns the string representation of the URI constructed by the current object.
SharedPtr< Uri > get_Uri() const
Returns the Uri object constructed by the current object.
UriBuilder(const String &uri)
Constructs a UriBuilder object that represents that represents the specified URI.
void set_Scheme(const String &value)
Sets the scheme of the URI constructed by the current object to the specified value.
String get_Scheme() const
Returns the scheme of the URI constructed by the current object.
Definition: db_command.h:9