Delphi的Bson库? [英] Bson library for Delphi?

查看:369
本文介绍了Delphi的Bson库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以为Delphi建议一个完整的Bson库吗?
我试图使用 http:// code来自 http://bsonspec.org的.google.com / p / pebongo / source / browse / trunk / _bson.pas / a>,但有一些不支持的结构。






或者也许我没有正确使用它,像这个类没有文档,我找不到正确的用法。



我想创建一个项目列表,这个项目是我的可序列化的对象。

但是如何创建列表并将项放在列表上?

解决方案

在Delphi之前创建了一个BSON实现,大量基于Delphi中现有的Variant类型(及其TVarType)。它也支持一些变体数组。



请参阅bsonDoc.pas:
https://github.com/stijnsanders/TMongoWire


Can someone suggest a complete Bson library for Delphi ? I'm trying to use http://code.google.com/p/pebongo/source/browse/trunk/_bson.pas from http://bsonspec.org, but there are some structures that aren't supported.


Or maybe I'm not using it correctly, like this class doesn't have documentation I can not find the correct usage for it.

I want to create a list of items, this items are my serializable objects.
But how to create a list and put item on a "list" ?

解决方案

I've created a BSON implementation for Delphi before, heavily based on the existing Variant type in Delphi (and its TVarType). It also supports variant-arrays to some point.

see bsonDoc.pas: https://github.com/stijnsanders/TMongoWire

这篇关于Delphi的Bson库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆