Lines Matching full:std

34 class DBusError : public std::runtime_error
37 explicit DBusError(const std::string& msg) : std::runtime_error(msg) {} in DBusError()
48 DBusMethodError(const std::string& busName, const std::string& path, in DBusMethodError()
49 const std::string& interface, const std::string& method) : in DBusMethodError()
50 DBusError(std::format("DBus method failed: {} {} {} {}", busName, path, in DBusMethodError()
55 const std::string busName;
56 const std::string path;
57 const std::string interface;
58 const std::string method;
70 DBusServiceError(const std::string& path, const std::string& interface) : in DBusServiceError()
72 std::format("DBus service lookup failed: {} {}", path, interface)), in DBusServiceError()
76 const std::string path;
77 const std::string interface;
88 DBusPropertyError(const std::string& msg, const std::string& busName, in DBusPropertyError()
89 const std::string& path, const std::string& interface, in DBusPropertyError()
90 const std::string& property) : in DBusPropertyError()
91 DBusError(msg + std::format(": {} {} {} {}", busName, path, interface, in DBusPropertyError()
96 const std::string busName;
97 const std::string path;
98 const std::string interface;
99 const std::string property;
104 using Properties = std::map<std::string, std::variant<T...>>;
121 static auto callMethod(sdbusplus::bus_t& bus, const std::string& busName, in callMethod()
122 const std::string& path, in callMethod()
123 const std::string& interface, in callMethod()
124 const std::string& method, Args&&... args) in callMethod()
128 reqMsg.append(std::forward<Args>(args)...); in callMethod()
146 static auto callMethod(const std::string& busName, const std::string& path, in callMethod()
147 const std::string& interface, in callMethod()
148 const std::string& method, Args&&... args) in callMethod()
151 std::forward<Args>(args)...); in callMethod()
157 callMethodAndRead(sdbusplus::bus_t& bus, const std::string& busName, in callMethodAndRead()
158 const std::string& path, const std::string& interface, in callMethodAndRead()
159 const std::string& method, Args&&... args) in callMethodAndRead()
162 bus, busName, path, interface, method, std::forward<Args>(args)...); in callMethodAndRead()
171 const std::string& busName, const std::string& path, in callMethodAndRead()
172 const std::string& interface, const std::string& method, Args&&... args) in callMethodAndRead()
175 method, std::forward<Args>(args)...); in callMethodAndRead()
179 static auto getSubTreeRaw(sdbusplus::bus_t& bus, const std::string& path, in getSubTreeRaw()
180 const std::string& interface, int32_t depth) in getSubTreeRaw()
182 using namespace std::literals::string_literals; in getSubTreeRaw()
184 using Path = std::string; in getSubTreeRaw()
185 using Intf = std::string; in getSubTreeRaw()
186 using Serv = std::string; in getSubTreeRaw()
187 using Intfs = std::vector<Intf>; in getSubTreeRaw()
188 using Objects = std::map<Path, std::map<Serv, Intfs>>; in getSubTreeRaw()
200 static auto getSubTreeRaw(sdbusplus::bus_t& bus, const std::string& path, in getSubTreeRaw()
201 const std::vector<std::string>& intfs, in getSubTreeRaw()
204 using namespace std::literals::string_literals; in getSubTreeRaw()
206 using Path = std::string; in getSubTreeRaw()
207 using Intf = std::string; in getSubTreeRaw()
208 using Serv = std::string; in getSubTreeRaw()
209 using Intfs = std::vector<Intf>; in getSubTreeRaw()
210 using Objects = std::map<Path, std::map<Serv, Intfs>>; in getSubTreeRaw()
220 static auto getSubTree(sdbusplus::bus_t& bus, const std::string& path, in getSubTree()
221 const std::string& interface, int32_t depth) in getSubTree()
238 const std::string& path, in getSubTreePathsRaw()
239 const std::string& interface, int32_t depth) in getSubTreePathsRaw()
241 using namespace std::literals::string_literals; in getSubTreePathsRaw()
243 using Path = std::string; in getSubTreePathsRaw()
244 using Intf = std::string; in getSubTreePathsRaw()
245 using Intfs = std::vector<Intf>; in getSubTreePathsRaw()
246 using ObjectPaths = std::vector<Path>; in getSubTreePathsRaw()
257 static auto getSubTreePaths(sdbusplus::bus_t& bus, const std::string& path, in getSubTreePaths()
258 const std::string& interface, int32_t depth) in getSubTreePaths()
274 static auto getServiceRaw(sdbusplus::bus_t& bus, const std::string& path, in getServiceRaw()
275 const std::string& interface) in getServiceRaw()
277 using namespace std::literals::string_literals; in getServiceRaw()
278 using GetObject = std::map<std::string, std::vector<std::string>>; in getServiceRaw()
288 static auto getService(sdbusplus::bus_t& bus, const std::string& path, in getService()
289 const std::string& interface) in getService()
312 static auto getService(const std::string& path, in getService()
313 const std::string& interface) in getService()
321 const std::string& service, in getManagedObjects()
322 const std::string& path) in getManagedObjects()
324 using namespace std::literals::string_literals; in getManagedObjects()
327 using Intf = std::string; in getManagedObjects()
328 using Prop = std::string; in getManagedObjects()
330 std::map<Path, std::map<Intf, std::map<Prop, Variant>>>; in getManagedObjects()
339 static auto getProperty(sdbusplus::bus_t& bus, const std::string& path, in getProperty()
340 const std::string& interface, in getProperty()
341 const std::string& property) in getProperty()
343 using namespace std::literals::string_literals; in getProperty()
354 std::variant<Property> value; in getProperty()
356 return std::get<Property>(value); in getProperty()
361 static auto getProperty(const std::string& path, in getProperty()
362 const std::string& interface, in getProperty()
363 const std::string& property) in getProperty()
371 sdbusplus::bus_t& bus, const std::string& path, in getPropertyVariant()
372 const std::string& interface, const std::string& property) in getPropertyVariant()
374 using namespace std::literals::string_literals; in getPropertyVariant()
392 static auto getPropertyVariant(const std::string& path, in getPropertyVariant()
393 const std::string& interface, in getPropertyVariant()
394 const std::string& property) in getPropertyVariant()
402 sdbusplus::bus_t& bus, const std::string& busName, in callMethodAndReturn()
403 const std::string& path, const std::string& interface, in callMethodAndReturn()
404 const std::string& method, Args&&... args) in callMethodAndReturn()
408 reqMsg.append(std::forward<Args>(args)...); in callMethodAndReturn()
416 static auto getProperty(sdbusplus::bus_t& bus, const std::string& service, in getProperty()
417 const std::string& path, in getProperty()
418 const std::string& interface, in getProperty()
419 const std::string& property) in getProperty()
421 using namespace std::literals::string_literals; in getProperty()
431 std::variant<Property> value; in getProperty()
433 return std::get<Property>(value); in getProperty()
438 static auto getProperty(const std::string& service, const std::string& path, in getProperty()
439 const std::string& interface, in getProperty()
440 const std::string& property) in getProperty()
449 sdbusplus::bus_t& bus, const std::string& service, in getPropertyVariant()
450 const std::string& path, const std::string& interface, in getPropertyVariant()
451 const std::string& property) in getPropertyVariant()
453 using namespace std::literals::string_literals; in getPropertyVariant()
471 const std::string& service, const std::string& path, in getPropertyVariant()
472 const std::string& interface, const std::string& property) in getPropertyVariant()
480 static void setProperty(sdbusplus::bus_t& bus, const std::string& path, in setProperty()
481 const std::string& interface, in setProperty()
482 const std::string& property, Property&& value) in setProperty()
484 using namespace std::literals::string_literals; in setProperty()
486 std::variant<Property> varValue(std::forward<Property>(value)); in setProperty()
501 static void setProperty(const std::string& path, in setProperty()
502 const std::string& interface, in setProperty()
503 const std::string& property, Property&& value) in setProperty()
506 std::forward<Property>(value)); in setProperty()
511 static void setProperty(sdbusplus::bus_t& bus, const std::string& service, in setProperty()
512 const std::string& path, in setProperty()
513 const std::string& interface, in setProperty()
514 const std::string& property, Property&& value) in setProperty()
516 using namespace std::literals::string_literals; in setProperty()
518 std::variant<Property> varValue(std::forward<Property>(value)); in setProperty()
532 static void setProperty(const std::string& service, const std::string& path, in setProperty()
533 const std::string& interface, in setProperty()
534 const std::string& property, Property&& value) in setProperty()
537 std::forward<Property>(value)); in setProperty()
543 sdbusplus::bus_t& bus, const std::string& path, in lookupAndCallMethod()
544 const std::string& interface, const std::string& method, Args&&... args) in lookupAndCallMethod()
547 interface, method, std::forward<Args>(args)...); in lookupAndCallMethod()
552 static auto lookupAndCallMethod(const std::string& path, in lookupAndCallMethod()
553 const std::string& interface, in lookupAndCallMethod()
554 const std::string& method, Args&&... args) in lookupAndCallMethod()
557 std::forward<Args>(args)...); in lookupAndCallMethod()
563 sdbusplus::bus_t& bus, const std::string& path, in lookupCallMethodAndRead()
564 const std::string& interface, const std::string& method, Args&&... args) in lookupCallMethodAndRead()
568 std::forward<Args>(args)...); in lookupCallMethodAndRead()
574 const std::string& path, const std::string& interface, in lookupCallMethodAndRead()
575 const std::string& method, Args&&... args) in lookupCallMethodAndRead()
578 std::forward<Args>(args)...); in lookupCallMethodAndRead()