CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xsl_transform.h
1
2
3#pragma once
4
5#include <system/object.h>
6
7
9namespace System
10{
11namespace Collections
12{
13namespace Generic
14{
15template <typename> class List;
16} // namespace Generic
17} // namespace Collections
18namespace IO
19{
20class Stream;
21class TextWriter;
22} // namespace IO
23class String;
24namespace Xml
25{
26class XmlReader;
27class XmlResolver;
28class XmlWriter;
29namespace XPath
30{
31class IXPathNavigable;
32class XPathNavigator;
33} // namespace XPath
34namespace Xsl
35{
36class XsltArgumentList;
37namespace XsltOld
38{
39namespace Debugger
40{
41class IXsltDebugger;
42} // namespace Debugger
43class RootAction;
44class Stylesheet;
45class TheQuery;
46} // namespace XsltOld
47} // namespace Xsl
48} // namespace Xml
49} // namespace System
51
52namespace System {
53
54namespace Xml {
55
56namespace Xsl {
57
62class ASPOSECPP_SHARED_CLASS XslTransform final : public System::Object
63{
64 typedef XslTransform ThisType;
66
67 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
68 ASPOSECPP_SHARED_RTTI_INFO_DECL();
69
70public:
71
74
75public:
76
79 ASPOSECPP_SHARED_API void set_XmlResolver(const SharedPtr<System::Xml::XmlResolver>& value);
80
82 ASPOSECPP_SHARED_API XslTransform();
83
87 ASPOSECPP_SHARED_API void Load(const SharedPtr<XmlReader>& stylesheet);
94 ASPOSECPP_SHARED_API void Load(const SharedPtr<XmlReader>& stylesheet, const SharedPtr<System::Xml::XmlResolver>& resolver);
99 ASPOSECPP_SHARED_API void Load(const SharedPtr<System::Xml::XPath::IXPathNavigable>& stylesheet);
107 ASPOSECPP_SHARED_API void Load(const SharedPtr<System::Xml::XPath::IXPathNavigable>& stylesheet, const SharedPtr<System::Xml::XmlResolver>& resolver);
111 ASPOSECPP_SHARED_API void Load(const SharedPtr<System::Xml::XPath::XPathNavigator>& stylesheet);
118 ASPOSECPP_SHARED_API void Load(const SharedPtr<System::Xml::XPath::XPathNavigator>& stylesheet, const SharedPtr<System::Xml::XmlResolver>& resolver);
122 ASPOSECPP_SHARED_API void Load(const String& url);
132 ASPOSECPP_SHARED_API void Load(const String& url, const SharedPtr<System::Xml::XmlResolver>& resolver);
162 ASPOSECPP_SHARED_API void Transform(const SharedPtr<System::Xml::XPath::XPathNavigator>& input, const SharedPtr<XsltArgumentList>& args, const SharedPtr<XmlWriter>& output);
177 ASPOSECPP_SHARED_API void Transform(const SharedPtr<System::Xml::XPath::XPathNavigator>& input, const SharedPtr<XsltArgumentList>& args, const SharedPtr<IO::Stream>& output);
241 ASPOSECPP_SHARED_API void Transform(const SharedPtr<System::Xml::XPath::IXPathNavigable>& input, const SharedPtr<XsltArgumentList>& args, const SharedPtr<IO::Stream>& output);
258 ASPOSECPP_SHARED_API void Transform(const SharedPtr<System::Xml::XPath::IXPathNavigable>& input, const SharedPtr<XsltArgumentList>& args, const SharedPtr<XmlWriter>& output);
265 ASPOSECPP_SHARED_API void Transform(const String& inputfile, const String& outputfile, const SharedPtr<System::Xml::XmlResolver>& resolver);
269 ASPOSECPP_SHARED_API void Transform(const String& inputfile, const String& outputfile);
270
271protected:
272
275
276 #ifdef ASPOSE_GET_SHARED_MEMBERS
277 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
278 #endif
280
281private:
282
283 SharedPtr<System::Xml::XmlResolver> _documentResolver;
284 bool _isDocumentResolverSet;
285
286 SharedPtr<System::Xml::XmlResolver> get__DocumentResolver();
287
288 SharedPtr<XsltOld::Stylesheet> _CompiledStylesheet;
292
293 void CheckCommand();
294 void Compile(const SharedPtr<System::Xml::XPath::XPathNavigator>& stylesheet, const SharedPtr<System::Xml::XmlResolver>& resolver);
295 static SharedPtr<System::Xml::XmlResolver> CreateDefaultResolver();
296
297};
298
299} // namespace Xsl
300} // namespace Xml
301} // namespace System
302
303
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 Extensible Stylesheet Language for Transformations (XSLT) style sheet.
Definition: xsl_transform.h:63
void Load(const SharedPtr< System::Xml::XPath::XPathNavigator > &stylesheet, const SharedPtr< System::Xml::XmlResolver > &resolver)
Loads the XSLT style sheet contained in the XPathNavigator.
void Load(const SharedPtr< System::Xml::XPath::XPathNavigator > &stylesheet)
Loads the XSLT style sheet contained in the XPathNavigator.
void set_XmlResolver(const SharedPtr< System::Xml::XmlResolver > &value)
Sets the XmlResolver used to resolve external resources when the XslTransform::Transform method is ca...
void Transform(const String &inputfile, const String &outputfile, const SharedPtr< System::Xml::XmlResolver > &resolver)
Transforms the XML data in the input file and outputs the result to an output file.
void Load(const SharedPtr< XmlReader > &stylesheet)
Loads the XSLT style sheet contained in the XmlReader.
SharedPtr< XmlReader > Transform(const SharedPtr< System::Xml::XPath::IXPathNavigable > &input, const SharedPtr< XsltArgumentList > &args)
Transforms the XML data in the IXPathNavigable using the specified args and outputs the result to an ...
void Transform(const SharedPtr< System::Xml::XPath::IXPathNavigable > &input, const SharedPtr< XsltArgumentList > &args, const SharedPtr< IO::Stream > &output, const SharedPtr< System::Xml::XmlResolver > &resolver)
Transforms the XML data in the IXPathNavigable using the specified args and outputs the result to a S...
SharedPtr< XmlReader > Transform(const SharedPtr< System::Xml::XPath::XPathNavigator > &input, const SharedPtr< XsltArgumentList > &args)
Transforms the XML data in the XPathNavigator using the specified args and outputs the result to an X...
XslTransform()
Initializes a new instance of the XslTransform class.
void Transform(const SharedPtr< System::Xml::XPath::IXPathNavigable > &input, const SharedPtr< XsltArgumentList > &args, const SharedPtr< IO::TextWriter > &output, const SharedPtr< System::Xml::XmlResolver > &resolver)
Transforms the XML data in the IXPathNavigable using the specified args and outputs the result to a T...
void Transform(const SharedPtr< System::Xml::XPath::IXPathNavigable > &input, const SharedPtr< XsltArgumentList > &args, const SharedPtr< IO::TextWriter > &output)
Transforms the XML data in the IXPathNavigable using the specified args and outputs the result to a T...
void Load(const SharedPtr< System::Xml::XPath::IXPathNavigable > &stylesheet)
Loads the XSLT style sheet contained in the IXPathNavigable.
void Transform(const SharedPtr< System::Xml::XPath::XPathNavigator > &input, const SharedPtr< XsltArgumentList > &args, const SharedPtr< IO::TextWriter > &output, const SharedPtr< System::Xml::XmlResolver > &resolver)
Transforms the XML data in the XPathNavigator using the specified args and outputs the result to a Te...
void Transform(const SharedPtr< System::Xml::XPath::XPathNavigator > &input, const SharedPtr< XsltArgumentList > &args, const SharedPtr< XmlWriter > &output, const SharedPtr< System::Xml::XmlResolver > &resolver)
Transforms the XML data in the XPathNavigator using the specified args and outputs the result to an X...
SharedPtr< XmlReader > Transform(const SharedPtr< System::Xml::XPath::IXPathNavigable > &input, const SharedPtr< XsltArgumentList > &args, const SharedPtr< System::Xml::XmlResolver > &resolver)
Transforms the XML data in the IXPathNavigable using the specified args and outputs the result to an ...
void Transform(const SharedPtr< System::Xml::XPath::XPathNavigator > &input, const SharedPtr< XsltArgumentList > &args, const SharedPtr< IO::Stream > &output)
Transforms the XML data in the XPathNavigator using the specified args and outputs the result to a St...
void Transform(const String &inputfile, const String &outputfile)
Transforms the XML data in the input file and outputs the result to an output file.
void Transform(const SharedPtr< System::Xml::XPath::IXPathNavigable > &input, const SharedPtr< XsltArgumentList > &args, const SharedPtr< XmlWriter > &output)
Transforms the XML data in the IXPathNavigable using the specified args and outputs the result to an ...
void Load(const String &url)
Loads the XSLT style sheet specified by a URL.
void Transform(const SharedPtr< System::Xml::XPath::XPathNavigator > &input, const SharedPtr< XsltArgumentList > &args, const SharedPtr< IO::Stream > &output, const SharedPtr< System::Xml::XmlResolver > &resolver)
Transforms the XML data in the XPathNavigator using the specified args and outputs the result to a St...
void Transform(const SharedPtr< System::Xml::XPath::XPathNavigator > &input, const SharedPtr< XsltArgumentList > &args, const SharedPtr< XmlWriter > &output)
Transforms the XML data in the XPathNavigator using the specified args and outputs the result to an X...
void Transform(const SharedPtr< System::Xml::XPath::XPathNavigator > &input, const SharedPtr< XsltArgumentList > &args, const SharedPtr< IO::TextWriter > &output)
Transforms the XML data in the XPathNavigator using the specified args and outputs the result to a Te...
SharedPtr< XmlReader > Transform(const SharedPtr< System::Xml::XPath::XPathNavigator > &input, const SharedPtr< XsltArgumentList > &args, const SharedPtr< System::Xml::XmlResolver > &resolver)
Transforms the XML data in the XPathNavigator using the specified args and outputs the result to an X...
void Load(const SharedPtr< XmlReader > &stylesheet, const SharedPtr< System::Xml::XmlResolver > &resolver)
Loads the XSLT style sheet contained in the XmlReader.
void Transform(const SharedPtr< System::Xml::XPath::IXPathNavigable > &input, const SharedPtr< XsltArgumentList > &args, const SharedPtr< IO::Stream > &output)
Transforms the XML data in the IXPathNavigable using the specified args and outputs the result to a S...
void Transform(const SharedPtr< System::Xml::XPath::IXPathNavigable > &input, const SharedPtr< XsltArgumentList > &args, const SharedPtr< XmlWriter > &output, const SharedPtr< System::Xml::XmlResolver > &resolver)
Transforms the XML data in the IXPathNavigable using the specified args and outputs the result to an ...
void Load(const String &url, const SharedPtr< System::Xml::XmlResolver > &resolver)
Loads the XSLT style sheet specified by a URL.
void Load(const SharedPtr< System::Xml::XPath::IXPathNavigable > &stylesheet, const SharedPtr< System::Xml::XmlResolver > &resolver)
Loads the XSLT style sheet contained in the IXPathNavigable.
class ASPOSECPP_SHARED_CLASS List
Definition: ienumerable.h:18
@ 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