Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Modelichart Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ModeliChart
Modelichart Backend
Commits
35b72a38
"README.md" did not exist on "mysql-3.23.58"
Commit
35b72a38
authored
7 years ago
by
Tim Übelhör
Browse files
Options
Downloads
Patches
Plain Diff
Small change for perfect forwarding
parent
e85ff868
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Simulation/ModeliGrpcServer.cpp
+1
-1
1 addition, 1 deletion
Simulation/ModeliGrpcServer.cpp
Simulation/Simulator.cpp
+4
-9
4 additions, 9 deletions
Simulation/Simulator.cpp
with
5 additions
and
10 deletions
Simulation/ModeliGrpcServer.cpp
+
1
−
1
View file @
35b72a38
...
...
@@ -191,7 +191,7 @@ Status ModeliGrpcServer::Log(ServerContext * context, const::ModeliRpc::LogReque
return
Status
::
OK
;
}
void
ModeliGrpcServer
::
ValuesArrived
(
const
std
::
string
instanceName
,
double
timestamp
,
const
std
::
vector
<
unsigned
int
>
intVrs
,
const
std
::
vector
<
int
>
intValues
,
const
std
::
vector
<
unsigned
int
>
realVrs
,
const
std
::
vector
<
double
>
realValues
,
const
std
::
vector
<
unsigned
int
>
boolVrs
,
const
std
::
vector
<
int
>
boolValues
,
const
std
::
vector
<
unsigned
int
>
stringVrs
,
const
std
::
vector
<
std
::
string
>
stringValues
)
void
ModeliGrpcServer
::
ValuesArrived
(
const
std
::
string
instanceName
,
double
timestamp
,
std
::
vector
<
unsigned
int
>
intVrs
,
std
::
vector
<
int
>
intValues
,
std
::
vector
<
unsigned
int
>
realVrs
,
std
::
vector
<
double
>
realValues
,
std
::
vector
<
unsigned
int
>
boolVrs
,
std
::
vector
<
int
>
boolValues
,
std
::
vector
<
unsigned
int
>
stringVrs
,
std
::
vector
<
std
::
string
>
stringValues
)
{
ModeliRpc
::
NewValuesResponse
response
;
response
.
set_instance_name
(
instanceName
);
...
...
This diff is collapsed.
Click to expand it.
Simulation/Simulator.cpp
+
4
−
9
View file @
35b72a38
...
...
@@ -171,17 +171,12 @@ namespace Simulation
{
if
(
auto
fmu
=
entity
->
GetCoSimFmu
().
lock
())
{
// Gather the values
auto
intRes
=
fmu
->
GetInteger
();
auto
realRes
=
fmu
->
GetReal
();
auto
boolRes
=
fmu
->
GetBoolean
();
auto
stringRes
=
fmu
->
GetString
();
// Send the values
onValuesArrived
(
entity
->
GetInstanceName
(),
current_time
,
fmu
->
GetIntegerVr
(),
intRes
.
second
,
fmu
->
GetRealVr
(),
realRes
.
second
,
fmu
->
GetBooleanVr
(),
boolRes
.
second
,
fmu
->
GetStringVr
(),
s
tring
Res
.
second
);
fmu
->
GetIntegerVr
(),
fmu
->
GetInteger
()
.
second
,
fmu
->
GetRealVr
(),
fmu
->
GetReal
()
.
second
,
fmu
->
GetBooleanVr
(),
fmu
->
GetBoolean
()
.
second
,
fmu
->
GetStringVr
(),
fmu
->
GetS
tring
()
.
second
);
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment