VCF::SystemToolkit Class Reference
The SystemToolkit is and abstract class used to create or get access to basic system peer instances, like threads, processes, etc. More...
#include <vcf/FoundationKit/SystemToolkit.h>
Inheritance diagram for VCF::SystemToolkit:

Static Public Member Functions | |
| static SystemToolkit * | create () |
| static void | terminate () |
| static ProcessPeer * | createProcessPeer (Process *process) |
| creates a new ProcessPeer instance | |
| static ProcessIORedirectionPeer * | createProcessIORedirectionPeer (ProcessWithRedirectedIO *process) |
| static ThreadPeer * | createThreadPeer (Thread *thread, bool mainThread) |
| creates a new ThreadPeer instance | |
| static ThreadManagerPeer * | createThreadManagerPeer () |
| static RunLoopPeer * | createRunLoopPeer (RunLoop *runLoop) |
| static RunLoopTimerPeer * | createRunLoopTimerPeer (RunLoopTimer *timer) |
| static RunLoopSourcePeer * | createRunLoopSourcePeer (RunLoopSource *source) |
| static SystemPeer * | createSystemPeer () |
| creates a new system peer | |
| static SemaphorePeer * | createSemaphorePeer (int32 initialCount=1, int32 maxCount=1) |
| static RegistryPeer * | createRegistryPeer (Registry *registry) |
| static MutexPeer * | createMutexPeer (Mutex *mutex) |
| static ConditionPeer * | createConditionPeer (Condition *condition) |
| static LibraryPeer * | createLibraryPeer (Library *library) |
| static FilePeer * | createFilePeer (File *file) |
| static FileStreamPeer * | createFileStreamPeer (const String &filename, const FileStreamAccessType &accessType) |
| static FileStreamPeer * | createFileStreamPeer (File *file) |
| static LocalePeer * | createLocalePeer () |
| static ResourceBundlePeer * | createResourceBundlePeer () |
Protected Member Functions | |
| SystemToolkit () | |
| virtual | ~SystemToolkit () |
| virtual ProcessPeer * | internal_createProcessPeer (Process *process)=0 |
| creates a new ProcessPeer instance. | |
| virtual ProcessIORedirectionPeer * | internal_createProcessIORedirectionPeer (ProcessWithRedirectedIO *process)=0 |
| A port of the FoundationKit to a new platform requires a new class that derives from the SystemToolkit and implements this method. | |
| virtual ThreadPeer * | internal_createThreadPeer (Thread *thread, bool mainThread)=0 |
| creates a new ThreadPeer instance. | |
| virtual ThreadManagerPeer * | internal_createThreadManagerPeer ()=0 |
| virtual RunLoopPeer * | internal_createRunLoopPeer (RunLoop *runLoop)=0 |
| virtual RunLoopTimerPeer * | internal_createRunLoopTimerPeer (RunLoopTimer *timer)=0 |
| virtual RunLoopSourcePeer * | internal_createRunLoopSourcePeer (RunLoopSource *source)=0 |
| virtual SystemPeer * | internal_createSystemPeer ()=0 |
| creates a new system peer A port of the FoundationKit to a new platform requires a new class that derives from the SystemToolkit and implements this method. | |
| virtual SemaphorePeer * | internal_createSemaphorePeer (int32 initialCount=1, int32 maxCount=1)=0 |
| A port of the FoundationKit to a new platform requires a new class that derives from the SystemToolkit and implements this method. | |
| virtual RegistryPeer * | internal_createRegistryPeer (Registry *registry)=0 |
| A port of the FoundationKit to a new platform requires a new class that derives from the SystemToolkit and implements this method. | |
| virtual MutexPeer * | internal_createMutexPeer (Mutex *mutex)=0 |
| A port of the FoundationKit to a new platform requires a new class that derives from the SystemToolkit and implements this method. | |
| virtual ConditionPeer * | internal_createConditionPeer (Condition *condition)=0 |
| A port of the FoundationKit to a new platform requires a new class that derives from the SystemToolkit and implements this method. | |
| virtual LibraryPeer * | internal_createLibraryPeer (Library *library)=0 |
| A port of the FoundationKit to a new platform requires a new class that derives from the SystemToolkit and implements this method. | |
| virtual FilePeer * | internal_createFilePeer (File *file)=0 |
| A port of the FoundationKit to a new platform requires a new class that derives from the SystemToolkit and implements this method. | |
| virtual FileStreamPeer * | internal_createFileStreamPeer (const String &filename, const FileStreamAccessType &accessType)=0 |
| A port of the FoundationKit to a new platform requires a new class that derives from the SystemToolkit and implements this method. | |
| virtual FileStreamPeer * | internal_createFileStreamPeer (File *file)=0 |
| A port of the FoundationKit to a new platform requires a new class that derives from the SystemToolkit and implements this method. | |
| virtual LocalePeer * | internal_createLocalePeer ()=0 |
| A port of the FoundationKit to a new platform requires a new class that derives from the SystemToolkit and implements this method. | |
| virtual ResourceBundlePeer * | internal_createResourceBundlePeer ()=0 |
Static Protected Member Functions | |
| static SystemToolkit * | getSystemToolkit () |
| returns the one and only instance of the system toolkit | |
Static Protected Attributes | |
| static SystemToolkit * | systemToolkitInstance |
Detailed Description
The SystemToolkit is and abstract class used to create or get access to basic system peer instances, like threads, processes, etc.It is a singleton factory for the various platform specific peers that are required for the FoundationKit.
The SystemToolkit is a singleton and is not intended to be created or deleted directly. It is created as part of the FoundationKit::init() and deleted as part of the FoundationKit::terminate() call.
If you are porting to a new platform you will need to derive a new class from this one and provide implementations of the various internal_createXXXPeer methods.
Constructor & Destructor Documentation
|
|
|
|
|
|
Member Function Documentation
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
creates a new ProcessPeer instance
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
creates a new system peer
|
|
|
|
|
||||||||||||
|
creates a new ThreadPeer instance
|
|
|
returns the one and only instance of the system toolkit
|
|
|
A port of the FoundationKit to a new platform requires a new class that derives from the SystemToolkit and implements this method.
Implemented in VCF::LinuxSystemToolkit, VCF::OSXSystemToolkit, and VCF::Win32SystemToolkit. |
|
|
A port of the FoundationKit to a new platform requires a new class that derives from the SystemToolkit and implements this method.
Implemented in VCF::LinuxSystemToolkit, VCF::OSXSystemToolkit, and VCF::Win32SystemToolkit. |
|
|
A port of the FoundationKit to a new platform requires a new class that derives from the SystemToolkit and implements this method.
Implemented in VCF::LinuxSystemToolkit, VCF::OSXSystemToolkit, and VCF::Win32SystemToolkit. |
|
||||||||||||
|
A port of the FoundationKit to a new platform requires a new class that derives from the SystemToolkit and implements this method.
Implemented in VCF::LinuxSystemToolkit, VCF::OSXSystemToolkit, and VCF::Win32SystemToolkit. |
|
|
A port of the FoundationKit to a new platform requires a new class that derives from the SystemToolkit and implements this method.
Implemented in VCF::LinuxSystemToolkit, VCF::OSXSystemToolkit, and VCF::Win32SystemToolkit. |
|
|
A port of the FoundationKit to a new platform requires a new class that derives from the SystemToolkit and implements this method.
Implemented in VCF::LinuxSystemToolkit, VCF::OSXSystemToolkit, and VCF::Win32SystemToolkit. |
|
|
A port of the FoundationKit to a new platform requires a new class that derives from the SystemToolkit and implements this method.
Implemented in VCF::LinuxSystemToolkit, VCF::OSXSystemToolkit, and VCF::Win32SystemToolkit. |
|
|
A port of the FoundationKit to a new platform requires a new class that derives from the SystemToolkit and implements this method.
Implemented in VCF::LinuxSystemToolkit, VCF::OSXSystemToolkit, and VCF::Win32SystemToolkit. |
|
|
creates a new ProcessPeer instance. A port of the FoundationKit to a new platform requires a new class that derives from the SystemToolkit and implements this method. Implemented in VCF::LinuxSystemToolkit, VCF::OSXSystemToolkit, and VCF::Win32SystemToolkit. |
|
|
A port of the FoundationKit to a new platform requires a new class that derives from the SystemToolkit and implements this method.
Implemented in VCF::LinuxSystemToolkit, VCF::OSXSystemToolkit, and VCF::Win32SystemToolkit. |
|
|
Implemented in VCF::LinuxSystemToolkit, VCF::OSXSystemToolkit, and VCF::Win32SystemToolkit. |
|
|
Implemented in VCF::LinuxSystemToolkit, VCF::OSXSystemToolkit, and VCF::Win32SystemToolkit. |
|
|
Implemented in VCF::LinuxSystemToolkit, VCF::OSXSystemToolkit, and VCF::Win32SystemToolkit. |
|
|
Implemented in VCF::LinuxSystemToolkit, VCF::OSXSystemToolkit, and VCF::Win32SystemToolkit. |
|
||||||||||||
|
A port of the FoundationKit to a new platform requires a new class that derives from the SystemToolkit and implements this method.
Implemented in VCF::LinuxSystemToolkit, VCF::OSXSystemToolkit, and VCF::Win32SystemToolkit. |
|
|
creates a new system peer A port of the FoundationKit to a new platform requires a new class that derives from the SystemToolkit and implements this method.
Implemented in VCF::LinuxSystemToolkit, VCF::OSXSystemToolkit, and VCF::Win32SystemToolkit. |
|
|
Implemented in VCF::LinuxSystemToolkit, VCF::OSXSystemToolkit, and VCF::Win32SystemToolkit. |
|
||||||||||||
|
creates a new ThreadPeer instance. A port of the FoundationKit to a new platform requires a new class that derives from the SystemToolkit and implements this method. Implemented in VCF::LinuxSystemToolkit, VCF::OSXSystemToolkit, and VCF::Win32SystemToolkit. |
|
|
|
Member Data Documentation
|
|
|
The documentation for this class was generated from the following file:
- vcf/FoundationKit/SystemToolkit.h
