📄 index.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>Portable Windows Library</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center><hr><h1>Portable Windows Library</h1><p><h3 align="center">1.8.0</h3><p><h2><a name="contents">Table of Contents</a></h2><p><ul><li> <a href="index.html#intro">Introduction</a> <li> <a href="index.html#overview">Overview</a> <li> <a href="index.html#using">Using PWLib</a> <li> <a href="index.html#base">Base Classes</a> <li> <a href="index.html#components">Console Components</a> <li> <a href="index.html#history">History</a></ul><h2><a name="intro">Introduction</a></h2><p>This document provides reference information for the PWLib C++ class library. It is not intended as a tutorial document.<p>Last updated 17 May, 2004<p>Copyright (C) 1999-2003 Equivalence Pty Ltd, All right reserved<p>Portions Copyright (C) 2004 Post Increment, All Rights Reserved<p><h2><a name="overview">Overview</a></h2><p>PWLib is a moderately large C++ class library that originated many years ago as a method to produce applications that run on both Microsoft Windows and Unix X-Windows systems. It also was to have a Macintosh port as well, but this never eventuated.<p>Since then, the availability of multi-platform GUI toolkits such as KDE and wxWindows, and the development of the OpenH323 project as primary user of the library, has emphasised the focus on networking, I/O portability, multi-threading and portability. Mostly, the library is used to create high performance and highly portable network-centric applications.<p>In addition to these high level functions, basic "container" classes such as arrays, linear lists, sorted lists (RB Tree) and dictionaries (hash tables) are available. These were created before the emergence of STL as a standard, so unfortunately these constructs are incompatible with iterators and generic algorithms. Development continues in this area, and future versions of PWLIB will see increased use of, and compatibility with, STL<p>The library is used extensively by many companies for both commercial and Open Source products. The motivation in making PWLib available as Open Source was primarily to support the OpenH323 project, but it is definitely useful as a stand-alone library.<p>The classes within PWLib are seperated into two types: <a href="index.html#base">Base Classes</a> and <a href="index.html#components">Console Components</a> The <a href="index.html#base">Base Classes</a> contain all of the essential support for constructs such as containers, threads and sockets that are dependent on platform specific features. All PWLib programs will require the <a href="index.html#base">Base Classes</a><p>The <a href="index.html#components">Console Components</a> implement functionality that is usually platform independent, and may not be required for all programs. On some platforms (notably Windows) the <a href="index.html#base">Base Classes</a> and <a href="index.html#components">Console Components</a> may be divided into discrete library archives. Other platforms (notably Unix platforms) combine all of the code into a single library and rely on the linker to omit code that is not required.<p>Note that previous versions of PWLib also contained GUI classes and GUI components, but support for these classes has been discontinued.<p><h2><a name="using">Using PWLib</a></h2> Tutorial introductions for PWLib are available elsewhere (see <a href="http://toncar.cz/openh323/tut">http://toncar.cz/openh323/tut</a>), but some information on how to create a simple program is always useful.<p>Here is the canonical "Hello world!" program written using the PWLib infrastructure.<p><div class="fragment"><pre>// hello.cxx#include <ptlib.h>class Hello : public PProcess{ PCLASSINFO(Hello, PProcess) public:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -