I have a attribute in service,i want to decide whether the client can use get of Attribute according to the conditions,
If the conditions are not met, then ignore get of Attribute from client; if the conditions are met,
the return get value of attribute to client 。
But,see generate code:
COMMONAPI_EXPORT virtual const int32_t &getXAttribute(const std::shared_ptr _client) {
(void)_client;
return getXAttribute();
}
it must return value No matter condition。
What should I do?
I have a attribute in service,i want to decide whether the client can use get of Attribute according to the conditions, If the conditions are not met, then ignore get of Attribute from client; if the conditions are met, the return get value of attribute to client 。 But,see generate code: COMMONAPI_EXPORT virtual const int32_t &getXAttribute(const std::shared_ptr _client) {
(void)_client;
return getXAttribute();
}
it must return value No matter condition。
What should I do?