CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xpath_item.h
1
2
3#pragma once
4
5#include <system/object.h>
6#include <cstdint>
7
8
10namespace System
11{
12class DateTime;
13class String;
14class TypeInfo;
15namespace Xml
16{
17class IXmlNamespaceResolver;
18namespace Schema
19{
20class XmlSchemaType;
21} // namespace Schema
22} // namespace Xml
23} // namespace System
25
26namespace System {
27
28namespace Xml {
29
30namespace XPath {
31
33class ASPOSECPP_SHARED_CLASS XPathItem : public virtual System::Object
34{
35 typedef XPathItem ThisType;
37
38 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
39 ASPOSECPP_SHARED_RTTI_INFO_DECL();
40
41public:
42
45
46public:
47
51 virtual ASPOSECPP_SHARED_API bool get_IsNode() = 0;
57 virtual ASPOSECPP_SHARED_API String get_Value() = 0;
61 virtual ASPOSECPP_SHARED_API SharedPtr<Object> get_TypedValue() = 0;
64 virtual ASPOSECPP_SHARED_API TypeInfo get_ValueType() = 0;
69 virtual ASPOSECPP_SHARED_API bool get_ValueAsBoolean() = 0;
74 virtual ASPOSECPP_SHARED_API DateTime get_ValueAsDateTime() = 0;
80 virtual ASPOSECPP_SHARED_API double get_ValueAsDouble() = 0;
86 virtual ASPOSECPP_SHARED_API int32_t get_ValueAsInt() = 0;
92 virtual ASPOSECPP_SHARED_API int64_t get_ValueAsLong() = 0;
93
100 virtual ASPOSECPP_SHARED_API SharedPtr<Object> ValueAs(const TypeInfo& returnType);
109 virtual ASPOSECPP_SHARED_API SharedPtr<Object> ValueAs(const TypeInfo& returnType, SharedPtr<IXmlNamespaceResolver> nsResolver) = 0;
110
111};
112
113} // namespace XPath
114} // namespace Xml
115} // namespace System
116
117
Represents a specific date and time value on the time continuum. This type should be allocated on sta...
Definition: date_time.h:50
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
Represents a particular type and provides information about it.
Definition: type_info.h:109
Represents an item in the XQuery 1.0 and XPath 2.0 Data Model.
Definition: xpath_item.h:34
virtual String get_Value()=0
When overridden in a derived class, gets the string value of the item.
virtual int32_t get_ValueAsInt()=0
When overridden in a derived class, gets the item's value as an Int32.
virtual SharedPtr< System::Xml::Schema::XmlSchemaType > get_XmlType()=0
When overridden in a derived class, gets the XmlSchemaType for the item.
virtual bool get_ValueAsBoolean()=0
When overridden in a derived class, gets the item's value as a Boolean.
virtual TypeInfo get_ValueType()=0
When overridden in a derived class, gets the type of the item.
virtual double get_ValueAsDouble()=0
When overridden in a derived class, gets the item's value as a Double.
virtual SharedPtr< Object > get_TypedValue()=0
When overridden in a derived class, gets the current item as a boxed object of the most appropriate t...
virtual SharedPtr< Object > ValueAs(const TypeInfo &returnType, SharedPtr< IXmlNamespaceResolver > nsResolver)=0
When overridden in a derived class, returns the item's value as the type specified using the IXmlName...
virtual SharedPtr< Object > ValueAs(const TypeInfo &returnType)
Returns the item's value as the specified type.
virtual int64_t get_ValueAsLong()=0
When overridden in a derived class, gets the item's value as an Int64.
virtual bool get_IsNode()=0
When overridden in a derived class, gets a value indicating whether the item represents an XPath node...
virtual DateTime get_ValueAsDateTime()=0
When overridden in a derived class, gets the item's value as a DateTime.
@ TypeInfo
Specifies that the member is a type.
@ Schema
Validate according to XML Schema definition language (XSD) schemas, including inline XML Schemas....
@ Xml
Serialize according to the XML 1.0 rules.
Definition: db_command.h:9
@ DateTime
A type representing a date and time value.