FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
firefront/src/ForeFireModel.cpp at master · OroraTech/firefront · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
OroraTech
/
firefront
Public
forked from
forefireAPI/forefire
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
firefront
/
src
/
ForeFireModel.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
40 lines (33 loc) · 1.08 KB
Breadcrumbs
firefront
/
src
/
ForeFireModel.cpp
Copy path
File metadata and controls
40 lines (33 loc) · 1.08 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
*
* @file ForeFireModel.cpp
* @brief TODO: add a brief description.
* @copyright Copyright (C) 2025 ForeFire, Fire Team, SPE, CNRS/Universita di Corsica.
* @license This program is free software; See LICENSE file for details. (See LICENSE file).
* @author Jean‑Baptiste Filippi — 2025
*/
#
include
"
ForeFireModel.h
"
#
include
"
DataBroker.h
"
namespace
libforefire
{
ForeFireModel::ForeFireModel
(
const
int
& mindex, DataBroker* db)
: dataBroker(db), index(mindex) {
params =
SimulationParameters::GetInstance
();
numProperties =
0
;
numFuelProperties =
0
;
fuelPropertiesTable =
0
;
}
ForeFireModel::~ForeFireModel
() {
if
( properties !=
0
)
delete []
properties;
if
( fuelPropertiesTable !=
0
)
delete []
fuelPropertiesTable;
}
void
ForeFireModel::setDataBroker
(DataBroker* db){
dataBroker = db;
}
size_t
ForeFireModel::registerProperty
(string property){
wantedProperties.
push_back
(property);
if
( property.
substr
(
0
,
4
) ==
"
fuel
"
){
fuelPropertiesNames.
push_back
(property.
substr
(
5
,string::npos));
numFuelProperties++;
}
return
numProperties++;
}
}
/*
namespace libforefire
*/
Back
|
FazBrowse Home
|
New Git URL