20080709 Protocol Buffers svn:externals SchemaExplorer 一般来说,一个项目一个Svn Repository,但有时这个项目会引用到另外一个Svn Repository的代码。如公司内部的所有的项目都引用framework的代码。并且是希望各个项目都能实时更新到framework的最新代码。这样的话,通过svn:externals就可以实现这样的效果了。 方法是。如项目里的一个文件夹“JavaSource”,然后希望framework的代码就放在JavaSource下,那么可以这样。给JavaSource设置svn:externals属性。 这样,然后每次更新项目的代码,就会自动更新framework的代码了。如果需要引用的Svn Repository不止一个,那可以有多行的,如: svn:externals介绍使用 最近在调整库结构,刚好SVN的上的一个属性扩展-外部定义派上用场,感觉挺好用的,就拿出来介绍给大家了。 谷歌的文档称,与具有可比性的XML文件相比,Protocol Buffers文件的尺寸要小3-10倍,解析速度要快20-100倍。 谷歌发布的免费文件包括采用Java、Python和C++编程语言编写的Protocol Buffers编译器源代码。 Protocol Buffers are a way of encoding structured data in an efficient yet extensible format. Google uses Protocol Buffers for almost all of its internal RPC protocols and file formats You write a .proto file like this: message Person { Then you compile it with protoc, the protocol buffer compiler, to produce code in C++, Java, or Python. Then, if you are using C++, you use that code like this: Person person; fstream out("person.pb", ios::out | ios::binary | ios::trunc); CodeSmith提供SchemaExplorer来得到数据结构的,如果我们有需要可以直接拿来使用。 SchemaExplorer组件编写模板。SchemaExplorer组件是一个程序集,它提供了多个可以用来浏览你数据库内容的类。 通过使用SchemaExplorer组件你可以浏览表和存储过程以及取到数据类型,唯一列,列名等信息。 字体:大 中 小 |
![]() | 永久地址 http://www.shengfang.org/blog/p/20080709ProtocolBufferssvnexternalSchemaExplorer.php |
![]() | 引用地址 http://www.shengfang.org/blog/tb.php?tb_id=1235112157 |
2009年2月20日14:42星期五 [Info资料]





