Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Romain De Laage De Bellefaye
LO21-projet
Commits
f84f7f0c
Commit
f84f7f0c
authored
Jun 12, 2021
by
Leon Do Castelo
Browse files
Update autosql.cpp
parent
0d847515
Pipeline
#79809
passed with stage
in 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/autosql.cpp
View file @
f84f7f0c
...
@@ -271,7 +271,7 @@ void Database::saveAutomaton(const Automate& a) const {
...
@@ -271,7 +271,7 @@ void Database::saveAutomaton(const Automate& a) const {
saveFunction
(
a
.
getTitle
().
c_str
(),
a
.
getFonction
());
saveFunction
(
a
.
getTitle
().
c_str
(),
a
.
getFonction
());
saveVoisinage
(
a
.
getTitle
().
c_str
(),
a
.
getRegleVoisinage
());
saveVoisinage
(
a
.
getTitle
().
c_str
(),
a
.
getRegleVoisinage
());
stockerReseau
(
a
.
getReseauInit
(),
"
To be determined
"
,
a
.
getTitle
().
c_str
());
stockerReseau
(
a
.
getReseauInit
(),
"
Grille 10*10 - Aleatoire
"
,
a
.
getTitle
().
c_str
());
saveEnsemble
(
Automate
::
getInstance
());
saveEnsemble
(
Automate
::
getInstance
());
}
}
...
@@ -496,8 +496,8 @@ void Database::stockerReseau(const Reseau& reseau, const QString& nomReseau, con
...
@@ -496,8 +496,8 @@ void Database::stockerReseau(const Reseau& reseau, const QString& nomReseau, con
query
.
prepare
(
"INSERT INTO Cellules VALUES (:reseau, :etat, :x, :y)"
);
query
.
prepare
(
"INSERT INTO Cellules VALUES (:reseau, :etat, :x, :y)"
);
query
.
bindValue
(
":reseau"
,
idReseau
);
query
.
bindValue
(
":reseau"
,
idReseau
);
query
.
bindValue
(
":etat"
,
reseau
.
getReseau
()[
i
][
j
].
getIndEtat
());
query
.
bindValue
(
":etat"
,
reseau
.
getReseau
()[
i
][
j
].
getIndEtat
());
query
.
bindValue
(
":x"
,
i
);
query
.
bindValue
(
":x"
,
j
);
query
.
bindValue
(
":y"
,
j
);
query
.
bindValue
(
":y"
,
i
);
query
.
exec
();
query
.
exec
();
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment