Api.h
1/* Copyright (C) 2005-2013 by Dr. Marc Boris Duerner
2 SPDX-License-Identifier: LGPL-2.1-or-later WITH mif-exception
3*/
4
5#ifndef PT_SYSTEM_API_H
6#define PT_SYSTEM_API_H
7
8#include <Pt/Api.h>
9
10#define PT_SYSTEM_VERSION_MAJOR PT_VERSION_MAJOR
11#define PT_SYSTEM_VERSION_MINOR PT_VERSION_MINOR
12#define PT_SYSTEM_VERSION_REVISION PT_VERSION_REVISION
13#define PT_SYSTEM_VERSION_PRERELEASE PT_VERSION_PRERELEASE
14
15#if defined(PT_SYSTEM_API_EXPORT)
16# define PT_SYSTEM_API PT_EXPORT
17# else
18# define PT_SYSTEM_API PT_IMPORT
19# endif
20
21#endif
22
23namespace Pt {
24
33namespace System {
34
35 class Application;
36 class Clock;
37 class Condition;
38 class Directory;
39 class EventSource;
40 class EventSink;
41 class EventLoop;
42 class File;
43 class FileDevice;
44 class FileInfo;
45 class IOBuffer;
46 class IODevice;
47 class IOStream;
48 class IStream;
49 class Logger;
50 class LogChannel;
51 class LogMessage;
52 class LogTarget;
53 class MainLoop;
54 class Mutex;
55 class OStream;
56 class Path;
57 class Pipe;
58 class PluginId;
59 class Process;
60 class ReadWriteMutex;
61 class Selectable;
62 class Semaphore;
63 class SerialDevice;
64 class SharedLib;
65 class StreamBuffer;
66 class SystemError;
67 class SpinLock;
68 class Thread;
69 class Timer;
70 class Url;
71
72} // namespace System
73
74} // namespace Pt
Console process root.
Definition Application.h:74
Stopwatch, system time and monotonic ticks.
Definition Clock.h:59
Signal and wait synchronisation primitive.
Definition Condition.h:51
Event loop of a thread or process.
Definition EventLoop.h:83
Receiver for events.
Definition EventSink.h:56
Sends events to sinks in other threads.
Definition EventSource.h:62
Read and write to files.
Definition FileDevice.h:131
Provides information about a node in the file-system.
Definition FileInfo.h:104
Stream buffer for an IODevice.
Definition IOBuffer.h:60
Endpoint for I/O operations.
Definition IODevice.h:96
Bidirectional stream for an IODevice.
Definition IOStream.h:167
Input stream for an IODevice.
Definition IOStream.h:49
Logging channel.
Definition LogChannel.h:52
Logs records with a logger.
Definition Logger.h:423
Target of log-messages.
Definition LogTarget.h:63
Writes log records to a target.
Definition Logger.h:217
Platform event loop.
Definition MainLoop.h:51
Mutual exclusion device.
Definition Mutex.h:73
Output stream for an IODevice.
Definition IOStream.h:105
Represents a path in the file-system.
Definition Path.h:48
Pair of IODevice endpoints that form a half-duplex pipe.
Definition Pipe.h:57
ID for plugin exports.
Definition Plugin.h:49
Starts another program as a child process.
Definition Process.h:192
Mutex for concurrent readers or one writer.
Definition Mutex.h:286
Operation that runs through an event loop.
Definition Selectable.h:60
Counting semaphore.
Definition Semaphore.h:48
Serial port as an IODevice.
Definition SerialDevice.h:69
Scoped lock for a SpinMutex.
Definition Mutex.h:523
Exception for a failed system operation.
Definition SystemError.h:45
Portable thread of control.
Definition Thread.h:82
Interval timeout notifications.
Definition Timer.h:74
System programming
Definition Connection.h:26
Core module.
Definition Allocator.h:33