CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
enum_converter.h
1
2#ifndef _system_component_model_enum_converter_h_
3#define _system_component_model_enum_converter_h_
4
5#include "system/shared_ptr.h"
6#include "system/type_info.h"
7#include "system/globalization/culture_info.h"
8
9#include "system/component_model/type_converter.h"
10#include "system/component_model/itype_descriptor_context.h"
11
12namespace System { namespace ComponentModel {
13
18class ASPOSECPP_SHARED_CLASS EnumConverter : public TypeConverter
19{
21 RTTI_INFO(EnumConverter, ::System::BaseTypesInfo<TypeConverter>)
22public:
24 ASPOSECPP_SHARED_API EnumConverter(const System::TypeInfo& type);
25
27 ASPOSECPP_SHARED_API bool CanConvertFrom(const System::SharedPtr<ITypeDescriptorContext>& context, const System::TypeInfo& sourceType);
29 ASPOSECPP_SHARED_API bool CanConvertTo(const System::SharedPtr<ITypeDescriptorContext>& context, const System::TypeInfo& destinationType);
30
37 const System::TypeInfo& destinationType) override;
38
40 ASPOSECPP_SHARED_API const System::TypeInfo& get_EnumType();
41};
42
43}} // System::ComponentModel
44#endif
Dummy class for EnumConverter-using translated code to compile. Objects of this class should only be ...
Definition: enum_converter.h:19
const System::TypeInfo & get_EnumType()
Gets enum type EnumConverter is working with; not implemented.
System::SharedPtr< System::Object > ConvertTo(const System::SharedPtr< ITypeDescriptorContext > &context, const System::SharedPtr< System::Globalization::CultureInfo > &culture, const System::SharedPtr< System::Object > &value, const System::TypeInfo &destinationType) override
Does actual type conversion; not implemented.
bool CanConvertFrom(const System::SharedPtr< ITypeDescriptorContext > &context, const System::TypeInfo &sourceType)
Checks if types are convertible; not implemented.
EnumConverter(const System::TypeInfo &type)
RTTI information.
System::SharedPtr< System::Object > ConvertFrom(const System::SharedPtr< ITypeDescriptorContext > &context, const System::SharedPtr< System::Globalization::CultureInfo > &culture, const System::SharedPtr< System::Object > &value) override
Does actual type conversion; not implemented.
bool CanConvertTo(const System::SharedPtr< ITypeDescriptorContext > &context, const System::TypeInfo &destinationType)
Checks if types are convertible; not implemented.
Class that handles type conversion in component model. Objects of this class should only be allocated...
Definition: type_converter.h:18
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
Represents a particular type and provides information about it.
Definition: type_info.h:109
Definition: db_command.h:9