由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - Does C++ have serializer and deserialzier
相关主题
Boost.Serialization no longer maintained?求教:用哪种语言图形化显示结果比较方便
[合集] java怎么这么怪呀?问一道有关C++ (de)serialization的问题,谢谢!
boost serialization的问题JAVA的初衷本来就是C++太复杂了,productivity不行
serialization 到底该怎么理解啊?本站身家超过32亿美元的著名程序员魏老师 (转载)
如何快速保存大块数据(工作中遇到的问题)我总算明白最近java那批人怎么这么急了
[合集] C++ question -- how to save objectsASIO TCP传送JSON如何知道包结束?
PC 9-bit Serial Communication如何实现求教:c++中如何从raw data中创建对象?
程序占用很大内存这道题贴过没有?
相关话题的讨论汇总
话题: c++话题: does话题: serializer话题: serialize
进入Programming版参与讨论
1 (共1页)
s****e
发帖数: 282
1
like the one Java has?
O*******d
发帖数: 20343
2
没有
j********g
发帖数: 88
3
nor does C#
g*****g
发帖数: 34805
4
How does C# replicate a web session if there's no standard way
to serialize objects?

【在 j********g 的大作中提到】
: nor does C#
L*********r
发帖数: 92
5
first, serialize is not a feature of language. it can be a feature provided
by sdk. c++ can implement serialize for sure but there might be no standard
way in c++.
the serialize in .net or c# is very good.
first you define the content to be serialized using different pattern. it
can be very simple or complicate. the simple way is to use marker attribute(
the annotation in java). this simple way is almost same as java.
second, you define what is the target format for serialized content. the
forma

【在 g*****g 的大作中提到】
: How does C# replicate a web session if there's no standard way
: to serialize objects?

g*****g
发帖数: 34805
6
Sure C++ can provide serialization, but probably not
without some custom scheme, which is due to its lack of
reflection mechanism. i.e. You can't just say I want to serialize
this object and let SDK do it, at least not in object code level,
you have to provide an implementation to
actually do that. Correct me if I am wrong in that.

provided
standard
attribute(

【在 L*********r 的大作中提到】
: first, serialize is not a feature of language. it can be a feature provided
: by sdk. c++ can implement serialize for sure but there might be no standard
: way in c++.
: the serialize in .net or c# is very good.
: first you define the content to be serialized using different pattern. it
: can be very simple or complicate. the simple way is to use marker attribute(
: the annotation in java). this simple way is almost same as java.
: second, you define what is the target format for serialized content. the
: forma

L*********r
发帖数: 92
7
you are right. at least, it is the way that i did in c++, even it is
interface based but still need to manually write code to write/read data
into archive stream.

【在 g*****g 的大作中提到】
: Sure C++ can provide serialization, but probably not
: without some custom scheme, which is due to its lack of
: reflection mechanism. i.e. You can't just say I want to serialize
: this object and let SDK do it, at least not in object code level,
: you have to provide an implementation to
: actually do that. Correct me if I am wrong in that.
:
: provided
: standard
: attribute(

y****i
发帖数: 156
1 (共1页)
进入Programming版参与讨论
相关主题
这道题贴过没有?如何快速保存大块数据(工作中遇到的问题)
reinterpret cast的问题[合集] C++ question -- how to save objects
Help to compile boost serializationPC 9-bit Serial Communication如何实现
problem with C# serial port programming程序占用很大内存
Boost.Serialization no longer maintained?求教:用哪种语言图形化显示结果比较方便
[合集] java怎么这么怪呀?问一道有关C++ (de)serialization的问题,谢谢!
boost serialization的问题JAVA的初衷本来就是C++太复杂了,productivity不行
serialization 到底该怎么理解啊?本站身家超过32亿美元的著名程序员魏老师 (转载)
相关话题的讨论汇总
话题: c++话题: does话题: serializer话题: serialize