天天看点

分析live555源码第1集:UsageEnvironment作用和目录结构

对于UsageEnvironment目录,官方解释为:

The "UsageEnvironment" and "TaskScheduler" classes are used for scheduling deferred events, for assigning handlers for asynchronous read events, and for outputting error/warning messages. Also, the "HashTable" class defines the interface to a generic hash table, used by the rest of the code. These are all abstract base classes; they must be subclassed for use in an implementation. These subclasses can exploit the particular properties of the environment in which the program will run - e.g., its GUI and/or scripting environment.

中文意思:

UsageEnvironment和TaskScheduler类用于调度延迟事件、异步读事件分配处理程序和输出错误/警告信息。HashTbale类定义一个通用哈希表的接口,被用于其它代码。这些类都是基础抽象类,其必须在子类实现,才能进行使用。可以根据运行程序的环境(例如:GUI或脚本环境),开发其子类的特殊属性。

其目录结构为:

live/UsageEnvironment //使用环境类目录
├── include  //头文件
│ ├── Boolean.hh //全局布尔变量头文件

│ ├── HashTable.hh //哈希标头文件

│ ├── strDup.hh //标准C库函数strDup的C++实现对应头文件

│ ├── UsageEnvironment.hh //使用环境头文件

│ ├── UsageEnvironment_version.hh //使用环境版本头文件
├── HashTable.cpp //通用哈希表基类对应成员函数的实现
├── strDup.cpp //strDup的C++实现
├── UsageEnvironment.cpp //使用环境基类对应成员函数的实现

├── Makefile.tail //用于生成Makefile文件
├── Makefile.head //用于生成Makefile文件
├── COPYING.LESSER //版权声明,引用根目录live下的同名版权声明文件

├── COPYING //版权声明,引用根目录live下的同名版权声明文件
           

继续阅读