FormatWorker

Base interface for format workers Can be used not only for Surface

Members

Functions

checkOnHeader
bool checkOnHeader(File file)

Check file for header

decode
T decode(File file)

Decodes data from file

load
T load(string name)

Loads data from file

save
T save(T surface, string name)

Saves data to file

Examples

FormatWorker!int loader = new ...
int answer = 42;
int question;

loader.save(42, "output.txt");
question = loader.load("universe.txt")

Meta