Logo Search packages:      
Sourcecode: apertium version File versions  Download package

void Collection::read ( FILE *  input  ) 

Reads the collection contents form an input stream

Parameters:
input the input stream

Definition at line 79 of file collection.cc.

References size().

{
  int size = Compression::multibyte_read(input);

  for(; size != 0; size--)
  {
    set<int> myset;
    int set_size = Compression::multibyte_read(input);
    for(; set_size != 0; set_size--)
    {
      myset.insert(Compression::multibyte_read(input));
    }
    add(myset);
  }
}


Generated by  Doxygen 1.6.0   Back to index