CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
serialization_info.h
1
2#ifndef _aspose_serialization_info_h_
3#define _aspose_serialization_info_h_
4
5#include "system/object.h"
6#include "system/shared_ptr.h"
7#include "system/string.h"
8#include "system/exceptions.h"
9#include <system/type_info.h>
10
11namespace System { namespace Runtime { namespace Serialization {
12
14class IFormatterConverter;
15
21class ASPOSECPP_SHARED_CLASS SerializationInfo : public Object
22{
24 RTTI_INFO(SerializationInfo, ::System::BaseTypesInfo<System::Object>)
25public:
29 ASPOSECPP_SHARED_API SerializationInfo(const System::TypeInfo& type, const System::SharedPtr<IFormatterConverter>& converter);
33 ASPOSECPP_SHARED_API void AddValue(const System::String& name, float value);
37 ASPOSECPP_SHARED_API void AddValue(const System::String& name, short value);
41 ASPOSECPP_SHARED_API void AddValue(const System::String& name, bool value);
45 ASPOSECPP_SHARED_API void AddValue(const System::String& name, const System::SharedPtr<System::Object>& value);
50 ASPOSECPP_SHARED_API void AddValue(const System::String& name, const System::SharedPtr<System::Object>& value, const System::TypeInfo& type);
54 ASPOSECPP_SHARED_API System::SharedPtr<System::Object> GetValue(const System::String& name, const System::TypeInfo& type);
55};
56
57}}}
58
59#endif
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Holds set of named fields representing serialized object. Not implemented. Objects of this class shou...
Definition: serialization_info.h:22
void AddValue(const System::String &name, bool value)
Puts boolean value. Not implemented.
void AddValue(const System::String &name, const System::SharedPtr< System::Object > &value, const System::TypeInfo &type)
Puts object value with specifed type. Not implemented.
SerializationInfo(const System::TypeInfo &type, const System::SharedPtr< IFormatterConverter > &converter)
RTTI information.
void AddValue(const System::String &name, const System::SharedPtr< System::Object > &value)
Puts object value. Not implemented.
System::SharedPtr< System::Object > GetValue(const System::String &name, const System::TypeInfo &type)
Retrieves a value from the SerializationInfo store. Not implemented.
void AddValue(const System::String &name, float value)
Puts float value. Not implemented.
void AddValue(const System::String &name, short value)
Puts short value. Not implemented.
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
Definition: db_command.h:9