Monado OpenXR Runtime
bindings.Bindings Class Reference

Public Member Functions

def parse (cls, json_root)
 
def load_and_parse (cls, file)
 
def __init__ (self, json_root)
 

Data Fields

 profiles
 
 virtual_profiles
 

Detailed Description

A collection of interaction profiles used in bindings.

Constructor & Destructor Documentation

◆ __init__()

def bindings.Bindings.__init__ (   self,
  json_root 
)
Construct a bindings from a dictionary of profiles.

References bindings.Bindings.__has_diamonds(), bindings.Bindings.__mine_for_diamond_errors(), bindings.Bindings.__set_parent_profile_refs(), bindings.Bindings.profiles, oxr_instance.profiles, and bindings.Bindings.virtual_profiles.

Member Function Documentation

◆ load_and_parse()

def bindings.Bindings.load_and_parse (   cls,
  file 
)
Load a JSON file and parse it into Profile objects.

References ipcproto.common.Proto.parse(), and bindings.Bindings.parse().

◆ parse()

def bindings.Bindings.parse (   cls,
  json_root 
)
Parse an entire bindings.json into a collection of Profile objects.

Referenced by bindings.Bindings.load_and_parse(), and ipcproto.common.Proto.load_and_parse().


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