Changeset 70:7882bccb87a0 in xplra for doc


Ignore:
Timestamp:
04/13/13 12:54:56 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added the description of the C API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/overview.dox

    r69 r70  
    2525 * computer that runs X-Plane, but extending it with TCP/IP-based or
    2626 * network access would not be difficult. While client libraries are
    27  * provided for \ref cpplib "C, C++" and \ref pythonlib "Python",
     27 * provided for \ref cppapi "C, C++" and \ref pythonapi "Python",
    2828 * the communication protocol between clients and the plugin is open
    2929 * and is \ref proto "described" in  this documentation. So you can
     
    699699 * byte | 0x00 (\ref RESULT_OK)
    700700 */
    701 /*! \page cpplib C/C++ Client Library
    702  *
    703  * The C++ client library's central class is \ref
     701/*! \page cppapi C/C++ Client API
     702 *
     703 * The C++ client API's central class is \ref
    704704 * hu::varadiistvan::xplra::XPlane. To communicate with the XPLRA
    705705 * plugin in X-Plane, create an instance of it. This, however, does
     
    710710 *
    711711 * \c IOException is part of the exception hierarchy of the client
    712  * library. The hierarchy begins with \ref
     712 * API. The hierarchy begins with \ref
    713713 * hu::varadiistvan::xplra::Exception. The \c what function is
    714714 * implemented for all exception classes, so you can always get a
     
    752752 * have more than one corresponding functions with different
    753753 * parameters for convenience.
     754 *
     755 * The \ref src/client/c/hu/varadiistvan/xplra/xplra.h "C API" is
     756 * a wrapper over the C++ one, so its logic is essentially the
     757 * same. To connect to X-Plane, call \ref xplra_connect. It returns a
     758 * non-negative handle, which can be used to refer to the connection
     759 * (i.e. the underlying \c XPlane object) in the other functions.
     760 *
     761 * In case of error, it, and most other functions of the C returns
     762 * -1. To check what the last error was, call \ref
     763 * xplra_get_last_error or \ref xplra_get_last_error_string.
     764 *
     765 * You can create multi-dataref buffers with C API as well with
     766 * \ref xplra_multi_create_getter and \ref
     767 * xplra_multi_create_setter. These return a buffer ID on success, and
     768 * you should use that buffer ID later on to manipulate the buffer.
    754769 */
    755 /*! \page pythonlib Python Client Library
     770/*! \page pythonapi Python Client API
    756771 *
    757772 */
Note: See TracChangeset for help on using the changeset viewer.