Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
DeviceInfo.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* DeviceInfo.h (C) 2000-2022 */
9/* */
10/* Information sur un device. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_ACCELERATOR_CORE_DEVICEINFO_H
13#define ARCANE_ACCELERATOR_CORE_DEVICEINFO_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/String.h"
18#include "arcane/accelerator/core/DeviceId.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23namespace Arcane::Accelerator
24{
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
31class ARCANE_ACCELERATOR_CORE_EXPORT DeviceInfo
32{
33 public:
34
36 DeviceId deviceId() const { return m_device_id; }
37
39 String name() const { return m_name; }
40
42 String uuidAsString() const { return m_uuid_as_string; }
43
45 String description() const { return m_description; }
46
47 public:
48
49 void setDeviceId(DeviceId id) { m_device_id = id; }
50 void setUUIDAsString(const String& v) { m_uuid_as_string = v; }
51 void setDescription(const String& v) { m_description = v; }
52 void setName(const String& v) { m_name = v; }
53
54 private:
55
56 DeviceId m_device_id;
57 String m_name;
58 String m_uuid_as_string;
59 String m_description;
60};
61
62/*---------------------------------------------------------------------------*/
63/*---------------------------------------------------------------------------*/
64
65} // namespace Arcane::Accelerator
66
67/*---------------------------------------------------------------------------*/
68/*---------------------------------------------------------------------------*/
69
70#endif
Identifiant d'un composant du système.
Definition DeviceId.h:33
Information sur un device.
Definition DeviceInfo.h:32
String name() const
Nom du device.
Definition DeviceInfo.h:39
String description() const
Description du device.
Definition DeviceInfo.h:45
String uuidAsString() const
UUID sous forme de chaîne de caractères. Peut-être nul.
Definition DeviceInfo.h:42
DeviceId deviceId() const
Informations du i-ème device.
Definition DeviceInfo.h:36
Chaîne de caractères unicode.
Espace de nom pour l'utilisation des accélérateurs.