Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bip_fmu
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anastasios Temperekidis
bip_fmu
Commits
b579ed29
Commit
b579ed29
authored
Jan 20, 2022
by
Anastasios Temperekidis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
portvalue update - in progress
parent
77498128
Pipeline
#59
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
generatePortValue.mtl
...imag/bip/backend/cpp/templates/port/generatePortValue.mtl
+15
-4
Version.java
.../main/java/ujf/verimag/bip/userinterface/cli/Version.java
+1
-1
No files found.
Compiler/Backend/ujf.verimag.bip.backend.cpp/src/ujf/verimag/bip/backend/cpp/templates/port/generatePortValue.mtl
View file @
b579ed29
...
@@ -47,7 +47,7 @@ string [pvCN/]::toString() const {
...
@@ -47,7 +47,7 @@ string [pvCN/]::toString() const {
[file (container.hppRoot() + '/' + fullHpp, false, 'UTF-8')]
[file (container.hppRoot() + '/' + fullHpp, false, 'UTF-8')]
[startHeaderGuard(fullHpp) /]
[startHeaderGuard(fullHpp) /]
#include <PortValue.hpp>
#include <PortValue.hpp>
#include <Variables.hpp>
#include <[aPortType.relHppFilePath()/]>
#include <[aPortType.relHppFilePath()/]>
class [pvCN/] : public PortValue {
class [pvCN/] : public PortValue {
...
@@ -55,6 +55,14 @@ public:
...
@@ -55,6 +55,14 @@ public:
[aPortType.genCtorProto()/];
[aPortType.genCtorProto()/];
virtual ~[pvCN/]();
virtual ~[pvCN/]();
[for (datadecl : PortDataParameterDeclaration | aPortType.dataParameterDeclarations)
before('\n // get/set for data.\n')
separator('\n')]
[pvCN/]([datadecl.dataType.typeName()/] &_[datadecl.varName() /] , string name) : PortValue(), [datadecl.varName()/](_[datadecl.varName()/]) {
name = name;
}
[/for]
[if (not disableSerialization)]
[if (not disableSerialization)]
virtual string toString() const;
virtual string toString() const;
[/if]
[/if]
...
@@ -68,8 +76,9 @@ public:
...
@@ -68,8 +76,9 @@ public:
void set_[datadecl.name/](const [datadecl.dataType.typeName()/] &_[datadecl.varName()/]);
void set_[datadecl.name/](const [datadecl.dataType.typeName()/] &_[datadecl.varName()/]);
[/if]
[/if]
[/for]
[/for]
private:
private:
string name;
[for (datadecl : PortDataParameterDeclaration | aPortType.dataParameterDeclarations)
[for (datadecl : PortDataParameterDeclaration | aPortType.dataParameterDeclarations)
before(' // data fields from Port type.\n')]
before(' // data fields from Port type.\n')]
[if (datadecl.const)]const [/if][datadecl.dataType.typeName()/] &[datadecl.varName()/];
[if (datadecl.const)]const [/if][datadecl.dataType.typeName()/] &[datadecl.varName()/];
...
@@ -82,16 +91,18 @@ private:
...
@@ -82,16 +91,18 @@ private:
separator('\n')]
separator('\n')]
inline
inline
const [datadecl.dataType.typeName()/]& [pvCN/]::get_[datadecl.name/]() const {
const [datadecl.dataType.typeName()/]& [pvCN/]::get_[datadecl.name/]() const {
return [datadecl.
varName()
/];
return [datadecl.
dataType.typeName() + '_variables[name]'
/];
}
}
[if (not datadecl.const)]
[if (not datadecl.const)]
inline
inline
[datadecl.dataType.typeName()/]& [pvCN/]::get_[datadecl.name/]() {
[datadecl.dataType.typeName()/]& [pvCN/]::get_[datadecl.name/]() {
return [datadecl.
varName()
/];
return [datadecl.
dataType.typeName() + '_variables[name]'
/];
}
}
inline
inline
void [pvCN/]::set_[datadecl.name/](const [datadecl.dataType.typeName()/] &_[datadecl.varName()/]) {
void [pvCN/]::set_[datadecl.name/](const [datadecl.dataType.typeName()/] &_[datadecl.varName()/]) {
[datadecl.varName()/] = _[datadecl.varName()/];
[datadecl.varName()/] = _[datadecl.varName()/];
[datadecl.dataType.typeName() + '_variables[name]'/] = _[datadecl.varName()/];
}
}
[/if]
[/if]
[/for]
[/for]
...
...
Compiler/Frontend/ujf.verimag.bip.userinterface.cli/src/main/java/ujf/verimag/bip/userinterface/cli/Version.java
View file @
b579ed29
...
@@ -7,5 +7,5 @@ package ujf.verimag.bip.userinterface.cli;
...
@@ -7,5 +7,5 @@ package ujf.verimag.bip.userinterface.cli;
* use "svn annotate" and BLAME the one who has commited it !
* use "svn annotate" and BLAME the one who has commited it !
*/
*/
public
class
Version
{
public
class
Version
{
public
static
final
String
VERSION
=
"2022.01.
215322
-DEV"
;
public
static
final
String
VERSION
=
"2022.01.
195807
-DEV"
;
}
}
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