Lines Matching full:object
32 * Configuration object key to uniquely map to the configuration object
34 * std::string = Configuration object's name
35 * std::vector<std::string> = List of profiles the configuration object
41 * @class ConfigBase - Base configuration object
57 // Set the name of this configuration object in ConfigBase()
71 * object data
73 * @param[in] origObj - Original ConfigBase object to be created from
82 * @brief Get the configuration object's name
84 * @return Name of the configuration object
92 * @brief Get the configuration object's list of profiles
94 * Gets the list of profiles this configuration object belongs to if any
96 * object always being included in the configuration.
98 * @return List of profiles the configuration object belongs to
109 * @details Retrieves a JSON object by the first derived data type that
113 * @param[in] object - A single JSON object
115 * @return A `PropertyVariantType` variant containing the JSON object's
118 static const PropertyVariantType getJsonValue(const json& object) in getJsonValue() argument
120 if (object.is_boolean()) in getJsonValue()
122 return object.get<bool>(); in getJsonValue()
124 if (object.is_number_integer()) in getJsonValue()
126 return object.get<int64_t>(); in getJsonValue()
128 if (object.is_number_float()) in getJsonValue()
130 return object.get<double>(); in getJsonValue()
132 if (object.is_string()) in getJsonValue()
134 return object.get<std::string>(); in getJsonValue()
138 … "Unsupported data type for JSON object's value. Supported Types are 'bool, int, double, string'", in getJsonValue()
139 "JSON_ENTRY", object.dump()); in getJsonValue()
141 "Unsupported data type for JSON object's value"); in getJsonValue()
145 /* Name of the configuration object */
149 * Profiles this configuration object belongs to (OPTIONAL).
150 * Otherwise always include this object in the configuration
157 * @brief Sets the configuration object's name from the given JSON
159 * @param[in] jsonObj - JSON to get configuration object's name from
165 // Log error on missing configuration object's name in setName()
166 lg2::error("Missing required configuration object's name", "JSON", in setName()
169 "Missing required configuration object's name"); in setName()