9 #include <nx/sdk/ptr.h> 10 #include <nx/sdk/i_string_map.h> 13 namespace vms_server_plugins {
17 bool toBool(std::string str);
19 bool startsWith(
const std::string& str,
const std::string& prefix);
22 T clamp(
const T& value,
const T& lowerBound,
const T& upperBound)
24 if (value < lowerBound)
27 if (value > upperBound)
33 std::vector<char> loadFile(
const std::string& path);
35 std::string imageFormatFromPath(
const std::string& path);
37 bool isHttpOrHttpsUrl(
const std::string& path);
39 std::string join(
const std::vector<std::string>& strings,
40 const std::string& delimiter,
41 const std::string& itemPrefix = std::string(),
42 const std::string& itemPostfix = std::string());
61 m_value(other.value()),
62 m_isInitialized(other.isInitialized())
66 const T* operator->()
const 82 const T& operator*()
const 95 m_value = other.value();
96 m_isInitialized = other.isInitialized();
104 m_value = std::forward<U>(value);
105 m_isInitialized =
true;
110 explicit operator bool()
const {
return m_isInitialized; }
112 const T& value()
const 117 bool isInitialized()
const {
return m_isInitialized; }
119 void reset() { m_isInitialized =
false; }
123 bool m_isInitialized =
false;
Definition: apple_utils.h:6