![]() |
PIP 5.6.1
Platform-Independent Primitives
|
Many novice programmers face common tasks when interacting with the system: output to console, detecting keyboard presses, working with serial ports, ethernet or files, and more. This library addresses these tasks; code based on PIP will compile and work similarly on many systems: Windows, any Linux, Red Hat, FreeBSD, MacOS X and QNX. Typical application on PIP looks like this:
This code demonstrates simple interactive configurable program, which can be started with console display or not, and with debug or not. MainClass is central class that also can be inherited from PIThread and reimplement run() function.
Many PIP classes have events and event handlers, which can be connected one to another. Details you can see at PIObject reference page (Events and Event handlers).
To configure your program from file use PIConfig (see Configuration from file).
For more topics see Further topics.