学习用 doxygen 生成源码文档

转载 Arpan Sen   2014-12-29 20:04

维护用 C/C++ 开发的遗留系统并添加新特性是一项艰难的任务。幸运的是,doxygen 可以帮助您完成这个任务。doxygen 是一种用于 C/C++、Java™、Python 和其他编程语言的文档系统。本文在 C/C++ 项目的上下文中讨论 doxygen 的特性,以及如何用 doxygen 定义的标记生成代码文档。

非常好的一篇介绍 doxygen 使用方法的文章,最近刚好用到 doxygen。另外 graphviz 生成的继承关系也很完整。

更多

Folly库的安装

Yeolar   2014-12-25 20:55

Folly (Facebook Open-source LibrarY) 是Facebook开源的一个C++库。以高性能和实用性为目标而打造,作为标准库和Boost的补充,满足应用领域的需求。

Folly库的一大特点是完全地面向C++11,以C++11的特性和标准库为基础而打造。所以如果你正在学习C++11/把C++11引入你的代码中/寻找C++11的库,一定不能错过它。

更多

Folly: The Facebook Open Source Library

转载 Jordan DeLong   2014-12-24 10:10

Facebook is built on open source from top to bottom, and could not exist without it. As engineers here, we use, contribute to, and release a lot of open source software, including pieces of our core infrastructure such as HipHop and Thrift.

But in our C++ services code, one clear bottleneck to releasing more work has been that any open sourced project needed to break dependencies on unreleased internal library code. To help solve that problem, today we open sourced an initial release of Folly, a collection of reusable C++ library artifacts developed and used at Facebook. This announcement was made at our C++ conference at Facebook in Menlo Park, CA.

更多

Protocol Buffers: Python Generated Code

转载 Google Developers   2014-12-23 13:56

This page describes exactly what Python definitions the protocol buffer compiler generates for any given protocol definition. You should read the language guide before reading this document.

The Python Protocol Buffers implementation is a little different from C++ and Java. In Python, the compiler only outputs code to build descriptors for the generated classes, and a Python metaclass does the real work. This document describes what you get after the metaclass has been applied.

更多

Protocol Buffer Basics: Python

转载 Google Developers   2014-12-23 13:31

This tutorial provides a basic Python programmer's introduction to working with protocol buffers. By walking through creating a simple example application, it shows you how to

  • Define message formats in a .proto file.
  • Use the protocol buffer compiler.
  • Use the Python protocol buffer API to write and read messages.

This isn't a comprehensive guide to using protocol buffers in Python. For more detailed reference information, see the Protocol Buffer Language Guide, the Python API Reference, the Python Generated Code Guide, and the Encoding Reference.

更多

GTest Advanced Guide

转载 Google Code   2014-12-21 22:14

Now that you have read Primer and learned how to write tests using Google Test, it's time to learn some new tricks. This document will show you more assertions as well as how to construct complex failure messages, propagate fatal failures, reuse and speed up your test fixtures, and use various flags with your tests.

更多

GTest入门

Yeolar   2014-12-21 22:01

GTest是Google的一套用于编写C++测试的框架,可以运行在很多平台上(包括Linux、Mac OS X、Windows、Cygwin等等)。基于xUnit架构。支持很多好用的特性,包括自动识别测试、丰富的断言、断言自定义、死亡测试、非终止的失败、生成XML报告等等。

更多

Glog使用文档

Yeolar   2014-12-20 18:07

来自Google的Glog是一个应用程序的日志库。它提供基于C++风格的流的日志API,以及各种辅助的宏。打印日志只需以流的形式传给 LOG(level) ,例如:

 1 #include <glog/logging.h>
 2 
 3 int main(int argc, char* argv[]) {
 4   // Initialize Google's logging library.
 5   google::InitGoogleLogging(argv[0]);
 6 
 7   // ...
 8   LOG(INFO) << "Found " << num_cookies << " cookies";
 9 }

Glog定义了一系列的宏来简化记录日志的工作。你可以:按级别打印日志,通过命令行控制日志行为,按条件打印日志,不满足条件时终止程序,引入自定义的日志级别,等等。

更多

TigerVNC使用教程

Yeolar   2014-12-20 11:31

VNC可以用来远程连接其他机器的桌面,类似于Windows的远程桌面。比如你需要连到一台Linux服务器上,以图形界面的方式做些操作,那就可以使用VNC了。

更多

CMake如何查找链接库

转载 Public Wiki; Yeolar [译]   2014-12-16 13:46

如果编译软件使用了外部库,事先并不知道它的头文件和链接库的位置。得在编译命令中加上包含它们的查找路径。CMake使用 find_package 命令来解决这个问题。本文讨论了如何在CMake项目中使用外部库,以及如何给没有查找模块的库写一个。

更多

  • 3/34