Nebula
Loading...
Searching...
No Matches
System Namespace Reference

Classes

class  ByteOrder
 Provides information and methods to help with byte ordering issues. More...
class  Cpu
 Provides information about the system's CPU(s). More...
struct  ProcessId
struct  ProcessStartInfo

Typedefs

typedef Posix::PosixLibrary Library
typedef Ids::IdAllocator< PROCESS_INFORMATION, HANDLE, HANDLE, HANDLE, HANDLE, DWORD, DWORD, Ptr< IO::Stream >, Ptr< IO::Stream >, Util::StringProcessIdAllocator

Enumerations

enum  PlatformType { Win32 , Linux , UnknownPlatform }
enum  CpuArchType { X86_32 , X86_64 , UnknownCpuType }
enum  {
  Process_LaunchInfo = 0 , Process_StdoutRead , Process_StdoutWrite , Process_StderrRead ,
  Process_StderrWrite , Process_NumAsyncBytesRead , Process_NumAsyncBytesAvailable , Process_StdoutStream ,
  Process_StderrStream , Process_AsyncBuffer
}

Functions

template<>
__forceinline void ByteOrder::ConvertInPlace< Math::vec4 > (Type fromByteOrder, Type toByteOrder, Math::vec4 &val)
template<>
__forceinline void ByteOrder::ConvertInPlace< Math::vec4 > (Math::vec4 &val) const
template<>
__forceinline void ByteOrder::ConvertInPlace< Math::mat4 > (Type fromByteOrder, Type toByteOrder, Math::mat4 &val)
template<>
__forceinline void ByteOrder::ConvertInPlace< Math::mat4 > (Math::mat4 &val) const
 __ImplementEnumBitOperators (System::Cpu::CoreId)
template<>
__forceinline void ByteOrder::Convert< Math::float4 > (Math::float4 &val) const
template<>
__forceinline void ByteOrder::Convert< Math::matrix44 > (Math::matrix44 &val) const
ProcessId StartProcess (const ProcessStartInfo &createInfo)
 Create a process.
void UpdateProcessStreams (ProcessId processId)
 Update streams.
bool IsProcessRunning (ProcessId processId)
 Returns true if process is running (poll).
uint WaitForProcess (ProcessId processId)
 Wait for process, then frees it and returns the error code.
const char * PlatformTypeAsString (PlatformType p)
 convert platform to string
const char * CpuArchTypeAsString (CpuArchType cpu)
 convert CpuType to string
bool CreateCapturePipe (PHANDLE read, PHANDLE write)

Variables

CpuArchType CpuArch
PlatformType Platform
SizeT NumCpuCores
SizeT PageSize
ProcessIdAllocator processIdAllocator (0xFFF)

Typedef Documentation

◆ Library

◆ ProcessIdAllocator

typedef Ids::IdAllocator< PROCESS_INFORMATION, HANDLE, HANDLE, HANDLE, HANDLE, DWORD, DWORD, Ptr<IO::Stream>, Ptr<IO::Stream>, Util::String> System::ProcessIdAllocator

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
Process_LaunchInfo 
Process_StdoutRead 
Process_StdoutWrite 
Process_StderrRead 
Process_StderrWrite 
Process_NumAsyncBytesRead 
Process_NumAsyncBytesAvailable 
Process_StdoutStream 
Process_StderrStream 
Process_AsyncBuffer 

◆ CpuArchType

Enumerator
X86_32 
X86_64 
UnknownCpuType 

◆ PlatformType

Enumerator
Win32 
Linux 
UnknownPlatform 

Function Documentation

◆ __ImplementEnumBitOperators()

System::__ImplementEnumBitOperators ( System::Cpu::CoreId )

◆ ByteOrder::Convert< Math::float4 >()

template<>
__forceinline void System::ByteOrder::Convert< Math::float4 > ( Math::float4 & val) const

◆ ByteOrder::Convert< Math::matrix44 >()

template<>
__forceinline void System::ByteOrder::Convert< Math::matrix44 > ( Math::matrix44 & val) const

◆ ByteOrder::ConvertInPlace< Math::mat4 >() [1/2]

template<>
__forceinline void System::ByteOrder::ConvertInPlace< Math::mat4 > ( Math::mat4 & val) const

◆ ByteOrder::ConvertInPlace< Math::mat4 >() [2/2]

template<>
__forceinline void System::ByteOrder::ConvertInPlace< Math::mat4 > ( Type fromByteOrder,
Type toByteOrder,
Math::mat4 & val )

◆ ByteOrder::ConvertInPlace< Math::vec4 >() [1/2]

template<>
__forceinline void System::ByteOrder::ConvertInPlace< Math::vec4 > ( Math::vec4 & val) const

◆ ByteOrder::ConvertInPlace< Math::vec4 >() [2/2]

template<>
__forceinline void System::ByteOrder::ConvertInPlace< Math::vec4 > ( Type fromByteOrder,
Type toByteOrder,
Math::vec4 & val )

◆ CpuArchTypeAsString()

const char * System::CpuArchTypeAsString ( CpuArchType cpu)
inline

convert CpuType to string

◆ CreateCapturePipe()

bool System::CreateCapturePipe ( PHANDLE read,
PHANDLE write )

◆ IsProcessRunning()

bool System::IsProcessRunning ( ProcessId processId)

Returns true if process is running (poll).

◆ PlatformTypeAsString()

const char * System::PlatformTypeAsString ( PlatformType p)
inline

convert platform to string

◆ StartProcess()

ProcessId System::StartProcess ( const ProcessStartInfo & createInfo)

Create a process.

◆ UpdateProcessStreams()

void System::UpdateProcessStreams ( ProcessId processId)

Update streams.

◆ WaitForProcess()

uint System::WaitForProcess ( ProcessId processId)

Wait for process, then frees it and returns the error code.

Variable Documentation

◆ CpuArch

CpuArchType System::CpuArch

◆ NumCpuCores

SizeT System::NumCpuCores

◆ PageSize

SizeT System::PageSize

◆ Platform

PlatformType System::Platform

◆ processIdAllocator

ProcessIdAllocator System::processIdAllocator ( 0xFFF )