#include "PhysFuelModel.h"
Go to the source code of this file.
Functions | |
PhysFuelModel* | InitPhysFuelModelEmpty () |
Initializes an empty PhysFuelModel. More... | |
PhysFuelModel* | InitPhysFuelModelFMDFile (FILE * fstream, int model_num) |
Opens and reads a .fmd file containing fuel models and associated values. More... | |
PhysFuelModel* | InitPhysFuelModelUnBurnable () |
Creates a fuel model with attributes that correspond to unburnable fuel. More... | |
int | PhysFuelModelMetricToEnglish (PhysFuelModel * pfm) |
Converts units of attributes in existing PhysFuelModel structure. More... | |
int | PhysFuelModelEnglishToMetric (PhysFuelModel * pfm) |
Converts units of attributes in existing PhysFuelModel structure. More... | |
void | PhysFuelModelDumpToStream (PhysFuelModel * pfm, FILE * fstream) |
Dumps contents of PhysFuelModel to stream. More... | |
void | FreePhysFuelModel (void * vptr) |
Frees memory associated with PhysFuelModel 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 PhysFuelModel.c.
|
Frees memory associated with PhysFuelModel structure.
Subsequent calls to methods taking PhysFuelModel as argument will not work.
Definition at line 446 of file PhysFuelModel.c. Referenced by FreeFuelModel(), and InitPhysFuelModelFMDFile(). |
|
Initializes an empty PhysFuelModel.
Definition at line 27 of file PhysFuelModel.c. Referenced by InitPhysFuelModelFMDFile(), and InitPhysFuelModelUnBurnable(). |
|
Opens and reads a .fmd file containing fuel models and associated values.
Inserts the values of model_num in PhysFuelModel.
Definition at line 52 of file PhysFuelModel.c. |
|
Creates a fuel model with attributes that correspond to unburnable fuel.
Definition at line 164 of file PhysFuelModel.c. |
|
Dumps contents of PhysFuelModel to stream.
Definition at line 386 of file PhysFuelModel.c. Referenced by FuelModelDumpToStream(). |
|
Converts units of attributes in existing PhysFuelModel structure.
Tests if data in structure is METRIC or ENGLISH units. If METRIC, then does nothing. If ENGLISH, then converts values to METRIC.
Definition at line 336 of file PhysFuelModel.c. |
|
Converts units of attributes in existing PhysFuelModel structure.
Tests if data in structure is METRIC or ENGLISH units. If METRIC, then converts data to ENGLISH. If ENGLISH, then does nothing.
Definition at line 286 of file PhysFuelModel.c. |
|
Definition at line 191 of file PhysFuelModel.c. |