class IOSequenceArray

Load and save in an efficiently manner an array of sequences.

Inheritance:


Public Methods

[more] IOSequenceArray()
[more]virtual void read(XFile* file, Sequence** sequences_array, int n_sequences, Allocator* allocator_=NULL)
Read an array of sequences in file.
[more]virtual void write(XFile* file, Sequence** sequences_array, int n_sequences)
Write an array of sequences in file.


Inherited from Object:

Public Fields

oAllocator* allocator

Public Methods

ovoid addOption(const char* name, int size, void* ptr, const char* help="")
ovoid addIOption(const char* name, int* ptr, int init_value, const char* help="")
ovoid addROption(const char* name, real* ptr, real init_value, const char* help="")
ovoid addBOption(const char* name, bool* ptr, bool init_value, const char* help="")
ovoid addOOption(const char* name, Object** ptr, Object* init_value, const char* help="")
ovoid setOption(const char* name, void* ptr)
ovoid setIOption(const char* name, int option)
ovoid setROption(const char* name, real option)
ovoid setBOption(const char* name, bool option)
ovoid setOOption(const char* name, Object* option)
ovirtual void loadXFile(XFile* file)
ovirtual void saveXFile(XFile* file)
ovoid load(const char* filename)
ovoid save(const char* filename)
ovoid* operator new(size_t size, Allocator* allocator_=NULL)
ovoid* operator new(size_t size, Allocator* allocator_, void* ptr_)
ovoid operator delete(void* ptr)


Documentation

Load and save in an efficiently manner an array of sequences. (in an arbitrary binary format).

This could be useful for some (rare) classes which needs to save sequences which could be in another format that the standard sequence format (if you plan to use them with strange subclasses of Sequence).

o IOSequenceArray()

ovirtual void read(XFile* file, Sequence** sequences_array, int n_sequences, Allocator* allocator_=NULL)
Read an array of sequences in file. n_sequences will be read. If allocator_ is non-NULL, it will be used to allocate the memory of the sequences. Else, the memory of the sequences will be destroyed when destroying the class. sequences_array must have the size n_sequences.

ovirtual void write(XFile* file, Sequence** sequences_array, int n_sequences)
Write an array of sequences in file. n_sequences will be written. sequences_array must have the size n_sequences.


This class has no child classes.
Author:
Ronan Collobert (collober@idiap.ch)

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.