CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_node_changed_event_args.h
1
2
3#pragma once
4
5#include <xml/xml_node_changed_action.h>
6#include <system/string.h>
7#include <system/eventargs.h>
8
9
11namespace System
12{
13namespace Xml
14{
15class XmlNode;
16} // namespace Xml
17} // namespace System
19
20namespace System {
21
22namespace Xml {
23
29class ASPOSECPP_SHARED_CLASS XmlNodeChangedEventArgs : public EventArgs
30{
32 typedef EventArgs BaseType;
33
34 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
35 ASPOSECPP_SHARED_RTTI_INFO_DECL();
36
37public:
38
41
42public:
43
48 ASPOSECPP_SHARED_API XmlNodeChangedAction get_Action();
51 ASPOSECPP_SHARED_API SharedPtr<XmlNode> get_Node();
56 ASPOSECPP_SHARED_API SharedPtr<XmlNode> get_OldParent();
61 ASPOSECPP_SHARED_API SharedPtr<XmlNode> get_NewParent();
68 ASPOSECPP_SHARED_API String get_OldValue();
74 ASPOSECPP_SHARED_API String get_NewValue();
75
83 ASPOSECPP_SHARED_API XmlNodeChangedEventArgs(const SharedPtr<XmlNode>& node, const SharedPtr<XmlNode>& oldParent, const SharedPtr<XmlNode>& newParent, const String& oldValue, const String& newValue, XmlNodeChangedAction action);
84
85protected:
86
88 #ifdef ASPOSE_GET_SHARED_MEMBERS
89 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
90 #endif
92
93private:
94
97 SharedPtr<XmlNode> _oldParent;
98 SharedPtr<XmlNode> _newParent;
99 String _oldValue;
100 String _newValue;
101
102};
103
104} // namespace Xml
105} // namespace System
106
107
The base class for classes that represent a context that is passed to the event subscribers when an e...
Definition: eventargs.h:19
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
Provides data for the XmlDocument::NodeChanged, XmlDocument::NodeChanging, XmlDocument::NodeInserted,...
Definition: xml_node_changed_event_args.h:30
SharedPtr< XmlNode > get_Node()
Returns the XmlNode that is being added, removed or changed.
SharedPtr< XmlNode > get_NewParent()
Returns the value of the XmlNode::get_ParentNode after the operation completes.
XmlNodeChangedEventArgs(const SharedPtr< XmlNode > &node, const SharedPtr< XmlNode > &oldParent, const SharedPtr< XmlNode > &newParent, const String &oldValue, const String &newValue, XmlNodeChangedAction action)
Initializes a new instance of the XmlNodeChangedEventArgs class.
SharedPtr< XmlNode > get_OldParent()
Returns the value of the XmlNode::get_ParentNode before the operation began.
String get_OldValue()
Returns the original value of the node.
String get_NewValue()
Returns the new value of the node.
XmlNodeChangedAction get_Action()
Returns a value indicating what type of node change event is occurring.
@ Xml
Serialize according to the XML 1.0 rules.
XmlNodeChangedAction
Specifies the type of node change.
Definition: xml_node_changed_action.h:15
Definition: db_command.h:9