COVESA / capicxx-someip-runtime

Common API C++ SOMEIP runtime
Mozilla Public License 2.0
111 stars 81 forks source link

How to prevent Get of Attribute From Client Base On commonAPI+Vsomeip #20

Closed liu8232303 closed 1 year ago

liu8232303 commented 3 years ago

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?

goncaloalmeida commented 1 year ago

@liu8232303 this is a normal get, not a conditional get. This type of operation should be done on the application side, not the generated code side.