ctrlX Data Layer API for Python  3.3.0
The ctrlX Data Layer API allows access to the ctrlX Data Layer with Python
MetadataBuilder Class Reference

Public Member Functions

def __init__ (self, AllowedOperation allowed=AllowedOperation.BROWSE, str description="", str description_url="")
 
def add_extensions (self, str key, str val)
 
def add_localization_description (self, str ident, str txt)
 
def add_localization_display_name (self, str ident, str txt)
 
def add_reference (self, ReferenceType t, str addr)
 
Variant build (self)
 
def set_display_format (self, DisplayFormat.DisplayFormat.Auto f)
 
def set_display_name (self, str name)
 
def set_node_class (self, NodeClass node_class)
 
def set_operations (self, AllowedOperation allowed=AllowedOperation.NONE)
 
def set_unit (self, str unit)
 

Static Public Member Functions

Variant create_metadata (str name, str description, str unit, str description_url, NodeClass node_class, bool read_allowed, bool write_allowed, bool create_allowed, bool delete_allowed, bool browse_allowed, str type_path, dict references=None)
 

Detailed Description

Builds a flatbuffer provided with the metadata information for a Data Layer node.

Definition at line 78 of file metadata_utils.py.

Member Function Documentation

◆ build()