Avi Drissman | f75e37f | 2022-09-13 19:40:31 | [diff] [blame] | 1 | // Copyright 2012 The Chromium Authors |
[email protected] | 216ed0b | 2012-02-14 21:29:06 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #include "dbus/object_path.h" | ||||
6 | |||||
[email protected] | ae0cda2 | 2013-04-12 14:16:32 | [diff] [blame] | 7 | #include <ostream> |
8 | |||||
[email protected] | 43fa5b8 | 2012-06-05 04:15:50 | [diff] [blame] | 9 | #include "dbus/string_util.h" |
10 | |||||
[email protected] | 216ed0b | 2012-02-14 21:29:06 | [diff] [blame] | 11 | namespace dbus { |
12 | |||||
[email protected] | 43fa5b8 | 2012-06-05 04:15:50 | [diff] [blame] | 13 | bool ObjectPath::IsValid() const { |
14 | return IsValidObjectPath(value_); | ||||
15 | } | ||||
16 | |||||
[email protected] | 216ed0b | 2012-02-14 21:29:06 | [diff] [blame] | 17 | bool ObjectPath::operator<(const ObjectPath& that) const { |
18 | return value_ < that.value_; | ||||
19 | } | ||||
20 | |||||
21 | bool ObjectPath::operator==(const ObjectPath& that) const { | ||||
22 | return value_ == that.value_; | ||||
23 | } | ||||
24 | |||||
25 | bool ObjectPath::operator!=(const ObjectPath& that) const { | ||||
26 | return value_ != that.value_; | ||||
27 | } | ||||
28 | |||||
[email protected] | ae0cda2 | 2013-04-12 14:16:32 | [diff] [blame] | 29 | void PrintTo(const ObjectPath& path, std::ostream* out) { |
30 | *out << path.value(); | ||||
31 | } | ||||
32 | |||||
[email protected] | 216ed0b | 2012-02-14 21:29:06 | [diff] [blame] | 33 | } // namespace dbus |