![]() |
IDS peak ICV v1.1.0
|
The library includes support for reading from and writing objects to files, when persistent storage is needed. While the specific implementation may differ between programming interfaces, the following general rules apply:
Because the read/write mechanisms vary across interfaces, they are documented separately below.
The Python interface provides a save method for all objects that support writing to a file.
Reading is handled via a class method named create_from_file, which takes the file path as a single string argument and returns a new instance of the class.
The C++ interface provides writer classes for objects that can be saved to a file. Each writer class follows the naming convention <ClassName>Writer (e.g., PointCloudWriter).
Writing is performed using one or more write methods, where the first parameter is the file path and the second is the object to write.
Reading from a file is performed through constructors that accept a file path and return a fully initialized object.