Monado OpenXR Runtime
ipcproto.common.HandleType Class Reference

Public Member Functions

def __init__ (self, config_dict)
 
def __str__ (self)
 
def arg_name (self)
 
def count_arg_name (self)
 
def count_arg_type (self)
 
def arg_names (self)
 
def arg_decls (self)
 
def const_arg_decls (self)
 
def handler_arg_names (self)
 
def handler_arg_decls (self)
 

Data Fields

 typename
 
 stem
 
 argstem
 

Static Public Attributes

 HANDLE_RE = re.compile(r"xrt_([a-z_]+)_handle_t")
 

Detailed Description

A native handle type requiring special treatment.

Constructor & Destructor Documentation

◆ __init__()

def ipcproto.common.HandleType.__init__ (   self,
  config_dict 
)
Construct from dict, originating in JSON.

References ipcproto.common.HandleType.argstem, ipcproto.common.HandleType.HANDLE_RE, ipcproto.common.HandleType.stem, ipcproto.common.Arg.typename, and ipcproto.common.HandleType.typename.

Member Function Documentation

◆ __str__()

def ipcproto.common.HandleType.__str__ (   self)
Convert to string by returning the type name.

References ipcproto.common.Arg.typename, and ipcproto.common.HandleType.typename.

◆ arg_decls()

def ipcproto.common.HandleType.arg_decls (   self)
Get the argument declarations for the client proxy.

References ipcproto.common.HandleType.arg_names(), ipcproto.common.HandleType.count_arg_type(), ipcproto.common.Arg.typename, and ipcproto.common.HandleType.typename.

Referenced by ipcproto.common.HandleType.const_arg_decls().

◆ arg_name()

def ipcproto.common.HandleType.arg_name (   self)
Get the argument name.

References ipcproto.common.HandleType.argstem.

Referenced by ipcproto.common.HandleType.arg_names(), and ipcproto.common.HandleType.handler_arg_names().

◆ arg_names()

def ipcproto.common.HandleType.arg_names (   self)
Get the argument names for the client proxy.

References ipcproto.common.HandleType.arg_name(), and ipcproto.common.HandleType.count_arg_name().

Referenced by ipcproto.common.HandleType.arg_decls().

◆ const_arg_decls()

def ipcproto.common.HandleType.const_arg_decls (   self)
Get the const argument declarations for the client proxy.

References ipcproto.common.HandleType.arg_decls().

◆ count_arg_name()

def ipcproto.common.HandleType.count_arg_name (   self)
Get the name of the count argument.

References ipcproto.common.HandleType.argstem.

Referenced by ipcproto.common.HandleType.arg_names(), and ipcproto.common.HandleType.handler_arg_names().

◆ count_arg_type()

def ipcproto.common.HandleType.count_arg_type (   self)
Get the type of the count argument.

Referenced by ipcproto.common.HandleType.arg_decls(), and ipcproto.common.HandleType.handler_arg_decls().

◆ handler_arg_decls()

def ipcproto.common.HandleType.handler_arg_decls (   self)
Get the argument declarations for the server handler.

References ipcproto.common.HandleType.count_arg_type(), ipcproto.common.HandleType.handler_arg_names(), ipcproto.common.Arg.typename, and ipcproto.common.HandleType.typename.

◆ handler_arg_names()

def ipcproto.common.HandleType.handler_arg_names (   self)

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