XCLE





Instructions manual


RIGEL: Representation-Independant Genetic Engine Library
Copyright (C) 2000-2005 Yann LANDRIN-SCHWEITZER, a.k.a. Varkhan


This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.

This library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with this library; if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA


Author: Yann LANDRIN-SCHWEITZER, a.k.a. Varkhan
Contact: varkhan@varkhan.net
Homepage: http://www.varkhan.net/


Interface format structure


Function RIGEL_FReadParameters

unsigned long RIGEL_FReadParameters(RIGEL_Parameters param, FILE * os) ;
Reads updates to a parameter set from an input stream.

Args:
param: parameter set to update
os: input stream to read from


Returns:
-1: if some error occured
else the updated parameter set.


Errors:
ENOMEM: if no memory was available
_ any error returned by the fread LibC function

Note:
This method behaves in the same way as 'RIGEL_ReadParameters'.




Function RIGEL_FWriteParameters

unsigned long RIGEL_FWriteParameters(RIGEL_Parameters param, FILE * os) ;
Writes a parameter set onto an output stream.

Args:
param: parameter set to write
os: output stream to write onto


Returns:
-1: if some error occured
else the number of characters written on 'os'.


Errors:
ENOMEM: if no memory was available
_ any error returned by the fwrite LibC function

Note:
This method behaves in the same way as 'RIGEL_WriteParameters'.




Function RIGEL_FileLoad

RIGEL_Population RIGEL_FileLoad(RIGEL_Interface iface, RIGEL_Parameters param, char * file) ;
.

Args:
_ iface
_ param
_ file


Returns:
NULL: if
else .


Errors:
ENOMEM: if no memory was available

Note:
.




Function RIGEL_FileSave

unsigned long RIGEL_FileSave(RIGEL_Population pop, char * file) ;
.

Args:
_ pop
_ file


Returns:
NULL: if
else .


Errors:
ENOMEM: if no memory was available

Note:
.





Generated by textdoc2html - 2006-03-10