#include "FuelModel.h"
Go to the source code of this file.
Functions | |
FuelModel* | InitFuelModelEmpty (int fm_num, char * fm_name, char * fm_desc) |
Initializes an empty FuelModel structure. More... | |
FuelModel* | InitFuelModelFMDFile (int fm_num, char * fm_name, char * fm_desc, char * fmd_fname, FuelModelType type) |
Initializes the the FuelModel structure with attributes from a .FMD file. More... | |
FuelModel* | InitFuelModelUnBurnable (int fm_num, char * fm_name, char * fm_desc, FuelModelType type) |
Initializes the the FuelModel structure as unburnable fuel. More... | |
int | CmpNumToFuelModelNum (const void * fm_num, const void * fm) |
Tests if model num given by first argument is same as model num in FuelModel. More... | |
void | FuelModelDumpToStream (FuelModel * fm, FILE * fstream) |
Dumps contents of Fuel Model to stream. More... | |
void | FreeFuelModel (void * vptr) |
Frees memory associated with FuelModel structure. More... |
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
Definition in file FuelModel.c.
|
Tests if model num given by first argument is same as model num in FuelModel. Can be passed as function pointer for comparison tests.
Definition at line 274 of file FuelModel.c. |
|
Frees memory associated with FuelModel structure.
Subsequent calls to methods taking FuelModel as argument will not work.
Definition at line 312 of file FuelModel.c. Referenced by InitFuelModelFMDFile(), and InitFuelModelUnBurnable(). |
|
Dumps contents of Fuel Model to stream.
Definition at line 278 of file FuelModel.c. Referenced by FireConfigDumpFuelModelListToStream(). |
|
Definition at line 226 of file FuelModel.c. |
|
Definition at line 262 of file FuelModel.c. |
|
Definition at line 165 of file FuelModel.c. |
|
Definition at line 201 of file FuelModel.c. |
|
Initializes an empty FuelModel structure.
Does not initialize structure members (eg RothFuelModel or PhysFuelModel) containing attributes.
Definition at line 41 of file FuelModel.c. Referenced by InitFuelModelFMDFile(), and InitFuelModelUnBurnable(). |
|
Initializes the the FuelModel structure with attributes from a .FMD file.
If FuelModelType is EnumRoth, then RothFuelModel structure populated. If FuelModelType is EnumPhys, then PhysFuelModel structure populated.
Definition at line 96 of file FuelModel.c. Referenced by InitRothFuelModelListFromProps(). |
|
Initializes the the FuelModel structure as unburnable fuel.
If FuelModelType is EnumRoth, then RothFuelModel structure populated. Else FuelModelType is EnumPhys, then PhysFuelModel structure populated.
Definition at line 124 of file FuelModel.c. Referenced by InitRothFuelModelListFromProps(). |