CARMA C++
DeviceNames.h
Go to the documentation of this file.
1 
10 #ifndef CARMA_CANBUS_DEVICENAMES_H
11 #define CARMA_CANBUS_DEVICENAMES_H
12 
13 // STL Includes
14 #include <string>
15 
16 // Carma include
17 #include "carma/canbus/Types.h"
18 
19 namespace carma {
20 namespace canbus {
21 
27  class DeviceNames {
28  public:
29 
34  static bool isRegistered(carma::canbus::apiType api);
35 
43  static std::string getName(carma::canbus::apiType api);
44 
45  private:
46 
47  // Creation, assignment, copy construction, destruction all prevented.
48  DeviceNames();
49  ~DeviceNames();
50  DeviceNames(const DeviceNames &);
51  DeviceNames &operator=(const DeviceNames &);
52 
53  }; // End class DeviceNames
54 
55 }} // End namespace carma::canbus
56 #endif
Declarations of carma::canbus types.
Completely static class to retrieve string names of CAN devices based on API Id.
Definition: DeviceNames.h:27
unsigned short apiType
Carma API id type.
Definition: Types.h:64
static bool isRegistered(carma::canbus::apiType api)
Check to see if a device has been registered with a specific api.
static std::string getName(carma::canbus::apiType api)
Get the Device name for an input API Id.