fmi getters+setters, values synchronization in connectors

parent b579ed29
...@@ -1534,8 +1534,9 @@ true ...@@ -1534,8 +1534,9 @@ true
[p.penabledVarName()/](false)[/for], __previous(-1) [p.penabledVarName()/](false)[/for], __previous(-1)
[/template] [/template]
[template private genPortValueInitialization(aPort : AtomInternalPortDeclaration)] [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]
[template public generateSubClasses(anAtomType : AtomType, aCMakeList : String, disableSerialization: Boolean) post(trim())] [template public generateSubClasses(anAtomType : AtomType, aCMakeList : String, disableSerialization: Boolean) post(trim())]
......
...@@ -32,7 +32,7 @@ string [pvCN/]::toString() const { ...@@ -32,7 +32,7 @@ string [pvCN/]::toString() const {
ostringstream oss; ostringstream oss;
[for (datadecl : PortDataParameterDeclaration | aPortType.dataParameterDeclarations)] [for (datadecl : PortDataParameterDeclaration | aPortType.dataParameterDeclarations)]
oss << "[datadecl.name/]=" << [datadecl.varName()/] << ';'; oss << "[datadecl.name/]=" << [datadecl.dataType.typeName() + '_variables[this->name]'/] << ';';
[/for] [/for]
return oss.str(); return oss.str();
} }
...@@ -58,8 +58,8 @@ public: ...@@ -58,8 +58,8 @@ public:
[for (datadecl : PortDataParameterDeclaration | aPortType.dataParameterDeclarations) [for (datadecl : PortDataParameterDeclaration | aPortType.dataParameterDeclarations)
before('\n // get/set for data.\n') before('\n // get/set for data.\n')
separator('\n')] separator('\n')]
[pvCN/]([datadecl.dataType.typeName()/] &_[datadecl.varName() /] , string name) : PortValue(), [datadecl.varName()/](_[datadecl.varName()/]) { [pvCN/]([datadecl.dataType.typeName()/] &_[datadecl.varName() /] , string name) : PortValue(), [datadecl.varName()/](_[datadecl.varName()/]),name("ROOT." + name) {
name = name;
} }
[/for] [/for]
......
...@@ -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.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