5#include <xml/xml_resolver.h>
6#include <xml/resolvers/xml_known_dtds.h>
7#include <system/enum_helpers.h>
8#include <system/array.h>
19template <
typename,
typename>
class Dictionary;
20template <
typename>
class IEnumerable;
21template <
typename>
class IEqualityComparer;
53 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
54 ASPOSECPP_SHARED_RTTI_INFO_DECL();
68 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
76 virtual bool SupportsType(
const TypeInfo& type);
81 class XmlKnownDtdData :
public XmlPreloadedResolver::PreloadedData
83 typedef XmlKnownDtdData ThisType;
84 typedef XmlPreloadedResolver::PreloadedData BaseType;
86 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
95 XmlKnownDtdData(
const String& publicId,
const String& systemId,
const String& resourceName);
106 class ByteArrayChunk :
public XmlPreloadedResolver::PreloadedData
108 typedef ByteArrayChunk ThisType;
109 typedef XmlPreloadedResolver::PreloadedData BaseType;
111 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
125 #ifdef ASPOSE_GET_SHARED_MEMBERS
126 void GetSharedMembers(System::Object::shared_members_type& result)
const override;
138 class StringData :
public XmlPreloadedResolver::PreloadedData
140 typedef StringData ThisType;
141 typedef XmlPreloadedResolver::PreloadedData BaseType;
143 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
149 StringData(
const String& str);
153 bool SupportsType(
const TypeInfo& type)
override;
255 #ifdef ASPOSE_GET_SHARED_MEMBERS
256 ASPOSECPP_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
271 static struct __StaticConstructor__ { __StaticConstructor__(); } s_constructor__;
Interface providing means to compare two objects for equality. Objects of this class should only be a...
Definition: iequality_comparer.h:17
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
Represents a class that is used to prepopulate the cache with DTDs or XML streams.
Definition: xml_preloaded_resolver.h:49
XmlPreloadedResolver(const SharedPtr< XmlResolver > &fallbackResolver, XmlKnownDtds preloadedDtds)
Initializes a new instance of the XmlPreloadedResolver class with the specified fallback resolver and...
XmlPreloadedResolver()
Initializes a new instance of the XmlPreloadedResolver class.
void Remove(const SharedPtr< Uri > &uri)
Removes the data that corresponds to the URI from the XmlPreloadedResolver.
void Add(const SharedPtr< Uri > &uri, const ArrayPtr< uint8_t > &value, int32_t offset, int32_t count)
Adds a byte array to the XmlPreloadedResolver store and maps it to a URI. If the store already contai...
SharedPtr< Collections::Generic::IEnumerable< SharedPtr< Uri > > > get_PreloadedUris()
Returns a collection of preloaded URIs.
XmlPreloadedResolver(const SharedPtr< XmlResolver > &fallbackResolver)
Initializes a new instance of the XmlPreloadedResolver class with the specified fallback resolver.
bool SupportsType(SharedPtr< Uri > absoluteUri, const TypeInfo &type) override
Determines whether the resolver supports other Types than just Stream.
XmlPreloadedResolver(XmlKnownDtds preloadedDtds)
Initializes a new instance of the XmlPreloadedResolver class with the specified preloaded well-known ...
void Add(const SharedPtr< Uri > &uri, const ArrayPtr< uint8_t > &value)
Adds a byte array to the XmlPreloadedResolver store and maps it to a URI. If the store already contai...
SharedPtr< Uri > ResolveUri(SharedPtr< Uri > baseUri, String relativeUri) override
Resolves the absolute URI from the base and relative URIs.
void set_Credentials(SharedPtr< Net::ICredentials > value) override
Sets the credentials that are used to authenticate the underlying Net::WebRequest.
XmlPreloadedResolver(const SharedPtr< XmlResolver > &fallbackResolver, XmlKnownDtds preloadedDtds, const SharedPtr< Collections::Generic::IEqualityComparer< SharedPtr< Uri > > > &uriComparer)
Initializes a new instance of the XmlPreloadedResolver class with the specified fallback resolver,...
SharedPtr< Object > GetEntity(SharedPtr< Uri > absoluteUri, String role, const TypeInfo &ofObjectToReturn) override
Maps a URI to an object that contains the actual resource.
void Add(const SharedPtr< Uri > &uri, const String &value)
Adds a string with preloaded data to the XmlPreloadedResolver store and maps it to a URI....
void Add(const SharedPtr< Uri > &uri, const SharedPtr< IO::Stream > &value)
Adds a Stream to the XmlPreloadedResolver store and maps it to a URI. If the store already contains a...
Resolves external XML resources named by a Uniform Resource Identifier (URI).
Definition: xml_resolver.h:27
@ Stream
The type that supports reliable, two-way, connection-based byte streams without duplication of data a...
@ TypeInfo
Specifies that the member is a type.
XmlKnownDtds
The Resolvers::XmlKnownDtds enumeration is used by the Resolvers::XmlPreloadedResolver and defines wh...
Definition: xml_known_dtds.h:19
@ Xml
Serialize according to the XML 1.0 rules.
Definition: db_command.h:9