CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xslt_argument_list.h
1
2
3#pragma once
4
5#include <system/string.h>
6#include <system/multicast_delegate.h>
7#include <system/eventargs.h>
8
9
11namespace System
12{
13namespace Collections
14{
15namespace Generic
16{
17template <typename, typename> class Dictionary;
18} // namespace Generic
19} // namespace Collections
20namespace Xml
21{
22class XmlQualifiedName;
23} // namespace Xml
24} // namespace System
26
27namespace System {
28
29namespace Xml {
30
31namespace Xsl {
32
34class ASPOSECPP_SHARED_CLASS XsltMessageEncounteredEventArgs : public EventArgs
35{
37 typedef EventArgs BaseType;
38
39 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
40 ASPOSECPP_SHARED_RTTI_INFO_DECL();
41
42public:
43
46
47public:
48
51 virtual ASPOSECPP_SHARED_API String get_Message() = 0;
52
53};
54
59
64class ASPOSECPP_SHARED_CLASS XsltArgumentList : public System::Object
65{
68
69 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
70 ASPOSECPP_SHARED_RTTI_INFO_DECL();
71
72public:
73
76
77public:
78
81
83 ASPOSECPP_SHARED_API XsltArgumentList();
84
91 ASPOSECPP_SHARED_API SharedPtr<Object> GetParam(const String& name, const String& namespaceUri);
95 ASPOSECPP_SHARED_API SharedPtr<Object> GetExtensionObject(const String& namespaceUri);
104 ASPOSECPP_SHARED_API void AddParam(const String& name, const String& namespaceUri, const SharedPtr<Object>& parameter);
111 ASPOSECPP_SHARED_API void AddExtensionObject(const String& namespaceUri, const SharedPtr<Object>& extension);
118 ASPOSECPP_SHARED_API SharedPtr<Object> RemoveParam(const String& name, const String& namespaceUri);
122 ASPOSECPP_SHARED_API SharedPtr<Object> RemoveExtensionObject(const String& namespaceUri);
124 ASPOSECPP_SHARED_API void Clear();
125
126protected:
127
129 #ifdef ASPOSE_GET_SHARED_MEMBERS
130 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
131 #endif
133
134private:
135
138
139 static void CheckArgumentNull(const SharedPtr<Object>& param, const String& paramName);
140
141};
142
143} // namespace Xsl
144} // namespace Xml
145} // namespace System
146
147
The base class for classes that represent a context that is passed to the event subscribers when an e...
Definition: eventargs.h:19
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
Contains a variable number of arguments which are either XSLT parameters or extension objects.
Definition: xslt_argument_list.h:65
SharedPtr< Object > GetParam(const String &name, const String &namespaceUri)
Returns the parameter associated with the namespace qualified name.
SharedPtr< Object > GetExtensionObject(const String &namespaceUri)
Returns the object associated with the given namespace.
SharedPtr< Object > RemoveParam(const String &name, const String &namespaceUri)
Removes the parameter from the XsltArgumentList.
void AddExtensionObject(const String &namespaceUri, const SharedPtr< Object > &extension)
Adds a new object to the XsltArgumentList and associates it with the namespace URI.
void Clear()
Removes all parameters and extension objects from the XsltArgumentList.
XsltMessageEncounteredEventHandler XsltMessageEncountered
Occurs when a message is specified in the style sheet by the xsl:message element.
Definition: xslt_argument_list.h:80
XsltArgumentList()
Implements a new instance of the XsltArgumentList.
void AddParam(const String &name, const String &namespaceUri, const SharedPtr< Object > &parameter)
Adds a parameter to the XsltArgumentList and associates it with the namespace qualified name.
SharedPtr< Object > RemoveExtensionObject(const String &namespaceUri)
Removes the object with the namespace URI from the XsltArgumentList.
Provides data for the XsltArgumentList::XsltMessageEncountered event.
Definition: xslt_argument_list.h:35
virtual String get_Message()=0
Returns the contents of the xsl:message element.
System::MulticastDelegate< void(SharedPtr< Object >, SharedPtr< XsltMessageEncounteredEventArgs >)> XsltMessageEncounteredEventHandler
Represents the method that will handle the XsltArgumentList::XsltMessageEncountered event.
Definition: xslt_argument_list.h:58
@ Xml
Serialize according to the XML 1.0 rules.
Definition: db_command.h:9