1 #ifndef GET_ATTRIBUTE_COMMAND_H
2 #define GET_ATTRIBUTE_COMMAND_H
5 #include <grpcpp/grpcpp.h>
6 #include "Commands/Command.h"
7 #include "ObjectMapper.h"
8 #include "aurum.grpc.pb.h"
11 class GetAttributeCommand : public Command {
13 const ::aurum::ReqGetAttribute* mRequest;
14 ::aurum::RspGetAttribute* mResponse;
17 GetAttributeCommand(const ::aurum::ReqGetAttribute* request,
18 ::aurum::RspGetAttribute* response);
20 ::grpc::Status execute() override;
23 class AttributeGetter {
26 virtual ~AttributeGetter();
27 static AttributeGetter *Creator(::aurum::ReqGetAttribute_RequestType type);
28 virtual bool getPerform(UiObject *obj, ::aurum::RspGetAttribute* mResponse){return true;}
31 class VisibleGetter : public AttributeGetter{
34 virtual ~VisibleGetter();
35 bool getPerform(UiObject *obj, ::aurum::RspGetAttribute* rsp) override;