天天看點

分析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下的同名版權聲明檔案
           

繼續閱讀