CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
data_object.h
1#pragma once
2
3#include <xml/xml_node_list.h>
4#include <xml/xml_element.h>
5#include <xml/xml_document.h>
6#include <system/string.h>
7#include <system/shared_ptr.h>
8#include <system/object.h>
9
10namespace System { namespace Security { namespace Cryptography { namespace Xml { class Signature; } } } }
11namespace System { namespace Security { namespace Cryptography { namespace Xml { class SignedXml; } } } }
12namespace System { namespace Security { namespace Cryptography { namespace Xml { class CanonicalXmlNodeList; } } } }
13
14namespace System { namespace Security { namespace Cryptography { namespace Xml {
15
16namespace Details { struct SignedXmlImpl; }
17
22class ASPOSECPP_SHARED_CLASS DataObject : public Object
23{
24 typedef DataObject ThisType;
25 typedef Object BaseType;
26
27 typedef BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
28 ASPOSECPP_SHARED_RTTI_INFO_DECL();
29
30 friend class Signature;
31 friend class SignedXml;
32 friend struct Details::SignedXmlImpl;
33
34public:
35
36 ASPOSECPP_SHARED_API String get_Id();
37 ASPOSECPP_SHARED_API void set_Id(String value);
39 ASPOSECPP_SHARED_API void set_Data(SharedPtr<System::Xml::XmlNodeList> value);
40
41 ASPOSECPP_SHARED_API DataObject();
42
43protected:
44
48#ifdef ASPOSE_GET_SHARED_MEMBERS
49 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
50#endif
51
52private:
53
54 String _id;
55 String _mimeType;
56 String _encoding;
59
60 bool get_CacheValid();
61
62};
63
64}}}} // System::Security::Cryptography::Xml
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Defines a format-independent mechanism for data transfer. Objects of this class should only be alloca...
Definition: data_object.h:23
void LoadXml(SharedPtr< System::Xml::XmlElement > value)
void set_Data(SharedPtr< System::Xml::XmlNodeList > value)
SharedPtr< System::Xml::XmlElement > GetXml(SharedPtr< System::Xml::XmlDocument > document)
SharedPtr< System::Xml::XmlNodeList > get_Data()
SharedPtr< System::Xml::XmlElement > GetXml()
Used for XML signing and verification. Objects of this class should only be allocated using System::M...
Definition: signed_xml.h:30
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
@ Signature
Asymmetric exchange key.
@ Xml
Serialize according to the XML 1.0 rules.
Definition: db_command.h:9