fmi getters+setters, values synchronization in connectors

parent b579ed29
......@@ -1534,8 +1534,9 @@ true
[p.penabledVarName()/](false)[/for], __previous(-1)
[/template]
[template private genPortValueInitialization(aPort : AtomInternalPortDeclaration)]
[for (aParam : DataDeclarationReferenceDataParameter | aPort.dataParameters) separator(', ')][aParam.dataDeclarationReference.oclAsType(AtomInternalDataDeclaration).varName()/][/for]
[for (aParam : DataDeclarationReferenceDataParameter | aPort.dataParameters) separator(', ')][aParam.dataDeclarationReference.oclAsType(AtomInternalDataDeclaration).varName()/], ['this->fullName()+\".' + aParam.dataDeclarationReference.oclAsType(AtomInternalDataDeclaration).varName() + '\"'/][/for]
[/template]
[template public generateSubClasses(anAtomType : AtomType, aCMakeList : String, disableSerialization: Boolean) post(trim())]
......
......@@ -32,7 +32,7 @@ string [pvCN/]::toString() const {
ostringstream oss;
[for (datadecl : PortDataParameterDeclaration | aPortType.dataParameterDeclarations)]
oss << "[datadecl.name/]=" << [datadecl.varName()/] << ';';
oss << "[datadecl.name/]=" << [datadecl.dataType.typeName() + '_variables[this->name]'/] << ';';
[/for]
return oss.str();
}
......@@ -58,8 +58,8 @@ public:
[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;
[pvCN/]([datadecl.dataType.typeName()/] &_[datadecl.varName() /] , string name) : PortValue(), [datadecl.varName()/](_[datadecl.varName()/]),name("ROOT." + name) {
}
[/for]
......
......@@ -7,5 +7,5 @@ package ujf.verimag.bip.userinterface.cli;
* use "svn annotate" and BLAME the one who has commited it !
*/
public class Version {
public static final String VERSION = "2022.01.195807-DEV";
public static final String VERSION = "2022.01.175206-DEV";
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment