Comments (3)
Currently not implemented, although possible if defining an output type that supports multiple values, like a std::tuple
.
My guess is that it might require some template meta-programming magic.
Sounds like an interesting feature. In case somebody is interested in implementing it, I am willing to review and merge it.
from quaserver.
Is it possibile to use references on the user input when he uses a method as an "extra return" to cheat the issue?
from quaserver.
use references on the user input
Not possible, but an alternative to what you want is the one described in the main README.md
, namely:
Using the Lambda Capture it is possible to change Objects or Variables:
auto varNumber = objsFolder->addBaseDataVariable();
varNumber->setDisplayName("Number");
varNumber->setValue(0.0);
varNumber->setDataType(QMetaType::Double);
objsFolder->addMethod("incrementNumberBy", [&varNumber](double increment) {
double currentValue = varNumber->value().toDouble();
double newValue = currentValue + increment;
varNumber->setValue(newValue);
return true;
});
I.e. just create a separate object that represents the output and let the method update that object.
from quaserver.
Related Issues (20)
- Add API to set node timestamp (last update) HOT 5
- Generating open62541 amalgation do not work any longer HOT 6
- Missing ReturnValue-Check HOT 1
- How to create arrays ? HOT 3
- User Type & Arrays of User Type HOT 3
- long int value cannot be set HOT 3
- open62541 feature macros sometimes tested before amalgamation is included HOT 1
- wrong object context in method invocation of QUaBaseObject subtype HOT 13
- Add server API for UA_Server_addNamespace
- linking with mingw32-w64: undefined to references HOT 5
- Crash if an empty QStringList passed to setValue HOT 4
- Qt6 port available HOT 3
- quabasevariable HOT 1
- DEFINES += QT_NO_CAST_FROM_ASCII HOT 2
- Incorrect type names. HOT 3
- Security policy None HOT 1
- Disable endpoint with security policy None
- Crash upon connection from Ignition server HOT 6
- QUaServer currently does not support importing nodes directly from standard OPC UA XML files. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quaserver.