/* * Copyright (c) 2022, The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef CPP_VHAL_CLIENT_INCLUDE_IHALPROPVALUE_H_ #define CPP_VHAL_CLIENT_INCLUDE_IHALPROPVALUE_H_ #include #include #include #include namespace android { namespace frameworks { namespace automotive { namespace vhal { class IHalPropValue { public: virtual int32_t getPropId() const = 0; virtual int32_t getAreaId() const = 0; virtual int64_t getTimestamp() const = 0; virtual void setInt32Values(const std::vector& values) = 0; virtual std::vector getInt32Values() const = 0; virtual void setInt64Values(const std::vector& values) = 0; virtual std::vector getInt64Values() const = 0; virtual void setFloatValues(const std::vector& values) = 0; virtual std::vector getFloatValues() const = 0; virtual void setByteValues(const std::vector& values) = 0; virtual std::vector getByteValues() const = 0; virtual void setStringValue(const std::string& value) = 0; virtual std::string getStringValue() const = 0; virtual const void* toVehiclePropValue() const = 0; virtual ~IHalPropValue() = default; }; } // namespace vhal } // namespace automotive } // namespace frameworks } // namespace android #endif // CPP_VHAL_CLIENT_INCLUDE_IHALPROPVALUE_H_