hwsd  2.0.0
Local and remote ZeroConf service discovery for hardware resources
hwsd::GPUInfo Struct Reference

A structure containing GPU-specific information. More...

#include <gpuInfo.h>

+ Inheritance diagram for hwsd::GPUInfo:
+ Collaboration diagram for hwsd::GPUInfo:

Public Member Functions

 GPUInfo ()
 Default constructor. More...
 
 GPUInfo (const std::string &name)
 Constructor taking a specific GPU type. More...
 
void invalidatePVP ()
 Invalidate the pixel viewport. More...
 
bool operator== (const GPUInfo &rhs) const
 
bool operator!= (const GPUInfo &rhs) const
 
std::string getName () const
 
- Public Member Functions inherited from hwsd::NodeInfo
 NodeInfo ()
 Default constructor describing a local session. More...
 
bool operator== (const NodeInfo &rhs) const
 
bool operator!= (const NodeInfo &rhs) const
 
bool isLocal () const
 

Public Attributes

unsigned type
 Four-character code of the GPU type. More...
 
unsigned port
 The display (GLX) or ignored (WGL, AGL). More...
 
unsigned device
 The screen (GLX, WGL), GPU (WGLn, WGLa) or virtual screen (AGL). More...
 
int pvp [4]
 The size and location of the GPU (x,y,w,h). More...
 
unsigned flags
 bitmask of additional GPU capabilities
 
unsigned unused
 
- Public Attributes inherited from hwsd::NodeInfo
servus::uint128_t id
 Random unique ID identifing the origin node. More...
 
std::string nodeName
 System hostname if remote, empty for local. More...
 
std::string session
 The session name: local, default or custom string. More...
 

Static Public Attributes

static const unsigned FLAG_VIRTUALGL = 0x1
 Process runs under VirtualGL. More...
 
static const unsigned FLAG_VIRTUALGL_DISPLAY = 0x2
 VirtualGL redirect GPU. More...
 
static const unsigned FLAG_VNC = 0x4
 Virtual device provided by a VNC X server. More...
 
static const unsigned FLAG_DEFAULT = 0x8
 Default GPU pointed by the DISPLAY variable (GLX only). More...
 

Additional Inherited Members

- Static Public Member Functions inherited from hwsd::NodeInfo
static bool isLocal (const std::string &name)
 
static std::string getLocalSession ()
 

Detailed Description

A structure containing GPU-specific information.

Definition at line 32 of file gpuInfo.h.

Constructor & Destructor Documentation

hwsd::GPUInfo::GPUInfo ( )

Default constructor.

Port and device have undefined values in the initial state.

Version
2.0
hwsd::GPUInfo::GPUInfo ( const std::string &  name)
explicit

Constructor taking a specific GPU type.

The information name is a type code of four characters. The passed string is formatted accordingly.

Port and device have undefined values in the initial state.

Parameters
namethe type of the GPU.
Version
1.0

Member Function Documentation

std::string hwsd::GPUInfo::getName ( ) const
Returns
the type name string of this information.
Version
1.0
void hwsd::GPUInfo::invalidatePVP ( )

Invalidate the pixel viewport.

Version
1.0
bool hwsd::GPUInfo::operator!= ( const GPUInfo rhs) const
Returns
true if both infos are not identical.
Version
1.0
bool hwsd::GPUInfo::operator== ( const GPUInfo rhs) const
Returns
true if both informations are identical.
Version
1.0

Member Data Documentation

unsigned hwsd::GPUInfo::device

The screen (GLX, WGL), GPU (WGLn, WGLa) or virtual screen (AGL).

Version
1.0

Definition at line 89 of file gpuInfo.h.

const unsigned hwsd::GPUInfo::FLAG_DEFAULT = 0x8
static

Default GPU pointed by the DISPLAY variable (GLX only).

Definition at line 46 of file gpuInfo.h.

const unsigned hwsd::GPUInfo::FLAG_VIRTUALGL = 0x1
static

Process runs under VirtualGL.

Version
1.1.2

Definition at line 35 of file gpuInfo.h.

const unsigned hwsd::GPUInfo::FLAG_VIRTUALGL_DISPLAY = 0x2
static

VirtualGL redirect GPU.

Version
1.1.2

Definition at line 38 of file gpuInfo.h.

const unsigned hwsd::GPUInfo::FLAG_VNC = 0x4
static

Virtual device provided by a VNC X server.

Detection looks for the X extension VNC-EXTENSION

Version
1.2.1

Definition at line 43 of file gpuInfo.h.

unsigned hwsd::GPUInfo::port

The display (GLX) or ignored (WGL, AGL).

Version
1.0

Definition at line 83 of file gpuInfo.h.

int hwsd::GPUInfo::pvp[4]

The size and location of the GPU (x,y,w,h).

Version
1.0

Definition at line 92 of file gpuInfo.h.

unsigned hwsd::GPUInfo::type

Four-character code of the GPU type.

Version
1.0

Definition at line 80 of file gpuInfo.h.


The documentation for this struct was generated from the following file: