CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xsl_compiled_transform.h
1
2
3#pragma once
4
5#include <system/object.h>
6
7
9namespace System
10{
11namespace IO
12{
13class Stream;
14class TextWriter;
15} // namespace IO
16class String;
17namespace Xml
18{
19class XmlReader;
20class XmlReaderSettings;
21class XmlResolver;
22class XmlWriter;
23class XmlWriterSettings;
24namespace XPath
25{
26class IXPathNavigable;
27} // namespace XPath
28namespace Xsl
29{
30class XsltArgumentList;
31class XslTransform;
32class XsltSettings;
33} // namespace Xsl
34} // namespace Xml
35} // namespace System
37
38namespace System {
39
40namespace Xml {
41
42namespace Xsl {
43
48class ASPOSECPP_SHARED_CLASS XslCompiledTransform final : public System::Object
49{
52
53 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
54 ASPOSECPP_SHARED_RTTI_INFO_DECL();
55
56public:
57
60
61public:
62
69
71 ASPOSECPP_SHARED_API XslCompiledTransform();
72
77 ASPOSECPP_SHARED_API void Load(const SharedPtr<XmlReader>& stylesheet);
89 ASPOSECPP_SHARED_API void Load(const SharedPtr<XmlReader>& stylesheet, const SharedPtr<XsltSettings>& settings, const SharedPtr<XmlResolver>& stylesheetResolver);
101 ASPOSECPP_SHARED_API void Load(const String& stylesheetUri);
119 ASPOSECPP_SHARED_API void Load(const String& stylesheetUri, const SharedPtr<XsltSettings>& settings, const SharedPtr<XmlResolver>& stylesheetResolver);
125 ASPOSECPP_SHARED_API void Load(const SharedPtr<System::Xml::XPath::IXPathNavigable>& stylesheet);
136 ASPOSECPP_SHARED_API void Load(const SharedPtr<System::Xml::XPath::IXPathNavigable>& stylesheet, SharedPtr<XsltSettings> settings, SharedPtr<XmlResolver> stylesheetResolver);
146 ASPOSECPP_SHARED_API void Transform(const SharedPtr<System::Xml::XPath::IXPathNavigable>& input, const SharedPtr<XmlWriter>& results);
159 ASPOSECPP_SHARED_API void Transform(const SharedPtr<System::Xml::XPath::IXPathNavigable>& input, const SharedPtr<XsltArgumentList>& arguments, const SharedPtr<XmlWriter>& results);
169 ASPOSECPP_SHARED_API void Transform(const SharedPtr<System::Xml::XPath::IXPathNavigable>& input, const SharedPtr<XsltArgumentList>& arguments, const SharedPtr<IO::TextWriter>& results);
179 ASPOSECPP_SHARED_API void Transform(const SharedPtr<System::Xml::XPath::IXPathNavigable>& input, const SharedPtr<XsltArgumentList>& arguments, const SharedPtr<IO::Stream>& results);
188 ASPOSECPP_SHARED_API void Transform(const SharedPtr<XmlReader>& input, const SharedPtr<XmlWriter>& results);
200 ASPOSECPP_SHARED_API void Transform(const SharedPtr<XmlReader>& input, const SharedPtr<XsltArgumentList>& arguments, const SharedPtr<XmlWriter>& results);
209 ASPOSECPP_SHARED_API void Transform(const SharedPtr<XmlReader>& input, const SharedPtr<XsltArgumentList>& arguments, const SharedPtr<IO::TextWriter>& results);
218 ASPOSECPP_SHARED_API void Transform(const SharedPtr<XmlReader>& input, const SharedPtr<XsltArgumentList>& arguments, const SharedPtr<IO::Stream>& results);
233 ASPOSECPP_SHARED_API void Transform(const String& inputUri, const SharedPtr<XmlWriter>& results);
251 ASPOSECPP_SHARED_API void Transform(const String& inputUri, const SharedPtr<XsltArgumentList>& arguments, const SharedPtr<XmlWriter>& results);
265 ASPOSECPP_SHARED_API void Transform(const String& inputUri, const SharedPtr<XsltArgumentList>& arguments, const SharedPtr<IO::TextWriter>& results);
280 ASPOSECPP_SHARED_API void Transform(const String& inputUri, const SharedPtr<XsltArgumentList>& arguments, const SharedPtr<IO::Stream>& results);
293 ASPOSECPP_SHARED_API void Transform(const String& inputUri, const String& resultsFile);
307 ASPOSECPP_SHARED_API void Transform(const SharedPtr<XmlReader>& input, const SharedPtr<XsltArgumentList>& arguments, const SharedPtr<XmlWriter>& results, const SharedPtr<XmlResolver>& documentResolver);
319 ASPOSECPP_SHARED_API void Transform(const SharedPtr<System::Xml::XPath::IXPathNavigable>& input, const SharedPtr<XsltArgumentList>& arguments, const SharedPtr<XmlWriter>& results, const SharedPtr<XmlResolver>& documentResolver);
320
321protected:
322
324 #ifdef ASPOSE_GET_SHARED_MEMBERS
325 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
326 #endif
328
329private:
330
332 SharedPtr<XmlWriterSettings> _outputSettings;
333 static SharedPtr<XmlReaderSettings> s_readerSettings;
334
335 static void CheckArguments(const SharedPtr<Object>& input, const SharedPtr<Object>& results);
336 static void CheckArguments(const String& inputUri, const SharedPtr<Object>& results);
337 static SharedPtr<XmlResolver> CreateDefaultResolver();
338
339};
340
341} // namespace Xsl
342} // namespace Xml
343} // namespace System
344
345
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
Transforms XML data using an XSLT style sheet.
Definition: xsl_compiled_transform.h:49
void Transform(const String &inputUri, const SharedPtr< XsltArgumentList > &arguments, const SharedPtr< IO::TextWriter > &results)
Executes the transform using the input document specified by the URI and outputs the results to a Tex...
void Load(const SharedPtr< XmlReader > &stylesheet, const SharedPtr< XsltSettings > &settings, const SharedPtr< XmlResolver > &stylesheetResolver)
Compiles the XSLT style sheet contained in the XmlReader. The XmlResolver resolves any XSLT import or...
void Load(const SharedPtr< System::Xml::XPath::IXPathNavigable > &stylesheet, SharedPtr< XsltSettings > settings, SharedPtr< XmlResolver > stylesheetResolver)
Compiles the XSLT style sheet contained in the IXPathNavigable. The XmlResolver resolves any XSLT imp...
void Transform(const String &inputUri, const SharedPtr< XsltArgumentList > &arguments, const SharedPtr< IO::Stream > &results)
Executes the transform using the input document specified by the URI and outputs the results to strea...
void Load(const SharedPtr< System::Xml::XPath::IXPathNavigable > &stylesheet)
Compiles the style sheet contained in the IXPathNavigable object.
void Transform(const SharedPtr< System::Xml::XPath::IXPathNavigable > &input, const SharedPtr< XmlWriter > &results)
Executes the transform using the input document specified by the IXPathNavigable object and outputs t...
void Transform(const SharedPtr< System::Xml::XPath::IXPathNavigable > &input, const SharedPtr< XsltArgumentList > &arguments, const SharedPtr< IO::TextWriter > &results)
Executes the transform using the input document specified by the IXPathNavigable object and outputs t...
void Transform(const String &inputUri, const SharedPtr< XmlWriter > &results)
Executes the transform using the input document specified by the URI and outputs the results to an Xm...
void Load(const String &stylesheetUri)
Loads and compiles the style sheet located at the specified URI.
void Load(const SharedPtr< XmlReader > &stylesheet)
Compiles the style sheet contained in the XmlReader.
void Transform(const String &inputUri, const String &resultsFile)
Executes the transform using the input document specified by the URI and outputs the results to a fil...
SharedPtr< XmlWriterSettings > get_OutputSettings()
Returns an XmlWriterSettings object that contains the output information derived from the xsl:output ...
void Transform(const SharedPtr< System::Xml::XPath::IXPathNavigable > &input, const SharedPtr< XsltArgumentList > &arguments, const SharedPtr< IO::Stream > &results)
Executes the transform using the input document specified by the IXPathNavigable object and outputs t...
void Transform(const SharedPtr< System::Xml::XPath::IXPathNavigable > &input, const SharedPtr< XsltArgumentList > &arguments, const SharedPtr< XmlWriter > &results, const SharedPtr< XmlResolver > &documentResolver)
Executes the transform by using the input document that is specified by the IXPathNavigable object an...
void Load(const String &stylesheetUri, const SharedPtr< XsltSettings > &settings, const SharedPtr< XmlResolver > &stylesheetResolver)
Loads and compiles the XSLT style sheet specified by the URI. The XmlResolver resolves any XSLT impor...
void Transform(const SharedPtr< XmlReader > &input, const SharedPtr< XsltArgumentList > &arguments, const SharedPtr< IO::TextWriter > &results)
Executes the transform using the input document specified by the XmlReader object and outputs the res...
void Transform(const SharedPtr< System::Xml::XPath::IXPathNavigable > &input, const SharedPtr< XsltArgumentList > &arguments, const SharedPtr< XmlWriter > &results)
Executes the transform using the input document specified by the IXPathNavigable object and outputs t...
void Transform(const SharedPtr< XmlReader > &input, const SharedPtr< XsltArgumentList > &arguments, const SharedPtr< XmlWriter > &results)
Executes the transform using the input document specified by the XmlReader object and outputs the res...
void Transform(const SharedPtr< XmlReader > &input, const SharedPtr< XmlWriter > &results)
Executes the transform using the input document specified by the XmlReader object and outputs the res...
XslCompiledTransform()
Initializes a new instance of the XslCompiledTransform class.
void Transform(const SharedPtr< XmlReader > &input, const SharedPtr< XsltArgumentList > &arguments, const SharedPtr< XmlWriter > &results, const SharedPtr< XmlResolver > &documentResolver)
Executes the transform using the input document specified by the XmlReader object and outputs the res...
void Transform(const String &inputUri, const SharedPtr< XsltArgumentList > &arguments, const SharedPtr< XmlWriter > &results)
Executes the transform using the input document specified by the URI and outputs the results to an Xm...
void Transform(const SharedPtr< XmlReader > &input, const SharedPtr< XsltArgumentList > &arguments, const SharedPtr< IO::Stream > &results)
Executes the transform using the input document specified by the XmlReader object and outputs the res...
@ Stream
The type that supports reliable, two-way, connection-based byte streams without duplication of data a...
@ Xml
Serialize according to the XML 1.0 rules.
Definition: db_command.h:9