hueplusplus
1.0.0
|
#include "json/json.hpp"
Go to the source code of this file.
Namespaces | |
hueplusplus | |
Namespace for the hueplusplus library. | |
hueplusplus::utils | |
Utility functions used in multiple places. | |
Functions | |
bool | hueplusplus::utils::validatePUTReply (const std::string &path, const nlohmann::json &request, const nlohmann::json &reply) |
Function for validating that a request was executed correctly. More... | |
bool | hueplusplus::utils::validateReplyForLight (const nlohmann::json &request, const nlohmann::json &reply, int lightId) |
bool | hueplusplus::utils::floatEquals (float lhs, float rhs) |
Checks equality to 4 decimal places. More... | |
template<typename... Paths> | |
nlohmann::json | hueplusplus::utils::safeGetMember (const nlohmann::json &json, Paths &&... paths) |
Returns the object/array member or null if it does not exist. More... | |
Copyright Notice
Copyright (C) 2020 Jan Rogall - developer
Copyright (C) 2020 Moritz Wirger - developer
This file is part of hueplusplus.
hueplusplus is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
hueplusplus is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with hueplusplus. If not, see http://www.gnu.org/licenses/.