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

Public Member Functions

def __init__ (self, str addr, C_DLR_VARIANT data, ctypes.c_uint64 time, Result result)
 
def __enter__ (self)
 
def __exit__ (self, exc_type, exc_val, exc_tb)
 
def close (self)
 
str get_address (self)
 
Variant get_data (self)
 
datetime.datetime get_datetime (self)
 
Result get_result (self)
 

Detailed Description

class Bulk Response

Definition at line 23 of file bulk.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
str  addr,
C_DLR_VARIANT  data,
ctypes.c_uint64  time,
Result  result 
)

init Response Bulk

Parameters
addrAddress for the response
dataOutput data of the response
timeTimestamp of the response
resultResult of the response

Definition at line 34 of file bulk.py.

References Response.__address, _Request.__address, Response.__data, _Request.__data, NotifyItemPublish.__data, NotifyItem.__data, Response.__result, Response.__timestamp, and NotifyInfoPublish.__timestamp.

Member Function Documentation

◆ get_address()

str get_address (   self)

get_address

Returns
str Address for the response

Definition at line 65 of file bulk.py.

References Response.__address, and _Request.__address.

◆ get_data()

Variant get_data (   self)

get_data

Returns
Variant Output data of the response

Definition at line 82 of file bulk.py.

References Response.__data, _Request.__data, NotifyItemPublish.__data, and NotifyItem.__data.

Referenced by Variant.get_flatbuffers().

◆ get_datetime()

datetime.datetime get_datetime (   self)

get_datetime

   datetime object as timestamp (FILETIME) 64 bit 100ns since 1.1.1601 (UTC)
Returns
datetime Timestamp of the response

Definition at line 93 of file bulk.py.

References Response.__timestamp, and NotifyInfoPublish.__timestamp.

◆ get_result()

Result get_result (   self)

get_result

Returns
Result Result of the response

Definition at line 73 of file bulk.py.

References Response.__result.