cake
/
libcasio
Archived
1
1
Fork 0
This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
libcasio/docs/user/file.rst

5.0 KiB

File management

libcasio manages the file formats through a file API where you can open and decode a file, and export data into a file. A file is primarily represented by its type and platform:

An enumeration defining various file types that file formats libcasio can read and write can represent. The values in this enumeration are defined as flags so that such a value can also represent multiple file types with no ambiguity.

An add-in, i.e. a binary application which executes natively onto the calculator from the storage filesystem(s). The platform cannot be casio_filefor_none for this type.

An alias for casio_filetype_addin.

A main memory backup, see mcs for more details about what a main memory is.

An e-activity, i.e. rich document for storing courses for example.

An alias for casio_filetype_eact.

An alias for casio_filetype_eact.

A picture, e.g. *.g3p files.

An alias for casio_filetype_picture.

A language file, which contains message translations with IDs, e.g. *.g1l or *.g3l files.

A function key file, which contains function key pictures with IDs in the same fashion than language files, e.g. *.g1n files.

A storage filesystem backup, typically *.g1s files.

An enumeration defining various platforms for which the file formats libcasio can read and write can be made for. The values in this enumeration are defined as flags so that such a value can also represent multiple file platforms with no ambiguity.

No platform in particular; this value always evaluates as zero, so that any other value in this enumeration can make it precise.

The fx-9860G family of calculators, OS 1.x and OS 2.x.

The Classpad family of calculators, e.g. the fx-CP400.

The Prizm family of calculators, including the fx-CG10, fx-CG20 and fx-CG50 (Graph 90+E).

Ancient calculators supporting the CAS40 and CAS50 protocols.

The CasEmul software.

It is represented by the following object:

A decoded file of one of the supported file formats by libcasio.

Creating and freeing a file

A file can be created using one of the following functions:

Create a main memory backup file.

Once you're done using a file, you shall use the following function:

Free the file and all of its related resources.

Decoding a file

A file is decoded from a generic stream, using the following function: