| // Copyright 2014 The Chromium OS Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #include <weave/commands.h> |
| #include <weave/enum_to_string.h> |
| #include <weave/export.h> |
| #include "libweave/src/commands/schema_constants.h" |
| const EnumToStringMap<UserRole>::Map kMap[] = { |
| {UserRole::kViewer, commands::attributes::kCommand_Role_Viewer}, |
| {UserRole::kUser, commands::attributes::kCommand_Role_User}, |
| {UserRole::kOwner, commands::attributes::kCommand_Role_Owner}, |
| {UserRole::kManager, commands::attributes::kCommand_Role_Manager}, |
| LIBWEAVE_EXPORT EnumToStringMap<UserRole>::EnumToStringMap() |
| : EnumToStringMap(kMap) {} |