CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_resolver.h
1
2
3#pragma once
4
5#include <system/object.h>
6
7
9namespace System
10{
11namespace Net
12{
13class ICredentials;
14} // namespace Net
15class String;
16class TypeInfo;
17class Uri;
18} // namespace System
20
21namespace System {
22
23namespace Xml {
24
26class ASPOSECPP_SHARED_CLASS XmlResolver : public System::Object
27{
28 typedef XmlResolver ThisType;
30
31 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
32 ASPOSECPP_SHARED_RTTI_INFO_DECL();
33
34public:
35
38
39public:
40
43 virtual ASPOSECPP_SHARED_API void set_Credentials(SharedPtr<Net::ICredentials> value);
44
54 virtual ASPOSECPP_SHARED_API SharedPtr<Object> GetEntity(SharedPtr<Uri> absoluteUri, String role, const TypeInfo& ofObjectToReturn) = 0;
62 virtual ASPOSECPP_SHARED_API SharedPtr<Uri> ResolveUri(SharedPtr<Uri> baseUri, String relativeUri);
67 virtual ASPOSECPP_SHARED_API bool SupportsType(SharedPtr<Uri> absoluteUri, const TypeInfo& type);
68
69};
70
71} // namespace Xml
72} // namespace System
73
74
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
Represents a particular type and provides information about it.
Definition: type_info.h:109
Resolves external XML resources named by a Uniform Resource Identifier (URI).
Definition: xml_resolver.h:27
virtual bool SupportsType(SharedPtr< Uri > absoluteUri, const TypeInfo &type)
Enables the resolver to return types other than Stream.
virtual SharedPtr< Object > GetEntity(SharedPtr< Uri > absoluteUri, String role, const TypeInfo &ofObjectToReturn)=0
When overridden in a derived class, maps a URI to an object that contains the actual resource.
virtual SharedPtr< Uri > ResolveUri(SharedPtr< Uri > baseUri, String relativeUri)
When overridden in a derived class, resolves the absolute URI from the base and relative URIs.
virtual void set_Credentials(SharedPtr< Net::ICredentials > value)
When overridden in a derived class, sets the credentials used to authenticate web requests.
@ TypeInfo
Specifies that the member is a type.
@ Xml
Serialize according to the XML 1.0 rules.
Definition: db_command.h:9