SmartSpectra C++ SDK
Measure human vitals from video with SmartSpectra C++ SDK.
Loading...
Searching...
No Matches
alt_ipc_example_on_prem_client.FileStreamReader Class Reference

Public Member Functions

 __init__ (self, Path file_path)
 open (self)
 close (self)
list read_new_lines (self)
 __del__ (self)

Public Attributes

 file_path = file_path
 file_handle = None
int last_position = 0

Detailed Description

Helper class to read streaming data from JSONL files

Constructor & Destructor Documentation

◆ __del__()

alt_ipc_example_on_prem_client.FileStreamReader.__del__ ( self)
Ensure file is closed on deletion

Member Function Documentation

◆ close()

alt_ipc_example_on_prem_client.FileStreamReader.close ( self)
Close the file handle

◆ open()

alt_ipc_example_on_prem_client.FileStreamReader.open ( self)
Open the file for reading

◆ read_new_lines()

list alt_ipc_example_on_prem_client.FileStreamReader.read_new_lines ( self)
Read any new lines added to the file since last read

The documentation for this class was generated from the following file:
  • on_prem/samples/alt_ipc_example_on_prem_client.py